From 3dfefdefe86f40efcbf42daf25bc086830df0c9b Mon Sep 17 00:00:00 2001
From: Adam Williamson
+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_GamesConfiguration extends Google_Service +{ + /** View and manage your Google Play Android Developer account. */ + const ANDROIDPUBLISHER = + "https://www.googleapis.com/auth/androidpublisher"; + + public $achievementConfigurations; + public $imageConfigurations; + public $leaderboardConfigurations; + + + /** + * Constructs the internal representation of the GamesConfiguration service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'games/v1configuration/'; + $this->version = 'v1configuration'; + $this->serviceName = 'gamesConfiguration'; + + $this->achievementConfigurations = new Google_Service_GamesConfiguration_AchievementConfigurations_Resource( + $this, + $this->serviceName, + 'achievementConfigurations', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'achievements/{achievementId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'achievements/{achievementId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'applications/{applicationId}/achievements', + 'httpMethod' => 'POST', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'applications/{applicationId}/achievements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'achievements/{achievementId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'achievements/{achievementId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'achievementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->imageConfigurations = new Google_Service_GamesConfiguration_ImageConfigurations_Resource( + $this, + $this->serviceName, + 'imageConfigurations', + array( + 'methods' => array( + 'upload' => array( + 'path' => 'images/{resourceId}/imageType/{imageType}', + 'httpMethod' => 'POST', + 'parameters' => array( + 'resourceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'imageType' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->leaderboardConfigurations = new Google_Service_GamesConfiguration_LeaderboardConfigurations_Resource( + $this, + $this->serviceName, + 'leaderboardConfigurations', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'leaderboards/{leaderboardId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'leaderboards/{leaderboardId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'applications/{applicationId}/leaderboards', + 'httpMethod' => 'POST', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'applications/{applicationId}/leaderboards', + 'httpMethod' => 'GET', + 'parameters' => array( + 'applicationId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'leaderboards/{leaderboardId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'leaderboards/{leaderboardId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'leaderboardId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "achievementConfigurations" collection of methods. + * Typical usage is: + *
+ * $gamesConfigurationService = new Google_Service_GamesConfiguration(...);
+ * $achievementConfigurations = $gamesConfigurationService->achievementConfigurations;
+ *
+ */
+class Google_Service_GamesConfiguration_AchievementConfigurations_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Delete the achievement configuration with the given ID.
+ * (achievementConfigurations.delete)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($achievementId, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Retrieves the metadata of the achievement configuration with the given ID.
+ * (achievementConfigurations.get)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_AchievementConfiguration
+ */
+ public function get($achievementId, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
+ }
+
+ /**
+ * Insert a new achievement configuration in this application.
+ * (achievementConfigurations.insert)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param Google_AchievementConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_AchievementConfiguration
+ */
+ public function insert($applicationId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
+ }
+
+ /**
+ * Returns a list of the achievement configurations in this application.
+ * (achievementConfigurations.listAchievementConfigurations)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The token returned by the previous request.
+ * @opt_param int maxResults The maximum number of resource configurations to
+ * return in the response, used for paging. For any response, the actual number
+ * of resources returned may be less than the specified maxResults.
+ * @return Google_Service_GamesConfiguration_AchievementConfigurationListResponse
+ */
+ public function listAchievementConfigurations($applicationId, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_GamesConfiguration_AchievementConfigurationListResponse");
+ }
+
+ /**
+ * Update the metadata of the achievement configuration with the given ID. This
+ * method supports patch semantics. (achievementConfigurations.patch)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param Google_AchievementConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_AchievementConfiguration
+ */
+ public function patch($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
+ }
+
+ /**
+ * Update the metadata of the achievement configuration with the given ID.
+ * (achievementConfigurations.update)
+ *
+ * @param string $achievementId The ID of the achievement used by this method.
+ * @param Google_AchievementConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_AchievementConfiguration
+ */
+ public function update($achievementId, Google_Service_GamesConfiguration_AchievementConfiguration $postBody, $optParams = array())
+ {
+ $params = array('achievementId' => $achievementId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_GamesConfiguration_AchievementConfiguration");
+ }
+}
+
+/**
+ * The "imageConfigurations" collection of methods.
+ * Typical usage is:
+ *
+ * $gamesConfigurationService = new Google_Service_GamesConfiguration(...);
+ * $imageConfigurations = $gamesConfigurationService->imageConfigurations;
+ *
+ */
+class Google_Service_GamesConfiguration_ImageConfigurations_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Uploads an image for a resource with the given ID and image type.
+ * (imageConfigurations.upload)
+ *
+ * @param string $resourceId The ID of the resource used by this method.
+ * @param string $imageType Selects which image in a resource for this method.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_ImageConfiguration
+ */
+ public function upload($resourceId, $imageType, $optParams = array())
+ {
+ $params = array('resourceId' => $resourceId, 'imageType' => $imageType);
+ $params = array_merge($params, $optParams);
+ return $this->call('upload', array($params), "Google_Service_GamesConfiguration_ImageConfiguration");
+ }
+}
+
+/**
+ * The "leaderboardConfigurations" collection of methods.
+ * Typical usage is:
+ *
+ * $gamesConfigurationService = new Google_Service_GamesConfiguration(...);
+ * $leaderboardConfigurations = $gamesConfigurationService->leaderboardConfigurations;
+ *
+ */
+class Google_Service_GamesConfiguration_LeaderboardConfigurations_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Delete the leaderboard configuration with the given ID.
+ * (leaderboardConfigurations.delete)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($leaderboardId, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Retrieves the metadata of the leaderboard configuration with the given ID.
+ * (leaderboardConfigurations.get)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
+ */
+ public function get($leaderboardId, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
+ }
+
+ /**
+ * Insert a new leaderboard configuration in this application.
+ * (leaderboardConfigurations.insert)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param Google_LeaderboardConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
+ */
+ public function insert($applicationId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
+ }
+
+ /**
+ * Returns a list of the leaderboard configurations in this application.
+ * (leaderboardConfigurations.listLeaderboardConfigurations)
+ *
+ * @param string $applicationId The application ID from the Google Play
+ * developer console.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The token returned by the previous request.
+ * @opt_param int maxResults The maximum number of resource configurations to
+ * return in the response, used for paging. For any response, the actual number
+ * of resources returned may be less than the specified maxResults.
+ * @return Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse
+ */
+ public function listLeaderboardConfigurations($applicationId, $optParams = array())
+ {
+ $params = array('applicationId' => $applicationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse");
+ }
+
+ /**
+ * Update the metadata of the leaderboard configuration with the given ID. This
+ * method supports patch semantics. (leaderboardConfigurations.patch)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param Google_LeaderboardConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
+ */
+ public function patch($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
+ }
+
+ /**
+ * Update the metadata of the leaderboard configuration with the given ID.
+ * (leaderboardConfigurations.update)
+ *
+ * @param string $leaderboardId The ID of the leaderboard.
+ * @param Google_LeaderboardConfiguration $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_GamesConfiguration_LeaderboardConfiguration
+ */
+ public function update($leaderboardId, Google_Service_GamesConfiguration_LeaderboardConfiguration $postBody, $optParams = array())
+ {
+ $params = array('leaderboardId' => $leaderboardId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_GamesConfiguration_LeaderboardConfiguration");
+ }
+}
+
+
+
+
+class Google_Service_GamesConfiguration_AchievementConfiguration extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $achievementType;
+ protected $draftType = 'Google_Service_GamesConfiguration_AchievementConfigurationDetail';
+ protected $draftDataType = '';
+ public $id;
+ public $initialState;
+ public $kind;
+ protected $publishedType = 'Google_Service_GamesConfiguration_AchievementConfigurationDetail';
+ protected $publishedDataType = '';
+ public $stepsToUnlock;
+ public $token;
+
+
+ public function setAchievementType($achievementType)
+ {
+ $this->achievementType = $achievementType;
+ }
+ public function getAchievementType()
+ {
+ return $this->achievementType;
+ }
+ public function setDraft(Google_Service_GamesConfiguration_AchievementConfigurationDetail $draft)
+ {
+ $this->draft = $draft;
+ }
+ public function getDraft()
+ {
+ return $this->draft;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInitialState($initialState)
+ {
+ $this->initialState = $initialState;
+ }
+ public function getInitialState()
+ {
+ return $this->initialState;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPublished(Google_Service_GamesConfiguration_AchievementConfigurationDetail $published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setStepsToUnlock($stepsToUnlock)
+ {
+ $this->stepsToUnlock = $stepsToUnlock;
+ }
+ public function getStepsToUnlock()
+ {
+ return $this->stepsToUnlock;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+}
+
+class Google_Service_GamesConfiguration_AchievementConfigurationDetail extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $descriptionType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $descriptionDataType = '';
+ public $iconUrl;
+ public $kind;
+ protected $nameType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $nameDataType = '';
+ public $pointValue;
+ public $sortRank;
+
+
+ public function setDescription(Google_Service_GamesConfiguration_LocalizedStringBundle $description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setIconUrl($iconUrl)
+ {
+ $this->iconUrl = $iconUrl;
+ }
+ public function getIconUrl()
+ {
+ return $this->iconUrl;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName(Google_Service_GamesConfiguration_LocalizedStringBundle $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPointValue($pointValue)
+ {
+ $this->pointValue = $pointValue;
+ }
+ public function getPointValue()
+ {
+ return $this->pointValue;
+ }
+ public function setSortRank($sortRank)
+ {
+ $this->sortRank = $sortRank;
+ }
+ public function getSortRank()
+ {
+ return $this->sortRank;
+ }
+}
+
+class Google_Service_GamesConfiguration_AchievementConfigurationListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_GamesConfiguration_AchievementConfiguration';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+
+ 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_GamesConfiguration_GamesNumberAffixConfiguration extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $fewType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $fewDataType = '';
+ protected $manyType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $manyDataType = '';
+ protected $oneType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $oneDataType = '';
+ protected $otherType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $otherDataType = '';
+ protected $twoType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $twoDataType = '';
+ protected $zeroType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $zeroDataType = '';
+
+
+ public function setFew(Google_Service_GamesConfiguration_LocalizedStringBundle $few)
+ {
+ $this->few = $few;
+ }
+ public function getFew()
+ {
+ return $this->few;
+ }
+ public function setMany(Google_Service_GamesConfiguration_LocalizedStringBundle $many)
+ {
+ $this->many = $many;
+ }
+ public function getMany()
+ {
+ return $this->many;
+ }
+ public function setOne(Google_Service_GamesConfiguration_LocalizedStringBundle $one)
+ {
+ $this->one = $one;
+ }
+ public function getOne()
+ {
+ return $this->one;
+ }
+ public function setOther(Google_Service_GamesConfiguration_LocalizedStringBundle $other)
+ {
+ $this->other = $other;
+ }
+ public function getOther()
+ {
+ return $this->other;
+ }
+ public function setTwo(Google_Service_GamesConfiguration_LocalizedStringBundle $two)
+ {
+ $this->two = $two;
+ }
+ public function getTwo()
+ {
+ return $this->two;
+ }
+ public function setZero(Google_Service_GamesConfiguration_LocalizedStringBundle $zero)
+ {
+ $this->zero = $zero;
+ }
+ public function getZero()
+ {
+ return $this->zero;
+ }
+}
+
+class Google_Service_GamesConfiguration_GamesNumberFormatConfiguration extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $currencyCode;
+ public $numDecimalPlaces;
+ public $numberFormatType;
+ protected $suffixType = 'Google_Service_GamesConfiguration_GamesNumberAffixConfiguration';
+ protected $suffixDataType = '';
+
+
+ public function setCurrencyCode($currencyCode)
+ {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode()
+ {
+ return $this->currencyCode;
+ }
+ public function setNumDecimalPlaces($numDecimalPlaces)
+ {
+ $this->numDecimalPlaces = $numDecimalPlaces;
+ }
+ public function getNumDecimalPlaces()
+ {
+ return $this->numDecimalPlaces;
+ }
+ public function setNumberFormatType($numberFormatType)
+ {
+ $this->numberFormatType = $numberFormatType;
+ }
+ public function getNumberFormatType()
+ {
+ return $this->numberFormatType;
+ }
+ public function setSuffix(Google_Service_GamesConfiguration_GamesNumberAffixConfiguration $suffix)
+ {
+ $this->suffix = $suffix;
+ }
+ public function getSuffix()
+ {
+ return $this->suffix;
+ }
+}
+
+class Google_Service_GamesConfiguration_ImageConfiguration extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $imageType;
+ public $kind;
+ public $resourceId;
+ public $url;
+
+
+ public function setImageType($imageType)
+ {
+ $this->imageType = $imageType;
+ }
+ public function getImageType()
+ {
+ return $this->imageType;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setResourceId($resourceId)
+ {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId()
+ {
+ return $this->resourceId;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
+
+class Google_Service_GamesConfiguration_LeaderboardConfiguration extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $draftType = 'Google_Service_GamesConfiguration_LeaderboardConfigurationDetail';
+ protected $draftDataType = '';
+ public $id;
+ public $kind;
+ protected $publishedType = 'Google_Service_GamesConfiguration_LeaderboardConfigurationDetail';
+ protected $publishedDataType = '';
+ public $scoreMax;
+ public $scoreMin;
+ public $scoreOrder;
+ public $token;
+
+
+ public function setDraft(Google_Service_GamesConfiguration_LeaderboardConfigurationDetail $draft)
+ {
+ $this->draft = $draft;
+ }
+ public function getDraft()
+ {
+ return $this->draft;
+ }
+ 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 setPublished(Google_Service_GamesConfiguration_LeaderboardConfigurationDetail $published)
+ {
+ $this->published = $published;
+ }
+ public function getPublished()
+ {
+ return $this->published;
+ }
+ public function setScoreMax($scoreMax)
+ {
+ $this->scoreMax = $scoreMax;
+ }
+ public function getScoreMax()
+ {
+ return $this->scoreMax;
+ }
+ public function setScoreMin($scoreMin)
+ {
+ $this->scoreMin = $scoreMin;
+ }
+ public function getScoreMin()
+ {
+ return $this->scoreMin;
+ }
+ public function setScoreOrder($scoreOrder)
+ {
+ $this->scoreOrder = $scoreOrder;
+ }
+ public function getScoreOrder()
+ {
+ return $this->scoreOrder;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+}
+
+class Google_Service_GamesConfiguration_LeaderboardConfigurationDetail extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $iconUrl;
+ public $kind;
+ protected $nameType = 'Google_Service_GamesConfiguration_LocalizedStringBundle';
+ protected $nameDataType = '';
+ protected $scoreFormatType = 'Google_Service_GamesConfiguration_GamesNumberFormatConfiguration';
+ protected $scoreFormatDataType = '';
+ public $sortRank;
+
+
+ public function setIconUrl($iconUrl)
+ {
+ $this->iconUrl = $iconUrl;
+ }
+ public function getIconUrl()
+ {
+ return $this->iconUrl;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setName(Google_Service_GamesConfiguration_LocalizedStringBundle $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setScoreFormat(Google_Service_GamesConfiguration_GamesNumberFormatConfiguration $scoreFormat)
+ {
+ $this->scoreFormat = $scoreFormat;
+ }
+ public function getScoreFormat()
+ {
+ return $this->scoreFormat;
+ }
+ public function setSortRank($sortRank)
+ {
+ $this->sortRank = $sortRank;
+ }
+ public function getSortRank()
+ {
+ return $this->sortRank;
+ }
+}
+
+class Google_Service_GamesConfiguration_LeaderboardConfigurationListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_GamesConfiguration_LeaderboardConfiguration';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+
+ 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_GamesConfiguration_LocalizedString extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ public $locale;
+ public $value;
+
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocale($locale)
+ {
+ $this->locale = $locale;
+ }
+ public function getLocale()
+ {
+ return $this->locale;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
+class Google_Service_GamesConfiguration_LocalizedStringBundle extends Google_Collection
+{
+ protected $collection_key = 'translations';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ protected $translationsType = 'Google_Service_GamesConfiguration_LocalizedString';
+ protected $translationsDataType = 'array';
+
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setTranslations($translations)
+ {
+ $this->translations = $translations;
+ }
+ public function getTranslations()
+ {
+ return $this->translations;
+ }
+}
From 9c0cedd51cd780c2a6c235655f981abc041e02c3 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
* Lets you analyze the performance of a web page and get tailored suggestions
@@ -44,8 +44,8 @@ class Google_Service_Pagespeedonline extends Google_Service
public function __construct(Google_Client $client)
{
parent::__construct($client);
- $this->servicePath = 'pagespeedonline/v1/';
- $this->version = 'v1';
+ $this->servicePath = 'pagespeedonline/v2/';
+ $this->version = 'v2';
$this->serviceName = 'pagespeedonline';
$this->pagespeedapi = new Google_Service_Pagespeedonline_Pagespeedapi_Resource(
@@ -105,8 +105,8 @@ class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Servic
{
/**
- * Runs Page Speed analysis on the page at the specified URL, and returns a Page
- * Speed score, a list of suggestions to make that page faster, and other
+ * Runs PageSpeed analysis on the page at the specified URL, and returns
+ * PageSpeed scores, a list of suggestions to make that page faster, and other
* information. (pagespeedapi.runpagespeed)
*
* @param string $url The URL to fetch and analyze
@@ -115,7 +115,7 @@ class Google_Service_Pagespeedonline_Pagespeedapi_Resource extends Google_Servic
* @opt_param bool screenshot Indicates if binary data containing a screenshot
* should be included
* @opt_param string locale The locale used to localize formatted results
- * @opt_param string rule A Page Speed rule to run; if none are given, all rules
+ * @opt_param string rule A PageSpeed rule to run; if none are given, all rules
* are run
* @opt_param string strategy The analysis strategy to use
* @opt_param bool filter_third_party_resources Indicates if third party
@@ -133,6 +133,288 @@ public function runpagespeed($url, $optParams = array())
+class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 extends Google_Collection
+{
+ protected $collection_key = 'args';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $argsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args';
+ protected $argsDataType = 'array';
+ public $format;
+
+
+ public function setArgs($args)
+ {
+ $this->args = $args;
+ }
+ public function getArgs()
+ {
+ return $this->args;
+ }
+ public function setFormat($format)
+ {
+ $this->format = $format;
+ }
+ public function getFormat()
+ {
+ return $this->format;
+ }
+}
+
+class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2Args extends Google_Collection
+{
+ protected $collection_key = 'secondary_rects';
+ protected $internal_gapi_mappings = array(
+ "secondaryRects" => "secondary_rects",
+ );
+ public $key;
+ protected $rectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects';
+ protected $rectsDataType = 'array';
+ protected $secondaryRectsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects';
+ protected $secondaryRectsDataType = 'array';
+ public $type;
+ public $value;
+
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setRects($rects)
+ {
+ $this->rects = $rects;
+ }
+ public function getRects()
+ {
+ return $this->rects;
+ }
+ public function setSecondaryRects($secondaryRects)
+ {
+ $this->secondaryRects = $secondaryRects;
+ }
+ public function getSecondaryRects()
+ {
+ return $this->secondaryRects;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
+class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsRects extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $height;
+ public $left;
+ public $top;
+ public $width;
+
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setLeft($left)
+ {
+ $this->left = $left;
+ }
+ public function getLeft()
+ {
+ return $this->left;
+ }
+ public function setTop($top)
+ {
+ $this->top = $top;
+ }
+ public function getTop()
+ {
+ return $this->top;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
+
+class Google_Service_Pagespeedonline_PagespeedApiFormatStringV2ArgsSecondaryRects extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $height;
+ public $left;
+ public $top;
+ public $width;
+
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setLeft($left)
+ {
+ $this->left = $left;
+ }
+ public function getLeft()
+ {
+ return $this->left;
+ }
+ public function setTop($top)
+ {
+ $this->top = $top;
+ }
+ public function getTop()
+ {
+ return $this->top;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
+
+class Google_Service_Pagespeedonline_PagespeedApiImageV2 extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "mimeType" => "mime_type",
+ "pageRect" => "page_rect",
+ );
+ public $data;
+ public $height;
+ public $key;
+ public $mimeType;
+ protected $pageRectType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect';
+ protected $pageRectDataType = '';
+ public $width;
+
+
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setMimeType($mimeType)
+ {
+ $this->mimeType = $mimeType;
+ }
+ public function getMimeType()
+ {
+ return $this->mimeType;
+ }
+ public function setPageRect(Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect $pageRect)
+ {
+ $this->pageRect = $pageRect;
+ }
+ public function getPageRect()
+ {
+ return $this->pageRect;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
+
+class Google_Service_Pagespeedonline_PagespeedApiImageV2PageRect extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $height;
+ public $left;
+ public $top;
+ public $width;
+
+
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setLeft($left)
+ {
+ $this->left = $left;
+ }
+ public function getLeft()
+ {
+ return $this->left;
+ }
+ public function setTop($top)
+ {
+ $this->top = $top;
+ }
+ public function getTop()
+ {
+ return $this->top;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
+
class Google_Service_Pagespeedonline_Result extends Google_Collection
{
protected $collection_key = 'invalidRules';
@@ -146,8 +428,9 @@ class Google_Service_Pagespeedonline_Result extends Google_Collection
protected $pageStatsType = 'Google_Service_Pagespeedonline_ResultPageStats';
protected $pageStatsDataType = '';
public $responseCode;
- public $score;
- protected $screenshotType = 'Google_Service_Pagespeedonline_ResultScreenshot';
+ protected $ruleGroupsType = 'Google_Service_Pagespeedonline_ResultRuleGroupsElement';
+ protected $ruleGroupsDataType = 'map';
+ protected $screenshotType = 'Google_Service_Pagespeedonline_PagespeedApiImageV2';
protected $screenshotDataType = '';
public $title;
protected $versionType = 'Google_Service_Pagespeedonline_ResultVersion';
@@ -202,15 +485,15 @@ public function getResponseCode()
{
return $this->responseCode;
}
- public function setScore($score)
+ public function setRuleGroups($ruleGroups)
{
- $this->score = $score;
+ $this->ruleGroups = $ruleGroups;
}
- public function getScore()
+ public function getRuleGroups()
{
- return $this->score;
+ return $this->ruleGroups;
}
- public function setScreenshot(Google_Service_Pagespeedonline_ResultScreenshot $screenshot)
+ public function setScreenshot(Google_Service_Pagespeedonline_PagespeedApiImageV2 $screenshot)
{
$this->screenshot = $screenshot;
}
@@ -272,12 +555,23 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement ex
protected $collection_key = 'urlBlocks';
protected $internal_gapi_mappings = array(
);
+ public $groups;
public $localizedRuleName;
public $ruleImpact;
+ protected $summaryType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
+ protected $summaryDataType = '';
protected $urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks';
protected $urlBlocksDataType = 'array';
+ public function setGroups($groups)
+ {
+ $this->groups = $groups;
+ }
+ public function getGroups()
+ {
+ return $this->groups;
+ }
public function setLocalizedRuleName($localizedRuleName)
{
$this->localizedRuleName = $localizedRuleName;
@@ -294,6 +588,14 @@ public function getRuleImpact()
{
return $this->ruleImpact;
}
+ public function setSummary(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $summary)
+ {
+ $this->summary = $summary;
+ }
+ public function getSummary()
+ {
+ return $this->summary;
+ }
public function setUrlBlocks($urlBlocks)
{
$this->urlBlocks = $urlBlocks;
@@ -309,13 +611,13 @@ class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrl
protected $collection_key = 'urls';
protected $internal_gapi_mappings = array(
);
- protected $headerType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader';
+ protected $headerType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
protected $headerDataType = '';
protected $urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls';
protected $urlsDataType = 'array';
- public function setHeader(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader $header)
+ public function setHeader(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $header)
{
$this->header = $header;
}
@@ -333,68 +635,14 @@ public function getUrls()
}
}
-class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader extends Google_Collection
-{
- protected $collection_key = 'args';
- protected $internal_gapi_mappings = array(
- );
- protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs';
- protected $argsDataType = 'array';
- public $format;
-
-
- public function setArgs($args)
- {
- $this->args = $args;
- }
- public function getArgs()
- {
- return $this->args;
- }
- public function setFormat($format)
- {
- $this->format = $format;
- }
- public function getFormat()
- {
- return $this->format;
- }
-}
-
-class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $type;
- public $value;
-
-
- public function setType($type)
- {
- $this->type = $type;
- }
- public function getType()
- {
- return $this->type;
- }
- public function setValue($value)
- {
- $this->value = $value;
- }
- public function getValue()
- {
- return $this->value;
- }
-}
-
class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls extends Google_Collection
{
protected $collection_key = 'details';
protected $internal_gapi_mappings = array(
);
- protected $detailsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails';
+ protected $detailsType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
protected $detailsDataType = 'array';
- protected $resultType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult';
+ protected $resultType = 'Google_Service_Pagespeedonline_PagespeedApiFormatStringV2';
protected $resultDataType = '';
@@ -406,7 +654,7 @@ public function getDetails()
{
return $this->details;
}
- public function setResult(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult $result)
+ public function setResult(Google_Service_Pagespeedonline_PagespeedApiFormatStringV2 $result)
{
$this->result = $result;
}
@@ -416,114 +664,6 @@ public function getResult()
}
}
-class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails extends Google_Collection
-{
- protected $collection_key = 'args';
- protected $internal_gapi_mappings = array(
- );
- protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs';
- protected $argsDataType = 'array';
- public $format;
-
-
- public function setArgs($args)
- {
- $this->args = $args;
- }
- public function getArgs()
- {
- return $this->args;
- }
- public function setFormat($format)
- {
- $this->format = $format;
- }
- public function getFormat()
- {
- return $this->format;
- }
-}
-
-class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $type;
- public $value;
-
-
- public function setType($type)
- {
- $this->type = $type;
- }
- public function getType()
- {
- return $this->type;
- }
- public function setValue($value)
- {
- $this->value = $value;
- }
- public function getValue()
- {
- return $this->value;
- }
-}
-
-class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult extends Google_Collection
-{
- protected $collection_key = 'args';
- protected $internal_gapi_mappings = array(
- );
- protected $argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs';
- protected $argsDataType = 'array';
- public $format;
-
-
- public function setArgs($args)
- {
- $this->args = $args;
- }
- public function getArgs()
- {
- return $this->args;
- }
- public function setFormat($format)
- {
- $this->format = $format;
- }
- public function getFormat()
- {
- return $this->format;
- }
-}
-
-class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $type;
- public $value;
-
-
- public function setType($type)
- {
- $this->type = $type;
- }
- public function getType()
- {
- return $this->type;
- }
- public function setValue($value)
- {
- $this->value = $value;
- }
- public function getValue()
- {
- return $this->value;
- }
-}
-
class Google_Service_Pagespeedonline_ResultPageStats extends Google_Model
{
protected $internal_gapi_mappings = array(
@@ -649,48 +789,24 @@ public function getTotalRequestBytes()
}
}
-class Google_Service_Pagespeedonline_ResultScreenshot extends Google_Model
+class Google_Service_Pagespeedonline_ResultRuleGroups extends Google_Model
+{
+}
+
+class Google_Service_Pagespeedonline_ResultRuleGroupsElement extends Google_Model
{
protected $internal_gapi_mappings = array(
- "mimeType" => "mime_type",
);
- public $data;
- public $height;
- public $mimeType;
- public $width;
+ public $score;
- public function setData($data)
- {
- $this->data = $data;
- }
- public function getData()
- {
- return $this->data;
- }
- public function setHeight($height)
- {
- $this->height = $height;
- }
- public function getHeight()
- {
- return $this->height;
- }
- public function setMimeType($mimeType)
- {
- $this->mimeType = $mimeType;
- }
- public function getMimeType()
- {
- return $this->mimeType;
- }
- public function setWidth($width)
+ public function setScore($score)
{
- $this->width = $width;
+ $this->score = $score;
}
- public function getWidth()
+ public function getScore()
{
- return $this->width;
+ return $this->score;
}
}
From c631d8679bc0acbdb3a333a216073c304cb94a76 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Cloudlatencytest extends Google_Service +{ + /** View monitoring data for all of your Google Cloud and API projects. */ + const MONITORING_READONLY = + "https://www.googleapis.com/auth/monitoring.readonly"; + + public $statscollection; + + + /** + * Constructs the internal representation of the Cloudlatencytest service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'v2/statscollection/'; + $this->version = 'v2'; + $this->serviceName = 'cloudlatencytest'; + + $this->statscollection = new Google_Service_Cloudlatencytest_Statscollection_Resource( + $this, + $this->serviceName, + 'statscollection', + array( + 'methods' => array( + 'updateaggregatedstats' => array( + 'path' => 'updateaggregatedstats', + 'httpMethod' => 'POST', + 'parameters' => array(), + ),'updatestats' => array( + 'path' => 'updatestats', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); + } +} + + +/** + * The "statscollection" collection of methods. + * Typical usage is: + *
+ * $cloudlatencytestService = new Google_Service_Cloudlatencytest(...);
+ * $statscollection = $cloudlatencytestService->statscollection;
+ *
+ */
+class Google_Service_Cloudlatencytest_Statscollection_Resource extends Google_Service_Resource
+{
+
+ /**
+ * RPC to update the new TCP stats. (statscollection.updateaggregatedstats)
+ *
+ * @param Google_AggregatedStats $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudlatencytest_AggregatedStatsReply
+ */
+ public function updateaggregatedstats(Google_Service_Cloudlatencytest_AggregatedStats $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updateaggregatedstats', array($params), "Google_Service_Cloudlatencytest_AggregatedStatsReply");
+ }
+
+ /**
+ * RPC to update the new TCP stats. (statscollection.updatestats)
+ *
+ * @param Google_Stats $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudlatencytest_StatsReply
+ */
+ public function updatestats(Google_Service_Cloudlatencytest_Stats $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updatestats', array($params), "Google_Service_Cloudlatencytest_StatsReply");
+ }
+}
+
+
+
+
+class Google_Service_Cloudlatencytest_AggregatedStats extends Google_Collection
+{
+ protected $collection_key = 'stats';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $statsType = 'Google_Service_Cloudlatencytest_Stats';
+ protected $statsDataType = 'array';
+
+
+ public function setStats($stats)
+ {
+ $this->stats = $stats;
+ }
+ public function getStats()
+ {
+ return $this->stats;
+ }
+}
+
+class Google_Service_Cloudlatencytest_AggregatedStatsReply extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $testValue;
+
+
+ public function setTestValue($testValue)
+ {
+ $this->testValue = $testValue;
+ }
+ public function getTestValue()
+ {
+ return $this->testValue;
+ }
+}
+
+class Google_Service_Cloudlatencytest_DoubleValue extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $label;
+ public $value;
+
+
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
+class Google_Service_Cloudlatencytest_IntValue extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $label;
+ public $value;
+
+
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
+class Google_Service_Cloudlatencytest_Stats extends Google_Collection
+{
+ protected $collection_key = 'stringValues';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $doubleValuesType = 'Google_Service_Cloudlatencytest_DoubleValue';
+ protected $doubleValuesDataType = 'array';
+ protected $intValuesType = 'Google_Service_Cloudlatencytest_IntValue';
+ protected $intValuesDataType = 'array';
+ protected $stringValuesType = 'Google_Service_Cloudlatencytest_StringValue';
+ protected $stringValuesDataType = 'array';
+ public $time;
+
+
+ public function setDoubleValues($doubleValues)
+ {
+ $this->doubleValues = $doubleValues;
+ }
+ public function getDoubleValues()
+ {
+ return $this->doubleValues;
+ }
+ public function setIntValues($intValues)
+ {
+ $this->intValues = $intValues;
+ }
+ public function getIntValues()
+ {
+ return $this->intValues;
+ }
+ public function setStringValues($stringValues)
+ {
+ $this->stringValues = $stringValues;
+ }
+ public function getStringValues()
+ {
+ return $this->stringValues;
+ }
+ public function setTime($time)
+ {
+ $this->time = $time;
+ }
+ public function getTime()
+ {
+ return $this->time;
+ }
+}
+
+class Google_Service_Cloudlatencytest_StatsReply extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $testValue;
+
+
+ public function setTestValue($testValue)
+ {
+ $this->testValue = $testValue;
+ }
+ public function getTestValue()
+ {
+ return $this->testValue;
+ }
+}
+
+class Google_Service_Cloudlatencytest_StringValue extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $label;
+ public $value;
+
+
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
From 782b1b25b703165db616eb75b8accfec2e3d6220 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
* $replicapoolupdaterService = new Google_Service_Replicapoolupdater(...);
- * $updates = $replicapoolupdaterService->updates;
+ * $rollingUpdates = $replicapoolupdaterService->rollingUpdates;
*
*/
-class Google_Service_Replicapoolupdater_Updates_Resource extends Google_Service_Resource
+class Google_Service_Replicapoolupdater_RollingUpdates_Resource extends Google_Service_Resource
{
/**
- * Called on the particular Update endpoint. Cancels the update in state PAUSED.
- * No-op if invoked in state CANCELLED. (updates.cancel)
+ * Cancels an update. The update must be PAUSED before it can be cancelled. This
+ * has no effect if the update is already CANCELLED. (rollingUpdates.cancel)
*
* @param string $project The Google Developers Console project name.
* @param string $zone The name of the zone in which the update's target
* resides.
- * @param string $instanceGroupManager The name of the instance group manager.
- * @param string $update The id of the update.
+ * @param string $rollingUpdate The name of the update.
* @param array $optParams Optional parameters.
*/
- public function cancel($project, $zone, $instanceGroupManager, $update, $optParams = array())
+ public function cancel($project, $zone, $rollingUpdate, $optParams = array())
{
- $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update);
+ $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate);
$params = array_merge($params, $optParams);
return $this->call('cancel', array($params));
}
/**
- * Called on the particular Update endpoint. Returns the Update resource.
- * (updates.get)
+ * Returns information about an update. (rollingUpdates.get)
*
* @param string $project The Google Developers Console project name.
* @param string $zone The name of the zone in which the update's target
* resides.
- * @param string $instanceGroupManager The name of the instance group manager.
- * @param string $update The id of the update.
+ * @param string $rollingUpdate The name of the update.
* @param array $optParams Optional parameters.
- * @return Google_Service_Replicapoolupdater_Update
+ * @return Google_Service_Replicapoolupdater_RollingUpdate
*/
- public function get($project, $zone, $instanceGroupManager, $update, $optParams = array())
+ public function get($project, $zone, $rollingUpdate, $optParams = array())
{
- $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update);
+ $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate);
$params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Replicapoolupdater_Update");
+ return $this->call('get', array($params), "Google_Service_Replicapoolupdater_RollingUpdate");
}
/**
- * Called on the collection endpoint. Inserts the new Update resource and starts
- * the update. (updates.insert)
+ * Inserts and starts a new update. (rollingUpdates.insert)
*
* @param string $project The Google Developers Console project name.
* @param string $zone The name of the zone in which the update's target
* resides.
- * @param string $instanceGroupManager The name of the instance group manager.
- * @param Google_Update $postBody
+ * @param Google_RollingUpdate $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Replicapoolupdater_InsertResponse
*/
- public function insert($project, $zone, $instanceGroupManager, Google_Service_Replicapoolupdater_Update $postBody, $optParams = array())
+ public function insert($project, $zone, Google_Service_Replicapoolupdater_RollingUpdate $postBody, $optParams = array())
{
- $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'postBody' => $postBody);
+ $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Replicapoolupdater_InsertResponse");
}
/**
- * Called on the collection endpoint. Lists updates for a given instance group,
- * in reverse chronological order. Pagination is supported, see
- * ListRequestHeader. (updates.listUpdates)
+ * Lists recent updates for a given managed instance group, in reverse
+ * chronological order and paginated format. (rollingUpdates.listRollingUpdates)
*
* @param string $project The Google Developers Console project name.
* @param string $zone The name of the zone in which the update's target
* resides.
- * @param string $instanceGroupManager The name of the instance group manager.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Set this to the nextPageToken value returned by a
@@ -384,114 +316,93 @@ public function insert($project, $zone, $instanceGroupManager, Google_Service_Re
* list request.
* @opt_param int maxResults Maximum count of results to be returned. Acceptable
* values are 1 to 100, inclusive. (Default: 50)
- * @return Google_Service_Replicapoolupdater_UpdateList
+ * @opt_param string instanceGroupManager The name of the instance group
+ * manager.
+ * @return Google_Service_Replicapoolupdater_RollingUpdateList
*/
- public function listUpdates($project, $zone, $instanceGroupManager, $optParams = array())
+ public function listRollingUpdates($project, $zone, $optParams = array())
{
- $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager);
+ $params = array('project' => $project, 'zone' => $zone);
$params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Replicapoolupdater_UpdateList");
+ return $this->call('list', array($params), "Google_Service_Replicapoolupdater_RollingUpdateList");
}
/**
- * Called on the particular Update endpoint. Lists instance updates for a given
- * update. (updates.listInstanceUpdates)
+ * Lists the current status for each instance within a given update.
+ * (rollingUpdates.listInstanceUpdates)
*
* @param string $project The Google Developers Console project name.
* @param string $zone The name of the zone in which the update's target
* resides.
- * @param string $instanceGroupManager The name of the instance group manager.
- * @param string $update The id of the update.
+ * @param string $rollingUpdate The name of the update.
* @param array $optParams Optional parameters.
*
- * @opt_param int maxResults Maximum count of results to be returned. Acceptable
- * values are 1 to 100, inclusive. (Default: 50)
* @opt_param string pageToken Set this to the nextPageToken value returned by a
* previous list request to obtain the next page of results from the previous
* list request.
+ * @opt_param int maxResults Maximum count of results to be returned. Acceptable
+ * values are 1 to 100, inclusive. (Default: 50)
* @return Google_Service_Replicapoolupdater_InstanceUpdateList
*/
- public function listInstanceUpdates($project, $zone, $instanceGroupManager, $update, $optParams = array())
+ public function listInstanceUpdates($project, $zone, $rollingUpdate, $optParams = array())
{
- $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update);
+ $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate);
$params = array_merge($params, $optParams);
return $this->call('listInstanceUpdates', array($params), "Google_Service_Replicapoolupdater_InstanceUpdateList");
}
/**
- * Called on the particular Update endpoint. Pauses the update in state
- * ROLLING_FORWARD or ROLLING_BACK. No-op if invoked in state PAUSED.
- * (updates.pause)
+ * Pauses the update in state from ROLLING_FORWARD or ROLLING_BACK. Has no
+ * effect if invoked when the state of the update is PAUSED.
+ * (rollingUpdates.pause)
*
* @param string $project The Google Developers Console project name.
* @param string $zone The name of the zone in which the update's target
* resides.
- * @param string $instanceGroupManager The name of the instance group manager.
- * @param string $update The id of the update.
+ * @param string $rollingUpdate The name of the update.
* @param array $optParams Optional parameters.
*/
- public function pause($project, $zone, $instanceGroupManager, $update, $optParams = array())
+ public function pause($project, $zone, $rollingUpdate, $optParams = array())
{
- $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update);
+ $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate);
$params = array_merge($params, $optParams);
return $this->call('pause', array($params));
}
/**
- * Called on the particular Update endpoint. Resumes the update in state PAUSED.
- * No-op if invoked in state ROLLING_FORWARD or ROLLING_BACK. (updates.resume)
+ * Continues an update in PAUSED state. Has no effect if invoked when the state
+ * of the update is ROLLED_OUT. (rollingUpdates.resume)
*
* @param string $project The Google Developers Console project name.
* @param string $zone The name of the zone in which the update's target
* resides.
- * @param string $instanceGroupManager The name of the instance group manager.
- * @param string $update The id of the update.
+ * @param string $rollingUpdate The name of the update.
* @param array $optParams Optional parameters.
*/
- public function resume($project, $zone, $instanceGroupManager, $update, $optParams = array())
+ public function resume($project, $zone, $rollingUpdate, $optParams = array())
{
- $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update);
+ $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate);
$params = array_merge($params, $optParams);
return $this->call('resume', array($params));
}
/**
- * Called on the particular Update endpoint. Rolls back the update in state
- * ROLLING_FORWARD or PAUSED. No-op if invoked in state ROLLED_BACK or
- * ROLLING_BACK. (updates.rollback)
+ * Rolls back the update in state from ROLLING_FORWARD or PAUSED. Has no effect
+ * if invoked when the state of the update is ROLLED_BACK.
+ * (rollingUpdates.rollback)
*
* @param string $project The Google Developers Console project name.
* @param string $zone The name of the zone in which the update's target
* resides.
- * @param string $instanceGroupManager The name of the instance group manager.
- * @param string $update The id of the update.
+ * @param string $rollingUpdate The name of the update.
* @param array $optParams Optional parameters.
*/
- public function rollback($project, $zone, $instanceGroupManager, $update, $optParams = array())
+ public function rollback($project, $zone, $rollingUpdate, $optParams = array())
{
- $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update);
+ $params = array('project' => $project, 'zone' => $zone, 'rollingUpdate' => $rollingUpdate);
$params = array_merge($params, $optParams);
return $this->call('rollback', array($params));
}
-
- /**
- * Called on the particular Update endpoint. Rolls forward the update in state
- * PAUSED before ordering it to roll back. No-op if invoked in state ROLLED_OUT
- * or ROLLING_FORWARD. (updates.rollforward)
- *
- * @param string $project The Google Developers Console project name.
- * @param string $zone The name of the zone in which the update's target
- * resides.
- * @param string $instanceGroupManager The name of the instance group manager.
- * @param string $update The id of the update.
- * @param array $optParams Optional parameters.
- */
- public function rollforward($project, $zone, $instanceGroupManager, $update, $optParams = array())
- {
- $params = array('project' => $project, 'zone' => $zone, 'instanceGroupManager' => $instanceGroupManager, 'update' => $update);
- $params = array_merge($params, $optParams);
- return $this->call('rollforward', array($params));
- }
}
@@ -501,16 +412,16 @@ class Google_Service_Replicapoolupdater_InsertResponse extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $update;
+ public $rollingUpdate;
- public function setUpdate($update)
+ public function setRollingUpdate($rollingUpdate)
{
- $this->update = $update;
+ $this->rollingUpdate = $rollingUpdate;
}
- public function getUpdate()
+ public function getRollingUpdate()
{
- return $this->update;
+ return $this->rollingUpdate;
}
}
@@ -586,7 +497,7 @@ public function getSelfLink()
}
}
-class Google_Service_Replicapoolupdater_Update extends Google_Model
+class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Model
{
protected $internal_gapi_mappings = array(
);
@@ -595,7 +506,7 @@ class Google_Service_Replicapoolupdater_Update extends Google_Model
public $instanceGroupManager;
public $instanceTemplate;
public $kind;
- protected $policyType = 'Google_Service_Replicapoolupdater_UpdatePolicy';
+ protected $policyType = 'Google_Service_Replicapoolupdater_RollingUpdatePolicy';
protected $policyDataType = '';
public $progress;
public $selfLink;
@@ -644,7 +555,7 @@ public function getKind()
{
return $this->kind;
}
- public function setPolicy(Google_Service_Replicapoolupdater_UpdatePolicy $policy)
+ public function setPolicy(Google_Service_Replicapoolupdater_RollingUpdatePolicy $policy)
{
$this->policy = $policy;
}
@@ -694,12 +605,12 @@ public function getUser()
}
}
-class Google_Service_Replicapoolupdater_UpdateList extends Google_Collection
+class Google_Service_Replicapoolupdater_RollingUpdateList extends Google_Collection
{
protected $collection_key = 'items';
protected $internal_gapi_mappings = array(
);
- protected $itemsType = 'Google_Service_Replicapoolupdater_Update';
+ protected $itemsType = 'Google_Service_Replicapoolupdater_RollingUpdate';
protected $itemsDataType = 'array';
public $kind;
public $nextPageToken;
@@ -740,17 +651,17 @@ public function getSelfLink()
}
}
-class Google_Service_Replicapoolupdater_UpdatePolicy extends Google_Model
+class Google_Service_Replicapoolupdater_RollingUpdatePolicy extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- protected $canaryType = 'Google_Service_Replicapoolupdater_UpdatePolicyCanary';
+ protected $canaryType = 'Google_Service_Replicapoolupdater_RollingUpdatePolicyCanary';
protected $canaryDataType = '';
public $maxNumConcurrentInstances;
public $sleepAfterInstanceRestartSec;
- public function setCanary(Google_Service_Replicapoolupdater_UpdatePolicyCanary $canary)
+ public function setCanary(Google_Service_Replicapoolupdater_RollingUpdatePolicyCanary $canary)
{
$this->canary = $canary;
}
@@ -776,7 +687,7 @@ public function getSleepAfterInstanceRestartSec()
}
}
-class Google_Service_Replicapoolupdater_UpdatePolicyCanary extends Google_Model
+class Google_Service_Replicapoolupdater_RollingUpdatePolicyCanary extends Google_Model
{
protected $internal_gapi_mappings = array(
);
From bf58f98b5ee2ae14139792d921fb84de01c97a85 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $annotationSets = $genomicsService->annotationSets;
+ *
+ */
+class Google_Service_Genomics_AnnotationSets_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Creates a new annotation set. Caller must have WRITE permission for the
+ * associated dataset. (annotationSets.create)
+ *
+ * @param Google_AnnotationSet $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_AnnotationSet
+ */
+ public function create(Google_Service_Genomics_AnnotationSet $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Genomics_AnnotationSet");
+ }
+
+ /**
+ * Deletes an annotation set. Caller must have WRITE permission for the
+ * associated annotation set. (annotationSets.delete)
+ *
+ * @param string $annotationSetId The ID of the annotation set to be deleted.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($annotationSetId, $optParams = array())
+ {
+ $params = array('annotationSetId' => $annotationSetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Gets an annotation set. Caller must have READ permission for the associated
+ * dataset. (annotationSets.get)
+ *
+ * @param string $annotationSetId The ID of the annotation set to be retrieved.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_AnnotationSet
+ */
+ public function get($annotationSetId, $optParams = array())
+ {
+ $params = array('annotationSetId' => $annotationSetId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Genomics_AnnotationSet");
+ }
+
+ /**
+ * Updates an annotation set. The update must respect all mutability
+ * restrictions and other invariants described on the annotation set resource.
+ * Caller must have WRITE permission for the associated dataset. This method
+ * supports patch semantics. (annotationSets.patch)
+ *
+ * @param string $annotationSetId The ID of the annotation set to be updated.
+ * @param Google_AnnotationSet $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_AnnotationSet
+ */
+ public function patch($annotationSetId, Google_Service_Genomics_AnnotationSet $postBody, $optParams = array())
+ {
+ $params = array('annotationSetId' => $annotationSetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Genomics_AnnotationSet");
+ }
+
+ /**
+ * Searches for annotation sets which match the given criteria. Results are
+ * returned in a deterministic order. Caller must have READ permission for the
+ * queried datasets. (annotationSets.search)
+ *
+ * @param Google_SearchAnnotationSetsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_SearchAnnotationSetsResponse
+ */
+ public function search(Google_Service_Genomics_SearchAnnotationSetsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Genomics_SearchAnnotationSetsResponse");
+ }
+
+ /**
+ * Updates an annotation set. The update must respect all mutability
+ * restrictions and other invariants described on the annotation set resource.
+ * Caller must have WRITE permission for the associated dataset.
+ * (annotationSets.update)
+ *
+ * @param string $annotationSetId The ID of the annotation set to be updated.
+ * @param Google_AnnotationSet $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_AnnotationSet
+ */
+ public function update($annotationSetId, Google_Service_Genomics_AnnotationSet $postBody, $optParams = array())
+ {
+ $params = array('annotationSetId' => $annotationSetId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Genomics_AnnotationSet");
+ }
+}
+
+/**
+ * The "annotations" collection of methods.
+ * Typical usage is:
+ *
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $annotations = $genomicsService->annotations;
+ *
+ */
+class Google_Service_Genomics_Annotations_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Creates a new annotation. Caller must have WRITE permission for the
+ * associated annotation set. (annotations.create)
+ *
+ * @param Google_Annotation $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Annotation
+ */
+ public function create(Google_Service_Genomics_Annotation $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Genomics_Annotation");
+ }
+
+ /**
+ * Deletes an annotation. Caller must have WRITE permission for the associated
+ * annotation set. (annotations.delete)
+ *
+ * @param string $annotationId The ID of the annotation set to be deleted.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($annotationId, $optParams = array())
+ {
+ $params = array('annotationId' => $annotationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Gets an annotation. Caller must have READ permission for the associated
+ * annotation set. (annotations.get)
+ *
+ * @param string $annotationId The ID of the annotation set to be retrieved.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Annotation
+ */
+ public function get($annotationId, $optParams = array())
+ {
+ $params = array('annotationId' => $annotationId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Genomics_Annotation");
+ }
+
+ /**
+ * Updates an annotation. The update must respect all mutability restrictions
+ * and other invariants described on the annotation resource. Caller must have
+ * WRITE permission for the associated dataset. This method supports patch
+ * semantics. (annotations.patch)
+ *
+ * @param string $annotationId The ID of the annotation set to be updated.
+ * @param Google_Annotation $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Annotation
+ */
+ public function patch($annotationId, Google_Service_Genomics_Annotation $postBody, $optParams = array())
+ {
+ $params = array('annotationId' => $annotationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Genomics_Annotation");
+ }
+
+ /**
+ * Searches for annotations which match the given criteria. Results are returned
+ * ordered by start position. Annotations which have matching start positions
+ * are ordered deterministically. Caller must have READ permission for the
+ * queried annotation sets. (annotations.search)
+ *
+ * @param Google_SearchAnnotationsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_SearchAnnotationsResponse
+ */
+ public function search(Google_Service_Genomics_SearchAnnotationsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Genomics_SearchAnnotationsResponse");
+ }
+
+ /**
+ * Updates an annotation. The update must respect all mutability restrictions
+ * and other invariants described on the annotation resource. Caller must have
+ * WRITE permission for the associated dataset. (annotations.update)
+ *
+ * @param string $annotationId The ID of the annotation set to be updated.
+ * @param Google_Annotation $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Annotation
+ */
+ public function update($annotationId, Google_Service_Genomics_Annotation $postBody, $optParams = array())
+ {
+ $params = array('annotationId' => $annotationId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Genomics_Annotation");
+ }
+}
+
/**
* The "callsets" collection of methods.
* Typical usage is:
@@ -1612,54 +1946,216 @@ public function getJobId()
}
}
-class Google_Service_Genomics_CallReadGroupSetsRequest extends Google_Collection
+class Google_Service_Genomics_Annotation extends Google_Model
{
- protected $collection_key = 'sourceUris';
protected $internal_gapi_mappings = array(
);
- public $datasetId;
- public $readGroupSetId;
- public $sourceUris;
+ public $annotationSetId;
+ public $id;
+ public $info;
+ public $name;
+ protected $positionType = 'Google_Service_Genomics_RangePosition';
+ protected $positionDataType = '';
+ protected $transcriptType = 'Google_Service_Genomics_Transcript';
+ protected $transcriptDataType = '';
+ public $type;
+ protected $variantType = 'Google_Service_Genomics_VariantAnnotation';
+ protected $variantDataType = '';
- public function setDatasetId($datasetId)
+ public function setAnnotationSetId($annotationSetId)
{
- $this->datasetId = $datasetId;
+ $this->annotationSetId = $annotationSetId;
}
- public function getDatasetId()
+ public function getAnnotationSetId()
{
- return $this->datasetId;
+ return $this->annotationSetId;
}
- public function setReadGroupSetId($readGroupSetId)
+ public function setId($id)
{
- $this->readGroupSetId = $readGroupSetId;
+ $this->id = $id;
}
- public function getReadGroupSetId()
+ public function getId()
{
- return $this->readGroupSetId;
+ return $this->id;
}
- public function setSourceUris($sourceUris)
+ public function setInfo($info)
{
- $this->sourceUris = $sourceUris;
+ $this->info = $info;
}
- public function getSourceUris()
+ public function getInfo()
{
- return $this->sourceUris;
+ return $this->info;
}
-}
-
-class Google_Service_Genomics_CallReadGroupSetsResponse extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $jobId;
-
-
- public function setJobId($jobId)
+ public function setName($name)
{
- $this->jobId = $jobId;
+ $this->name = $name;
}
- public function getJobId()
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPosition(Google_Service_Genomics_RangePosition $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setTranscript(Google_Service_Genomics_Transcript $transcript)
+ {
+ $this->transcript = $transcript;
+ }
+ public function getTranscript()
+ {
+ return $this->transcript;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setVariant(Google_Service_Genomics_VariantAnnotation $variant)
+ {
+ $this->variant = $variant;
+ }
+ public function getVariant()
+ {
+ return $this->variant;
+ }
+}
+
+class Google_Service_Genomics_AnnotationInfo extends Google_Model
+{
+}
+
+class Google_Service_Genomics_AnnotationSet extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $datasetId;
+ public $id;
+ public $info;
+ public $name;
+ public $referenceSetId;
+ public $sourceUri;
+ public $type;
+
+
+ public function setDatasetId($datasetId)
+ {
+ $this->datasetId = $datasetId;
+ }
+ public function getDatasetId()
+ {
+ return $this->datasetId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInfo($info)
+ {
+ $this->info = $info;
+ }
+ public function getInfo()
+ {
+ return $this->info;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setReferenceSetId($referenceSetId)
+ {
+ $this->referenceSetId = $referenceSetId;
+ }
+ public function getReferenceSetId()
+ {
+ return $this->referenceSetId;
+ }
+ public function setSourceUri($sourceUri)
+ {
+ $this->sourceUri = $sourceUri;
+ }
+ public function getSourceUri()
+ {
+ return $this->sourceUri;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
+
+class Google_Service_Genomics_AnnotationSetInfo extends Google_Model
+{
+}
+
+class Google_Service_Genomics_CallReadGroupSetsRequest extends Google_Collection
+{
+ protected $collection_key = 'sourceUris';
+ protected $internal_gapi_mappings = array(
+ );
+ public $datasetId;
+ public $readGroupSetId;
+ public $sourceUris;
+
+
+ public function setDatasetId($datasetId)
+ {
+ $this->datasetId = $datasetId;
+ }
+ public function getDatasetId()
+ {
+ return $this->datasetId;
+ }
+ public function setReadGroupSetId($readGroupSetId)
+ {
+ $this->readGroupSetId = $readGroupSetId;
+ }
+ public function getReadGroupSetId()
+ {
+ return $this->readGroupSetId;
+ }
+ public function setSourceUris($sourceUris)
+ {
+ $this->sourceUris = $sourceUris;
+ }
+ public function getSourceUris()
+ {
+ return $this->sourceUris;
+ }
+}
+
+class Google_Service_Genomics_CallReadGroupSetsResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $jobId;
+
+
+ public function setJobId($jobId)
+ {
+ $this->jobId = $jobId;
+ }
+ public function getJobId()
{
return $this->jobId;
}
@@ -2051,6 +2547,32 @@ public function getJobId()
}
}
+class Google_Service_Genomics_ExternalId extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ public $sourceName;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setSourceName($sourceName)
+ {
+ $this->sourceName = $sourceName;
+ }
+ public function getSourceName()
+ {
+ return $this->sourceName;
+ }
+}
+
class Google_Service_Genomics_FastqMetadata extends Google_Model
{
protected $internal_gapi_mappings = array(
@@ -2277,6 +2799,23 @@ public function getJobId()
}
}
+class Google_Service_Genomics_Int32Value extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $value;
+
+
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
class Google_Service_Genomics_InterleavedFastqSource extends Google_Collection
{
protected $collection_key = 'sourceUris';
@@ -2736,11 +3275,12 @@ public function getReverseStrand()
}
}
-class Google_Service_Genomics_Range extends Google_Model
+class Google_Service_Genomics_QueryRange extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $end;
+ public $referenceId;
public $referenceName;
public $start;
@@ -2753,6 +3293,14 @@ public function getEnd()
{
return $this->end;
}
+ public function setReferenceId($referenceId)
+ {
+ $this->referenceId = $referenceId;
+ }
+ public function getReferenceId()
+ {
+ return $this->referenceId;
+ }
public function setReferenceName($referenceName)
{
$this->referenceName = $referenceName;
@@ -2771,63 +3319,151 @@ public function getStart()
}
}
-class Google_Service_Genomics_Read extends Google_Collection
+class Google_Service_Genomics_Range extends Google_Model
{
- protected $collection_key = 'alignedQuality';
protected $internal_gapi_mappings = array(
);
- public $alignedQuality;
- public $alignedSequence;
- protected $alignmentType = 'Google_Service_Genomics_LinearAlignment';
- protected $alignmentDataType = '';
- public $duplicateFragment;
- public $failedVendorQualityChecks;
- public $fragmentLength;
- public $fragmentName;
- public $id;
- public $info;
- protected $nextMatePositionType = 'Google_Service_Genomics_Position';
- protected $nextMatePositionDataType = '';
- public $numberReads;
- public $properPlacement;
- public $readGroupId;
- public $readGroupSetId;
- public $readNumber;
- public $secondaryAlignment;
- public $supplementaryAlignment;
+ public $end;
+ public $referenceName;
+ public $start;
- public function setAlignedQuality($alignedQuality)
+ public function setEnd($end)
{
- $this->alignedQuality = $alignedQuality;
+ $this->end = $end;
}
- public function getAlignedQuality()
+ public function getEnd()
{
- return $this->alignedQuality;
+ return $this->end;
}
- public function setAlignedSequence($alignedSequence)
+ public function setReferenceName($referenceName)
{
- $this->alignedSequence = $alignedSequence;
+ $this->referenceName = $referenceName;
}
- public function getAlignedSequence()
+ public function getReferenceName()
{
- return $this->alignedSequence;
+ return $this->referenceName;
}
- public function setAlignment(Google_Service_Genomics_LinearAlignment $alignment)
+ public function setStart($start)
{
- $this->alignment = $alignment;
+ $this->start = $start;
}
- public function getAlignment()
+ public function getStart()
{
- return $this->alignment;
+ return $this->start;
}
- public function setDuplicateFragment($duplicateFragment)
+}
+
+class Google_Service_Genomics_RangePosition extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $end;
+ public $referenceId;
+ public $referenceName;
+ public $reverseStrand;
+ public $start;
+
+
+ public function setEnd($end)
{
- $this->duplicateFragment = $duplicateFragment;
+ $this->end = $end;
}
- public function getDuplicateFragment()
+ public function getEnd()
{
- return $this->duplicateFragment;
+ return $this->end;
+ }
+ public function setReferenceId($referenceId)
+ {
+ $this->referenceId = $referenceId;
+ }
+ public function getReferenceId()
+ {
+ return $this->referenceId;
+ }
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setReverseStrand($reverseStrand)
+ {
+ $this->reverseStrand = $reverseStrand;
+ }
+ public function getReverseStrand()
+ {
+ return $this->reverseStrand;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
+
+class Google_Service_Genomics_Read extends Google_Collection
+{
+ protected $collection_key = 'alignedQuality';
+ protected $internal_gapi_mappings = array(
+ );
+ public $alignedQuality;
+ public $alignedSequence;
+ protected $alignmentType = 'Google_Service_Genomics_LinearAlignment';
+ protected $alignmentDataType = '';
+ public $duplicateFragment;
+ public $failedVendorQualityChecks;
+ public $fragmentLength;
+ public $fragmentName;
+ public $id;
+ public $info;
+ protected $nextMatePositionType = 'Google_Service_Genomics_Position';
+ protected $nextMatePositionDataType = '';
+ public $numberReads;
+ public $properPlacement;
+ public $readGroupId;
+ public $readGroupSetId;
+ public $readNumber;
+ public $secondaryAlignment;
+ public $supplementaryAlignment;
+
+
+ public function setAlignedQuality($alignedQuality)
+ {
+ $this->alignedQuality = $alignedQuality;
+ }
+ public function getAlignedQuality()
+ {
+ return $this->alignedQuality;
+ }
+ public function setAlignedSequence($alignedSequence)
+ {
+ $this->alignedSequence = $alignedSequence;
+ }
+ public function getAlignedSequence()
+ {
+ return $this->alignedSequence;
+ }
+ public function setAlignment(Google_Service_Genomics_LinearAlignment $alignment)
+ {
+ $this->alignment = $alignment;
+ }
+ public function getAlignment()
+ {
+ return $this->alignment;
+ }
+ public function setDuplicateFragment($duplicateFragment)
+ {
+ $this->duplicateFragment = $duplicateFragment;
+ }
+ public function getDuplicateFragment()
+ {
+ return $this->duplicateFragment;
}
public function setFailedVendorQualityChecks($failedVendorQualityChecks)
{
@@ -3397,6 +4033,171 @@ public function getSourceURI()
}
}
+class Google_Service_Genomics_SearchAnnotationSetsRequest extends Google_Collection
+{
+ protected $collection_key = 'types';
+ protected $internal_gapi_mappings = array(
+ );
+ public $datasetIds;
+ public $name;
+ public $pageSize;
+ public $pageToken;
+ public $referenceSetId;
+ public $types;
+
+
+ public function setDatasetIds($datasetIds)
+ {
+ $this->datasetIds = $datasetIds;
+ }
+ public function getDatasetIds()
+ {
+ return $this->datasetIds;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setReferenceSetId($referenceSetId)
+ {
+ $this->referenceSetId = $referenceSetId;
+ }
+ public function getReferenceSetId()
+ {
+ return $this->referenceSetId;
+ }
+ public function setTypes($types)
+ {
+ $this->types = $types;
+ }
+ public function getTypes()
+ {
+ return $this->types;
+ }
+}
+
+class Google_Service_Genomics_SearchAnnotationSetsResponse extends Google_Collection
+{
+ protected $collection_key = 'annotationSets';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $annotationSetsType = 'Google_Service_Genomics_AnnotationSet';
+ protected $annotationSetsDataType = 'array';
+ public $nextPageToken;
+
+
+ public function setAnnotationSets($annotationSets)
+ {
+ $this->annotationSets = $annotationSets;
+ }
+ public function getAnnotationSets()
+ {
+ return $this->annotationSets;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Genomics_SearchAnnotationsRequest extends Google_Collection
+{
+ protected $collection_key = 'annotationSetIds';
+ protected $internal_gapi_mappings = array(
+ );
+ public $annotationSetIds;
+ public $pageSize;
+ public $pageToken;
+ protected $rangeType = 'Google_Service_Genomics_QueryRange';
+ protected $rangeDataType = '';
+
+
+ public function setAnnotationSetIds($annotationSetIds)
+ {
+ $this->annotationSetIds = $annotationSetIds;
+ }
+ public function getAnnotationSetIds()
+ {
+ return $this->annotationSetIds;
+ }
+ public function setPageSize($pageSize)
+ {
+ $this->pageSize = $pageSize;
+ }
+ public function getPageSize()
+ {
+ return $this->pageSize;
+ }
+ public function setPageToken($pageToken)
+ {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken()
+ {
+ return $this->pageToken;
+ }
+ public function setRange(Google_Service_Genomics_QueryRange $range)
+ {
+ $this->range = $range;
+ }
+ public function getRange()
+ {
+ return $this->range;
+ }
+}
+
+class Google_Service_Genomics_SearchAnnotationsResponse extends Google_Collection
+{
+ protected $collection_key = 'annotations';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $annotationsType = 'Google_Service_Genomics_Annotation';
+ protected $annotationsDataType = 'array';
+ public $nextPageToken;
+
+
+ public function setAnnotations($annotations)
+ {
+ $this->annotations = $annotations;
+ }
+ public function getAnnotations()
+ {
+ return $this->annotations;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
class Google_Service_Genomics_SearchCallSetsRequest extends Google_Collection
{
protected $collection_key = 'variantSetIds';
@@ -4071,6 +4872,106 @@ public function getVariants()
}
}
+class Google_Service_Genomics_Transcript extends Google_Collection
+{
+ protected $collection_key = 'exons';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $codingSequenceType = 'Google_Service_Genomics_TranscriptCodingSequence';
+ protected $codingSequenceDataType = '';
+ protected $exonsType = 'Google_Service_Genomics_TranscriptExon';
+ protected $exonsDataType = 'array';
+ public $geneId;
+
+
+ public function setCodingSequence(Google_Service_Genomics_TranscriptCodingSequence $codingSequence)
+ {
+ $this->codingSequence = $codingSequence;
+ }
+ public function getCodingSequence()
+ {
+ return $this->codingSequence;
+ }
+ public function setExons($exons)
+ {
+ $this->exons = $exons;
+ }
+ public function getExons()
+ {
+ return $this->exons;
+ }
+ public function setGeneId($geneId)
+ {
+ $this->geneId = $geneId;
+ }
+ public function getGeneId()
+ {
+ return $this->geneId;
+ }
+}
+
+class Google_Service_Genomics_TranscriptCodingSequence extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $end;
+ public $start;
+
+
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
+
+class Google_Service_Genomics_TranscriptExon extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $end;
+ protected $frameType = 'Google_Service_Genomics_Int32Value';
+ protected $frameDataType = '';
+ public $start;
+
+
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setFrame(Google_Service_Genomics_Int32Value $frame)
+ {
+ $this->frame = $frame;
+ }
+ public function getFrame()
+ {
+ return $this->frame;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
+
class Google_Service_Genomics_Variant extends Google_Collection
{
protected $collection_key = 'names';
@@ -4198,6 +5099,125 @@ public function getVariantSetId()
}
}
+class Google_Service_Genomics_VariantAnnotation extends Google_Collection
+{
+ protected $collection_key = 'transcriptIds';
+ protected $internal_gapi_mappings = array(
+ );
+ public $alternateBases;
+ public $clinicalSignificance;
+ protected $conditionsType = 'Google_Service_Genomics_VariantAnnotationCondition';
+ protected $conditionsDataType = 'array';
+ public $effect;
+ public $geneId;
+ public $transcriptIds;
+ public $type;
+
+
+ public function setAlternateBases($alternateBases)
+ {
+ $this->alternateBases = $alternateBases;
+ }
+ public function getAlternateBases()
+ {
+ return $this->alternateBases;
+ }
+ public function setClinicalSignificance($clinicalSignificance)
+ {
+ $this->clinicalSignificance = $clinicalSignificance;
+ }
+ public function getClinicalSignificance()
+ {
+ return $this->clinicalSignificance;
+ }
+ public function setConditions($conditions)
+ {
+ $this->conditions = $conditions;
+ }
+ public function getConditions()
+ {
+ return $this->conditions;
+ }
+ public function setEffect($effect)
+ {
+ $this->effect = $effect;
+ }
+ public function getEffect()
+ {
+ return $this->effect;
+ }
+ public function setGeneId($geneId)
+ {
+ $this->geneId = $geneId;
+ }
+ public function getGeneId()
+ {
+ return $this->geneId;
+ }
+ public function setTranscriptIds($transcriptIds)
+ {
+ $this->transcriptIds = $transcriptIds;
+ }
+ public function getTranscriptIds()
+ {
+ return $this->transcriptIds;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
+
+class Google_Service_Genomics_VariantAnnotationCondition extends Google_Collection
+{
+ protected $collection_key = 'names';
+ protected $internal_gapi_mappings = array(
+ );
+ public $conceptId;
+ protected $externalIdsType = 'Google_Service_Genomics_ExternalId';
+ protected $externalIdsDataType = 'array';
+ public $names;
+ public $omimId;
+
+
+ public function setConceptId($conceptId)
+ {
+ $this->conceptId = $conceptId;
+ }
+ public function getConceptId()
+ {
+ return $this->conceptId;
+ }
+ public function setExternalIds($externalIds)
+ {
+ $this->externalIds = $externalIds;
+ }
+ public function getExternalIds()
+ {
+ return $this->externalIds;
+ }
+ public function setNames($names)
+ {
+ $this->names = $names;
+ }
+ public function getNames()
+ {
+ return $this->names;
+ }
+ public function setOmimId($omimId)
+ {
+ $this->omimId = $omimId;
+ }
+ public function getOmimId()
+ {
+ return $this->omimId;
+ }
+}
+
class Google_Service_Genomics_VariantInfo extends Google_Model
{
}
From f4b74e2b9385b09affda625f9c1ccdb6ff8b1a1d Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $accountshipping = $contentService->accountshipping;
+ *
+ */
+class Google_Service_ShoppingContent_Accountshipping_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Retrieves and updates the shipping settings of multiple accounts in a single
+ * request. (accountshipping.custombatch)
+ *
+ * @param Google_AccountshippingCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_AccountshippingCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_AccountshippingCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountshippingCustomBatchResponse");
+ }
+
+ /**
+ * Retrieves the shipping settings of the account. (accountshipping.get)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * account shipping settings.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_AccountShipping
+ */
+ public function get($merchantId, $accountId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountShipping");
+ }
+
+ /**
+ * Lists the shipping settings of the sub-accounts in your Merchant Center
+ * account. (accountshipping.listAccountshipping)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The token returned by the previous request.
+ * @opt_param string maxResults The maximum number of shipping settings to
+ * return in the response, used for paging.
+ * @return Google_Service_ShoppingContent_AccountshippingListResponse
+ */
+ public function listAccountshipping($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountshippingListResponse");
+ }
+
+ /**
+ * Updates the shipping settings of the account. This method supports patch
+ * semantics. (accountshipping.patch)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * account shipping settings.
+ * @param Google_AccountShipping $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_AccountShipping
+ */
+ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountShipping");
+ }
+
+ /**
+ * Updates the shipping settings of the account. (accountshipping.update)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * account shipping settings.
+ * @param Google_AccountShipping $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_AccountShipping
+ */
+ public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountShipping");
+ }
+}
+
/**
* The "accountstatuses" collection of methods.
* Typical usage is:
@@ -708,99 +961,196 @@ public function listAccountstatuses($merchantId, $optParams = array())
}
/**
- * The "datafeeds" collection of methods.
+ * The "accounttax" collection of methods.
* Typical usage is:
*
* $contentService = new Google_Service_ShoppingContent(...);
- * $datafeeds = $contentService->datafeeds;
+ * $accounttax = $contentService->accounttax;
*
*/
-class Google_Service_ShoppingContent_Datafeeds_Resource extends Google_Service_Resource
+class Google_Service_ShoppingContent_Accounttax_Resource extends Google_Service_Resource
{
/**
- * (datafeeds.custombatch)
+ * Retrieves and updates tax settings of multiple accounts in a single request.
+ * (accounttax.custombatch)
*
- * @param Google_DatafeedsCustomBatchRequest $postBody
+ * @param Google_AccounttaxCustomBatchRequest $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_ShoppingContent_DatafeedsCustomBatchResponse
+ * @return Google_Service_ShoppingContent_AccounttaxCustomBatchResponse
*/
- public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody, $optParams = array())
+ public function custombatch(Google_Service_ShoppingContent_AccounttaxCustomBatchRequest $postBody, $optParams = array())
{
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedsCustomBatchResponse");
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccounttaxCustomBatchResponse");
}
/**
- * Deletes a datafeed from your Merchant Center account. (datafeeds.delete)
+ * Retrieves the tax settings of the account. (accounttax.get)
*
- * @param string $merchantId
- * @param string $datafeedId
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * account tax settings.
* @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_AccountTax
*/
- public function delete($merchantId, $datafeedId, $optParams = array())
+ public function get($merchantId, $accountId, $optParams = array())
{
- $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId);
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
$params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountTax");
}
/**
- * Retrieves a datafeed from your Merchant Center account. (datafeeds.get)
+ * Lists the tax settings of the sub-accounts in your Merchant Center account.
+ * (accounttax.listAccounttax)
*
- * @param string $merchantId
- * @param string $datafeedId
+ * @param string $merchantId The ID of the managing account.
* @param array $optParams Optional parameters.
- * @return Google_Service_ShoppingContent_Datafeed
+ *
+ * @opt_param string pageToken The token returned by the previous request.
+ * @opt_param string maxResults The maximum number of tax settings to return in
+ * the response, used for paging.
+ * @return Google_Service_ShoppingContent_AccounttaxListResponse
*/
- public function get($merchantId, $datafeedId, $optParams = array())
+ public function listAccounttax($merchantId, $optParams = array())
{
- $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId);
+ $params = array('merchantId' => $merchantId);
$params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_ShoppingContent_Datafeed");
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_AccounttaxListResponse");
}
/**
- * Registers a datafeed with your Merchant Center account. (datafeeds.insert)
+ * Updates the tax settings of the account. This method supports patch
+ * semantics. (accounttax.patch)
*
- * @param string $merchantId
- * @param Google_Datafeed $postBody
+ * @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * account tax settings.
+ * @param Google_AccountTax $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_ShoppingContent_Datafeed
+ * @return Google_Service_ShoppingContent_AccountTax
*/
- public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array())
+ public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array())
{
- $params = array('merchantId' => $merchantId, 'postBody' => $postBody);
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_ShoppingContent_Datafeed");
+ return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountTax");
}
/**
- * Lists the datafeeds in your Merchant Center account.
- * (datafeeds.listDatafeeds)
+ * Updates the tax settings of the account. (accounttax.update)
*
* @param string $merchantId The ID of the managing account.
+ * @param string $accountId The ID of the account for which to get/update
+ * account tax settings.
+ * @param Google_AccountTax $postBody
* @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken The token returned by the previous request.
- * @opt_param string maxResults The maximum number of products to return in the
- * response, used for paging.
- * @return Google_Service_ShoppingContent_DatafeedsListResponse
+ * @return Google_Service_ShoppingContent_AccountTax
*/
- public function listDatafeeds($merchantId, $optParams = array())
+ public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array())
{
- $params = array('merchantId' => $merchantId);
+ $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedsListResponse");
+ return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountTax");
}
+}
- /**
- * Updates a datafeed of your Merchant Center account. This method supports
- * patch semantics. (datafeeds.patch)
- *
- * @param string $merchantId
- * @param string $datafeedId
+/**
+ * The "datafeeds" collection of methods.
+ * Typical usage is:
+ *
+ * $contentService = new Google_Service_ShoppingContent(...);
+ * $datafeeds = $contentService->datafeeds;
+ *
+ */
+class Google_Service_ShoppingContent_Datafeeds_Resource extends Google_Service_Resource
+{
+
+ /**
+ * (datafeeds.custombatch)
+ *
+ * @param Google_DatafeedsCustomBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_DatafeedsCustomBatchResponse
+ */
+ public function custombatch(Google_Service_ShoppingContent_DatafeedsCustomBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_DatafeedsCustomBatchResponse");
+ }
+
+ /**
+ * Deletes a datafeed from your Merchant Center account. (datafeeds.delete)
+ *
+ * @param string $merchantId
+ * @param string $datafeedId
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($merchantId, $datafeedId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Retrieves a datafeed from your Merchant Center account. (datafeeds.get)
+ *
+ * @param string $merchantId
+ * @param string $datafeedId
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_Datafeed
+ */
+ public function get($merchantId, $datafeedId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'datafeedId' => $datafeedId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ShoppingContent_Datafeed");
+ }
+
+ /**
+ * Registers a datafeed with your Merchant Center account. (datafeeds.insert)
+ *
+ * @param string $merchantId
+ * @param Google_Datafeed $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ShoppingContent_Datafeed
+ */
+ public function insert($merchantId, Google_Service_ShoppingContent_Datafeed $postBody, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_ShoppingContent_Datafeed");
+ }
+
+ /**
+ * Lists the datafeeds in your Merchant Center account.
+ * (datafeeds.listDatafeeds)
+ *
+ * @param string $merchantId The ID of the managing account.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken The token returned by the previous request.
+ * @opt_param string maxResults The maximum number of products to return in the
+ * response, used for paging.
+ * @return Google_Service_ShoppingContent_DatafeedsListResponse
+ */
+ public function listDatafeeds($merchantId, $optParams = array())
+ {
+ $params = array('merchantId' => $merchantId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ShoppingContent_DatafeedsListResponse");
+ }
+
+ /**
+ * Updates a datafeed of your Merchant Center account. This method supports
+ * patch semantics. (datafeeds.patch)
+ *
+ * @param string $merchantId
+ * @param string $datafeedId
* @param Google_Datafeed $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_ShoppingContent_Datafeed
@@ -1216,15 +1566,21 @@ public function getStatus()
}
}
-class Google_Service_ShoppingContent_AccountStatus extends Google_Collection
+class Google_Service_ShoppingContent_AccountShipping extends Google_Collection
{
- protected $collection_key = 'dataQualityIssues';
+ protected $collection_key = 'services';
protected $internal_gapi_mappings = array(
);
public $accountId;
- protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_AccountStatusDataQualityIssue';
- protected $dataQualityIssuesDataType = 'array';
+ protected $carrierRatesType = 'Google_Service_ShoppingContent_AccountShippingCarrierRate';
+ protected $carrierRatesDataType = 'array';
public $kind;
+ protected $locationGroupsType = 'Google_Service_ShoppingContent_AccountShippingLocationGroup';
+ protected $locationGroupsDataType = 'array';
+ protected $rateTablesType = 'Google_Service_ShoppingContent_AccountShippingRateTable';
+ protected $rateTablesDataType = 'array';
+ protected $servicesType = 'Google_Service_ShoppingContent_AccountShippingShippingService';
+ protected $servicesDataType = 'array';
public function setAccountId($accountId)
@@ -1235,13 +1591,13 @@ public function getAccountId()
{
return $this->accountId;
}
- public function setDataQualityIssues($dataQualityIssues)
+ public function setCarrierRates($carrierRates)
{
- $this->dataQualityIssues = $dataQualityIssues;
+ $this->carrierRates = $carrierRates;
}
- public function getDataQualityIssues()
+ public function getCarrierRates()
{
- return $this->dataQualityIssues;
+ return $this->carrierRates;
}
public function setKind($kind)
{
@@ -1251,22 +1607,189 @@ public function getKind()
{
return $this->kind;
}
+ public function setLocationGroups($locationGroups)
+ {
+ $this->locationGroups = $locationGroups;
+ }
+ public function getLocationGroups()
+ {
+ return $this->locationGroups;
+ }
+ public function setRateTables($rateTables)
+ {
+ $this->rateTables = $rateTables;
+ }
+ public function getRateTables()
+ {
+ return $this->rateTables;
+ }
+ public function setServices($services)
+ {
+ $this->services = $services;
+ }
+ public function getServices()
+ {
+ return $this->services;
+ }
}
-class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection
+class Google_Service_ShoppingContent_AccountShippingCarrierRate extends Google_Model
{
- protected $collection_key = 'exampleItems';
+ protected $internal_gapi_mappings = array(
+ );
+ public $carrier;
+ public $carrierService;
+ protected $modifierFlatRateType = 'Google_Service_ShoppingContent_Price';
+ protected $modifierFlatRateDataType = '';
+ public $modifierPercent;
+ public $name;
+ public $saleCountry;
+ public $shippingOrigin;
+
+
+ public function setCarrier($carrier)
+ {
+ $this->carrier = $carrier;
+ }
+ public function getCarrier()
+ {
+ return $this->carrier;
+ }
+ public function setCarrierService($carrierService)
+ {
+ $this->carrierService = $carrierService;
+ }
+ public function getCarrierService()
+ {
+ return $this->carrierService;
+ }
+ public function setModifierFlatRate(Google_Service_ShoppingContent_Price $modifierFlatRate)
+ {
+ $this->modifierFlatRate = $modifierFlatRate;
+ }
+ public function getModifierFlatRate()
+ {
+ return $this->modifierFlatRate;
+ }
+ public function setModifierPercent($modifierPercent)
+ {
+ $this->modifierPercent = $modifierPercent;
+ }
+ public function getModifierPercent()
+ {
+ return $this->modifierPercent;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSaleCountry($saleCountry)
+ {
+ $this->saleCountry = $saleCountry;
+ }
+ public function getSaleCountry()
+ {
+ return $this->saleCountry;
+ }
+ public function setShippingOrigin($shippingOrigin)
+ {
+ $this->shippingOrigin = $shippingOrigin;
+ }
+ public function getShippingOrigin()
+ {
+ return $this->shippingOrigin;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountShippingCondition extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $deliveryLocationGroup;
+ public $deliveryLocationId;
+ public $deliveryPostalCode;
+ protected $deliveryPostalCodeRangeType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange';
+ protected $deliveryPostalCodeRangeDataType = '';
+ protected $priceMaxType = 'Google_Service_ShoppingContent_Price';
+ protected $priceMaxDataType = '';
+ public $shippingLabel;
+ protected $weightMaxType = 'Google_Service_ShoppingContent_Weight';
+ protected $weightMaxDataType = '';
+
+
+ public function setDeliveryLocationGroup($deliveryLocationGroup)
+ {
+ $this->deliveryLocationGroup = $deliveryLocationGroup;
+ }
+ public function getDeliveryLocationGroup()
+ {
+ return $this->deliveryLocationGroup;
+ }
+ public function setDeliveryLocationId($deliveryLocationId)
+ {
+ $this->deliveryLocationId = $deliveryLocationId;
+ }
+ public function getDeliveryLocationId()
+ {
+ return $this->deliveryLocationId;
+ }
+ public function setDeliveryPostalCode($deliveryPostalCode)
+ {
+ $this->deliveryPostalCode = $deliveryPostalCode;
+ }
+ public function getDeliveryPostalCode()
+ {
+ return $this->deliveryPostalCode;
+ }
+ public function setDeliveryPostalCodeRange(Google_Service_ShoppingContent_AccountShippingPostalCodeRange $deliveryPostalCodeRange)
+ {
+ $this->deliveryPostalCodeRange = $deliveryPostalCodeRange;
+ }
+ public function getDeliveryPostalCodeRange()
+ {
+ return $this->deliveryPostalCodeRange;
+ }
+ public function setPriceMax(Google_Service_ShoppingContent_Price $priceMax)
+ {
+ $this->priceMax = $priceMax;
+ }
+ public function getPriceMax()
+ {
+ return $this->priceMax;
+ }
+ public function setShippingLabel($shippingLabel)
+ {
+ $this->shippingLabel = $shippingLabel;
+ }
+ public function getShippingLabel()
+ {
+ return $this->shippingLabel;
+ }
+ public function setWeightMax(Google_Service_ShoppingContent_Weight $weightMax)
+ {
+ $this->weightMax = $weightMax;
+ }
+ public function getWeightMax()
+ {
+ return $this->weightMax;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountShippingLocationGroup extends Google_Collection
+{
+ protected $collection_key = 'postalCodes';
protected $internal_gapi_mappings = array(
);
public $country;
- public $displayedValue;
- protected $exampleItemsType = 'Google_Service_ShoppingContent_AccountStatusExampleItem';
- protected $exampleItemsDataType = 'array';
- public $id;
- public $lastChecked;
- public $numItems;
- public $severity;
- public $submittedValue;
+ public $locationIds;
+ public $name;
+ protected $postalCodeRangesType = 'Google_Service_ShoppingContent_AccountShippingPostalCodeRange';
+ protected $postalCodeRangesDataType = 'array';
+ public $postalCodes;
public function setCountry($country)
@@ -1277,149 +1800,941 @@ public function getCountry()
{
return $this->country;
}
- public function setDisplayedValue($displayedValue)
+ public function setLocationIds($locationIds)
+ {
+ $this->locationIds = $locationIds;
+ }
+ public function getLocationIds()
+ {
+ return $this->locationIds;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPostalCodeRanges($postalCodeRanges)
+ {
+ $this->postalCodeRanges = $postalCodeRanges;
+ }
+ public function getPostalCodeRanges()
+ {
+ return $this->postalCodeRanges;
+ }
+ public function setPostalCodes($postalCodes)
+ {
+ $this->postalCodes = $postalCodes;
+ }
+ public function getPostalCodes()
+ {
+ return $this->postalCodes;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountShippingPostalCodeRange extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $end;
+ public $start;
+
+
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountShippingRateTable extends Google_Collection
+{
+ protected $collection_key = 'content';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $contentType = 'Google_Service_ShoppingContent_AccountShippingRateTableCell';
+ protected $contentDataType = 'array';
+ public $name;
+ public $saleCountry;
+
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSaleCountry($saleCountry)
+ {
+ $this->saleCountry = $saleCountry;
+ }
+ public function getSaleCountry()
+ {
+ return $this->saleCountry;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountShippingRateTableCell extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $conditionType = 'Google_Service_ShoppingContent_AccountShippingCondition';
+ protected $conditionDataType = '';
+ protected $rateType = 'Google_Service_ShoppingContent_Price';
+ protected $rateDataType = '';
+
+
+ public function setCondition(Google_Service_ShoppingContent_AccountShippingCondition $condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+ public function setRate(Google_Service_ShoppingContent_Price $rate)
+ {
+ $this->rate = $rate;
+ }
+ public function getRate()
+ {
+ return $this->rate;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountShippingShippingService extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $active;
+ protected $calculationMethodType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod';
+ protected $calculationMethodDataType = '';
+ protected $costRuleTreeType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule';
+ protected $costRuleTreeDataType = '';
+ public $name;
+ public $saleCountry;
+
+
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setCalculationMethod(Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod $calculationMethod)
+ {
+ $this->calculationMethod = $calculationMethod;
+ }
+ public function getCalculationMethod()
+ {
+ return $this->calculationMethod;
+ }
+ public function setCostRuleTree(Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule $costRuleTree)
+ {
+ $this->costRuleTree = $costRuleTree;
+ }
+ public function getCostRuleTree()
+ {
+ return $this->costRuleTree;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSaleCountry($saleCountry)
+ {
+ $this->saleCountry = $saleCountry;
+ }
+ public function getSaleCountry()
+ {
+ return $this->saleCountry;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $carrierRate;
+ public $excluded;
+ protected $flatRateType = 'Google_Service_ShoppingContent_Price';
+ protected $flatRateDataType = '';
+ public $percentageRate;
+ public $rateTable;
+
+
+ public function setCarrierRate($carrierRate)
+ {
+ $this->carrierRate = $carrierRate;
+ }
+ public function getCarrierRate()
+ {
+ return $this->carrierRate;
+ }
+ public function setExcluded($excluded)
+ {
+ $this->excluded = $excluded;
+ }
+ public function getExcluded()
+ {
+ return $this->excluded;
+ }
+ public function setFlatRate(Google_Service_ShoppingContent_Price $flatRate)
+ {
+ $this->flatRate = $flatRate;
+ }
+ public function getFlatRate()
+ {
+ return $this->flatRate;
+ }
+ public function setPercentageRate($percentageRate)
+ {
+ $this->percentageRate = $percentageRate;
+ }
+ public function getPercentageRate()
+ {
+ return $this->percentageRate;
+ }
+ public function setRateTable($rateTable)
+ {
+ $this->rateTable = $rateTable;
+ }
+ public function getRateTable()
+ {
+ return $this->rateTable;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule extends Google_Collection
+{
+ protected $collection_key = 'children';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $calculationMethodType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod';
+ protected $calculationMethodDataType = '';
+ protected $childrenType = 'Google_Service_ShoppingContent_AccountShippingShippingServiceCostRule';
+ protected $childrenDataType = 'array';
+ protected $conditionType = 'Google_Service_ShoppingContent_AccountShippingCondition';
+ protected $conditionDataType = '';
+
+
+ public function setCalculationMethod(Google_Service_ShoppingContent_AccountShippingShippingServiceCalculationMethod $calculationMethod)
+ {
+ $this->calculationMethod = $calculationMethod;
+ }
+ public function getCalculationMethod()
+ {
+ return $this->calculationMethod;
+ }
+ public function setChildren($children)
+ {
+ $this->children = $children;
+ }
+ public function getChildren()
+ {
+ return $this->children;
+ }
+ public function setCondition(Google_Service_ShoppingContent_AccountShippingCondition $condition)
+ {
+ $this->condition = $condition;
+ }
+ public function getCondition()
+ {
+ return $this->condition;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountStatus extends Google_Collection
+{
+ protected $collection_key = 'dataQualityIssues';
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountId;
+ protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_AccountStatusDataQualityIssue';
+ protected $dataQualityIssuesDataType = 'array';
+ public $kind;
+
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setDataQualityIssues($dataQualityIssues)
+ {
+ $this->dataQualityIssues = $dataQualityIssues;
+ }
+ public function getDataQualityIssues()
+ {
+ return $this->dataQualityIssues;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountStatusDataQualityIssue extends Google_Collection
+{
+ protected $collection_key = 'exampleItems';
+ protected $internal_gapi_mappings = array(
+ );
+ public $country;
+ public $displayedValue;
+ protected $exampleItemsType = 'Google_Service_ShoppingContent_AccountStatusExampleItem';
+ protected $exampleItemsDataType = 'array';
+ public $id;
+ public $lastChecked;
+ public $numItems;
+ public $severity;
+ public $submittedValue;
+
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setDisplayedValue($displayedValue)
+ {
+ $this->displayedValue = $displayedValue;
+ }
+ public function getDisplayedValue()
+ {
+ return $this->displayedValue;
+ }
+ public function setExampleItems($exampleItems)
+ {
+ $this->exampleItems = $exampleItems;
+ }
+ public function getExampleItems()
+ {
+ return $this->exampleItems;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLastChecked($lastChecked)
+ {
+ $this->lastChecked = $lastChecked;
+ }
+ public function getLastChecked()
+ {
+ return $this->lastChecked;
+ }
+ public function setNumItems($numItems)
+ {
+ $this->numItems = $numItems;
+ }
+ public function getNumItems()
+ {
+ return $this->numItems;
+ }
+ public function setSeverity($severity)
+ {
+ $this->severity = $severity;
+ }
+ public function getSeverity()
+ {
+ return $this->severity;
+ }
+ public function setSubmittedValue($submittedValue)
+ {
+ $this->submittedValue = $submittedValue;
+ }
+ public function getSubmittedValue()
+ {
+ return $this->submittedValue;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $itemId;
+ public $link;
+ public $submittedValue;
+ public $title;
+ public $valueOnLandingPage;
+
+
+ public function setItemId($itemId)
+ {
+ $this->itemId = $itemId;
+ }
+ public function getItemId()
+ {
+ return $this->itemId;
+ }
+ public function setLink($link)
+ {
+ $this->link = $link;
+ }
+ public function getLink()
+ {
+ return $this->link;
+ }
+ public function setSubmittedValue($submittedValue)
+ {
+ $this->submittedValue = $submittedValue;
+ }
+ public function getSubmittedValue()
+ {
+ return $this->submittedValue;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setValueOnLandingPage($valueOnLandingPage)
+ {
+ $this->valueOnLandingPage = $valueOnLandingPage;
+ }
+ public function getValueOnLandingPage()
+ {
+ return $this->valueOnLandingPage;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountTax extends Google_Collection
+{
+ protected $collection_key = 'rules';
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountId;
+ public $kind;
+ protected $rulesType = 'Google_Service_ShoppingContent_AccountTaxTaxRule';
+ protected $rulesDataType = 'array';
+
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRules($rules)
+ {
+ $this->rules = $rules;
+ }
+ public function getRules()
+ {
+ return $this->rules;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountTaxTaxRule extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $country;
+ public $locationId;
+ public $ratePercent;
+ public $shippingTaxed;
+ public $useGlobalRate;
+
+
+ public function setCountry($country)
+ {
+ $this->country = $country;
+ }
+ public function getCountry()
+ {
+ return $this->country;
+ }
+ public function setLocationId($locationId)
+ {
+ $this->locationId = $locationId;
+ }
+ public function getLocationId()
+ {
+ return $this->locationId;
+ }
+ public function setRatePercent($ratePercent)
+ {
+ $this->ratePercent = $ratePercent;
+ }
+ public function getRatePercent()
+ {
+ return $this->ratePercent;
+ }
+ public function setShippingTaxed($shippingTaxed)
+ {
+ $this->shippingTaxed = $shippingTaxed;
+ }
+ public function getShippingTaxed()
+ {
+ return $this->shippingTaxed;
+ }
+ public function setUseGlobalRate($useGlobalRate)
+ {
+ $this->useGlobalRate = $useGlobalRate;
+ }
+ public function getUseGlobalRate()
+ {
+ return $this->useGlobalRate;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountUser extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $admin;
+ public $emailAddress;
+
+
+ public function setAdmin($admin)
+ {
+ $this->admin = $admin;
+ }
+ public function getAdmin()
+ {
+ return $this->admin;
+ }
+ public function setEmailAddress($emailAddress)
+ {
+ $this->emailAddress = $emailAddress;
+ }
+ public function getEmailAddress()
+ {
+ return $this->emailAddress;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $accountType = 'Google_Service_ShoppingContent_Account';
+ protected $accountDataType = '';
+ public $accountId;
+ public $batchId;
+ public $merchantId;
+ public $method;
+
+
+ public function setAccount(Google_Service_ShoppingContent_Account $account)
+ {
+ $this->account = $account;
+ }
+ public function getAccount()
+ {
+ return $this->account;
+ }
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setMerchantId($merchantId)
+ {
+ $this->merchantId = $merchantId;
+ }
+ public function getMerchantId()
+ {
+ return $this->merchantId;
+ }
+ public function setMethod($method)
+ {
+ $this->method = $method;
+ }
+ public function getMethod()
+ {
+ return $this->method;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $accountType = 'Google_Service_ShoppingContent_Account';
+ protected $accountDataType = '';
+ public $batchId;
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+ public $kind;
+
+
+ public function setAccount(Google_Service_ShoppingContent_Account $account)
+ {
+ $this->account = $account;
+ }
+ public function getAccount()
+ {
+ return $this->account;
+ }
+ public function setBatchId($batchId)
+ {
+ $this->batchId = $batchId;
+ }
+ public function getBatchId()
+ {
+ return $this->batchId;
+ }
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_ShoppingContent_Account';
+ protected $resourcesDataType = '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 setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountshippingCustomBatchRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $entriesType = 'Google_Service_ShoppingContent_AccountshippingCustomBatchRequestEntry';
+ protected $entriesDataType = 'array';
+
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
+
+class Google_Service_ShoppingContent_AccountshippingCustomBatchRequestEntry extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountId;
+ protected $accountShippingType = 'Google_Service_ShoppingContent_AccountShipping';
+ protected $accountShippingDataType = '';
+ public $batchId;
+ public $merchantId;
+ public $method;
+
+
+ public function setAccountId($accountId)
{
- $this->displayedValue = $displayedValue;
+ $this->accountId = $accountId;
}
- public function getDisplayedValue()
+ public function getAccountId()
{
- return $this->displayedValue;
+ return $this->accountId;
}
- public function setExampleItems($exampleItems)
+ public function setAccountShipping(Google_Service_ShoppingContent_AccountShipping $accountShipping)
{
- $this->exampleItems = $exampleItems;
+ $this->accountShipping = $accountShipping;
}
- public function getExampleItems()
+ public function getAccountShipping()
{
- return $this->exampleItems;
+ return $this->accountShipping;
}
- public function setId($id)
+ public function setBatchId($batchId)
{
- $this->id = $id;
+ $this->batchId = $batchId;
}
- public function getId()
+ public function getBatchId()
{
- return $this->id;
+ return $this->batchId;
}
- public function setLastChecked($lastChecked)
+ public function setMerchantId($merchantId)
{
- $this->lastChecked = $lastChecked;
+ $this->merchantId = $merchantId;
}
- public function getLastChecked()
+ public function getMerchantId()
{
- return $this->lastChecked;
+ return $this->merchantId;
}
- public function setNumItems($numItems)
+ public function setMethod($method)
{
- $this->numItems = $numItems;
+ $this->method = $method;
}
- public function getNumItems()
+ public function getMethod()
{
- return $this->numItems;
+ return $this->method;
}
- public function setSeverity($severity)
+}
+
+class Google_Service_ShoppingContent_AccountshippingCustomBatchResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $entriesType = 'Google_Service_ShoppingContent_AccountshippingCustomBatchResponseEntry';
+ protected $entriesDataType = 'array';
+ public $kind;
+
+
+ public function setEntries($entries)
{
- $this->severity = $severity;
+ $this->entries = $entries;
}
- public function getSeverity()
+ public function getEntries()
{
- return $this->severity;
+ return $this->entries;
}
- public function setSubmittedValue($submittedValue)
+ public function setKind($kind)
{
- $this->submittedValue = $submittedValue;
+ $this->kind = $kind;
}
- public function getSubmittedValue()
+ public function getKind()
{
- return $this->submittedValue;
+ return $this->kind;
}
}
-class Google_Service_ShoppingContent_AccountStatusExampleItem extends Google_Model
+class Google_Service_ShoppingContent_AccountshippingCustomBatchResponseEntry extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $itemId;
- public $link;
- public $submittedValue;
- public $title;
- public $valueOnLandingPage;
+ protected $accountShippingType = 'Google_Service_ShoppingContent_AccountShipping';
+ protected $accountShippingDataType = '';
+ public $batchId;
+ protected $errorsType = 'Google_Service_ShoppingContent_Errors';
+ protected $errorsDataType = '';
+ public $kind;
- public function setItemId($itemId)
- {
- $this->itemId = $itemId;
- }
- public function getItemId()
- {
- return $this->itemId;
- }
- public function setLink($link)
+ public function setAccountShipping(Google_Service_ShoppingContent_AccountShipping $accountShipping)
{
- $this->link = $link;
+ $this->accountShipping = $accountShipping;
}
- public function getLink()
+ public function getAccountShipping()
{
- return $this->link;
+ return $this->accountShipping;
}
- public function setSubmittedValue($submittedValue)
+ public function setBatchId($batchId)
{
- $this->submittedValue = $submittedValue;
+ $this->batchId = $batchId;
}
- public function getSubmittedValue()
+ public function getBatchId()
{
- return $this->submittedValue;
+ return $this->batchId;
}
- public function setTitle($title)
+ public function setErrors(Google_Service_ShoppingContent_Errors $errors)
{
- $this->title = $title;
+ $this->errors = $errors;
}
- public function getTitle()
+ public function getErrors()
{
- return $this->title;
+ return $this->errors;
}
- public function setValueOnLandingPage($valueOnLandingPage)
+ public function setKind($kind)
{
- $this->valueOnLandingPage = $valueOnLandingPage;
+ $this->kind = $kind;
}
- public function getValueOnLandingPage()
+ public function getKind()
{
- return $this->valueOnLandingPage;
+ return $this->kind;
}
}
-class Google_Service_ShoppingContent_AccountUser extends Google_Model
+class Google_Service_ShoppingContent_AccountshippingListResponse extends Google_Collection
{
+ protected $collection_key = 'resources';
protected $internal_gapi_mappings = array(
);
- public $admin;
- public $emailAddress;
+ public $kind;
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_ShoppingContent_AccountShipping';
+ protected $resourcesDataType = 'array';
- public function setAdmin($admin)
+ public function setKind($kind)
{
- $this->admin = $admin;
+ $this->kind = $kind;
}
- public function getAdmin()
+ public function getKind()
{
- return $this->admin;
+ return $this->kind;
}
- public function setEmailAddress($emailAddress)
+ public function setNextPageToken($nextPageToken)
{
- $this->emailAddress = $emailAddress;
+ $this->nextPageToken = $nextPageToken;
}
- public function getEmailAddress()
+ public function getNextPageToken()
{
- return $this->emailAddress;
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
}
}
-class Google_Service_ShoppingContent_AccountsCustomBatchRequest extends Google_Collection
+class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection
{
protected $collection_key = 'entries';
protected $internal_gapi_mappings = array(
);
- protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry';
+ protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry';
protected $entriesDataType = 'array';
@@ -1433,26 +2748,16 @@ public function getEntries()
}
}
-class Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry extends Google_Model
+class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- protected $accountType = 'Google_Service_ShoppingContent_Account';
- protected $accountDataType = '';
public $accountId;
public $batchId;
public $merchantId;
public $method;
- public function setAccount(Google_Service_ShoppingContent_Account $account)
- {
- $this->account = $account;
- }
- public function getAccount()
- {
- return $this->account;
- }
public function setAccountId($accountId)
{
$this->accountId = $accountId;
@@ -1487,12 +2792,12 @@ public function getMethod()
}
}
-class Google_Service_ShoppingContent_AccountsCustomBatchResponse extends Google_Collection
+class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection
{
protected $collection_key = 'entries';
protected $internal_gapi_mappings = array(
);
- protected $entriesType = 'Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry';
+ protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry';
protected $entriesDataType = 'array';
public $kind;
@@ -1515,25 +2820,24 @@ public function getKind()
}
}
-class Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry extends Google_Model
+class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- protected $accountType = 'Google_Service_ShoppingContent_Account';
- protected $accountDataType = '';
+ protected $accountStatusType = 'Google_Service_ShoppingContent_AccountStatus';
+ protected $accountStatusDataType = '';
public $batchId;
protected $errorsType = 'Google_Service_ShoppingContent_Errors';
protected $errorsDataType = '';
- public $kind;
- public function setAccount(Google_Service_ShoppingContent_Account $account)
+ public function setAccountStatus(Google_Service_ShoppingContent_AccountStatus $accountStatus)
{
- $this->account = $account;
+ $this->accountStatus = $accountStatus;
}
- public function getAccount()
+ public function getAccountStatus()
{
- return $this->account;
+ return $this->accountStatus;
}
public function setBatchId($batchId)
{
@@ -1551,24 +2855,16 @@ public function getErrors()
{
return $this->errors;
}
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
}
-class Google_Service_ShoppingContent_AccountsListResponse extends Google_Collection
+class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection
{
protected $collection_key = 'resources';
protected $internal_gapi_mappings = array(
);
public $kind;
public $nextPageToken;
- protected $resourcesType = 'Google_Service_ShoppingContent_Account';
+ protected $resourcesType = 'Google_Service_ShoppingContent_AccountStatus';
protected $resourcesDataType = 'array';
@@ -1598,12 +2894,12 @@ public function getResources()
}
}
-class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest extends Google_Collection
+class Google_Service_ShoppingContent_AccounttaxCustomBatchRequest extends Google_Collection
{
protected $collection_key = 'entries';
protected $internal_gapi_mappings = array(
);
- protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry';
+ protected $entriesType = 'Google_Service_ShoppingContent_AccounttaxCustomBatchRequestEntry';
protected $entriesDataType = 'array';
@@ -1617,11 +2913,13 @@ public function getEntries()
}
}
-class Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry extends Google_Model
+class Google_Service_ShoppingContent_AccounttaxCustomBatchRequestEntry extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $accountId;
+ protected $accountTaxType = 'Google_Service_ShoppingContent_AccountTax';
+ protected $accountTaxDataType = '';
public $batchId;
public $merchantId;
public $method;
@@ -1635,6 +2933,14 @@ public function getAccountId()
{
return $this->accountId;
}
+ public function setAccountTax(Google_Service_ShoppingContent_AccountTax $accountTax)
+ {
+ $this->accountTax = $accountTax;
+ }
+ public function getAccountTax()
+ {
+ return $this->accountTax;
+ }
public function setBatchId($batchId)
{
$this->batchId = $batchId;
@@ -1661,12 +2967,12 @@ public function getMethod()
}
}
-class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse extends Google_Collection
+class Google_Service_ShoppingContent_AccounttaxCustomBatchResponse extends Google_Collection
{
protected $collection_key = 'entries';
protected $internal_gapi_mappings = array(
);
- protected $entriesType = 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry';
+ protected $entriesType = 'Google_Service_ShoppingContent_AccounttaxCustomBatchResponseEntry';
protected $entriesDataType = 'array';
public $kind;
@@ -1689,24 +2995,25 @@ public function getKind()
}
}
-class Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry extends Google_Model
+class Google_Service_ShoppingContent_AccounttaxCustomBatchResponseEntry extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- protected $accountStatusType = 'Google_Service_ShoppingContent_AccountStatus';
- protected $accountStatusDataType = '';
+ protected $accountTaxType = 'Google_Service_ShoppingContent_AccountTax';
+ protected $accountTaxDataType = '';
public $batchId;
protected $errorsType = 'Google_Service_ShoppingContent_Errors';
protected $errorsDataType = '';
+ public $kind;
- public function setAccountStatus(Google_Service_ShoppingContent_AccountStatus $accountStatus)
+ public function setAccountTax(Google_Service_ShoppingContent_AccountTax $accountTax)
{
- $this->accountStatus = $accountStatus;
+ $this->accountTax = $accountTax;
}
- public function getAccountStatus()
+ public function getAccountTax()
{
- return $this->accountStatus;
+ return $this->accountTax;
}
public function setBatchId($batchId)
{
@@ -1724,16 +3031,24 @@ public function getErrors()
{
return $this->errors;
}
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
}
-class Google_Service_ShoppingContent_AccountstatusesListResponse extends Google_Collection
+class Google_Service_ShoppingContent_AccounttaxListResponse extends Google_Collection
{
protected $collection_key = 'resources';
protected $internal_gapi_mappings = array(
);
public $kind;
public $nextPageToken;
- protected $resourcesType = 'Google_Service_ShoppingContent_AccountStatus';
+ protected $resourcesType = 'Google_Service_ShoppingContent_AccountTax';
protected $resourcesDataType = 'array';
@@ -3670,16 +4985,27 @@ class Google_Service_ShoppingContent_ProductStatus extends Google_Collection
protected $collection_key = 'destinationStatuses';
protected $internal_gapi_mappings = array(
);
+ public $creationDate;
protected $dataQualityIssuesType = 'Google_Service_ShoppingContent_ProductStatusDataQualityIssue';
protected $dataQualityIssuesDataType = 'array';
protected $destinationStatusesType = 'Google_Service_ShoppingContent_ProductStatusDestinationStatus';
protected $destinationStatusesDataType = 'array';
+ public $googleExpirationDate;
public $kind;
+ public $lastUpdateDate;
public $link;
public $productId;
public $title;
+ public function setCreationDate($creationDate)
+ {
+ $this->creationDate = $creationDate;
+ }
+ public function getCreationDate()
+ {
+ return $this->creationDate;
+ }
public function setDataQualityIssues($dataQualityIssues)
{
$this->dataQualityIssues = $dataQualityIssues;
@@ -3696,6 +5022,14 @@ public function getDestinationStatuses()
{
return $this->destinationStatuses;
}
+ public function setGoogleExpirationDate($googleExpirationDate)
+ {
+ $this->googleExpirationDate = $googleExpirationDate;
+ }
+ public function getGoogleExpirationDate()
+ {
+ return $this->googleExpirationDate;
+ }
public function setKind($kind)
{
$this->kind = $kind;
@@ -3704,6 +5038,14 @@ public function getKind()
{
return $this->kind;
}
+ public function setLastUpdateDate($lastUpdateDate)
+ {
+ $this->lastUpdateDate = $lastUpdateDate;
+ }
+ public function getLastUpdateDate()
+ {
+ return $this->lastUpdateDate;
+ }
public function setLink($link)
{
$this->link = $link;
@@ -4307,3 +5649,29 @@ public function getResources()
return $this->resources;
}
}
+
+class Google_Service_ShoppingContent_Weight extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $unit;
+ public $value;
+
+
+ public function setUnit($unit)
+ {
+ $this->unit = $unit;
+ }
+ public function getUnit()
+ {
+ return $this->unit;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
From e89d061b203d204c04254ae529ff6a2d8919f965 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
* $analyticsService = new Google_Service_Analytics(...);
- * $dailyUploads = $analyticsService->dailyUploads;
+ * $customDimensions = $analyticsService->customDimensions;
*
*/
-class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Service_Resource
+class Google_Service_Analytics_ManagementCustomDimensions_Resource extends Google_Service_Resource
{
/**
- * Delete uploaded data for the given date. (dailyUploads.delete)
+ * Get a custom dimension to which the user has access. (customDimensions.get)
*
- * @param string $accountId Account Id associated with daily upload delete.
- * @param string $webPropertyId Web property Id associated with daily upload
- * delete.
- * @param string $customDataSourceId Custom data source Id associated with daily
- * upload delete.
- * @param string $date Date for which data is to be deleted. Date should be
- * formatted as YYYY-MM-DD.
- * @param string $type Type of data for this delete.
+ * @param string $accountId Account ID for the custom dimension to retrieve.
+ * @param string $webPropertyId Web property ID for the custom dimension to
+ * retrieve.
+ * @param string $customDimensionId The ID of the custom dimension to retrieve.
* @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_CustomDimension
*/
- public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array())
+ public function get($accountId, $webPropertyId, $customDimensionId, $optParams = array())
{
- $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type);
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId);
$params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
+ return $this->call('get', array($params), "Google_Service_Analytics_CustomDimension");
}
/**
- * List daily uploads to which the user has access.
- * (dailyUploads.listManagementDailyUploads)
+ * Create a new custom dimension. (customDimensions.insert)
*
- * @param string $accountId Account Id for the daily uploads to retrieve.
- * @param string $webPropertyId Web property Id for the daily uploads to
- * retrieve.
- * @param string $customDataSourceId Custom data source Id for daily uploads to
- * retrieve.
- * @param string $startDate Start date of the form YYYY-MM-DD.
- * @param string $endDate End date of the form YYYY-MM-DD.
+ * @param string $accountId Account ID for the custom dimension to create.
+ * @param string $webPropertyId Web property ID for the custom dimension to
+ * create.
+ * @param Google_CustomDimension $postBody
* @param array $optParams Optional parameters.
- *
- * @opt_param int max-results The maximum number of custom data sources to
- * include in this response.
- * @opt_param int start-index A 1-based index of the first daily upload to
- * retrieve. Use this parameter as a pagination mechanism along with the max-
- * results parameter.
- * @return Google_Service_Analytics_DailyUploads
+ * @return Google_Service_Analytics_CustomDimension
*/
- public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array())
+ public function insert($accountId, $webPropertyId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array())
{
- $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $startDate, 'end-date' => $endDate);
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Analytics_DailyUploads");
+ return $this->call('insert', array($params), "Google_Service_Analytics_CustomDimension");
}
/**
- * Update/Overwrite data for a custom data source. (dailyUploads.upload)
+ * Lists custom dimensions to which the user has access.
+ * (customDimensions.listManagementCustomDimensions)
*
- * @param string $accountId Account Id associated with daily upload.
- * @param string $webPropertyId Web property Id associated with daily upload.
- * @param string $customDataSourceId Custom data source Id to which the data
- * being uploaded belongs.
- * @param string $date Date for which data is uploaded. Date should be formatted
- * as YYYY-MM-DD.
- * @param int $appendNumber Append number for this upload indexed from 1.
- * @param string $type Type of data for this upload.
+ * @param string $accountId Account ID for the custom dimensions to retrieve.
+ * @param string $webPropertyId Web property ID for the custom dimensions to
+ * retrieve.
* @param array $optParams Optional parameters.
*
- * @opt_param bool reset Reset/Overwrite all previous appends for this date and
- * start over with this file as the first upload.
+ * @opt_param int max-results The maximum number of custom dimensions to include
+ * in this response.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_CustomDimensions
+ */
+ public function listManagementCustomDimensions($accountId, $webPropertyId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_CustomDimensions");
+ }
+
+ /**
+ * Updates an existing custom dimension. This method supports patch semantics.
+ * (customDimensions.patch)
+ *
+ * @param string $accountId Account ID for the custom dimension to update.
+ * @param string $webPropertyId Web property ID for the custom dimension to
+ * update.
+ * @param string $customDimensionId Custom dimension ID for the custom dimension
+ * to update.
+ * @param Google_CustomDimension $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any
+ * warnings related to the custom dimension being linked to a custom data source
+ * / data set.
+ * @return Google_Service_Analytics_CustomDimension
+ */
+ public function patch($accountId, $webPropertyId, $customDimensionId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Analytics_CustomDimension");
+ }
+
+ /**
+ * Updates an existing custom dimension. (customDimensions.update)
+ *
+ * @param string $accountId Account ID for the custom dimension to update.
+ * @param string $webPropertyId Web property ID for the custom dimension to
+ * update.
+ * @param string $customDimensionId Custom dimension ID for the custom dimension
+ * to update.
+ * @param Google_CustomDimension $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any
+ * warnings related to the custom dimension being linked to a custom data source
+ * / data set.
+ * @return Google_Service_Analytics_CustomDimension
+ */
+ public function update($accountId, $webPropertyId, $customDimensionId, Google_Service_Analytics_CustomDimension $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_CustomDimension");
+ }
+}
+/**
+ * The "customMetrics" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $customMetrics = $analyticsService->customMetrics;
+ *
+ */
+class Google_Service_Analytics_ManagementCustomMetrics_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Get a custom metric to which the user has access. (customMetrics.get)
+ *
+ * @param string $accountId Account ID for the custom metric to retrieve.
+ * @param string $webPropertyId Web property ID for the custom metric to
+ * retrieve.
+ * @param string $customMetricId The ID of the custom metric to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_CustomMetric
+ */
+ public function get($accountId, $webPropertyId, $customMetricId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Analytics_CustomMetric");
+ }
+
+ /**
+ * Create a new custom metric. (customMetrics.insert)
+ *
+ * @param string $accountId Account ID for the custom metric to create.
+ * @param string $webPropertyId Web property ID for the custom dimension to
+ * create.
+ * @param Google_CustomMetric $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Analytics_CustomMetric
+ */
+ public function insert($accountId, $webPropertyId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Analytics_CustomMetric");
+ }
+
+ /**
+ * Lists custom metrics to which the user has access.
+ * (customMetrics.listManagementCustomMetrics)
+ *
+ * @param string $accountId Account ID for the custom metrics to retrieve.
+ * @param string $webPropertyId Web property ID for the custom metrics to
+ * retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of custom metrics to include in
+ * this response.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this
+ * parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_CustomMetrics
+ */
+ public function listManagementCustomMetrics($accountId, $webPropertyId, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_CustomMetrics");
+ }
+
+ /**
+ * Updates an existing custom metric. This method supports patch semantics.
+ * (customMetrics.patch)
+ *
+ * @param string $accountId Account ID for the custom metric to update.
+ * @param string $webPropertyId Web property ID for the custom metric to update.
+ * @param string $customMetricId Custom metric ID for the custom metric to
+ * update.
+ * @param Google_CustomMetric $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any
+ * warnings related to the custom metric being linked to a custom data source /
+ * data set.
+ * @return Google_Service_Analytics_CustomMetric
+ */
+ public function patch($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Analytics_CustomMetric");
+ }
+
+ /**
+ * Updates an existing custom metric. (customMetrics.update)
+ *
+ * @param string $accountId Account ID for the custom metric to update.
+ * @param string $webPropertyId Web property ID for the custom metric to update.
+ * @param string $customMetricId Custom metric ID for the custom metric to
+ * update.
+ * @param Google_CustomMetric $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any
+ * warnings related to the custom metric being linked to a custom data source /
+ * data set.
+ * @return Google_Service_Analytics_CustomMetric
+ */
+ public function update($accountId, $webPropertyId, $customMetricId, Google_Service_Analytics_CustomMetric $postBody, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Analytics_CustomMetric");
+ }
+}
+/**
+ * The "dailyUploads" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_Service_Analytics(...);
+ * $dailyUploads = $analyticsService->dailyUploads;
+ *
+ */
+class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Delete uploaded data for the given date. (dailyUploads.delete)
+ *
+ * @param string $accountId Account Id associated with daily upload delete.
+ * @param string $webPropertyId Web property Id associated with daily upload
+ * delete.
+ * @param string $customDataSourceId Custom data source Id associated with daily
+ * upload delete.
+ * @param string $date Date for which data is to be deleted. Date should be
+ * formatted as YYYY-MM-DD.
+ * @param string $type Type of data for this delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * List daily uploads to which the user has access.
+ * (dailyUploads.listManagementDailyUploads)
+ *
+ * @param string $accountId Account Id for the daily uploads to retrieve.
+ * @param string $webPropertyId Web property Id for the daily uploads to
+ * retrieve.
+ * @param string $customDataSourceId Custom data source Id for daily uploads to
+ * retrieve.
+ * @param string $startDate Start date of the form YYYY-MM-DD.
+ * @param string $endDate End date of the form YYYY-MM-DD.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of custom data sources to
+ * include in this response.
+ * @opt_param int start-index A 1-based index of the first daily upload to
+ * retrieve. Use this parameter as a pagination mechanism along with the max-
+ * results parameter.
+ * @return Google_Service_Analytics_DailyUploads
+ */
+ public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array())
+ {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $startDate, 'end-date' => $endDate);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Analytics_DailyUploads");
+ }
+
+ /**
+ * Update/Overwrite data for a custom data source. (dailyUploads.upload)
+ *
+ * @param string $accountId Account Id associated with daily upload.
+ * @param string $webPropertyId Web property Id associated with daily upload.
+ * @param string $customDataSourceId Custom data source Id to which the data
+ * being uploaded belongs.
+ * @param string $date Date for which data is uploaded. Date should be formatted
+ * as YYYY-MM-DD.
+ * @param int $appendNumber Append number for this upload indexed from 1.
+ * @param string $type Type of data for this upload.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool reset Reset/Overwrite all previous appends for this date and
+ * start over with this file as the first upload.
* @return Google_Service_Analytics_DailyUploadAppend
*/
public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array())
@@ -4418,6 +4878,485 @@ public function getUsername()
}
}
+class Google_Service_Analytics_CustomDimension extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountId;
+ public $active;
+ public $created;
+ public $id;
+ public $index;
+ public $kind;
+ public $name;
+ protected $parentLinkType = 'Google_Service_Analytics_CustomDimensionParentLink';
+ protected $parentLinkDataType = '';
+ public $scope;
+ public $selfLink;
+ public $updated;
+ public $webPropertyId;
+
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ 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 setParentLink(Google_Service_Analytics_CustomDimensionParentLink $parentLink)
+ {
+ $this->parentLink = $parentLink;
+ }
+ public function getParentLink()
+ {
+ return $this->parentLink;
+ }
+ public function setScope($scope)
+ {
+ $this->scope = $scope;
+ }
+ public function getScope()
+ {
+ return $this->scope;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
+
+class Google_Service_Analytics_CustomDimensionParentLink extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $href;
+ public $type;
+
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
+
+class Google_Service_Analytics_CustomDimensions extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_Analytics_CustomDimension';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
+
+class Google_Service_Analytics_CustomMetric extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ "maxValue" => "max_value",
+ "minValue" => "min_value",
+ );
+ public $accountId;
+ public $active;
+ public $created;
+ public $id;
+ public $index;
+ public $kind;
+ public $maxValue;
+ public $minValue;
+ public $name;
+ protected $parentLinkType = 'Google_Service_Analytics_CustomMetricParentLink';
+ protected $parentLinkDataType = '';
+ public $scope;
+ public $selfLink;
+ public $type;
+ public $updated;
+ public $webPropertyId;
+
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setCreated($created)
+ {
+ $this->created = $created;
+ }
+ public function getCreated()
+ {
+ return $this->created;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIndex($index)
+ {
+ $this->index = $index;
+ }
+ public function getIndex()
+ {
+ return $this->index;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxValue($maxValue)
+ {
+ $this->maxValue = $maxValue;
+ }
+ public function getMaxValue()
+ {
+ return $this->maxValue;
+ }
+ public function setMinValue($minValue)
+ {
+ $this->minValue = $minValue;
+ }
+ public function getMinValue()
+ {
+ return $this->minValue;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setParentLink(Google_Service_Analytics_CustomMetricParentLink $parentLink)
+ {
+ $this->parentLink = $parentLink;
+ }
+ public function getParentLink()
+ {
+ return $this->parentLink;
+ }
+ public function setScope($scope)
+ {
+ $this->scope = $scope;
+ }
+ public function getScope()
+ {
+ return $this->scope;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUpdated($updated)
+ {
+ $this->updated = $updated;
+ }
+ public function getUpdated()
+ {
+ return $this->updated;
+ }
+ public function setWebPropertyId($webPropertyId)
+ {
+ $this->webPropertyId = $webPropertyId;
+ }
+ public function getWebPropertyId()
+ {
+ return $this->webPropertyId;
+ }
+}
+
+class Google_Service_Analytics_CustomMetricParentLink extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $href;
+ public $type;
+
+
+ public function setHref($href)
+ {
+ $this->href = $href;
+ }
+ public function getHref()
+ {
+ return $this->href;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
+
+class Google_Service_Analytics_CustomMetrics extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_Analytics_CustomMetric';
+ protected $itemsDataType = 'array';
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ public $startIndex;
+ public $totalResults;
+ public $username;
+
+
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
+ public function setItemsPerPage($itemsPerPage)
+ {
+ $this->itemsPerPage = $itemsPerPage;
+ }
+ public function getItemsPerPage()
+ {
+ return $this->itemsPerPage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNextLink($nextLink)
+ {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink()
+ {
+ return $this->nextLink;
+ }
+ public function setPreviousLink($previousLink)
+ {
+ $this->previousLink = $previousLink;
+ }
+ public function getPreviousLink()
+ {
+ return $this->previousLink;
+ }
+ public function setStartIndex($startIndex)
+ {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex()
+ {
+ return $this->startIndex;
+ }
+ public function setTotalResults($totalResults)
+ {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults()
+ {
+ return $this->totalResults;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
+
class Google_Service_Analytics_DailyUpload extends Google_Collection
{
protected $collection_key = 'recentChanges';
From e599e06be60a6ad3b9a34af3e343a600c8e63747 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $replicapoolupdaterService = new Google_Service_Replicapoolupdater(...);
+ * $zoneOperations = $replicapoolupdaterService->zoneOperations;
+ *
+ */
+class Google_Service_Replicapoolupdater_ZoneOperations_Resource extends Google_Service_Resource
{
- protected $internal_gapi_mappings = array(
- );
- public $rollingUpdate;
-
- public function setRollingUpdate($rollingUpdate)
- {
- $this->rollingUpdate = $rollingUpdate;
- }
- public function getRollingUpdate()
+ /**
+ * Retrieves the specified zone-specific operation resource.
+ * (zoneOperations.get)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param string $operation Name of the operation resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Replicapoolupdater_Operation
+ */
+ public function get($project, $zone, $operation, $optParams = array())
{
- return $this->rollingUpdate;
+ $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Replicapoolupdater_Operation");
}
}
+
+
+
class Google_Service_Replicapoolupdater_InstanceUpdate extends Google_Model
{
protected $internal_gapi_mappings = array(
);
+ protected $errorType = 'Google_Service_Replicapoolupdater_InstanceUpdateError';
+ protected $errorDataType = '';
public $instance;
public $status;
+ public function setError(Google_Service_Replicapoolupdater_InstanceUpdateError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
public function setInstance($instance)
{
$this->instance = $instance;
@@ -461,6 +518,60 @@ public function getStatus()
}
}
+class Google_Service_Replicapoolupdater_InstanceUpdateError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $errorsType = 'Google_Service_Replicapoolupdater_InstanceUpdateErrorErrors';
+ protected $errorsDataType = 'array';
+
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
+
+class Google_Service_Replicapoolupdater_InstanceUpdateErrorErrors extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ public $location;
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
class Google_Service_Replicapoolupdater_InstanceUpdateList extends Google_Collection
{
protected $collection_key = 'items';
@@ -507,13 +618,341 @@ public function getSelfLink()
}
}
+class Google_Service_Replicapoolupdater_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ protected $internal_gapi_mappings = array(
+ );
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $endTime;
+ protected $errorType = 'Google_Service_Replicapoolupdater_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_Replicapoolupdater_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_Replicapoolupdater_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ 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 setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ 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;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
+
+class Google_Service_Replicapoolupdater_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $errorsType = 'Google_Service_Replicapoolupdater_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
+
+class Google_Service_Replicapoolupdater_OperationErrorErrors extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ public $location;
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_Replicapoolupdater_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ protected $dataType = 'Google_Service_Replicapoolupdater_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_Replicapoolupdater_OperationWarningsData extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $key;
+ public $value;
+
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
class Google_Service_Replicapoolupdater_RollingUpdate extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $actionType;
public $creationTimestamp;
+ public $description;
public $id;
+ public $instanceGroup;
public $instanceGroupManager;
public $instanceTemplate;
public $kind;
@@ -542,6 +981,14 @@ public function getCreationTimestamp()
{
return $this->creationTimestamp;
}
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
public function setId($id)
{
$this->id = $id;
@@ -550,6 +997,14 @@ public function getId()
{
return $this->id;
}
+ public function setInstanceGroup($instanceGroup)
+ {
+ $this->instanceGroup = $instanceGroup;
+ }
+ public function getInstanceGroup()
+ {
+ return $this->instanceGroup;
+ }
public function setInstanceGroupManager($instanceGroupManager)
{
$this->instanceGroupManager = $instanceGroupManager;
From 152ac4cd8ddb9986967a55539465de6590944047 Mon Sep 17 00:00:00 2001
From: Silvano Luciani * Google Dataflow API.
@@ -50,8 +50,8 @@ class Google_Service_Dataflow extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'dataflow/v1b3/projects/'; - $this->version = 'v1beta3'; + $this->servicePath = 'v1b3/projects/'; + $this->version = 'v1b4'; $this->serviceName = 'dataflow'; $this->v1b3_projects_jobs = new Google_Service_Dataflow_V1b3ProjectsJobs_Resource( From 6c46dda0b33765bd051d8fb9b25265b136d27f14 Mon Sep 17 00:00:00 2001 From: Silvano Luciani* API for Cloud SQL database instance management.
@@ -38,11 +38,13 @@ class Google_Service_SQLAdmin extends Google_Service "https://www.googleapis.com/auth/sqlservice.admin"; public $backupRuns; + public $databases; public $flags; public $instances; public $operations; public $sslCerts; public $tiers; + public $users; /** @@ -53,8 +55,8 @@ class Google_Service_SQLAdmin extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'sql/v1beta3/'; - $this->version = 'v1beta3'; + $this->servicePath = 'sql/v1beta4/'; + $this->version = 'v1beta4'; $this->serviceName = 'sqladmin'; $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource( @@ -64,7 +66,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}', + 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -77,19 +79,102 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'backupConfiguration' => array( + 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'dueTime' => array( + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/backupRuns', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->databases = new Google_Service_SQLAdmin_Databases_Resource( + $this, + $this->serviceName, + 'databases', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/databases', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns', + 'path' => 'projects/{project}/instances/{instance}/databases', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -102,18 +187,45 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'backupConfiguration' => array( - 'location' => 'query', + ), + ),'patch' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'pageToken' => array( - 'location' => 'query', + 'instance' => array( + 'location' => 'path', 'type' => 'string', + 'required' => true, ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, ), ), ), @@ -141,7 +253,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'clone' => array( - 'path' => 'projects/{project}/instances/clone', + 'path' => 'projects/{project}/instances/{instance}/clone', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -149,6 +261,11 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), ), ),'delete' => array( 'path' => 'projects/{project}/instances/{instance}', @@ -312,19 +429,24 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'backupConfiguration' => array( - 'location' => 'query', + ), + ),'startReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/startReplica', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), - 'dueTime' => array( - 'location' => 'query', + 'instance' => array( + 'location' => 'path', 'type' => 'string', 'required' => true, ), ), - ),'setRootPassword' => array( - 'path' => 'projects/{project}/instances/{instance}/setRootPassword', + ),'stopReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/stopReplica', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( @@ -364,7 +486,7 @@ public function __construct(Google_Client $client) array( 'methods' => array( 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/operations/{operation}', + 'path' => 'projects/{project}/operations/{operation}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -372,11 +494,6 @@ public function __construct(Google_Client $client) 'type' => 'string', 'required' => true, ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), 'operation' => array( 'location' => 'path', 'type' => 'string', @@ -384,7 +501,7 @@ public function __construct(Google_Client $client) ), ), ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/operations', + 'path' => 'projects/{project}/operations', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( @@ -393,7 +510,7 @@ public function __construct(Google_Client $client) 'required' => true, ), 'instance' => array( - 'location' => 'path', + 'location' => 'query', 'type' => 'string', 'required' => true, ), @@ -510,6 +627,96 @@ public function __construct(Google_Client $client) ) ) ); + $this->users = new Google_Service_SQLAdmin_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'host' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'host' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); } } @@ -526,120 +733,239 @@ class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resourc { /** - * Retrieves information about a specified backup run for a Cloud SQL instance. + * Retrieves a resource containing information about a backup run. * (backupRuns.get) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. - * @param string $backupConfiguration Identifier for the backup configuration. - * This gets generated automatically when a backup configuration is created. - * @param string $dueTime The start time of the four-hour backup window. The - * backup can occur any time in the window. The time is in RFC 3339 format, for - * example 2012-11-15T16:19:00.094Z. + * @param string $id The ID of this Backup Run. * @param array $optParams Optional parameters. * @return Google_Service_SQLAdmin_BackupRun */ - public function get($project, $instance, $backupConfiguration, $dueTime, $optParams = array()) + public function get($project, $instance, $id, $optParams = array()) { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime); + $params = array('project' => $project, 'instance' => $instance, 'id' => $id); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun"); } /** - * Lists all backup runs associated with a Cloud SQL instance. + * Lists all backup runs associated with a given instance and configuration in + * the reverse chronological order of the enqueued time. * (backupRuns.listBackupRuns) * * @param string $project Project ID of the project that contains the instance. * @param string $instance Cloud SQL instance ID. This does not include the * project ID. - * @param string $backupConfiguration Identifier for the backup configuration. - * This gets generated automatically when a backup configuration is created. * @param array $optParams Optional parameters. * + * @opt_param int maxResults Maximum number of backup runs per response. * @opt_param string pageToken A previously-returned page token representing * part of the larger set of results to view. - * @opt_param int maxResults Maximum number of backup runs per response. * @return Google_Service_SQLAdmin_BackupRunsListResponse */ - public function listBackupRuns($project, $instance, $backupConfiguration, $optParams = array()) + public function listBackupRuns($project, $instance, $optParams = array()) { - $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration); + $params = array('project' => $project, 'instance' => $instance); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse"); } } /** - * The "flags" collection of methods. + * The "databases" collection of methods. * Typical usage is: *
* $sqladminService = new Google_Service_SQLAdmin(...);
- * $flags = $sqladminService->flags;
+ * $databases = $sqladminService->databases;
*
*/
-class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource
+class Google_Service_SQLAdmin_Databases_Resource extends Google_Service_Resource
{
/**
- * Lists all database flags that can be set for Google Cloud SQL instances.
- * (flags.listFlags)
+ * Deletes a resource containing information about a database inside a Cloud SQL
+ * instance. (databases.delete)
*
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $database Name of the database to be deleted in the instance.
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_FlagsListResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
- public function listFlags($optParams = array())
+ public function delete($project, $instance, $database, $optParams = array())
{
- $params = array();
+ $params = array('project' => $project, 'instance' => $instance, 'database' => $database);
$params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse");
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
}
-}
-
-/**
- * The "instances" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $instances = $sqladminService->instances;
- *
- */
-class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource
-{
/**
- * Creates a Cloud SQL instance as a clone of a source instance.
- * (instances.cloneInstances)
+ * Retrieves a resource containing information about a database inside a Cloud
+ * SQL instance. (databases.get)
*
- * @param string $project Project ID of the source as well as the clone Cloud
- * SQL instance.
- * @param Google_InstancesCloneRequest $postBody
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $database Name of the database in the instance.
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstancesCloneResponse
+ * @return Google_Service_SQLAdmin_Database
*/
- public function cloneInstances($project, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array())
+ public function get($project, $instance, $database, $optParams = array())
{
- $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array('project' => $project, 'instance' => $instance, 'database' => $database);
$params = array_merge($params, $optParams);
- return $this->call('clone', array($params), "Google_Service_SQLAdmin_InstancesCloneResponse");
+ return $this->call('get', array($params), "Google_Service_SQLAdmin_Database");
}
/**
- * Deletes a Cloud SQL instance. (instances.delete)
+ * Inserts a resource containing information about a database inside a Cloud SQL
+ * instance. (databases.insert)
*
- * @param string $project Project ID of the project that contains the instance
- * to be deleted.
- * @param string $instance Cloud SQL instance ID. This does not include the
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
* project ID.
+ * @param Google_Database $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstancesDeleteResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
- public function delete($project, $instance, $optParams = array())
+ public function insert($project, $instance, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Lists databases in the specified Cloud SQL instance.
+ * (databases.listDatabases)
+ *
+ * @param string $project Project ID of the project for which to list Cloud SQL
+ * instances.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_DatabasesListResponse
+ */
+ public function listDatabases($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_DatabasesListResponse");
+ }
+
+ /**
+ * Updates a resource containing information about a database inside a Cloud SQL
+ * instance. This method supports patch semantics. (databases.patch)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $database Name of the database to be updated in the instance.
+ * @param Google_Database $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function patch($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Updates a resource containing information about a database inside a Cloud SQL
+ * instance. (databases.update)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $database Name of the database to be updated in the instance.
+ * @param Google_Database $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function update($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+}
+
+/**
+ * The "flags" collection of methods.
+ * Typical usage is:
+ *
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $flags = $sqladminService->flags;
+ *
+ */
+class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource
+{
+
+ /**
+ * List all available database flags for Google Cloud SQL instances.
+ * (flags.listFlags)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_FlagsListResponse
+ */
+ public function listFlags($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse");
+ }
+}
+
+/**
+ * The "instances" collection of methods.
+ * Typical usage is:
+ *
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $instances = $sqladminService->instances;
+ *
+ */
+class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Creates a Cloud SQL instance as a clone of the source instance.
+ * (instances.cloneInstances)
+ *
+ * @param string $project Project ID of the source as well as the clone Cloud
+ * SQL instance.
+ * @param string $instance The ID of the Cloud SQL instance to be cloned
+ * (source). This does not include the project ID.
+ * @param Google_InstancesCloneRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function cloneInstances($project, $instance, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('clone', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Deletes a Cloud SQL instance. (instances.delete)
+ *
+ * @param string $project Project ID of the project that contains the instance
+ * to be deleted.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function delete($project, $instance, $optParams = array())
{
$params = array('project' => $project, 'instance' => $instance);
$params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_SQLAdmin_InstancesDeleteResponse");
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
}
/**
@@ -652,17 +978,18 @@ public function delete($project, $instance, $optParams = array())
* project ID.
* @param Google_InstancesExportRequest $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstancesExportResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array())
{
$params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('export', array($params), "Google_Service_SQLAdmin_InstancesExportResponse");
+ return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation");
}
/**
- * Retrieves information about a Cloud SQL instance. (instances.get)
+ * Retrieves a resource containing information about a Cloud SQL instance.
+ * (instances.get)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Database instance ID. This does not include the
@@ -678,21 +1005,21 @@ public function get($project, $instance, $optParams = array())
}
/**
- * Imports data into a Cloud SQL instance from a MySQL dump file stored in a
- * Google Cloud Storage bucket. (instances.import)
+ * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud
+ * Storage. (instances.import)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param Google_InstancesImportRequest $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstancesImportResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array())
{
$params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('import', array($params), "Google_Service_SQLAdmin_InstancesImportResponse");
+ return $this->call('import', array($params), "Google_Service_SQLAdmin_Operation");
}
/**
@@ -702,18 +1029,18 @@ public function import($project, $instance, Google_Service_SQLAdmin_InstancesImp
* Cloud SQL instances should belong.
* @param Google_DatabaseInstance $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstancesInsertResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
{
$params = array('project' => $project, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_SQLAdmin_InstancesInsertResponse");
+ return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
}
/**
- * Lists instances for a given project, in alphabetical order by instance name.
- * (instances.listInstances)
+ * Lists instances under a given project in the alphabetical order of the
+ * instance name. (instances.listInstances)
*
* @param string $project Project ID of the project for which to list Cloud SQL
* instances.
@@ -733,7 +1060,9 @@ public function listInstances($project, $optParams = array())
}
/**
- * Updates the settings of a Cloud SQL instance. This method supports patch
+ * Updates settings of a Cloud SQL instance. Caution: This is not a partial
+ * update, so you must include values for all the settings that you want to
+ * retain. For partial updates, use patch.. This method supports patch
* semantics. (instances.patch)
*
* @param string $project Project ID of the project that contains the instance.
@@ -741,13 +1070,13 @@ public function listInstances($project, $optParams = array())
* project ID.
* @param Google_DatabaseInstance $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstancesUpdateResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
{
$params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_SQLAdmin_InstancesUpdateResponse");
+ return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation");
}
/**
@@ -757,30 +1086,32 @@ public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInsta
* @param string $project ID of the project that contains the read replica.
* @param string $instance Cloud SQL read replica instance name.
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstancesPromoteReplicaResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
public function promoteReplica($project, $instance, $optParams = array())
{
$params = array('project' => $project, 'instance' => $instance);
$params = array_merge($params, $optParams);
- return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_InstancesPromoteReplicaResponse");
+ return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_Operation");
}
/**
* Deletes all client certificates and generates a new server SSL certificate
- * for a Cloud SQL instance. (instances.resetSslConfig)
+ * for the instance. The changes will not take effect until the instance is
+ * restarted. Existing instances without a server certificate will need to call
+ * this once to set a server certificate. (instances.resetSslConfig)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstancesResetSslConfigResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
public function resetSslConfig($project, $instance, $optParams = array())
{
$params = array('project' => $project, 'instance' => $instance);
$params = array_merge($params, $optParams);
- return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_InstancesResetSslConfigResponse");
+ return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_Operation");
}
/**
@@ -791,13 +1122,13 @@ public function resetSslConfig($project, $instance, $optParams = array())
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstancesRestartResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
public function restart($project, $instance, $optParams = array())
{
$params = array('project' => $project, 'instance' => $instance);
$params = array_merge($params, $optParams);
- return $this->call('restart', array($params), "Google_Service_SQLAdmin_InstancesRestartResponse");
+ return $this->call('restart', array($params), "Google_Service_SQLAdmin_Operation");
}
/**
@@ -806,55 +1137,64 @@ public function restart($project, $instance, $optParams = array())
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
- * @param string $backupConfiguration The identifier of the backup
- * configuration. This gets generated automatically when a backup configuration
- * is created.
- * @param string $dueTime The start time of the four-hour backup window. The
- * backup can occur any time in the window. The time is in RFC 3339 format, for
- * example 2012-11-15T16:19:00.094Z.
+ * @param Google_InstancesRestoreBackupRequest $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstancesRestoreBackupResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
- public function restoreBackup($project, $instance, $backupConfiguration, $dueTime, $optParams = array())
+ public function restoreBackup($project, $instance, Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody, $optParams = array())
{
- $params = array('project' => $project, 'instance' => $instance, 'backupConfiguration' => $backupConfiguration, 'dueTime' => $dueTime);
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_InstancesRestoreBackupResponse");
+ return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation");
}
/**
- * Sets the password for the root user of the specified Cloud SQL instance.
- * (instances.setRootPassword)
+ * Starts the replication in the read replica instance. (instances.startReplica)
*
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_InstanceSetRootPasswordRequest $postBody
+ * @param string $project ID of the project that contains the read replica.
+ * @param string $instance Cloud SQL read replica instance name.
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstancesSetRootPasswordResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
- public function setRootPassword($project, $instance, Google_Service_SQLAdmin_InstanceSetRootPasswordRequest $postBody, $optParams = array())
+ public function startReplica($project, $instance, $optParams = array())
{
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('startReplica', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Stops the replication in the read replica instance. (instances.stopReplica)
+ *
+ * @param string $project ID of the project that contains the read replica.
+ * @param string $instance Cloud SQL read replica instance name.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function stopReplica($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
$params = array_merge($params, $optParams);
- return $this->call('setRootPassword', array($params), "Google_Service_SQLAdmin_InstancesSetRootPasswordResponse");
+ return $this->call('stopReplica', array($params), "Google_Service_SQLAdmin_Operation");
}
/**
- * Updates the settings of a Cloud SQL instance. (instances.update)
+ * Updates settings of a Cloud SQL instance. Caution: This is not a partial
+ * update, so you must include values for all the settings that you want to
+ * retain. For partial updates, use patch. (instances.update)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
* project ID.
* @param Google_DatabaseInstance $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstancesUpdateResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
{
$params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_SQLAdmin_InstancesUpdateResponse");
+ return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
}
}
@@ -870,25 +1210,24 @@ class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resourc
{
/**
- * Retrieves information about a specific operation that was performed on a
- * Cloud SQL instance. (operations.get)
+ * Retrieves an instance operation that has been performed on an instance.
+ * (operations.get)
*
* @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
* @param string $operation Instance operation ID.
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_InstanceOperation
+ * @return Google_Service_SQLAdmin_Operation
*/
- public function get($project, $instance, $operation, $optParams = array())
+ public function get($project, $operation, $optParams = array())
{
- $params = array('project' => $project, 'instance' => $instance, 'operation' => $operation);
+ $params = array('project' => $project, 'operation' => $operation);
$params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_SQLAdmin_InstanceOperation");
+ return $this->call('get', array($params), "Google_Service_SQLAdmin_Operation");
}
/**
- * Lists all operations that have been performed on a Cloud SQL instance.
+ * Lists all instance operations that have been performed on the given Cloud SQL
+ * instance in the reverse chronological order of the start time.
* (operations.listOperations)
*
* @param string $project Project ID of the project that contains the instance.
@@ -921,7 +1260,8 @@ class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource
{
/**
- * Deletes an SSL certificate from a Cloud SQL instance. (sslCerts.delete)
+ * Deletes the SSL certificate. The change will not take effect until the
+ * instance is restarted. (sslCerts.delete)
*
* @param string $project Project ID of the project that contains the instance
* to be deleted.
@@ -929,18 +1269,19 @@ class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource
* project ID.
* @param string $sha1Fingerprint Sha1 FingerPrint.
* @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_SslCertsDeleteResponse
+ * @return Google_Service_SQLAdmin_Operation
*/
public function delete($project, $instance, $sha1Fingerprint, $optParams = array())
{
$params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint);
$params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_SQLAdmin_SslCertsDeleteResponse");
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
}
/**
- * Retrieves an SSL certificate as specified by its SHA-1 fingerprint.
- * (sslCerts.get)
+ * Retrieves a particular SSL certificate. Does not include the private key
+ * (required for usage). The private key must be saved from the response to
+ * initial creation. (sslCerts.get)
*
* @param string $project Project ID of the project that contains the instance.
* @param string $instance Cloud SQL instance ID. This does not include the
@@ -957,8 +1298,9 @@ public function get($project, $instance, $sha1Fingerprint, $optParams = array())
}
/**
- * Creates an SSL certificate and returns the certificate, the associated
- * private key, and the server certificate authority. (sslCerts.insert)
+ * Creates an SSL certificate and returns it along with the private key and
+ * server certificate authority. The new certificate will not be usable until
+ * the instance is restarted. (sslCerts.insert)
*
* @param string $project Project ID of the project to which the newly created
* Cloud SQL instances should belong.
@@ -976,7 +1318,7 @@ public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInse
}
/**
- * Lists all of the current SSL certificates defined for a Cloud SQL instance.
+ * Lists all of the current SSL certificates for the instance.
* (sslCerts.listSslCerts)
*
* @param string $project Project ID of the project for which to list Cloud SQL
@@ -1006,8 +1348,8 @@ class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource
{
/**
- * Lists service tiers that can be used to create Google Cloud SQL instances.
- * (tiers.listTiers)
+ * Lists all available service tiers for Google Cloud SQL, for example D1, D2.
+ * For related information, see Pricing. (tiers.listTiers)
*
* @param string $project Project ID of the project for which to list tiers.
* @param array $optParams Optional parameters.
@@ -1021,16 +1363,141 @@ public function listTiers($project, $optParams = array())
}
}
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ *
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $users = $sqladminService->users;
+ *
+ */
+class Google_Service_SQLAdmin_Users_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes a user from a Cloud SQL instance. (users.delete)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $host Host of the user in the instance.
+ * @param string $name Name of the user in the instance.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function delete($project, $instance, $host, $name, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Creates a new user in a Cloud SQL instance. (users.insert)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param Google_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function insert($project, $instance, Google_Service_SQLAdmin_User $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Lists users in the specified Cloud SQL instance. (users.listUsers)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_UsersListResponse
+ */
+ public function listUsers($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_UsersListResponse");
+ }
+
+ /**
+ * Updates an existing user in a Cloud SQL instance. (users.update)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $host Host of the user in the instance.
+ * @param string $name Name of the user in the instance.
+ * @param Google_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+}
+
+class Google_Service_SQLAdmin_AclEntry extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $expirationTime;
+ public $kind;
+ public $name;
+ public $value;
+
+
+ public function setExpirationTime($expirationTime)
+ {
+ $this->expirationTime = $expirationTime;
+ }
+ public function getExpirationTime()
+ {
+ return $this->expirationTime;
+ }
+ 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 setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $binaryLogEnabled;
public $enabled;
- public $id;
public $kind;
public $startTime;
@@ -1051,14 +1518,6 @@ public function getEnabled()
{
return $this->enabled;
}
- public function setId($id)
- {
- $this->id = $id;
- }
- public function getId()
- {
- return $this->id;
- }
public function setKind($kind)
{
$this->kind = $kind;
@@ -1081,34 +1540,19 @@ class Google_Service_SQLAdmin_BackupRun extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $backupConfiguration;
- public $dueTime;
public $endTime;
public $enqueuedTime;
protected $errorType = 'Google_Service_SQLAdmin_OperationError';
protected $errorDataType = '';
+ public $id;
public $instance;
public $kind;
+ public $selfLink;
public $startTime;
public $status;
+ public $windowStartTime;
- public function setBackupConfiguration($backupConfiguration)
- {
- $this->backupConfiguration = $backupConfiguration;
- }
- public function getBackupConfiguration()
- {
- return $this->backupConfiguration;
- }
- public function setDueTime($dueTime)
- {
- $this->dueTime = $dueTime;
- }
- public function getDueTime()
- {
- return $this->dueTime;
- }
public function setEndTime($endTime)
{
$this->endTime = $endTime;
@@ -1133,6 +1577,14 @@ public function getError()
{
return $this->error;
}
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
public function setInstance($instance)
{
$this->instance = $instance;
@@ -1149,6 +1601,14 @@ public function getKind()
{
return $this->kind;
}
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
public function setStartTime($startTime)
{
$this->startTime = $startTime;
@@ -1165,6 +1625,14 @@ public function getStatus()
{
return $this->status;
}
+ public function setWindowStartTime($windowStartTime)
+ {
+ $this->windowStartTime = $windowStartTime;
+ }
+ public function getWindowStartTime()
+ {
+ return $this->windowStartTime;
+ }
}
class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection
@@ -1247,7 +1715,6 @@ class Google_Service_SQLAdmin_CloneContext extends Google_Model
protected $binLogCoordinatesDataType = '';
public $destinationInstanceName;
public $kind;
- public $sourceInstanceName;
public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates)
@@ -1274,13 +1741,85 @@ public function getKind()
{
return $this->kind;
}
- public function setSourceInstanceName($sourceInstanceName)
+}
+
+class Google_Service_SQLAdmin_Database extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $charset;
+ public $collation;
+ public $etag;
+ public $instance;
+ public $kind;
+ public $name;
+ public $project;
+ public $selfLink;
+
+
+ public function setCharset($charset)
{
- $this->sourceInstanceName = $sourceInstanceName;
+ $this->charset = $charset;
}
- public function getSourceInstanceName()
+ public function getCharset()
{
- return $this->sourceInstanceName;
+ return $this->charset;
+ }
+ public function setCollation($collation)
+ {
+ $this->collation = $collation;
+ }
+ public function getCollation()
+ {
+ return $this->collation;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ 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 setProject($project)
+ {
+ $this->project = $project;
+ }
+ public function getProject()
+ {
+ return $this->project;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
}
}
@@ -1318,7 +1857,6 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection
public $currentDiskSize;
public $databaseVersion;
public $etag;
- public $instance;
public $instanceType;
protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping';
protected $ipAddressesDataType = 'array';
@@ -1326,9 +1864,11 @@ class Google_Service_SQLAdmin_DatabaseInstance extends Google_Collection
public $kind;
public $masterInstanceName;
public $maxDiskSize;
+ public $name;
public $project;
public $region;
public $replicaNames;
+ public $selfLink;
protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert';
protected $serverCaCertDataType = '';
public $serviceAccountEmailAddress;
@@ -1361,14 +1901,6 @@ public function getEtag()
{
return $this->etag;
}
- public function setInstance($instance)
- {
- $this->instance = $instance;
- }
- public function getInstance()
- {
- return $this->instance;
- }
public function setInstanceType($instanceType)
{
$this->instanceType = $instanceType;
@@ -1417,6 +1949,14 @@ public function getMaxDiskSize()
{
return $this->maxDiskSize;
}
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
public function setProject($project)
{
$this->project = $project;
@@ -1441,6 +1981,14 @@ public function getReplicaNames()
{
return $this->replicaNames;
}
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert)
{
$this->serverCaCert = $serverCaCert;
@@ -1475,24 +2023,72 @@ public function getState()
}
}
+class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_SQLAdmin_Database';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+
+ 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;
+ }
+}
+
class Google_Service_SQLAdmin_ExportContext extends Google_Collection
{
- protected $collection_key = 'table';
+ protected $collection_key = 'databases';
protected $internal_gapi_mappings = array(
);
- public $database;
+ protected $csvExportOptionsType = 'Google_Service_SQLAdmin_ExportContextCsvExportOptions';
+ protected $csvExportOptionsDataType = '';
+ public $databases;
+ public $fileType;
public $kind;
- public $table;
+ protected $sqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptions';
+ protected $sqlExportOptionsDataType = '';
public $uri;
- public function setDatabase($database)
+ public function setCsvExportOptions(Google_Service_SQLAdmin_ExportContextCsvExportOptions $csvExportOptions)
{
- $this->database = $database;
+ $this->csvExportOptions = $csvExportOptions;
}
- public function getDatabase()
+ public function getCsvExportOptions()
{
- return $this->database;
+ return $this->csvExportOptions;
+ }
+ public function setDatabases($databases)
+ {
+ $this->databases = $databases;
+ }
+ public function getDatabases()
+ {
+ return $this->databases;
+ }
+ public function setFileType($fileType)
+ {
+ $this->fileType = $fileType;
+ }
+ public function getFileType()
+ {
+ return $this->fileType;
}
public function setKind($kind)
{
@@ -1502,13 +2098,13 @@ public function getKind()
{
return $this->kind;
}
- public function setTable($table)
+ public function setSqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptions $sqlExportOptions)
{
- $this->table = $table;
+ $this->sqlExportOptions = $sqlExportOptions;
}
- public function getTable()
+ public function getSqlExportOptions()
{
- return $this->table;
+ return $this->sqlExportOptions;
}
public function setUri($uri)
{
@@ -1520,6 +2116,41 @@ public function getUri()
}
}
+class Google_Service_SQLAdmin_ExportContextCsvExportOptions extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $selectQuery;
+
+
+ public function setSelectQuery($selectQuery)
+ {
+ $this->selectQuery = $selectQuery;
+ }
+ public function getSelectQuery()
+ {
+ return $this->selectQuery;
+ }
+}
+
+class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection
+{
+ protected $collection_key = 'tables';
+ protected $internal_gapi_mappings = array(
+ );
+ public $tables;
+
+
+ public function setTables($tables)
+ {
+ $this->tables = $tables;
+ }
+ public function getTables()
+ {
+ return $this->tables;
+ }
+}
+
class Google_Service_SQLAdmin_Flag extends Google_Collection
{
protected $collection_key = 'appliesTo';
@@ -1620,16 +2251,26 @@ public function getKind()
}
}
-class Google_Service_SQLAdmin_ImportContext extends Google_Collection
+class Google_Service_SQLAdmin_ImportContext extends Google_Model
{
- protected $collection_key = 'uri';
protected $internal_gapi_mappings = array(
);
+ protected $csvImportOptionsType = 'Google_Service_SQLAdmin_ImportContextCsvImportOptions';
+ protected $csvImportOptionsDataType = '';
public $database;
+ public $fileType;
public $kind;
public $uri;
+ public function setCsvImportOptions(Google_Service_SQLAdmin_ImportContextCsvImportOptions $csvImportOptions)
+ {
+ $this->csvImportOptions = $csvImportOptions;
+ }
+ public function getCsvImportOptions()
+ {
+ return $this->csvImportOptions;
+ }
public function setDatabase($database)
{
$this->database = $database;
@@ -1638,6 +2279,14 @@ public function getDatabase()
{
return $this->database;
}
+ public function setFileType($fileType)
+ {
+ $this->fileType = $fileType;
+ }
+ public function getFileType()
+ {
+ return $this->fileType;
+ }
public function setKind($kind)
{
$this->kind = $kind;
@@ -1656,141 +2305,30 @@ public function getUri()
}
}
-class Google_Service_SQLAdmin_InstanceOperation extends Google_Collection
+class Google_Service_SQLAdmin_ImportContextCsvImportOptions extends Google_Collection
{
- protected $collection_key = 'error';
+ protected $collection_key = 'columns';
protected $internal_gapi_mappings = array(
);
- public $endTime;
- public $enqueuedTime;
- protected $errorType = 'Google_Service_SQLAdmin_OperationError';
- protected $errorDataType = 'array';
- protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext';
- protected $exportContextDataType = '';
- protected $importContextType = 'Google_Service_SQLAdmin_ImportContext';
- protected $importContextDataType = '';
- public $instance;
- public $kind;
- public $operation;
- public $operationType;
- public $startTime;
- public $state;
- public $userEmailAddress;
+ public $columns;
+ public $table;
- public function setEndTime($endTime)
+ public function setColumns($columns)
{
- $this->endTime = $endTime;
- }
- public function getEndTime()
- {
- return $this->endTime;
- }
- public function setEnqueuedTime($enqueuedTime)
- {
- $this->enqueuedTime = $enqueuedTime;
- }
- public function getEnqueuedTime()
- {
- return $this->enqueuedTime;
- }
- public function setError($error)
- {
- $this->error = $error;
- }
- public function getError()
- {
- return $this->error;
- }
- public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext)
- {
- $this->exportContext = $exportContext;
- }
- public function getExportContext()
- {
- return $this->exportContext;
+ $this->columns = $columns;
}
- public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext)
- {
- $this->importContext = $importContext;
- }
- public function getImportContext()
- {
- return $this->importContext;
- }
- public function setInstance($instance)
- {
- $this->instance = $instance;
- }
- public function getInstance()
- {
- return $this->instance;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
+ public function getColumns()
{
- return $this->kind;
- }
- public function setOperation($operation)
- {
- $this->operation = $operation;
+ return $this->columns;
}
- public function getOperation()
- {
- return $this->operation;
- }
- public function setOperationType($operationType)
- {
- $this->operationType = $operationType;
- }
- public function getOperationType()
- {
- return $this->operationType;
- }
- public function setStartTime($startTime)
- {
- $this->startTime = $startTime;
- }
- public function getStartTime()
- {
- return $this->startTime;
- }
- public function setState($state)
- {
- $this->state = $state;
- }
- public function getState()
- {
- return $this->state;
- }
- public function setUserEmailAddress($userEmailAddress)
- {
- $this->userEmailAddress = $userEmailAddress;
- }
- public function getUserEmailAddress()
- {
- return $this->userEmailAddress;
- }
-}
-
-class Google_Service_SQLAdmin_InstanceSetRootPasswordRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $setRootPasswordContextType = 'Google_Service_SQLAdmin_SetRootPasswordContext';
- protected $setRootPasswordContextDataType = '';
-
-
- public function setSetRootPasswordContext(Google_Service_SQLAdmin_SetRootPasswordContext $setRootPasswordContext)
+ public function setTable($table)
{
- $this->setRootPasswordContext = $setRootPasswordContext;
+ $this->table = $table;
}
- public function getSetRootPasswordContext()
+ public function getTable()
{
- return $this->setRootPasswordContext;
+ return $this->table;
}
}
@@ -1812,58 +2350,6 @@ public function getCloneContext()
}
}
-class Google_Service_SQLAdmin_InstancesCloneResponse extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $kind;
- public $operation;
-
-
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setOperation($operation)
- {
- $this->operation = $operation;
- }
- public function getOperation()
- {
- return $this->operation;
- }
-}
-
-class Google_Service_SQLAdmin_InstancesDeleteResponse extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $kind;
- public $operation;
-
-
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setOperation($operation)
- {
- $this->operation = $operation;
- }
- public function getOperation()
- {
- return $this->operation;
- }
-}
-
class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model
{
protected $internal_gapi_mappings = array(
@@ -1882,32 +2368,6 @@ public function getExportContext()
}
}
-class Google_Service_SQLAdmin_InstancesExportResponse extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $kind;
- public $operation;
-
-
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setOperation($operation)
- {
- $this->operation = $operation;
- }
- public function getOperation()
- {
- return $this->operation;
- }
-}
-
class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model
{
protected $internal_gapi_mappings = array(
@@ -1926,14 +2386,25 @@ public function getImportContext()
}
}
-class Google_Service_SQLAdmin_InstancesImportResponse extends Google_Model
+class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection
{
+ protected $collection_key = 'items';
protected $internal_gapi_mappings = array(
);
+ protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance';
+ protected $itemsDataType = 'array';
public $kind;
- public $operation;
+ public $nextPageToken;
+ public function setItems($items)
+ {
+ $this->items = $items;
+ }
+ public function getItems()
+ {
+ return $this->items;
+ }
public function setKind($kind)
{
$this->kind = $kind;
@@ -1942,113 +2413,114 @@ public function getKind()
{
return $this->kind;
}
- public function setOperation($operation)
+ public function setNextPageToken($nextPageToken)
{
- $this->operation = $operation;
+ $this->nextPageToken = $nextPageToken;
}
- public function getOperation()
+ public function getNextPageToken()
{
- return $this->operation;
+ return $this->nextPageToken;
}
}
-class Google_Service_SQLAdmin_InstancesInsertResponse extends Google_Model
+class Google_Service_SQLAdmin_InstancesRestoreBackupRequest extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $kind;
- public $operation;
+ protected $restoreBackupContextType = 'Google_Service_SQLAdmin_RestoreBackupContext';
+ protected $restoreBackupContextDataType = '';
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
+ public function setRestoreBackupContext(Google_Service_SQLAdmin_RestoreBackupContext $restoreBackupContext)
{
- return $this->kind;
- }
- public function setOperation($operation)
- {
- $this->operation = $operation;
+ $this->restoreBackupContext = $restoreBackupContext;
}
- public function getOperation()
+ public function getRestoreBackupContext()
{
- return $this->operation;
+ return $this->restoreBackupContext;
}
}
-class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection
+class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection
{
- protected $collection_key = 'items';
+ protected $collection_key = 'authorizedNetworks';
protected $internal_gapi_mappings = array(
);
- protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance';
- protected $itemsDataType = 'array';
- public $kind;
- public $nextPageToken;
+ protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry';
+ protected $authorizedNetworksDataType = 'array';
+ public $ipv4Enabled;
+ public $requireSsl;
- public function setItems($items)
+ public function setAuthorizedNetworks($authorizedNetworks)
{
- $this->items = $items;
+ $this->authorizedNetworks = $authorizedNetworks;
}
- public function getItems()
+ public function getAuthorizedNetworks()
{
- return $this->items;
+ return $this->authorizedNetworks;
}
- public function setKind($kind)
+ public function setIpv4Enabled($ipv4Enabled)
{
- $this->kind = $kind;
+ $this->ipv4Enabled = $ipv4Enabled;
}
- public function getKind()
+ public function getIpv4Enabled()
{
- return $this->kind;
+ return $this->ipv4Enabled;
}
- public function setNextPageToken($nextPageToken)
+ public function setRequireSsl($requireSsl)
{
- $this->nextPageToken = $nextPageToken;
+ $this->requireSsl = $requireSsl;
}
- public function getNextPageToken()
+ public function getRequireSsl()
{
- return $this->nextPageToken;
+ return $this->requireSsl;
}
}
-class Google_Service_SQLAdmin_InstancesPromoteReplicaResponse extends Google_Model
+class Google_Service_SQLAdmin_IpMapping extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $kind;
- public $operation;
+ public $ipAddress;
+ public $timeToRetire;
- public function setKind($kind)
+ public function setIpAddress($ipAddress)
{
- $this->kind = $kind;
+ $this->ipAddress = $ipAddress;
}
- public function getKind()
+ public function getIpAddress()
{
- return $this->kind;
+ return $this->ipAddress;
}
- public function setOperation($operation)
+ public function setTimeToRetire($timeToRetire)
{
- $this->operation = $operation;
+ $this->timeToRetire = $timeToRetire;
}
- public function getOperation()
+ public function getTimeToRetire()
{
- return $this->operation;
+ return $this->timeToRetire;
}
}
-class Google_Service_SQLAdmin_InstancesResetSslConfigResponse extends Google_Model
+class Google_Service_SQLAdmin_LocationPreference extends Google_Model
{
protected $internal_gapi_mappings = array(
);
+ public $followGaeApplication;
public $kind;
- public $operation;
+ public $zone;
+ public function setFollowGaeApplication($followGaeApplication)
+ {
+ $this->followGaeApplication = $followGaeApplication;
+ }
+ public function getFollowGaeApplication()
+ {
+ return $this->followGaeApplication;
+ }
public function setKind($kind)
{
$this->kind = $kind;
@@ -2057,76 +2529,80 @@ public function getKind()
{
return $this->kind;
}
- public function setOperation($operation)
+ public function setZone($zone)
{
- $this->operation = $operation;
+ $this->zone = $zone;
}
- public function getOperation()
+ public function getZone()
{
- return $this->operation;
+ return $this->zone;
}
}
-class Google_Service_SQLAdmin_InstancesRestartResponse extends Google_Model
+class Google_Service_SQLAdmin_Operation extends Google_Model
{
protected $internal_gapi_mappings = array(
);
+ public $endTime;
+ protected $errorType = 'Google_Service_SQLAdmin_OperationError';
+ protected $errorDataType = '';
+ protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext';
+ protected $exportContextDataType = '';
+ protected $importContextType = 'Google_Service_SQLAdmin_ImportContext';
+ protected $importContextDataType = '';
+ public $insertTime;
public $kind;
- public $operation;
+ public $name;
+ public $operationType;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $targetId;
+ public $targetLink;
+ public $targetProject;
+ public $user;
- public function setKind($kind)
+ public function setEndTime($endTime)
{
- $this->kind = $kind;
+ $this->endTime = $endTime;
}
- public function getKind()
+ public function getEndTime()
{
- return $this->kind;
+ return $this->endTime;
}
- public function setOperation($operation)
+ public function setError(Google_Service_SQLAdmin_OperationError $error)
{
- $this->operation = $operation;
+ $this->error = $error;
}
- public function getOperation()
+ public function getError()
{
- return $this->operation;
+ return $this->error;
}
-}
-
-class Google_Service_SQLAdmin_InstancesRestoreBackupResponse extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $kind;
- public $operation;
-
-
- public function setKind($kind)
+ public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext)
{
- $this->kind = $kind;
+ $this->exportContext = $exportContext;
+ }
+ public function getExportContext()
+ {
+ return $this->exportContext;
+ }
+ public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext)
+ {
+ $this->importContext = $importContext;
}
- public function getKind()
+ public function getImportContext()
{
- return $this->kind;
+ return $this->importContext;
}
- public function setOperation($operation)
+ public function setInsertTime($insertTime)
{
- $this->operation = $operation;
+ $this->insertTime = $insertTime;
}
- public function getOperation()
+ public function getInsertTime()
{
- return $this->operation;
+ return $this->insertTime;
}
-}
-
-class Google_Service_SQLAdmin_InstancesSetRootPasswordResponse extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $kind;
- public $operation;
-
-
public function setKind($kind)
{
$this->kind = $kind;
@@ -2135,129 +2611,96 @@ public function getKind()
{
return $this->kind;
}
- public function setOperation($operation)
+ public function setName($name)
{
- $this->operation = $operation;
+ $this->name = $name;
}
- public function getOperation()
+ public function getName()
{
- return $this->operation;
+ return $this->name;
}
-}
-
-class Google_Service_SQLAdmin_InstancesUpdateResponse extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $kind;
- public $operation;
-
-
- public function setKind($kind)
+ public function setOperationType($operationType)
{
- $this->kind = $kind;
+ $this->operationType = $operationType;
}
- public function getKind()
+ public function getOperationType()
{
- return $this->kind;
+ return $this->operationType;
}
- public function setOperation($operation)
+ public function setSelfLink($selfLink)
{
- $this->operation = $operation;
+ $this->selfLink = $selfLink;
}
- public function getOperation()
+ public function getSelfLink()
{
- return $this->operation;
+ return $this->selfLink;
}
-}
-
-class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection
-{
- protected $collection_key = 'authorizedNetworks';
- protected $internal_gapi_mappings = array(
- );
- public $authorizedNetworks;
- public $enabled;
- public $kind;
- public $requireSsl;
-
-
- public function setAuthorizedNetworks($authorizedNetworks)
+ public function setStartTime($startTime)
{
- $this->authorizedNetworks = $authorizedNetworks;
+ $this->startTime = $startTime;
}
- public function getAuthorizedNetworks()
+ public function getStartTime()
{
- return $this->authorizedNetworks;
+ return $this->startTime;
}
- public function setEnabled($enabled)
+ public function setStatus($status)
{
- $this->enabled = $enabled;
+ $this->status = $status;
}
- public function getEnabled()
+ public function getStatus()
{
- return $this->enabled;
+ return $this->status;
}
- public function setKind($kind)
+ public function setTargetId($targetId)
{
- $this->kind = $kind;
+ $this->targetId = $targetId;
}
- public function getKind()
+ public function getTargetId()
{
- return $this->kind;
+ return $this->targetId;
}
- public function setRequireSsl($requireSsl)
+ public function setTargetLink($targetLink)
{
- $this->requireSsl = $requireSsl;
+ $this->targetLink = $targetLink;
}
- public function getRequireSsl()
+ public function getTargetLink()
{
- return $this->requireSsl;
+ return $this->targetLink;
}
-}
-
-class Google_Service_SQLAdmin_IpMapping extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $ipAddress;
- public $timeToRetire;
-
-
- public function setIpAddress($ipAddress)
+ public function setTargetProject($targetProject)
{
- $this->ipAddress = $ipAddress;
+ $this->targetProject = $targetProject;
}
- public function getIpAddress()
+ public function getTargetProject()
{
- return $this->ipAddress;
+ return $this->targetProject;
}
- public function setTimeToRetire($timeToRetire)
+ public function setUser($user)
{
- $this->timeToRetire = $timeToRetire;
+ $this->user = $user;
}
- public function getTimeToRetire()
+ public function getUser()
{
- return $this->timeToRetire;
+ return $this->user;
}
}
-class Google_Service_SQLAdmin_LocationPreference extends Google_Model
+class Google_Service_SQLAdmin_OperationError extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $followGaeApplication;
+ public $code;
public $kind;
- public $zone;
+ public $message;
- public function setFollowGaeApplication($followGaeApplication)
+ public function setCode($code)
{
- $this->followGaeApplication = $followGaeApplication;
+ $this->code = $code;
}
- public function getFollowGaeApplication()
+ public function getCode()
{
- return $this->followGaeApplication;
+ return $this->code;
}
public function setKind($kind)
{
@@ -2267,39 +2710,32 @@ public function getKind()
{
return $this->kind;
}
- public function setZone($zone)
+ public function setMessage($message)
{
- $this->zone = $zone;
+ $this->message = $message;
}
- public function getZone()
+ public function getMessage()
{
- return $this->zone;
+ return $this->message;
}
}
-class Google_Service_SQLAdmin_OperationError extends Google_Model
+class Google_Service_SQLAdmin_OperationError extends Google_Collection
{
+ protected $collection_key = 'errors';
protected $internal_gapi_mappings = array(
);
- public $code;
- public $kind;
+ protected $errorsType = 'Google_Service_SQLAdmin_OperationError';
+ protected $errorsDataType = 'array';
- public function setCode($code)
- {
- $this->code = $code;
- }
- public function getCode()
+ public function setErrors($errors)
{
- return $this->code;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
+ $this->errors = $errors;
}
- public function getKind()
+ public function getErrors()
{
- return $this->kind;
+ return $this->errors;
}
}
@@ -2308,7 +2744,7 @@ class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection
protected $collection_key = 'items';
protected $internal_gapi_mappings = array(
);
- protected $itemsType = 'Google_Service_SQLAdmin_InstanceOperation';
+ protected $itemsType = 'Google_Service_SQLAdmin_Operation';
protected $itemsDataType = 'array';
public $kind;
public $nextPageToken;
@@ -2340,29 +2776,29 @@ public function getNextPageToken()
}
}
-class Google_Service_SQLAdmin_SetRootPasswordContext extends Google_Model
+class Google_Service_SQLAdmin_RestoreBackupContext extends Google_Model
{
protected $internal_gapi_mappings = array(
);
+ public $backupRunId;
public $kind;
- public $password;
- public function setKind($kind)
+ public function setBackupRunId($backupRunId)
{
- $this->kind = $kind;
+ $this->backupRunId = $backupRunId;
}
- public function getKind()
+ public function getBackupRunId()
{
- return $this->kind;
+ return $this->backupRunId;
}
- public function setPassword($password)
+ public function setKind($kind)
{
- $this->password = $password;
+ $this->kind = $kind;
}
- public function getPassword()
+ public function getKind()
{
- return $this->password;
+ return $this->kind;
}
}
@@ -2374,7 +2810,7 @@ class Google_Service_SQLAdmin_Settings extends Google_Collection
public $activationPolicy;
public $authorizedGaeApplications;
protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration';
- protected $backupConfigurationDataType = 'array';
+ protected $backupConfigurationDataType = '';
protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags';
protected $databaseFlagsDataType = 'array';
public $databaseReplicationEnabled;
@@ -2405,7 +2841,7 @@ public function getAuthorizedGaeApplications()
{
return $this->authorizedGaeApplications;
}
- public function setBackupConfiguration($backupConfiguration)
+ public function setBackupConfiguration(Google_Service_SQLAdmin_BackupConfiguration $backupConfiguration)
{
$this->backupConfiguration = $backupConfiguration;
}
@@ -2498,6 +2934,7 @@ class Google_Service_SQLAdmin_SslCert extends Google_Model
public $expirationTime;
public $instance;
public $kind;
+ public $selfLink;
public $sha1Fingerprint;
@@ -2557,6 +2994,14 @@ public function getKind()
{
return $this->kind;
}
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
public function setSha1Fingerprint($sha1Fingerprint)
{
$this->sha1Fingerprint = $sha1Fingerprint;
@@ -2594,32 +3039,6 @@ public function getCertPrivateKey()
}
}
-class Google_Service_SQLAdmin_SslCertsDeleteResponse extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $kind;
- public $operation;
-
-
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setOperation($operation)
- {
- $this->operation = $operation;
- }
- public function getOperation()
- {
- return $this->operation;
- }
-}
-
class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model
{
protected $internal_gapi_mappings = array(
@@ -2785,3 +3204,111 @@ public function getKind()
return $this->kind;
}
}
+
+class Google_Service_SQLAdmin_User extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ public $host;
+ public $instance;
+ public $kind;
+ public $name;
+ public $password;
+ public $project;
+
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ 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 setPassword($password)
+ {
+ $this->password = $password;
+ }
+ public function getPassword()
+ {
+ return $this->password;
+ }
+ public function setProject($project)
+ {
+ $this->project = $project;
+ }
+ public function getProject()
+ {
+ return $this->project;
+ }
+}
+
+class Google_Service_SQLAdmin_UsersListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_SQLAdmin_User';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+
+ 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;
+ }
+}
From 1a2a14ad9a89f517d40419bf9121d2189e5fd8cf Mon Sep 17 00:00:00 2001
From: Silvano Luciani * API for accessing Google Cloud and API monitoring data.
* ** For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. */ class Google_Service_CloudMonitoring extends Google_Service { - /** View monitoring data for all of your Google Cloud and API projects. */ - const MONITORING_READONLY = - "https://www.googleapis.com/auth/monitoring.readonly"; + /** View and write monitoring data for all of your Google and third-party Cloud and API projects. */ + const MONITORING = + "https://www.googleapis.com/auth/monitoring"; public $metricDescriptors; public $timeseries; @@ -47,8 +47,8 @@ class Google_Service_CloudMonitoring extends Google_Service public function __construct(Google_Client $client) { parent::__construct($client); - $this->servicePath = 'cloudmonitoring/v2beta1/projects/'; - $this->version = 'v2beta1'; + $this->servicePath = 'cloudmonitoring/v2beta2/projects/'; + $this->version = 'v2beta2'; $this->serviceName = 'cloudmonitoring'; $this->metricDescriptors = new Google_Service_CloudMonitoring_MetricDescriptors_Resource( @@ -57,7 +57,32 @@ public function __construct(Google_Client $client) 'metricDescriptors', array( 'methods' => array( - 'list' => array( + 'create' => array( + 'path' => '{project}/metricDescriptors', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => '{project}/metricDescriptors/{metric}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metric' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( 'path' => '{project}/metricDescriptors', 'httpMethod' => 'GET', 'parameters' => array( @@ -138,6 +163,16 @@ public function __construct(Google_Client $client) 'type' => 'string', ), ), + ),'write' => array( + 'path' => '{project}/timeseries:write', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), ), ) ) @@ -216,6 +251,37 @@ public function __construct(Google_Client $client) class Google_Service_CloudMonitoring_MetricDescriptors_Resource extends Google_Service_Resource { + /** + * Create a new metric. (metricDescriptors.create) + * + * @param string $project The project id. The value can be the numeric project + * ID or string-based project name. + * @param Google_MetricDescriptor $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudMonitoring_MetricDescriptor + */ + public function create($project, Google_Service_CloudMonitoring_MetricDescriptor $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('create', array($params), "Google_Service_CloudMonitoring_MetricDescriptor"); + } + + /** + * Delete an existing metric. (metricDescriptors.delete) + * + * @param string $project The project ID to which the metric belongs. + * @param string $metric Name of the metric. + * @param array $optParams Optional parameters. + * @return Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse + */ + public function delete($project, $metric, $optParams = array()) + { + $params = array('project' => $project, 'metric' => $metric); + $params = array_merge($params, $optParams); + return $this->call('delete', array($params), "Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse"); + } + /** * List metric descriptors that match the query. If the query is not set, then * all of the metric descriptors will be returned. Large responses will be @@ -313,6 +379,28 @@ public function listTimeseries($project, $metric, $youngest, $optParams = array( $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesResponse"); } + + /** + * Put data points to one or more time series for one or more metrics. If a time + * series does not exist, a new time series will be created. It is not allowed + * to write a time series point that is older than the existing youngest point + * of that time series. Points that are older than the existing youngest point + * of that time series will be discarded silently. Therefore, users should make + * sure that points of a time series are written sequentially in the order of + * their end time. (timeseries.write) + * + * @param string $project The project ID. The value can be the numeric project + * ID or string-based project name. + * @param Google_WriteTimeseriesRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_CloudMonitoring_WriteTimeseriesResponse + */ + public function write($project, Google_Service_CloudMonitoring_WriteTimeseriesRequest $postBody, $optParams = array()) + { + $params = array('project' => $project, 'postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('write', array($params), "Google_Service_CloudMonitoring_WriteTimeseriesResponse"); + } } /** @@ -386,6 +474,23 @@ public function listTimeseriesDescriptors($project, $metric, $youngest, $optPara +class Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} + class Google_Service_CloudMonitoring_ListMetricDescriptorsRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -983,3 +1088,80 @@ public function getValue() class Google_Service_CloudMonitoring_TimeseriesDescriptorLabels extends Google_Model { } + +class Google_Service_CloudMonitoring_TimeseriesPoint extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $pointType = 'Google_Service_CloudMonitoring_Point'; + protected $pointDataType = ''; + protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor'; + protected $timeseriesDescDataType = ''; + + + public function setPoint(Google_Service_CloudMonitoring_Point $point) + { + $this->point = $point; + } + public function getPoint() + { + return $this->point; + } + public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc) + { + $this->timeseriesDesc = $timeseriesDesc; + } + public function getTimeseriesDesc() + { + return $this->timeseriesDesc; + } +} + +class Google_Service_CloudMonitoring_WriteTimeseriesRequest extends Google_Collection +{ + protected $collection_key = 'timeseries'; + protected $internal_gapi_mappings = array( + ); + public $commonLabels; + protected $timeseriesType = 'Google_Service_CloudMonitoring_TimeseriesPoint'; + protected $timeseriesDataType = 'array'; + + + public function setCommonLabels($commonLabels) + { + $this->commonLabels = $commonLabels; + } + public function getCommonLabels() + { + return $this->commonLabels; + } + public function setTimeseries($timeseries) + { + $this->timeseries = $timeseries; + } + public function getTimeseries() + { + return $this->timeseries; + } +} + +class Google_Service_CloudMonitoring_WriteTimeseriesRequestCommonLabels extends Google_Model +{ +} + +class Google_Service_CloudMonitoring_WriteTimeseriesResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $kind; + + + public function setKind($kind) + { + $this->kind = $kind; + } + public function getKind() + { + return $this->kind; + } +} From f719b85f88ea00e11a9a795322e7277d02a549d6 Mon Sep 17 00:00:00 2001 From: pulkit
+ * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...);
+ * $groupItems = $youtubeAnalyticsService->groupItems;
+ *
+ */
+class Google_Service_YouTubeAnalytics_GroupItems_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Removes an item from a group. (groupItems.delete)
+ *
+ * @param string $id The id parameter specifies the YouTube group item ID for
+ * the group that is being deleted.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Creates a group item. (groupItems.insert)
+ *
+ * @param Google_GroupItem $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTubeAnalytics_GroupItem
+ */
+ public function insert(Google_Service_YouTubeAnalytics_GroupItem $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_GroupItem");
+ }
+
+ /**
+ * Returns a collection of group items that match the API request parameters.
+ * (groupItems.listGroupItems)
+ *
+ * @param string $groupId The id parameter specifies the unique ID of the group
+ * for which you want to retrieve group items.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTubeAnalytics_GroupItemListResponse
+ */
+ public function listGroupItems($groupId, $optParams = array())
+ {
+ $params = array('groupId' => $groupId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupItemListResponse");
+ }
+}
+
+/**
+ * The "groups" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...);
+ * $groups = $youtubeAnalyticsService->groups;
+ *
+ */
+class Google_Service_YouTubeAnalytics_Groups_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes a group. (groups.delete)
+ *
+ * @param string $id The id parameter specifies the YouTube group ID for the
+ * group that is being deleted.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Creates a group. (groups.insert)
+ *
+ * @param Google_Group $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTubeAnalytics_Group
+ */
+ public function insert(Google_Service_YouTubeAnalytics_Group $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_Group");
+ }
+
+ /**
+ * Returns a collection of groups that match the API request parameters. For
+ * example, you can retrieve all groups that the authenticated user owns, or you
+ * can retrieve one or more groups by their unique IDs. (groups.listGroups)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @opt_param string id The id parameter specifies a comma-separated list of the
+ * YouTube group ID(s) for the resource(s) that are being retrieved. In a group
+ * resource, the id property specifies the group's YouTube group ID.
+ * @opt_param bool mine Set this parameter's value to true to instruct the API
+ * to only return groups owned by the authenticated user.
+ * @return Google_Service_YouTubeAnalytics_GroupListResponse
+ */
+ public function listGroups($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupListResponse");
+ }
+
+ /**
+ * Modifies a group. For example, you could change a group's title.
+ * (groups.update)
+ *
+ * @param Google_Group $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ * @return Google_Service_YouTubeAnalytics_Group
+ */
+ public function update(Google_Service_YouTubeAnalytics_Group $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTubeAnalytics_Group");
+ }
+}
+
/**
* The "reports" collection of methods.
* Typical usage is:
@@ -515,6 +854,267 @@ public function getStartTime()
}
}
+class Google_Service_YouTubeAnalytics_Group extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $contentDetailsType = 'Google_Service_YouTubeAnalytics_GroupContentDetails';
+ protected $contentDetailsDataType = '';
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTubeAnalytics_GroupSnippet';
+ protected $snippetDataType = '';
+
+
+ public function setContentDetails(Google_Service_YouTubeAnalytics_GroupContentDetails $contentDetails)
+ {
+ $this->contentDetails = $contentDetails;
+ }
+ public function getContentDetails()
+ {
+ return $this->contentDetails;
+ }
+ 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 setSnippet(Google_Service_YouTubeAnalytics_GroupSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
+
+class Google_Service_YouTubeAnalytics_GroupContentDetails extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $itemCount;
+ public $itemType;
+
+
+ public function setItemCount($itemCount)
+ {
+ $this->itemCount = $itemCount;
+ }
+ public function getItemCount()
+ {
+ return $this->itemCount;
+ }
+ public function setItemType($itemType)
+ {
+ $this->itemType = $itemType;
+ }
+ public function getItemType()
+ {
+ return $this->itemType;
+ }
+}
+
+class Google_Service_YouTubeAnalytics_GroupItem extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ public $groupId;
+ public $id;
+ public $kind;
+ protected $resourceType = 'Google_Service_YouTubeAnalytics_GroupItemResource';
+ protected $resourceDataType = '';
+
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setGroupId($groupId)
+ {
+ $this->groupId = $groupId;
+ }
+ public function getGroupId()
+ {
+ return $this->groupId;
+ }
+ 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 setResource(Google_Service_YouTubeAnalytics_GroupItemResource $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
+
+class Google_Service_YouTubeAnalytics_GroupItemListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ protected $itemsType = 'Google_Service_YouTubeAnalytics_GroupItem';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+
+ 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;
+ }
+}
+
+class Google_Service_YouTubeAnalytics_GroupItemResource extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ public $kind;
+
+
+ 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;
+ }
+}
+
+class Google_Service_YouTubeAnalytics_GroupListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ protected $itemsType = 'Google_Service_YouTubeAnalytics_Group';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+
+ 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;
+ }
+}
+
+class Google_Service_YouTubeAnalytics_GroupSnippet extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $publishedAt;
+ public $title;
+
+
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
+
class Google_Service_YouTubeAnalytics_ResultTable extends Google_Collection
{
protected $collection_key = 'rows';
From dbb292dbbe25d9910b2e6f020502102a84085310 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
- * $dataflowService = new Google_Service_Dataflow(...);
- * $v1b3 = $dataflowService->v1b3;
- *
- */
-class Google_Service_Dataflow_V1b3_Resource extends Google_Service_Resource
-{
-}
-
-/**
- * The "projects" collection of methods.
- * Typical usage is:
- *
- * $dataflowService = new Google_Service_Dataflow(...);
- * $projects = $dataflowService->projects;
- *
- */
-class Google_Service_Dataflow_V1b3Projects_Resource extends Google_Service_Resource
-{
-}
-
-/**
- * The "jobs" collection of methods.
- * Typical usage is:
- *
- * $dataflowService = new Google_Service_Dataflow(...);
- * $jobs = $dataflowService->jobs;
- *
- */
-class Google_Service_Dataflow_V1b3ProjectsJobs_Resource extends Google_Service_Resource
-{
-
- /**
- * Creates a dataflow job. (jobs.create)
- *
- * @param string $projectId
- * @param Google_Job $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string view
- * @return Google_Service_Dataflow_Job
- */
- public function create($projectId, Google_Service_Dataflow_Job $postBody, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('create', array($params), "Google_Service_Dataflow_Job");
- }
-
- /**
- * Gets the state of the specified dataflow job. (jobs.get)
- *
- * @param string $projectId
- * @param string $jobId
- * @param array $optParams Optional parameters.
- *
- * @opt_param string view
- * @return Google_Service_Dataflow_Job
- */
- public function get($projectId, $jobId, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'jobId' => $jobId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Dataflow_Job");
- }
-
- /**
- * Request the job status. (jobs.getMetrics)
- *
- * @param string $projectId
- * @param string $jobId
- * @param array $optParams Optional parameters.
- *
- * @opt_param string startTime
- * @return Google_Service_Dataflow_JobMetrics
- */
- public function getMetrics($projectId, $jobId, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'jobId' => $jobId);
- $params = array_merge($params, $optParams);
- return $this->call('getMetrics', array($params), "Google_Service_Dataflow_JobMetrics");
- }
-
- /**
- * List the jobs of a project (jobs.listV1b3ProjectsJobs)
- *
- * @param string $projectId
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken
- * @opt_param string view
- * @opt_param int pageSize
- * @return Google_Service_Dataflow_ListJobsResponse
- */
- public function listV1b3ProjectsJobs($projectId, $optParams = array())
- {
- $params = array('projectId' => $projectId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse");
- }
-
- /**
- * Updates the state of an existing dataflow job. This method supports patch
- * semantics. (jobs.patch)
- *
- * @param string $projectId
- * @param string $jobId
- * @param Google_Job $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Dataflow_Job
- */
- public function patch($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_Dataflow_Job");
- }
-
- /**
- * Updates the state of an existing dataflow job. (jobs.update)
- *
- * @param string $projectId
- * @param string $jobId
- * @param Google_Job $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Dataflow_Job
- */
- public function update($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_Dataflow_Job");
- }
-}
-
-/**
- * The "messages" collection of methods.
- * Typical usage is:
- *
- * $dataflowService = new Google_Service_Dataflow(...);
- * $messages = $dataflowService->messages;
- *
- */
-class Google_Service_Dataflow_V1b3ProjectsJobsMessages_Resource extends Google_Service_Resource
-{
-
- /**
- * Request the job status. (messages.listV1b3ProjectsJobsMessages)
- *
- * @param string $projectId
- * @param string $jobId
- * @param array $optParams Optional parameters.
- *
- * @opt_param int pageSize
- * @opt_param string pageToken
- * @opt_param string startTime
- * @opt_param string endTime
- * @opt_param string minimumImportance
- * @return Google_Service_Dataflow_ListJobMessagesResponse
- */
- public function listV1b3ProjectsJobsMessages($projectId, $jobId, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'jobId' => $jobId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Dataflow_ListJobMessagesResponse");
- }
-}
-/**
- * The "workItems" collection of methods.
- * Typical usage is:
- *
- * $dataflowService = new Google_Service_Dataflow(...);
- * $workItems = $dataflowService->workItems;
- *
- */
-class Google_Service_Dataflow_V1b3ProjectsJobsWorkItems_Resource extends Google_Service_Resource
-{
-
- /**
- * Leases a dataflow WorkItem to run. (workItems.lease)
- *
- * @param string $projectId
- * @param string $jobId
- * @param Google_LeaseWorkItemRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Dataflow_LeaseWorkItemResponse
- */
- public function lease($projectId, $jobId, Google_Service_Dataflow_LeaseWorkItemRequest $postBody, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('lease', array($params), "Google_Service_Dataflow_LeaseWorkItemResponse");
- }
-
- /**
- * Reports the status of dataflow WorkItems leased by a worker.
- * (workItems.reportStatus)
- *
- * @param string $projectId
- * @param string $jobId
- * @param Google_ReportWorkItemStatusRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Dataflow_ReportWorkItemStatusResponse
- */
- public function reportStatus($projectId, $jobId, Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('reportStatus', array($params), "Google_Service_Dataflow_ReportWorkItemStatusResponse");
- }
-}
-
-
-
-
-class Google_Service_Dataflow_ApproximateProgress extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $percentComplete;
- protected $positionType = 'Google_Service_Dataflow_Position';
- protected $positionDataType = '';
- public $remainingTime;
-
-
- public function setPercentComplete($percentComplete)
- {
- $this->percentComplete = $percentComplete;
- }
- public function getPercentComplete()
- {
- return $this->percentComplete;
- }
- public function setPosition(Google_Service_Dataflow_Position $position)
- {
- $this->position = $position;
- }
- public function getPosition()
- {
- return $this->position;
- }
- public function setRemainingTime($remainingTime)
- {
- $this->remainingTime = $remainingTime;
- }
- public function getRemainingTime()
- {
- return $this->remainingTime;
- }
-}
-
-class Google_Service_Dataflow_AutoscalingSettings extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $algorithm;
- public $maxNumWorkers;
-
-
- public function setAlgorithm($algorithm)
- {
- $this->algorithm = $algorithm;
- }
- public function getAlgorithm()
- {
- return $this->algorithm;
- }
- public function setMaxNumWorkers($maxNumWorkers)
- {
- $this->maxNumWorkers = $maxNumWorkers;
- }
- public function getMaxNumWorkers()
- {
- return $this->maxNumWorkers;
- }
-}
-
-class Google_Service_Dataflow_ComputationTopology extends Google_Collection
-{
- protected $collection_key = 'outputs';
- protected $internal_gapi_mappings = array(
- );
- public $computationId;
- protected $inputsType = 'Google_Service_Dataflow_StreamLocation';
- protected $inputsDataType = 'array';
- protected $keyRangesType = 'Google_Service_Dataflow_KeyRangeLocation';
- protected $keyRangesDataType = 'array';
- protected $outputsType = 'Google_Service_Dataflow_StreamLocation';
- protected $outputsDataType = 'array';
-
-
- public function setComputationId($computationId)
- {
- $this->computationId = $computationId;
- }
- public function getComputationId()
- {
- return $this->computationId;
- }
- public function setInputs($inputs)
- {
- $this->inputs = $inputs;
- }
- public function getInputs()
- {
- return $this->inputs;
- }
- public function setKeyRanges($keyRanges)
- {
- $this->keyRanges = $keyRanges;
- }
- public function getKeyRanges()
- {
- return $this->keyRanges;
- }
- public function setOutputs($outputs)
- {
- $this->outputs = $outputs;
- }
- public function getOutputs()
- {
- return $this->outputs;
- }
-}
-
-class Google_Service_Dataflow_DataDiskAssignment extends Google_Collection
-{
- protected $collection_key = 'dataDisks';
- protected $internal_gapi_mappings = array(
- );
- public $dataDisks;
- public $vmInstance;
-
-
- public function setDataDisks($dataDisks)
- {
- $this->dataDisks = $dataDisks;
- }
- public function getDataDisks()
- {
- return $this->dataDisks;
- }
- public function setVmInstance($vmInstance)
- {
- $this->vmInstance = $vmInstance;
- }
- public function getVmInstance()
- {
- return $this->vmInstance;
- }
-}
-
-class Google_Service_Dataflow_Disk extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $diskType;
- public $mountPoint;
- public $sizeGb;
-
-
- public function setDiskType($diskType)
- {
- $this->diskType = $diskType;
- }
- public function getDiskType()
- {
- return $this->diskType;
- }
- public function setMountPoint($mountPoint)
- {
- $this->mountPoint = $mountPoint;
- }
- public function getMountPoint()
- {
- return $this->mountPoint;
- }
- public function setSizeGb($sizeGb)
- {
- $this->sizeGb = $sizeGb;
- }
- public function getSizeGb()
- {
- return $this->sizeGb;
- }
-}
-
-class Google_Service_Dataflow_Environment extends Google_Collection
-{
- protected $collection_key = 'workerPools';
- protected $internal_gapi_mappings = array(
- );
- public $clusterManagerApiService;
- public $dataset;
- public $experiments;
- public $tempStoragePrefix;
- public $userAgent;
- public $version;
- protected $workerPoolsType = 'Google_Service_Dataflow_WorkerPool';
- protected $workerPoolsDataType = 'array';
-
-
- public function setClusterManagerApiService($clusterManagerApiService)
- {
- $this->clusterManagerApiService = $clusterManagerApiService;
- }
- public function getClusterManagerApiService()
- {
- return $this->clusterManagerApiService;
- }
- public function setDataset($dataset)
- {
- $this->dataset = $dataset;
- }
- public function getDataset()
- {
- return $this->dataset;
- }
- public function setExperiments($experiments)
- {
- $this->experiments = $experiments;
- }
- public function getExperiments()
- {
- return $this->experiments;
- }
- public function setTempStoragePrefix($tempStoragePrefix)
- {
- $this->tempStoragePrefix = $tempStoragePrefix;
- }
- public function getTempStoragePrefix()
- {
- return $this->tempStoragePrefix;
- }
- public function setUserAgent($userAgent)
- {
- $this->userAgent = $userAgent;
- }
- public function getUserAgent()
- {
- return $this->userAgent;
- }
- public function setVersion($version)
- {
- $this->version = $version;
- }
- public function getVersion()
- {
- return $this->version;
- }
- public function setWorkerPools($workerPools)
- {
- $this->workerPools = $workerPools;
- }
- public function getWorkerPools()
- {
- return $this->workerPools;
- }
-}
-
-class Google_Service_Dataflow_EnvironmentUserAgent extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_EnvironmentVersion extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_FlattenInstruction extends Google_Collection
-{
- protected $collection_key = 'inputs';
- protected $internal_gapi_mappings = array(
- );
- protected $inputsType = 'Google_Service_Dataflow_InstructionInput';
- protected $inputsDataType = 'array';
-
-
- public function setInputs($inputs)
- {
- $this->inputs = $inputs;
- }
- public function getInputs()
- {
- return $this->inputs;
- }
-}
-
-class Google_Service_Dataflow_InstructionInput extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $outputNum;
- public $producerInstructionIndex;
-
-
- public function setOutputNum($outputNum)
- {
- $this->outputNum = $outputNum;
- }
- public function getOutputNum()
- {
- return $this->outputNum;
- }
- public function setProducerInstructionIndex($producerInstructionIndex)
- {
- $this->producerInstructionIndex = $producerInstructionIndex;
- }
- public function getProducerInstructionIndex()
- {
- return $this->producerInstructionIndex;
- }
-}
-
-class Google_Service_Dataflow_InstructionOutput extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $codec;
- public $name;
-
-
- public function setCodec($codec)
- {
- $this->codec = $codec;
- }
- public function getCodec()
- {
- return $this->codec;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
}
}
-class Google_Service_Dataflow_InstructionOutputCodec extends Google_Model
-{
-}
-class Google_Service_Dataflow_Job extends Google_Collection
-{
- protected $collection_key = 'steps';
- protected $internal_gapi_mappings = array(
- );
- public $createTime;
- public $currentState;
- public $currentStateTime;
- protected $environmentType = 'Google_Service_Dataflow_Environment';
- protected $environmentDataType = '';
- protected $executionInfoType = 'Google_Service_Dataflow_JobExecutionInfo';
- protected $executionInfoDataType = '';
- public $id;
- public $name;
- public $projectId;
- public $requestedState;
- protected $stepsType = 'Google_Service_Dataflow_Step';
- protected $stepsDataType = 'array';
- public $type;
- public function setCreateTime($createTime)
- {
- $this->createTime = $createTime;
- }
- public function getCreateTime()
- {
- return $this->createTime;
- }
- public function setCurrentState($currentState)
- {
- $this->currentState = $currentState;
- }
- public function getCurrentState()
- {
- return $this->currentState;
- }
- public function setCurrentStateTime($currentStateTime)
- {
- $this->currentStateTime = $currentStateTime;
- }
- public function getCurrentStateTime()
- {
- return $this->currentStateTime;
- }
- public function setEnvironment(Google_Service_Dataflow_Environment $environment)
- {
- $this->environment = $environment;
- }
- public function getEnvironment()
- {
- return $this->environment;
- }
- public function setExecutionInfo(Google_Service_Dataflow_JobExecutionInfo $executionInfo)
- {
- $this->executionInfo = $executionInfo;
- }
- public function getExecutionInfo()
- {
- return $this->executionInfo;
- }
- public function setId($id)
- {
- $this->id = $id;
- }
- public function getId()
- {
- return $this->id;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setProjectId($projectId)
- {
- $this->projectId = $projectId;
- }
- public function getProjectId()
- {
- return $this->projectId;
- }
- public function setRequestedState($requestedState)
- {
- $this->requestedState = $requestedState;
- }
- public function getRequestedState()
- {
- return $this->requestedState;
- }
- public function setSteps($steps)
- {
- $this->steps = $steps;
- }
- public function getSteps()
- {
- return $this->steps;
- }
- public function setType($type)
- {
- $this->type = $type;
- }
- public function getType()
- {
- return $this->type;
- }
-}
-
-class Google_Service_Dataflow_JobExecutionInfo extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $stagesType = 'Google_Service_Dataflow_JobExecutionStageInfo';
- protected $stagesDataType = 'map';
-
-
- public function setStages($stages)
- {
- $this->stages = $stages;
- }
- public function getStages()
- {
- return $this->stages;
- }
-}
-
-class Google_Service_Dataflow_JobExecutionInfoStages extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_JobExecutionStageInfo extends Google_Collection
-{
- protected $collection_key = 'stepName';
- protected $internal_gapi_mappings = array(
- );
- public $stepName;
-
-
- public function setStepName($stepName)
- {
- $this->stepName = $stepName;
- }
- public function getStepName()
- {
- return $this->stepName;
- }
-}
-
-class Google_Service_Dataflow_JobMessage extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $id;
- public $messageImportance;
- public $messageText;
- public $time;
-
-
- public function setId($id)
- {
- $this->id = $id;
- }
- public function getId()
- {
- return $this->id;
- }
- public function setMessageImportance($messageImportance)
- {
- $this->messageImportance = $messageImportance;
- }
- public function getMessageImportance()
- {
- return $this->messageImportance;
- }
- public function setMessageText($messageText)
- {
- $this->messageText = $messageText;
- }
- public function getMessageText()
- {
- return $this->messageText;
- }
- public function setTime($time)
- {
- $this->time = $time;
- }
- public function getTime()
- {
- return $this->time;
- }
-}
-
-class Google_Service_Dataflow_JobMetrics extends Google_Collection
-{
- protected $collection_key = 'metrics';
- protected $internal_gapi_mappings = array(
- );
- public $metricTime;
- protected $metricsType = 'Google_Service_Dataflow_MetricUpdate';
- protected $metricsDataType = 'array';
-
-
- public function setMetricTime($metricTime)
- {
- $this->metricTime = $metricTime;
- }
- public function getMetricTime()
- {
- return $this->metricTime;
- }
- public function setMetrics($metrics)
- {
- $this->metrics = $metrics;
- }
- public function getMetrics()
- {
- return $this->metrics;
- }
-}
-
-class Google_Service_Dataflow_KeyRangeLocation extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $dataDisk;
- public $deliveryEndpoint;
- public $end;
- public $persistentDirectory;
- public $start;
-
-
- public function setDataDisk($dataDisk)
- {
- $this->dataDisk = $dataDisk;
- }
- public function getDataDisk()
- {
- return $this->dataDisk;
- }
- public function setDeliveryEndpoint($deliveryEndpoint)
- {
- $this->deliveryEndpoint = $deliveryEndpoint;
- }
- public function getDeliveryEndpoint()
- {
- return $this->deliveryEndpoint;
- }
- public function setEnd($end)
- {
- $this->end = $end;
- }
- public function getEnd()
- {
- return $this->end;
- }
- public function setPersistentDirectory($persistentDirectory)
- {
- $this->persistentDirectory = $persistentDirectory;
- }
- public function getPersistentDirectory()
- {
- return $this->persistentDirectory;
- }
- public function setStart($start)
- {
- $this->start = $start;
- }
- public function getStart()
- {
- return $this->start;
- }
-}
-
-class Google_Service_Dataflow_LeaseWorkItemRequest extends Google_Collection
-{
- protected $collection_key = 'workerCapabilities';
- protected $internal_gapi_mappings = array(
- );
- public $currentWorkerTime;
- public $requestedLeaseDuration;
- public $workItemTypes;
- public $workerCapabilities;
- public $workerId;
-
-
- public function setCurrentWorkerTime($currentWorkerTime)
- {
- $this->currentWorkerTime = $currentWorkerTime;
- }
- public function getCurrentWorkerTime()
- {
- return $this->currentWorkerTime;
- }
- public function setRequestedLeaseDuration($requestedLeaseDuration)
- {
- $this->requestedLeaseDuration = $requestedLeaseDuration;
- }
- public function getRequestedLeaseDuration()
- {
- return $this->requestedLeaseDuration;
- }
- public function setWorkItemTypes($workItemTypes)
- {
- $this->workItemTypes = $workItemTypes;
- }
- public function getWorkItemTypes()
- {
- return $this->workItemTypes;
- }
- public function setWorkerCapabilities($workerCapabilities)
- {
- $this->workerCapabilities = $workerCapabilities;
- }
- public function getWorkerCapabilities()
- {
- return $this->workerCapabilities;
- }
- public function setWorkerId($workerId)
- {
- $this->workerId = $workerId;
- }
- public function getWorkerId()
- {
- return $this->workerId;
- }
-}
-
-class Google_Service_Dataflow_LeaseWorkItemResponse extends Google_Collection
-{
- protected $collection_key = 'workItems';
- protected $internal_gapi_mappings = array(
- );
- protected $workItemsType = 'Google_Service_Dataflow_WorkItem';
- protected $workItemsDataType = 'array';
-
-
- public function setWorkItems($workItems)
- {
- $this->workItems = $workItems;
- }
- public function getWorkItems()
- {
- return $this->workItems;
- }
-}
-
-class Google_Service_Dataflow_ListJobMessagesResponse extends Google_Collection
-{
- protected $collection_key = 'jobMessages';
- protected $internal_gapi_mappings = array(
- );
- protected $jobMessagesType = 'Google_Service_Dataflow_JobMessage';
- protected $jobMessagesDataType = 'array';
- public $nextPageToken;
-
-
- public function setJobMessages($jobMessages)
- {
- $this->jobMessages = $jobMessages;
- }
- public function getJobMessages()
- {
- return $this->jobMessages;
- }
- public function setNextPageToken($nextPageToken)
- {
- $this->nextPageToken = $nextPageToken;
- }
- public function getNextPageToken()
- {
- return $this->nextPageToken;
- }
-}
-
-class Google_Service_Dataflow_ListJobsResponse extends Google_Collection
-{
- protected $collection_key = 'jobs';
- protected $internal_gapi_mappings = array(
- );
- protected $jobsType = 'Google_Service_Dataflow_Job';
- protected $jobsDataType = 'array';
- public $nextPageToken;
-
-
- public function setJobs($jobs)
- {
- $this->jobs = $jobs;
- }
- public function getJobs()
- {
- return $this->jobs;
- }
- public function setNextPageToken($nextPageToken)
- {
- $this->nextPageToken = $nextPageToken;
- }
- public function getNextPageToken()
- {
- return $this->nextPageToken;
- }
-}
-
-class Google_Service_Dataflow_MapTask extends Google_Collection
-{
- protected $collection_key = 'instructions';
- protected $internal_gapi_mappings = array(
- );
- protected $instructionsType = 'Google_Service_Dataflow_ParallelInstruction';
- protected $instructionsDataType = 'array';
- public $stageName;
- public $systemName;
-
-
- public function setInstructions($instructions)
- {
- $this->instructions = $instructions;
- }
- public function getInstructions()
- {
- return $this->instructions;
- }
- public function setStageName($stageName)
- {
- $this->stageName = $stageName;
- }
- public function getStageName()
- {
- return $this->stageName;
- }
- public function setSystemName($systemName)
- {
- $this->systemName = $systemName;
- }
- public function getSystemName()
- {
- return $this->systemName;
- }
-}
-
-class Google_Service_Dataflow_MetricStructuredName extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $context;
- public $name;
- public $origin;
-
-
- public function setContext($context)
- {
- $this->context = $context;
- }
- public function getContext()
- {
- return $this->context;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setOrigin($origin)
- {
- $this->origin = $origin;
- }
- public function getOrigin()
- {
- return $this->origin;
- }
-}
-
-class Google_Service_Dataflow_MetricStructuredNameContext extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_MetricUpdate extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $cumulative;
- public $internal;
- public $kind;
- public $meanCount;
- public $meanSum;
- protected $nameType = 'Google_Service_Dataflow_MetricStructuredName';
- protected $nameDataType = '';
- public $scalar;
- public $set;
- public $updateTime;
-
-
- public function setCumulative($cumulative)
- {
- $this->cumulative = $cumulative;
- }
- public function getCumulative()
- {
- return $this->cumulative;
- }
- public function setInternal($internal)
- {
- $this->internal = $internal;
- }
- public function getInternal()
- {
- return $this->internal;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setMeanCount($meanCount)
- {
- $this->meanCount = $meanCount;
- }
- public function getMeanCount()
- {
- return $this->meanCount;
- }
- public function setMeanSum($meanSum)
- {
- $this->meanSum = $meanSum;
- }
- public function getMeanSum()
- {
- return $this->meanSum;
- }
- public function setName(Google_Service_Dataflow_MetricStructuredName $name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setScalar($scalar)
- {
- $this->scalar = $scalar;
- }
- public function getScalar()
- {
- return $this->scalar;
- }
- public function setSet($set)
- {
- $this->set = $set;
- }
- public function getSet()
- {
- return $this->set;
- }
- public function setUpdateTime($updateTime)
- {
- $this->updateTime = $updateTime;
- }
- public function getUpdateTime()
- {
- return $this->updateTime;
- }
-}
-
-class Google_Service_Dataflow_MultiOutputInfo extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $tag;
-
-
- public function setTag($tag)
- {
- $this->tag = $tag;
- }
- public function getTag()
- {
- return $this->tag;
- }
-}
-
-class Google_Service_Dataflow_Package extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $location;
- public $name;
-
-
- public function setLocation($location)
- {
- $this->location = $location;
- }
- public function getLocation()
- {
- return $this->location;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
-}
-
-class Google_Service_Dataflow_ParDoInstruction extends Google_Collection
-{
- protected $collection_key = 'sideInputs';
- protected $internal_gapi_mappings = array(
- );
- protected $inputType = 'Google_Service_Dataflow_InstructionInput';
- protected $inputDataType = '';
- protected $multiOutputInfosType = 'Google_Service_Dataflow_MultiOutputInfo';
- protected $multiOutputInfosDataType = 'array';
- public $numOutputs;
- protected $sideInputsType = 'Google_Service_Dataflow_SideInputInfo';
- protected $sideInputsDataType = 'array';
- public $userFn;
-
-
- public function setInput(Google_Service_Dataflow_InstructionInput $input)
- {
- $this->input = $input;
- }
- public function getInput()
- {
- return $this->input;
- }
- public function setMultiOutputInfos($multiOutputInfos)
- {
- $this->multiOutputInfos = $multiOutputInfos;
- }
- public function getMultiOutputInfos()
- {
- return $this->multiOutputInfos;
- }
- public function setNumOutputs($numOutputs)
- {
- $this->numOutputs = $numOutputs;
- }
- public function getNumOutputs()
- {
- return $this->numOutputs;
- }
- public function setSideInputs($sideInputs)
- {
- $this->sideInputs = $sideInputs;
- }
- public function getSideInputs()
- {
- return $this->sideInputs;
- }
- public function setUserFn($userFn)
- {
- $this->userFn = $userFn;
- }
- public function getUserFn()
- {
- return $this->userFn;
- }
-}
-
-class Google_Service_Dataflow_ParDoInstructionUserFn extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_ParallelInstruction extends Google_Collection
-{
- protected $collection_key = 'outputs';
- protected $internal_gapi_mappings = array(
- );
- protected $flattenType = 'Google_Service_Dataflow_FlattenInstruction';
- protected $flattenDataType = '';
- public $name;
- protected $outputsType = 'Google_Service_Dataflow_InstructionOutput';
- protected $outputsDataType = 'array';
- protected $parDoType = 'Google_Service_Dataflow_ParDoInstruction';
- protected $parDoDataType = '';
- protected $partialGroupByKeyType = 'Google_Service_Dataflow_PartialGroupByKeyInstruction';
- protected $partialGroupByKeyDataType = '';
- protected $readType = 'Google_Service_Dataflow_ReadInstruction';
- protected $readDataType = '';
- public $systemName;
- protected $writeType = 'Google_Service_Dataflow_WriteInstruction';
- protected $writeDataType = '';
-
-
- public function setFlatten(Google_Service_Dataflow_FlattenInstruction $flatten)
- {
- $this->flatten = $flatten;
- }
- public function getFlatten()
- {
- return $this->flatten;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setOutputs($outputs)
- {
- $this->outputs = $outputs;
- }
- public function getOutputs()
- {
- return $this->outputs;
- }
- public function setParDo(Google_Service_Dataflow_ParDoInstruction $parDo)
- {
- $this->parDo = $parDo;
- }
- public function getParDo()
- {
- return $this->parDo;
- }
- public function setPartialGroupByKey(Google_Service_Dataflow_PartialGroupByKeyInstruction $partialGroupByKey)
- {
- $this->partialGroupByKey = $partialGroupByKey;
- }
- public function getPartialGroupByKey()
- {
- return $this->partialGroupByKey;
- }
- public function setRead(Google_Service_Dataflow_ReadInstruction $read)
- {
- $this->read = $read;
- }
- public function getRead()
- {
- return $this->read;
- }
- public function setSystemName($systemName)
- {
- $this->systemName = $systemName;
- }
- public function getSystemName()
- {
- return $this->systemName;
- }
- public function setWrite(Google_Service_Dataflow_WriteInstruction $write)
- {
- $this->write = $write;
- }
- public function getWrite()
- {
- return $this->write;
- }
-}
-
-class Google_Service_Dataflow_PartialGroupByKeyInstruction extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $inputType = 'Google_Service_Dataflow_InstructionInput';
- protected $inputDataType = '';
- public $inputElementCodec;
-
-
- public function setInput(Google_Service_Dataflow_InstructionInput $input)
- {
- $this->input = $input;
- }
- public function getInput()
- {
- return $this->input;
- }
- public function setInputElementCodec($inputElementCodec)
- {
- $this->inputElementCodec = $inputElementCodec;
- }
- public function getInputElementCodec()
- {
- return $this->inputElementCodec;
- }
-}
-
-class Google_Service_Dataflow_PartialGroupByKeyInstructionInputElementCodec extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_Position extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $byteOffset;
- public $end;
- public $key;
- public $recordIndex;
- public $shufflePosition;
-
-
- public function setByteOffset($byteOffset)
- {
- $this->byteOffset = $byteOffset;
- }
- public function getByteOffset()
- {
- return $this->byteOffset;
- }
- public function setEnd($end)
- {
- $this->end = $end;
- }
- public function getEnd()
- {
- return $this->end;
- }
- public function setKey($key)
- {
- $this->key = $key;
- }
- public function getKey()
- {
- return $this->key;
- }
- public function setRecordIndex($recordIndex)
- {
- $this->recordIndex = $recordIndex;
- }
- public function getRecordIndex()
- {
- return $this->recordIndex;
- }
- public function setShufflePosition($shufflePosition)
- {
- $this->shufflePosition = $shufflePosition;
- }
- public function getShufflePosition()
- {
- return $this->shufflePosition;
- }
-}
-
-class Google_Service_Dataflow_PubsubLocation extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $subscription;
- public $topic;
-
-
- public function setSubscription($subscription)
- {
- $this->subscription = $subscription;
- }
- public function getSubscription()
- {
- return $this->subscription;
- }
- public function setTopic($topic)
- {
- $this->topic = $topic;
- }
- public function getTopic()
- {
- return $this->topic;
- }
-}
-
-class Google_Service_Dataflow_ReadInstruction extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $sourceType = 'Google_Service_Dataflow_Source';
- protected $sourceDataType = '';
-
-
- public function setSource(Google_Service_Dataflow_Source $source)
- {
- $this->source = $source;
- }
- public function getSource()
- {
- return $this->source;
- }
-}
-
-class Google_Service_Dataflow_ReportWorkItemStatusRequest extends Google_Collection
-{
- protected $collection_key = 'workItemStatuses';
- protected $internal_gapi_mappings = array(
- );
- public $currentWorkerTime;
- protected $workItemStatusesType = 'Google_Service_Dataflow_WorkItemStatus';
- protected $workItemStatusesDataType = 'array';
- public $workerId;
-
-
- public function setCurrentWorkerTime($currentWorkerTime)
- {
- $this->currentWorkerTime = $currentWorkerTime;
- }
- public function getCurrentWorkerTime()
- {
- return $this->currentWorkerTime;
- }
- public function setWorkItemStatuses($workItemStatuses)
- {
- $this->workItemStatuses = $workItemStatuses;
- }
- public function getWorkItemStatuses()
- {
- return $this->workItemStatuses;
- }
- public function setWorkerId($workerId)
- {
- $this->workerId = $workerId;
- }
- public function getWorkerId()
- {
- return $this->workerId;
- }
-}
-
-class Google_Service_Dataflow_ReportWorkItemStatusResponse extends Google_Collection
-{
- protected $collection_key = 'workItemServiceStates';
- protected $internal_gapi_mappings = array(
- );
- protected $workItemServiceStatesType = 'Google_Service_Dataflow_WorkItemServiceState';
- protected $workItemServiceStatesDataType = 'array';
-
-
- public function setWorkItemServiceStates($workItemServiceStates)
- {
- $this->workItemServiceStates = $workItemServiceStates;
- }
- public function getWorkItemServiceStates()
- {
- return $this->workItemServiceStates;
- }
-}
-
-class Google_Service_Dataflow_SeqMapTask extends Google_Collection
-{
- protected $collection_key = 'outputInfos';
- protected $internal_gapi_mappings = array(
- );
- protected $inputsType = 'Google_Service_Dataflow_SideInputInfo';
- protected $inputsDataType = 'array';
- public $name;
- protected $outputInfosType = 'Google_Service_Dataflow_SeqMapTaskOutputInfo';
- protected $outputInfosDataType = 'array';
- public $stageName;
- public $systemName;
- public $userFn;
-
-
- public function setInputs($inputs)
- {
- $this->inputs = $inputs;
- }
- public function getInputs()
- {
- return $this->inputs;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setOutputInfos($outputInfos)
- {
- $this->outputInfos = $outputInfos;
- }
- public function getOutputInfos()
- {
- return $this->outputInfos;
- }
- public function setStageName($stageName)
- {
- $this->stageName = $stageName;
- }
- public function getStageName()
- {
- return $this->stageName;
- }
- public function setSystemName($systemName)
- {
- $this->systemName = $systemName;
- }
- public function getSystemName()
- {
- return $this->systemName;
- }
- public function setUserFn($userFn)
- {
- $this->userFn = $userFn;
- }
- public function getUserFn()
- {
- return $this->userFn;
- }
-}
-
-class Google_Service_Dataflow_SeqMapTaskOutputInfo extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $sinkType = 'Google_Service_Dataflow_Sink';
- protected $sinkDataType = '';
- public $tag;
-
-
- public function setSink(Google_Service_Dataflow_Sink $sink)
- {
- $this->sink = $sink;
- }
- public function getSink()
- {
- return $this->sink;
- }
- public function setTag($tag)
- {
- $this->tag = $tag;
- }
- public function getTag()
- {
- return $this->tag;
- }
-}
-
-class Google_Service_Dataflow_SeqMapTaskUserFn extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_ShellTask extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $command;
- public $exitCode;
-
-
- public function setCommand($command)
- {
- $this->command = $command;
- }
- public function getCommand()
- {
- return $this->command;
- }
- public function setExitCode($exitCode)
- {
- $this->exitCode = $exitCode;
- }
- public function getExitCode()
- {
- return $this->exitCode;
- }
-}
-
-class Google_Service_Dataflow_SideInputInfo extends Google_Collection
-{
- protected $collection_key = 'sources';
- protected $internal_gapi_mappings = array(
- );
- public $kind;
- protected $sourcesType = 'Google_Service_Dataflow_Source';
- protected $sourcesDataType = 'array';
- public $tag;
-
-
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setSources($sources)
- {
- $this->sources = $sources;
- }
- public function getSources()
- {
- return $this->sources;
- }
- public function setTag($tag)
- {
- $this->tag = $tag;
- }
- public function getTag()
- {
- return $this->tag;
- }
-}
-
-class Google_Service_Dataflow_SideInputInfoKind extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_Sink extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $codec;
- public $spec;
-
-
- public function setCodec($codec)
- {
- $this->codec = $codec;
- }
- public function getCodec()
- {
- return $this->codec;
- }
- public function setSpec($spec)
- {
- $this->spec = $spec;
- }
- public function getSpec()
- {
- return $this->spec;
- }
-}
-
-class Google_Service_Dataflow_SinkCodec extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_SinkSpec extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_Source extends Google_Collection
-{
- protected $collection_key = 'baseSpecs';
- protected $internal_gapi_mappings = array(
- );
- public $baseSpecs;
- public $codec;
- public $doesNotNeedSplitting;
- protected $metadataType = 'Google_Service_Dataflow_SourceMetadata';
- protected $metadataDataType = '';
- public $spec;
-
-
- public function setBaseSpecs($baseSpecs)
- {
- $this->baseSpecs = $baseSpecs;
- }
- public function getBaseSpecs()
- {
- return $this->baseSpecs;
- }
- public function setCodec($codec)
- {
- $this->codec = $codec;
- }
- public function getCodec()
- {
- return $this->codec;
- }
- public function setDoesNotNeedSplitting($doesNotNeedSplitting)
- {
- $this->doesNotNeedSplitting = $doesNotNeedSplitting;
- }
- public function getDoesNotNeedSplitting()
- {
- return $this->doesNotNeedSplitting;
- }
- public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata)
- {
- $this->metadata = $metadata;
- }
- public function getMetadata()
- {
- return $this->metadata;
- }
- public function setSpec($spec)
- {
- $this->spec = $spec;
- }
- public function getSpec()
- {
- return $this->spec;
- }
-}
-
-class Google_Service_Dataflow_SourceBaseSpecs extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_SourceCodec extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_SourceGetMetadataRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $sourceType = 'Google_Service_Dataflow_Source';
- protected $sourceDataType = '';
-
-
- public function setSource(Google_Service_Dataflow_Source $source)
- {
- $this->source = $source;
- }
- public function getSource()
- {
- return $this->source;
- }
-}
-
-class Google_Service_Dataflow_SourceGetMetadataResponse extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $metadataType = 'Google_Service_Dataflow_SourceMetadata';
- protected $metadataDataType = '';
-
-
- public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata)
- {
- $this->metadata = $metadata;
- }
- public function getMetadata()
- {
- return $this->metadata;
- }
-}
-
-class Google_Service_Dataflow_SourceMetadata extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $estimatedSizeBytes;
- public $infinite;
- public $producesSortedKeys;
-
-
- public function setEstimatedSizeBytes($estimatedSizeBytes)
- {
- $this->estimatedSizeBytes = $estimatedSizeBytes;
- }
- public function getEstimatedSizeBytes()
- {
- return $this->estimatedSizeBytes;
- }
- public function setInfinite($infinite)
- {
- $this->infinite = $infinite;
- }
- public function getInfinite()
- {
- return $this->infinite;
- }
- public function setProducesSortedKeys($producesSortedKeys)
- {
- $this->producesSortedKeys = $producesSortedKeys;
- }
- public function getProducesSortedKeys()
- {
- return $this->producesSortedKeys;
- }
-}
-
-class Google_Service_Dataflow_SourceOperationRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataRequest';
- protected $getMetadataDataType = '';
- protected $splitType = 'Google_Service_Dataflow_SourceSplitRequest';
- protected $splitDataType = '';
-
-
- public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataRequest $getMetadata)
- {
- $this->getMetadata = $getMetadata;
- }
- public function getGetMetadata()
- {
- return $this->getMetadata;
- }
- public function setSplit(Google_Service_Dataflow_SourceSplitRequest $split)
- {
- $this->split = $split;
- }
- public function getSplit()
- {
- return $this->split;
- }
-}
-
-class Google_Service_Dataflow_SourceOperationResponse extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataResponse';
- protected $getMetadataDataType = '';
- protected $splitType = 'Google_Service_Dataflow_SourceSplitResponse';
- protected $splitDataType = '';
-
-
- public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataResponse $getMetadata)
- {
- $this->getMetadata = $getMetadata;
- }
- public function getGetMetadata()
- {
- return $this->getMetadata;
- }
- public function setSplit(Google_Service_Dataflow_SourceSplitResponse $split)
- {
- $this->split = $split;
- }
- public function getSplit()
- {
- return $this->split;
- }
-}
-
-class Google_Service_Dataflow_SourceSpec extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_SourceSplitOptions extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $desiredShardSizeBytes;
-
-
- public function setDesiredShardSizeBytes($desiredShardSizeBytes)
- {
- $this->desiredShardSizeBytes = $desiredShardSizeBytes;
- }
- public function getDesiredShardSizeBytes()
- {
- return $this->desiredShardSizeBytes;
- }
-}
-
-class Google_Service_Dataflow_SourceSplitRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $optionsType = 'Google_Service_Dataflow_SourceSplitOptions';
- protected $optionsDataType = '';
- protected $sourceType = 'Google_Service_Dataflow_Source';
- protected $sourceDataType = '';
-
-
- public function setOptions(Google_Service_Dataflow_SourceSplitOptions $options)
- {
- $this->options = $options;
- }
- public function getOptions()
- {
- return $this->options;
- }
- public function setSource(Google_Service_Dataflow_Source $source)
- {
- $this->source = $source;
- }
- public function getSource()
- {
- return $this->source;
- }
-}
-
-class Google_Service_Dataflow_SourceSplitResponse extends Google_Collection
-{
- protected $collection_key = 'shards';
- protected $internal_gapi_mappings = array(
- );
- public $outcome;
- protected $shardsType = 'Google_Service_Dataflow_SourceSplitShard';
- protected $shardsDataType = 'array';
-
-
- public function setOutcome($outcome)
- {
- $this->outcome = $outcome;
- }
- public function getOutcome()
- {
- return $this->outcome;
- }
- public function setShards($shards)
- {
- $this->shards = $shards;
- }
- public function getShards()
- {
- return $this->shards;
- }
-}
-
-class Google_Service_Dataflow_SourceSplitShard extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $derivationMode;
- protected $sourceType = 'Google_Service_Dataflow_Source';
- protected $sourceDataType = '';
-
-
- public function setDerivationMode($derivationMode)
- {
- $this->derivationMode = $derivationMode;
- }
- public function getDerivationMode()
- {
- return $this->derivationMode;
- }
- public function setSource(Google_Service_Dataflow_Source $source)
- {
- $this->source = $source;
- }
- public function getSource()
- {
- return $this->source;
- }
-}
-
-class Google_Service_Dataflow_Status extends Google_Collection
-{
- protected $collection_key = 'details';
- protected $internal_gapi_mappings = array(
- );
- public $code;
- public $details;
- public $message;
-
-
- public function setCode($code)
- {
- $this->code = $code;
- }
- public function getCode()
- {
- return $this->code;
- }
- public function setDetails($details)
- {
- $this->details = $details;
- }
- public function getDetails()
- {
- return $this->details;
- }
- public function setMessage($message)
- {
- $this->message = $message;
- }
- public function getMessage()
- {
- return $this->message;
- }
-}
-
-class Google_Service_Dataflow_StatusDetails extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_Step extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $kind;
- public $name;
- public $properties;
-
-
- 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 setProperties($properties)
- {
- $this->properties = $properties;
- }
- public function getProperties()
- {
- return $this->properties;
- }
-}
-
-class Google_Service_Dataflow_StepProperties extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_StreamLocation extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $pubsubLocationType = 'Google_Service_Dataflow_PubsubLocation';
- protected $pubsubLocationDataType = '';
- protected $streamingStageLocationType = 'Google_Service_Dataflow_StreamingStageLocation';
- protected $streamingStageLocationDataType = '';
-
-
- public function setPubsubLocation(Google_Service_Dataflow_PubsubLocation $pubsubLocation)
- {
- $this->pubsubLocation = $pubsubLocation;
- }
- public function getPubsubLocation()
- {
- return $this->pubsubLocation;
- }
- public function setStreamingStageLocation(Google_Service_Dataflow_StreamingStageLocation $streamingStageLocation)
- {
- $this->streamingStageLocation = $streamingStageLocation;
- }
- public function getStreamingStageLocation()
- {
- return $this->streamingStageLocation;
- }
-}
-
-class Google_Service_Dataflow_StreamingSetupTask extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $receiveWorkPort;
- protected $streamingComputationTopologyType = 'Google_Service_Dataflow_TopologyConfig';
- protected $streamingComputationTopologyDataType = '';
- public $workerHarnessPort;
-
-
- public function setReceiveWorkPort($receiveWorkPort)
- {
- $this->receiveWorkPort = $receiveWorkPort;
- }
- public function getReceiveWorkPort()
- {
- return $this->receiveWorkPort;
- }
- public function setStreamingComputationTopology(Google_Service_Dataflow_TopologyConfig $streamingComputationTopology)
- {
- $this->streamingComputationTopology = $streamingComputationTopology;
- }
- public function getStreamingComputationTopology()
- {
- return $this->streamingComputationTopology;
- }
- public function setWorkerHarnessPort($workerHarnessPort)
- {
- $this->workerHarnessPort = $workerHarnessPort;
- }
- public function getWorkerHarnessPort()
- {
- return $this->workerHarnessPort;
- }
-}
-
-class Google_Service_Dataflow_StreamingStageLocation extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $streamId;
-
-
- public function setStreamId($streamId)
- {
- $this->streamId = $streamId;
- }
- public function getStreamId()
- {
- return $this->streamId;
- }
-}
-
-class Google_Service_Dataflow_TaskRunnerSettings extends Google_Collection
-{
- protected $collection_key = 'oauthScopes';
- protected $internal_gapi_mappings = array(
- );
- public $alsologtostderr;
- public $baseTaskDir;
- public $baseUrl;
- public $commandlinesFileName;
- public $continueOnException;
- public $dataflowApiVersion;
- public $harnessCommand;
- public $languageHint;
- public $logDir;
- public $logToSerialconsole;
- public $logUploadLocation;
- public $oauthScopes;
- protected $parallelWorkerSettingsType = 'Google_Service_Dataflow_WorkerSettings';
- protected $parallelWorkerSettingsDataType = '';
- public $streamingWorkerMainClass;
- public $taskGroup;
- public $taskUser;
- public $tempStoragePrefix;
- public $vmId;
- public $workflowFileName;
-
-
- public function setAlsologtostderr($alsologtostderr)
- {
- $this->alsologtostderr = $alsologtostderr;
- }
- public function getAlsologtostderr()
- {
- return $this->alsologtostderr;
- }
- public function setBaseTaskDir($baseTaskDir)
- {
- $this->baseTaskDir = $baseTaskDir;
- }
- public function getBaseTaskDir()
- {
- return $this->baseTaskDir;
- }
- public function setBaseUrl($baseUrl)
- {
- $this->baseUrl = $baseUrl;
- }
- public function getBaseUrl()
- {
- return $this->baseUrl;
- }
- public function setCommandlinesFileName($commandlinesFileName)
- {
- $this->commandlinesFileName = $commandlinesFileName;
- }
- public function getCommandlinesFileName()
- {
- return $this->commandlinesFileName;
- }
- public function setContinueOnException($continueOnException)
- {
- $this->continueOnException = $continueOnException;
- }
- public function getContinueOnException()
- {
- return $this->continueOnException;
- }
- public function setDataflowApiVersion($dataflowApiVersion)
- {
- $this->dataflowApiVersion = $dataflowApiVersion;
- }
- public function getDataflowApiVersion()
- {
- return $this->dataflowApiVersion;
- }
- public function setHarnessCommand($harnessCommand)
- {
- $this->harnessCommand = $harnessCommand;
- }
- public function getHarnessCommand()
- {
- return $this->harnessCommand;
- }
- public function setLanguageHint($languageHint)
- {
- $this->languageHint = $languageHint;
- }
- public function getLanguageHint()
- {
- return $this->languageHint;
- }
- public function setLogDir($logDir)
- {
- $this->logDir = $logDir;
- }
- public function getLogDir()
- {
- return $this->logDir;
- }
- public function setLogToSerialconsole($logToSerialconsole)
- {
- $this->logToSerialconsole = $logToSerialconsole;
- }
- public function getLogToSerialconsole()
- {
- return $this->logToSerialconsole;
- }
- public function setLogUploadLocation($logUploadLocation)
- {
- $this->logUploadLocation = $logUploadLocation;
- }
- public function getLogUploadLocation()
- {
- return $this->logUploadLocation;
- }
- public function setOauthScopes($oauthScopes)
- {
- $this->oauthScopes = $oauthScopes;
- }
- public function getOauthScopes()
- {
- return $this->oauthScopes;
- }
- public function setParallelWorkerSettings(Google_Service_Dataflow_WorkerSettings $parallelWorkerSettings)
- {
- $this->parallelWorkerSettings = $parallelWorkerSettings;
- }
- public function getParallelWorkerSettings()
- {
- return $this->parallelWorkerSettings;
- }
- public function setStreamingWorkerMainClass($streamingWorkerMainClass)
- {
- $this->streamingWorkerMainClass = $streamingWorkerMainClass;
- }
- public function getStreamingWorkerMainClass()
- {
- return $this->streamingWorkerMainClass;
- }
- public function setTaskGroup($taskGroup)
- {
- $this->taskGroup = $taskGroup;
- }
- public function getTaskGroup()
- {
- return $this->taskGroup;
- }
- public function setTaskUser($taskUser)
- {
- $this->taskUser = $taskUser;
- }
- public function getTaskUser()
- {
- return $this->taskUser;
- }
- public function setTempStoragePrefix($tempStoragePrefix)
- {
- $this->tempStoragePrefix = $tempStoragePrefix;
- }
- public function getTempStoragePrefix()
- {
- return $this->tempStoragePrefix;
- }
- public function setVmId($vmId)
- {
- $this->vmId = $vmId;
- }
- public function getVmId()
- {
- return $this->vmId;
- }
- public function setWorkflowFileName($workflowFileName)
- {
- $this->workflowFileName = $workflowFileName;
- }
- public function getWorkflowFileName()
- {
- return $this->workflowFileName;
- }
-}
-
-class Google_Service_Dataflow_TopologyConfig extends Google_Collection
-{
- protected $collection_key = 'dataDiskAssignments';
- protected $internal_gapi_mappings = array(
- );
- protected $computationsType = 'Google_Service_Dataflow_ComputationTopology';
- protected $computationsDataType = 'array';
- protected $dataDiskAssignmentsType = 'Google_Service_Dataflow_DataDiskAssignment';
- protected $dataDiskAssignmentsDataType = 'array';
-
-
- public function setComputations($computations)
- {
- $this->computations = $computations;
- }
- public function getComputations()
- {
- return $this->computations;
- }
- public function setDataDiskAssignments($dataDiskAssignments)
- {
- $this->dataDiskAssignments = $dataDiskAssignments;
- }
- public function getDataDiskAssignments()
- {
- return $this->dataDiskAssignments;
- }
-}
-
-class Google_Service_Dataflow_WorkItem extends Google_Collection
-{
- protected $collection_key = 'packages';
- protected $internal_gapi_mappings = array(
- );
- public $configuration;
- public $id;
- public $jobId;
- public $leaseExpireTime;
- protected $mapTaskType = 'Google_Service_Dataflow_MapTask';
- protected $mapTaskDataType = '';
- protected $packagesType = 'Google_Service_Dataflow_Package';
- protected $packagesDataType = 'array';
- public $projectId;
- public $reportStatusInterval;
- protected $seqMapTaskType = 'Google_Service_Dataflow_SeqMapTask';
- protected $seqMapTaskDataType = '';
- protected $shellTaskType = 'Google_Service_Dataflow_ShellTask';
- protected $shellTaskDataType = '';
- protected $sourceOperationTaskType = 'Google_Service_Dataflow_SourceOperationRequest';
- protected $sourceOperationTaskDataType = '';
- protected $streamingSetupTaskType = 'Google_Service_Dataflow_StreamingSetupTask';
- protected $streamingSetupTaskDataType = '';
-
-
- public function setConfiguration($configuration)
- {
- $this->configuration = $configuration;
- }
- public function getConfiguration()
- {
- return $this->configuration;
- }
- public function setId($id)
- {
- $this->id = $id;
- }
- public function getId()
- {
- return $this->id;
- }
- public function setJobId($jobId)
- {
- $this->jobId = $jobId;
- }
- public function getJobId()
- {
- return $this->jobId;
- }
- public function setLeaseExpireTime($leaseExpireTime)
- {
- $this->leaseExpireTime = $leaseExpireTime;
- }
- public function getLeaseExpireTime()
- {
- return $this->leaseExpireTime;
- }
- public function setMapTask(Google_Service_Dataflow_MapTask $mapTask)
- {
- $this->mapTask = $mapTask;
- }
- public function getMapTask()
- {
- return $this->mapTask;
- }
- public function setPackages($packages)
- {
- $this->packages = $packages;
- }
- public function getPackages()
- {
- return $this->packages;
- }
- public function setProjectId($projectId)
- {
- $this->projectId = $projectId;
- }
- public function getProjectId()
- {
- return $this->projectId;
- }
- public function setReportStatusInterval($reportStatusInterval)
- {
- $this->reportStatusInterval = $reportStatusInterval;
- }
- public function getReportStatusInterval()
- {
- return $this->reportStatusInterval;
- }
- public function setSeqMapTask(Google_Service_Dataflow_SeqMapTask $seqMapTask)
- {
- $this->seqMapTask = $seqMapTask;
- }
- public function getSeqMapTask()
- {
- return $this->seqMapTask;
- }
- public function setShellTask(Google_Service_Dataflow_ShellTask $shellTask)
- {
- $this->shellTask = $shellTask;
- }
- public function getShellTask()
- {
- return $this->shellTask;
- }
- public function setSourceOperationTask(Google_Service_Dataflow_SourceOperationRequest $sourceOperationTask)
- {
- $this->sourceOperationTask = $sourceOperationTask;
- }
- public function getSourceOperationTask()
- {
- return $this->sourceOperationTask;
- }
- public function setStreamingSetupTask(Google_Service_Dataflow_StreamingSetupTask $streamingSetupTask)
- {
- $this->streamingSetupTask = $streamingSetupTask;
- }
- public function getStreamingSetupTask()
- {
- return $this->streamingSetupTask;
- }
-}
-
-class Google_Service_Dataflow_WorkItemServiceState extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $harnessData;
- public $leaseExpireTime;
- public $reportStatusInterval;
- protected $suggestedStopPointType = 'Google_Service_Dataflow_ApproximateProgress';
- protected $suggestedStopPointDataType = '';
- protected $suggestedStopPositionType = 'Google_Service_Dataflow_Position';
- protected $suggestedStopPositionDataType = '';
-
-
- public function setHarnessData($harnessData)
- {
- $this->harnessData = $harnessData;
- }
- public function getHarnessData()
- {
- return $this->harnessData;
- }
- public function setLeaseExpireTime($leaseExpireTime)
- {
- $this->leaseExpireTime = $leaseExpireTime;
- }
- public function getLeaseExpireTime()
- {
- return $this->leaseExpireTime;
- }
- public function setReportStatusInterval($reportStatusInterval)
- {
- $this->reportStatusInterval = $reportStatusInterval;
- }
- public function getReportStatusInterval()
- {
- return $this->reportStatusInterval;
- }
- public function setSuggestedStopPoint(Google_Service_Dataflow_ApproximateProgress $suggestedStopPoint)
- {
- $this->suggestedStopPoint = $suggestedStopPoint;
- }
- public function getSuggestedStopPoint()
- {
- return $this->suggestedStopPoint;
- }
- public function setSuggestedStopPosition(Google_Service_Dataflow_Position $suggestedStopPosition)
- {
- $this->suggestedStopPosition = $suggestedStopPosition;
- }
- public function getSuggestedStopPosition()
- {
- return $this->suggestedStopPosition;
- }
-}
-
-class Google_Service_Dataflow_WorkItemServiceStateHarnessData extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_WorkItemStatus extends Google_Collection
-{
- protected $collection_key = 'metricUpdates';
- protected $internal_gapi_mappings = array(
- );
- public $completed;
- protected $errorsType = 'Google_Service_Dataflow_Status';
- protected $errorsDataType = 'array';
- protected $metricUpdatesType = 'Google_Service_Dataflow_MetricUpdate';
- protected $metricUpdatesDataType = 'array';
- protected $progressType = 'Google_Service_Dataflow_ApproximateProgress';
- protected $progressDataType = '';
- public $reportIndex;
- public $requestedLeaseDuration;
- protected $sourceOperationResponseType = 'Google_Service_Dataflow_SourceOperationResponse';
- protected $sourceOperationResponseDataType = '';
- protected $stopPositionType = 'Google_Service_Dataflow_Position';
- protected $stopPositionDataType = '';
- public $workItemId;
-
-
- public function setCompleted($completed)
- {
- $this->completed = $completed;
- }
- public function getCompleted()
- {
- return $this->completed;
- }
- public function setErrors($errors)
- {
- $this->errors = $errors;
- }
- public function getErrors()
- {
- return $this->errors;
- }
- public function setMetricUpdates($metricUpdates)
- {
- $this->metricUpdates = $metricUpdates;
- }
- public function getMetricUpdates()
- {
- return $this->metricUpdates;
- }
- public function setProgress(Google_Service_Dataflow_ApproximateProgress $progress)
- {
- $this->progress = $progress;
- }
- public function getProgress()
- {
- return $this->progress;
- }
- public function setReportIndex($reportIndex)
- {
- $this->reportIndex = $reportIndex;
- }
- public function getReportIndex()
- {
- return $this->reportIndex;
- }
- public function setRequestedLeaseDuration($requestedLeaseDuration)
- {
- $this->requestedLeaseDuration = $requestedLeaseDuration;
- }
- public function getRequestedLeaseDuration()
- {
- return $this->requestedLeaseDuration;
- }
- public function setSourceOperationResponse(Google_Service_Dataflow_SourceOperationResponse $sourceOperationResponse)
- {
- $this->sourceOperationResponse = $sourceOperationResponse;
- }
- public function getSourceOperationResponse()
- {
- return $this->sourceOperationResponse;
- }
- public function setStopPosition(Google_Service_Dataflow_Position $stopPosition)
- {
- $this->stopPosition = $stopPosition;
- }
- public function getStopPosition()
- {
- return $this->stopPosition;
- }
- public function setWorkItemId($workItemId)
- {
- $this->workItemId = $workItemId;
- }
- public function getWorkItemId()
- {
- return $this->workItemId;
- }
-}
-
-class Google_Service_Dataflow_WorkerPool extends Google_Collection
-{
- protected $collection_key = 'packages';
- protected $internal_gapi_mappings = array(
- );
- protected $autoscalingSettingsType = 'Google_Service_Dataflow_AutoscalingSettings';
- protected $autoscalingSettingsDataType = '';
- protected $dataDisksType = 'Google_Service_Dataflow_Disk';
- protected $dataDisksDataType = 'array';
- public $defaultPackageSet;
- public $diskSizeGb;
- public $diskSourceImage;
- public $kind;
- public $machineType;
- public $metadata;
- public $numWorkers;
- public $onHostMaintenance;
- protected $packagesType = 'Google_Service_Dataflow_Package';
- protected $packagesDataType = 'array';
- protected $taskrunnerSettingsType = 'Google_Service_Dataflow_TaskRunnerSettings';
- protected $taskrunnerSettingsDataType = '';
- public $teardownPolicy;
- public $zone;
-
-
- public function setAutoscalingSettings(Google_Service_Dataflow_AutoscalingSettings $autoscalingSettings)
- {
- $this->autoscalingSettings = $autoscalingSettings;
- }
- public function getAutoscalingSettings()
- {
- return $this->autoscalingSettings;
- }
- public function setDataDisks($dataDisks)
- {
- $this->dataDisks = $dataDisks;
- }
- public function getDataDisks()
- {
- return $this->dataDisks;
- }
- public function setDefaultPackageSet($defaultPackageSet)
- {
- $this->defaultPackageSet = $defaultPackageSet;
- }
- public function getDefaultPackageSet()
- {
- return $this->defaultPackageSet;
- }
- public function setDiskSizeGb($diskSizeGb)
- {
- $this->diskSizeGb = $diskSizeGb;
- }
- public function getDiskSizeGb()
- {
- return $this->diskSizeGb;
- }
- public function setDiskSourceImage($diskSourceImage)
- {
- $this->diskSourceImage = $diskSourceImage;
- }
- public function getDiskSourceImage()
- {
- return $this->diskSourceImage;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setMachineType($machineType)
- {
- $this->machineType = $machineType;
- }
- public function getMachineType()
- {
- return $this->machineType;
- }
- public function setMetadata($metadata)
- {
- $this->metadata = $metadata;
- }
- public function getMetadata()
- {
- return $this->metadata;
- }
- public function setNumWorkers($numWorkers)
- {
- $this->numWorkers = $numWorkers;
- }
- public function getNumWorkers()
- {
- return $this->numWorkers;
- }
- public function setOnHostMaintenance($onHostMaintenance)
- {
- $this->onHostMaintenance = $onHostMaintenance;
- }
- public function getOnHostMaintenance()
- {
- return $this->onHostMaintenance;
- }
- public function setPackages($packages)
- {
- $this->packages = $packages;
- }
- public function getPackages()
- {
- return $this->packages;
- }
- public function setTaskrunnerSettings(Google_Service_Dataflow_TaskRunnerSettings $taskrunnerSettings)
- {
- $this->taskrunnerSettings = $taskrunnerSettings;
- }
- public function getTaskrunnerSettings()
- {
- return $this->taskrunnerSettings;
- }
- public function setTeardownPolicy($teardownPolicy)
- {
- $this->teardownPolicy = $teardownPolicy;
- }
- public function getTeardownPolicy()
- {
- return $this->teardownPolicy;
- }
- public function setZone($zone)
- {
- $this->zone = $zone;
- }
- public function getZone()
- {
- return $this->zone;
- }
-}
-
-class Google_Service_Dataflow_WorkerPoolMetadata extends Google_Model
-{
-}
-
-class Google_Service_Dataflow_WorkerSettings extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $baseUrl;
- public $reportingEnabled;
- public $servicePath;
- public $shuffleServicePath;
- public $tempStoragePrefix;
- public $workerId;
-
-
- public function setBaseUrl($baseUrl)
- {
- $this->baseUrl = $baseUrl;
- }
- public function getBaseUrl()
- {
- return $this->baseUrl;
- }
- public function setReportingEnabled($reportingEnabled)
- {
- $this->reportingEnabled = $reportingEnabled;
- }
- public function getReportingEnabled()
- {
- return $this->reportingEnabled;
- }
- public function setServicePath($servicePath)
- {
- $this->servicePath = $servicePath;
- }
- public function getServicePath()
- {
- return $this->servicePath;
- }
- public function setShuffleServicePath($shuffleServicePath)
- {
- $this->shuffleServicePath = $shuffleServicePath;
- }
- public function getShuffleServicePath()
- {
- return $this->shuffleServicePath;
- }
- public function setTempStoragePrefix($tempStoragePrefix)
- {
- $this->tempStoragePrefix = $tempStoragePrefix;
- }
- public function getTempStoragePrefix()
- {
- return $this->tempStoragePrefix;
- }
- public function setWorkerId($workerId)
- {
- $this->workerId = $workerId;
- }
- public function getWorkerId()
- {
- return $this->workerId;
- }
-}
-
-class Google_Service_Dataflow_WriteInstruction extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $inputType = 'Google_Service_Dataflow_InstructionInput';
- protected $inputDataType = '';
- protected $sinkType = 'Google_Service_Dataflow_Sink';
- protected $sinkDataType = '';
-
-
- public function setInput(Google_Service_Dataflow_InstructionInput $input)
- {
- $this->input = $input;
- }
- public function getInput()
- {
- return $this->input;
- }
- public function setSink(Google_Service_Dataflow_Sink $sink)
- {
- $this->sink = $sink;
- }
- public function getSink()
- {
- return $this->sink;
- }
-}
From a1cf8a561139ee97a3314061ccc2d90fb28e5494 Mon Sep 17 00:00:00 2001
From: Silvano Luciani - * For more information about this service, see the API - * Documentation - *
- * - * @author Google, Inc. - */ -class Google_Service_SQLAdmin extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** Manage your Google SQL Service instances. */ - const SQLSERVICE_ADMIN = - "https://www.googleapis.com/auth/sqlservice.admin"; - - public $backupRuns; - public $databases; - public $flags; - public $instances; - public $operations; - public $sslCerts; - public $tiers; - public $users; - - - /** - * Constructs the internal representation of the SQLAdmin service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'sql/v1beta4/'; - $this->version = 'v1beta4'; - $this->serviceName = 'sqladmin'; - - $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource( - $this, - $this->serviceName, - 'backupRuns', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->databases = new Google_Service_SQLAdmin_Databases_Resource( - $this, - $this->serviceName, - 'databases', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/databases', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/databases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->flags = new Google_Service_SQLAdmin_Flags_Resource( - $this, - $this->serviceName, - 'flags', - array( - 'methods' => array( - 'list' => array( - 'path' => 'flags', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->instances = new Google_Service_SQLAdmin_Instances_Resource( - $this, - $this->serviceName, - 'instances', - array( - 'methods' => array( - 'clone' => array( - 'path' => 'projects/{project}/instances/{instance}/clone', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'projects/{project}/instances/{instance}/export', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'import' => array( - 'path' => 'projects/{project}/instances/{instance}/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'promoteReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/promoteReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetSslConfig' => array( - 'path' => 'projects/{project}/instances/{instance}/resetSslConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restart' => array( - 'path' => 'projects/{project}/instances/{instance}/restart', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restoreBackup' => array( - 'path' => 'projects/{project}/instances/{instance}/restoreBackup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'startReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/startReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'stopReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/stopReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operations = new Google_Service_SQLAdmin_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->sslCerts = new Google_Service_SQLAdmin_SslCerts_Resource( - $this, - $this->serviceName, - 'sslCerts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tiers = new Google_Service_SQLAdmin_Tiers_Resource( - $this, - $this->serviceName, - 'tiers', - array( - 'methods' => array( - 'list' => array( - 'path' => 'projects/{project}/tiers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_SQLAdmin_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'host' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'host' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "backupRuns" collection of methods. - * Typical usage is: - *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $backupRuns = $sqladminService->backupRuns;
- *
- */
-class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resource
-{
-
- /**
- * Retrieves a resource containing information about a backup run.
- * (backupRuns.get)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param string $id The ID of this Backup Run.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_BackupRun
- */
- public function get($project, $instance, $id, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'id' => $id);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun");
- }
-
- /**
- * Lists all backup runs associated with a given instance and configuration in
- * the reverse chronological order of the enqueued time.
- * (backupRuns.listBackupRuns)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults Maximum number of backup runs per response.
- * @opt_param string pageToken A previously-returned page token representing
- * part of the larger set of results to view.
- * @return Google_Service_SQLAdmin_BackupRunsListResponse
- */
- public function listBackupRuns($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse");
- }
-}
-
-/**
- * The "databases" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $databases = $sqladminService->databases;
- *
- */
-class Google_Service_SQLAdmin_Databases_Resource extends Google_Service_Resource
-{
-
- /**
- * Deletes a resource containing information about a database inside a Cloud SQL
- * instance. (databases.delete)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param string $database Name of the database to be deleted in the instance.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function delete($project, $instance, $database, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'database' => $database);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Retrieves a resource containing information about a database inside a Cloud
- * SQL instance. (databases.get)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param string $database Name of the database in the instance.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Database
- */
- public function get($project, $instance, $database, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'database' => $database);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_SQLAdmin_Database");
- }
-
- /**
- * Inserts a resource containing information about a database inside a Cloud SQL
- * instance. (databases.insert)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param Google_Database $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function insert($project, $instance, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Lists databases in the specified Cloud SQL instance.
- * (databases.listDatabases)
- *
- * @param string $project Project ID of the project for which to list Cloud SQL
- * instances.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_DatabasesListResponse
- */
- public function listDatabases($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_DatabasesListResponse");
- }
-
- /**
- * Updates a resource containing information about a database inside a Cloud SQL
- * instance. This method supports patch semantics. (databases.patch)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param string $database Name of the database to be updated in the instance.
- * @param Google_Database $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function patch($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Updates a resource containing information about a database inside a Cloud SQL
- * instance. (databases.update)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param string $database Name of the database to be updated in the instance.
- * @param Google_Database $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function update($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
- }
-}
-
-/**
- * The "flags" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $flags = $sqladminService->flags;
- *
- */
-class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource
-{
-
- /**
- * List all available database flags for Google Cloud SQL instances.
- * (flags.listFlags)
- *
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_FlagsListResponse
- */
- public function listFlags($optParams = array())
- {
- $params = array();
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse");
- }
-}
-
-/**
- * The "instances" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $instances = $sqladminService->instances;
- *
- */
-class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource
-{
-
- /**
- * Creates a Cloud SQL instance as a clone of the source instance.
- * (instances.cloneInstances)
- *
- * @param string $project Project ID of the source as well as the clone Cloud
- * SQL instance.
- * @param string $instance The ID of the Cloud SQL instance to be cloned
- * (source). This does not include the project ID.
- * @param Google_InstancesCloneRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function cloneInstances($project, $instance, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('clone', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Deletes a Cloud SQL instance. (instances.delete)
- *
- * @param string $project Project ID of the project that contains the instance
- * to be deleted.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function delete($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a
- * MySQL dump file. (instances.export)
- *
- * @param string $project Project ID of the project that contains the instance
- * to be exported.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_InstancesExportRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Retrieves a resource containing information about a Cloud SQL instance.
- * (instances.get)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_DatabaseInstance
- */
- public function get($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance");
- }
-
- /**
- * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud
- * Storage. (instances.import)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_InstancesImportRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('import', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Creates a new Cloud SQL instance. (instances.insert)
- *
- * @param string $project Project ID of the project to which the newly created
- * Cloud SQL instances should belong.
- * @param Google_DatabaseInstance $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Lists instances under a given project in the alphabetical order of the
- * instance name. (instances.listInstances)
- *
- * @param string $project Project ID of the project for which to list Cloud SQL
- * instances.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken A previously-returned page token representing
- * part of the larger set of results to view.
- * @opt_param string maxResults The maximum number of results to return per
- * response.
- * @return Google_Service_SQLAdmin_InstancesListResponse
- */
- public function listInstances($project, $optParams = array())
- {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse");
- }
-
- /**
- * Updates settings of a Cloud SQL instance. Caution: This is not a partial
- * update, so you must include values for all the settings that you want to
- * retain. For partial updates, use patch.. This method supports patch
- * semantics. (instances.patch)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_DatabaseInstance $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Promotes the read replica instance to be a stand-alone Cloud SQL instance.
- * (instances.promoteReplica)
- *
- * @param string $project ID of the project that contains the read replica.
- * @param string $instance Cloud SQL read replica instance name.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function promoteReplica($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Deletes all client certificates and generates a new server SSL certificate
- * for the instance. The changes will not take effect until the instance is
- * restarted. Existing instances without a server certificate will need to call
- * this once to set a server certificate. (instances.resetSslConfig)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function resetSslConfig($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Restarts a Cloud SQL instance. (instances.restart)
- *
- * @param string $project Project ID of the project that contains the instance
- * to be restarted.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function restart($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('restart', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Restores a backup of a Cloud SQL instance. (instances.restoreBackup)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_InstancesRestoreBackupRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function restoreBackup($project, $instance, Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Starts the replication in the read replica instance. (instances.startReplica)
- *
- * @param string $project ID of the project that contains the read replica.
- * @param string $instance Cloud SQL read replica instance name.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function startReplica($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('startReplica', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Stops the replication in the read replica instance. (instances.stopReplica)
- *
- * @param string $project ID of the project that contains the read replica.
- * @param string $instance Cloud SQL read replica instance name.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function stopReplica($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('stopReplica', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Updates settings of a Cloud SQL instance. Caution: This is not a partial
- * update, so you must include values for all the settings that you want to
- * retain. For partial updates, use patch. (instances.update)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_DatabaseInstance $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
- }
-}
-
-/**
- * The "operations" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $operations = $sqladminService->operations;
- *
- */
-class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resource
-{
-
- /**
- * Retrieves an instance operation that has been performed on an instance.
- * (operations.get)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $operation Instance operation ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function get($project, $operation, $optParams = array())
- {
- $params = array('project' => $project, 'operation' => $operation);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Lists all instance operations that have been performed on the given Cloud SQL
- * instance in the reverse chronological order of the start time.
- * (operations.listOperations)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string maxResults Maximum number of operations per response.
- * @opt_param string pageToken A previously-returned page token representing
- * part of the larger set of results to view.
- * @return Google_Service_SQLAdmin_OperationsListResponse
- */
- public function listOperations($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_OperationsListResponse");
- }
-}
-
-/**
- * The "sslCerts" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $sslCerts = $sqladminService->sslCerts;
- *
- */
-class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource
-{
-
- /**
- * Deletes the SSL certificate. The change will not take effect until the
- * instance is restarted. (sslCerts.delete)
- *
- * @param string $project Project ID of the project that contains the instance
- * to be deleted.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param string $sha1Fingerprint Sha1 FingerPrint.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function delete($project, $instance, $sha1Fingerprint, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Retrieves a particular SSL certificate. Does not include the private key
- * (required for usage). The private key must be saved from the response to
- * initial creation. (sslCerts.get)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param string $sha1Fingerprint Sha1 FingerPrint.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_SslCert
- */
- public function get($project, $instance, $sha1Fingerprint, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert");
- }
-
- /**
- * Creates an SSL certificate and returns it along with the private key and
- * server certificate authority. The new certificate will not be usable until
- * the instance is restarted. (sslCerts.insert)
- *
- * @param string $project Project ID of the project to which the newly created
- * Cloud SQL instances should belong.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_SslCertsInsertRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_SslCertsInsertResponse
- */
- public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInsertRequest $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse");
- }
-
- /**
- * Lists all of the current SSL certificates for the instance.
- * (sslCerts.listSslCerts)
- *
- * @param string $project Project ID of the project for which to list Cloud SQL
- * instances.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_SslCertsListResponse
- */
- public function listSslCerts($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_SslCertsListResponse");
- }
-}
-
-/**
- * The "tiers" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $tiers = $sqladminService->tiers;
- *
- */
-class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource
-{
-
- /**
- * Lists all available service tiers for Google Cloud SQL, for example D1, D2.
- * For related information, see Pricing. (tiers.listTiers)
- *
- * @param string $project Project ID of the project for which to list tiers.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_TiersListResponse
- */
- public function listTiers($project, $optParams = array())
- {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_TiersListResponse");
- }
-}
-
-/**
- * The "users" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $users = $sqladminService->users;
- *
- */
-class Google_Service_SQLAdmin_Users_Resource extends Google_Service_Resource
-{
-
- /**
- * Deletes a user from a Cloud SQL instance. (users.delete)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param string $host Host of the user in the instance.
- * @param string $name Name of the user in the instance.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function delete($project, $instance, $host, $name, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Creates a new user in a Cloud SQL instance. (users.insert)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param Google_User $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function insert($project, $instance, Google_Service_SQLAdmin_User $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Lists users in the specified Cloud SQL instance. (users.listUsers)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_UsersListResponse
- */
- public function listUsers($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_UsersListResponse");
- }
-
- /**
- * Updates an existing user in a Cloud SQL instance. (users.update)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param string $host Host of the user in the instance.
- * @param string $name Name of the user in the instance.
- * @param Google_User $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
- }
-}
-
-
-
-
-class Google_Service_SQLAdmin_AclEntry extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $expirationTime;
- public $kind;
- public $name;
- public $value;
-
-
- public function setExpirationTime($expirationTime)
- {
- $this->expirationTime = $expirationTime;
- }
- public function getExpirationTime()
- {
- return $this->expirationTime;
- }
- 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 setValue($value)
- {
- $this->value = $value;
- }
- public function getValue()
- {
- return $this->value;
- }
-}
-
-class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $binaryLogEnabled;
- public $enabled;
- public $kind;
- public $startTime;
-
-
- public function setBinaryLogEnabled($binaryLogEnabled)
- {
- $this->binaryLogEnabled = $binaryLogEnabled;
- }
- public function getBinaryLogEnabled()
- {
- return $this->binaryLogEnabled;
- }
- public function setEnabled($enabled)
- {
- $this->enabled = $enabled;
- }
- public function getEnabled()
- {
- return $this->enabled;
- }
- 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;
- }
-}
-
-class Google_Service_SQLAdmin_BackupRun extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $endTime;
- public $enqueuedTime;
- protected $errorType = 'Google_Service_SQLAdmin_OperationError';
- protected $errorDataType = '';
- public $id;
- public $instance;
- public $kind;
- public $selfLink;
- public $startTime;
- public $status;
- public $windowStartTime;
-
-
- public function setEndTime($endTime)
- {
- $this->endTime = $endTime;
- }
- public function getEndTime()
- {
- return $this->endTime;
- }
- public function setEnqueuedTime($enqueuedTime)
- {
- $this->enqueuedTime = $enqueuedTime;
- }
- public function getEnqueuedTime()
- {
- return $this->enqueuedTime;
- }
- public function setError(Google_Service_SQLAdmin_OperationError $error)
- {
- $this->error = $error;
- }
- public function getError()
- {
- return $this->error;
- }
- public function setId($id)
- {
- $this->id = $id;
- }
- public function getId()
- {
- return $this->id;
- }
- public function setInstance($instance)
- {
- $this->instance = $instance;
- }
- public function getInstance()
- {
- return $this->instance;
- }
- 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 setStartTime($startTime)
- {
- $this->startTime = $startTime;
- }
- public function getStartTime()
- {
- return $this->startTime;
- }
- public function setStatus($status)
- {
- $this->status = $status;
- }
- public function getStatus()
- {
- return $this->status;
- }
- public function setWindowStartTime($windowStartTime)
- {
- $this->windowStartTime = $windowStartTime;
- }
- public function getWindowStartTime()
- {
- return $this->windowStartTime;
- }
-}
-
-class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_BackupRun';
- protected $itemsDataType = 'array';
- public $kind;
- public $nextPageToken;
-
-
- 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_SQLAdmin_BinLogCoordinates extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $binLogFileName;
- public $binLogPosition;
- public $kind;
-
-
- public function setBinLogFileName($binLogFileName)
- {
- $this->binLogFileName = $binLogFileName;
- }
- public function getBinLogFileName()
- {
- return $this->binLogFileName;
- }
- public function setBinLogPosition($binLogPosition)
- {
- $this->binLogPosition = $binLogPosition;
- }
- public function getBinLogPosition()
- {
- return $this->binLogPosition;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
-}
-
-class Google_Service_SQLAdmin_CloneContext extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $binLogCoordinatesType = 'Google_Service_SQLAdmin_BinLogCoordinates';
- protected $binLogCoordinatesDataType = '';
- public $destinationInstanceName;
- public $kind;
-
-
- public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates)
- {
- $this->binLogCoordinates = $binLogCoordinates;
- }
- public function getBinLogCoordinates()
- {
- return $this->binLogCoordinates;
- }
- public function setDestinationInstanceName($destinationInstanceName)
- {
- $this->destinationInstanceName = $destinationInstanceName;
- }
- public function getDestinationInstanceName()
- {
- return $this->destinationInstanceName;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
-}
-
-class Google_Service_SQLAdmin_Database extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $charset;
- public $collation;
- public $etag;
- public $instance;
- public $kind;
- public $name;
- public $project;
- public $selfLink;
-
-
- public function setCharset($charset)
- {
- $this->charset = $charset;
- }
- public function getCharset()
- {
- return $this->charset;
- }
- public function setCollation($collation)
- {
- $this->collation = $collation;
- }
- public function getCollation()
- {
- return $this->collation;
- }
- public function setEtag($etag)
- {
- $this->etag = $etag;
- }
- public function getEtag()
- {
- return $this->etag;
- }
- public function setInstance($instance)
- {
- $this->instance = $instance;
- }
- public function getInstance()
- {
- return $this->instance;
- }
- 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 setProject($project)
- {
- $this->project = $project;
- }
- public function getProject()
- {
- return $this->project;
- }
- public function setSelfLink($selfLink)
- {
- $this->selfLink = $selfLink;
- }
- public function getSelfLink()
- {
- return $this->selfLink;
- }
-}
-
-class Google_Service_SQLAdmin_DatabaseFlags 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_SQLAdmin_DatabaseInstance extends Google_Collection
-{
- protected $collection_key = 'replicaNames';
- protected $internal_gapi_mappings = array(
- );
- public $currentDiskSize;
- public $databaseVersion;
- public $etag;
- public $instanceType;
- protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping';
- protected $ipAddressesDataType = 'array';
- public $ipv6Address;
- public $kind;
- public $masterInstanceName;
- public $maxDiskSize;
- public $name;
- public $project;
- public $region;
- public $replicaNames;
- public $selfLink;
- protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert';
- protected $serverCaCertDataType = '';
- public $serviceAccountEmailAddress;
- protected $settingsType = 'Google_Service_SQLAdmin_Settings';
- protected $settingsDataType = '';
- public $state;
-
-
- public function setCurrentDiskSize($currentDiskSize)
- {
- $this->currentDiskSize = $currentDiskSize;
- }
- public function getCurrentDiskSize()
- {
- return $this->currentDiskSize;
- }
- public function setDatabaseVersion($databaseVersion)
- {
- $this->databaseVersion = $databaseVersion;
- }
- public function getDatabaseVersion()
- {
- return $this->databaseVersion;
- }
- public function setEtag($etag)
- {
- $this->etag = $etag;
- }
- public function getEtag()
- {
- return $this->etag;
- }
- public function setInstanceType($instanceType)
- {
- $this->instanceType = $instanceType;
- }
- public function getInstanceType()
- {
- return $this->instanceType;
- }
- public function setIpAddresses($ipAddresses)
- {
- $this->ipAddresses = $ipAddresses;
- }
- public function getIpAddresses()
- {
- return $this->ipAddresses;
- }
- public function setIpv6Address($ipv6Address)
- {
- $this->ipv6Address = $ipv6Address;
- }
- public function getIpv6Address()
- {
- return $this->ipv6Address;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setMasterInstanceName($masterInstanceName)
- {
- $this->masterInstanceName = $masterInstanceName;
- }
- public function getMasterInstanceName()
- {
- return $this->masterInstanceName;
- }
- public function setMaxDiskSize($maxDiskSize)
- {
- $this->maxDiskSize = $maxDiskSize;
- }
- public function getMaxDiskSize()
- {
- return $this->maxDiskSize;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setProject($project)
- {
- $this->project = $project;
- }
- public function getProject()
- {
- return $this->project;
- }
- public function setRegion($region)
- {
- $this->region = $region;
- }
- public function getRegion()
- {
- return $this->region;
- }
- public function setReplicaNames($replicaNames)
- {
- $this->replicaNames = $replicaNames;
- }
- public function getReplicaNames()
- {
- return $this->replicaNames;
- }
- public function setSelfLink($selfLink)
- {
- $this->selfLink = $selfLink;
- }
- public function getSelfLink()
- {
- return $this->selfLink;
- }
- public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert)
- {
- $this->serverCaCert = $serverCaCert;
- }
- public function getServerCaCert()
- {
- return $this->serverCaCert;
- }
- public function setServiceAccountEmailAddress($serviceAccountEmailAddress)
- {
- $this->serviceAccountEmailAddress = $serviceAccountEmailAddress;
- }
- public function getServiceAccountEmailAddress()
- {
- return $this->serviceAccountEmailAddress;
- }
- public function setSettings(Google_Service_SQLAdmin_Settings $settings)
- {
- $this->settings = $settings;
- }
- public function getSettings()
- {
- return $this->settings;
- }
- public function setState($state)
- {
- $this->state = $state;
- }
- public function getState()
- {
- return $this->state;
- }
-}
-
-class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_Database';
- protected $itemsDataType = 'array';
- public $kind;
-
-
- 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;
- }
-}
-
-class Google_Service_SQLAdmin_ExportContext extends Google_Collection
-{
- protected $collection_key = 'databases';
- protected $internal_gapi_mappings = array(
- );
- protected $csvExportOptionsType = 'Google_Service_SQLAdmin_ExportContextCsvExportOptions';
- protected $csvExportOptionsDataType = '';
- public $databases;
- public $fileType;
- public $kind;
- protected $sqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptions';
- protected $sqlExportOptionsDataType = '';
- public $uri;
-
-
- public function setCsvExportOptions(Google_Service_SQLAdmin_ExportContextCsvExportOptions $csvExportOptions)
- {
- $this->csvExportOptions = $csvExportOptions;
- }
- public function getCsvExportOptions()
- {
- return $this->csvExportOptions;
- }
- public function setDatabases($databases)
- {
- $this->databases = $databases;
- }
- public function getDatabases()
- {
- return $this->databases;
- }
- public function setFileType($fileType)
- {
- $this->fileType = $fileType;
- }
- public function getFileType()
- {
- return $this->fileType;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setSqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptions $sqlExportOptions)
- {
- $this->sqlExportOptions = $sqlExportOptions;
- }
- public function getSqlExportOptions()
- {
- return $this->sqlExportOptions;
- }
- public function setUri($uri)
- {
- $this->uri = $uri;
- }
- public function getUri()
- {
- return $this->uri;
- }
-}
-
-class Google_Service_SQLAdmin_ExportContextCsvExportOptions extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $selectQuery;
-
-
- public function setSelectQuery($selectQuery)
- {
- $this->selectQuery = $selectQuery;
- }
- public function getSelectQuery()
- {
- return $this->selectQuery;
- }
-}
-
-class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection
-{
- protected $collection_key = 'tables';
- protected $internal_gapi_mappings = array(
- );
- public $tables;
-
-
- public function setTables($tables)
- {
- $this->tables = $tables;
- }
- public function getTables()
- {
- return $this->tables;
- }
-}
-
-class Google_Service_SQLAdmin_Flag extends Google_Collection
-{
- protected $collection_key = 'appliesTo';
- protected $internal_gapi_mappings = array(
- );
- public $allowedStringValues;
- public $appliesTo;
- public $kind;
- public $maxValue;
- public $minValue;
- public $name;
- public $type;
-
-
- public function setAllowedStringValues($allowedStringValues)
- {
- $this->allowedStringValues = $allowedStringValues;
- }
- public function getAllowedStringValues()
- {
- return $this->allowedStringValues;
- }
- public function setAppliesTo($appliesTo)
- {
- $this->appliesTo = $appliesTo;
- }
- public function getAppliesTo()
- {
- return $this->appliesTo;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setMaxValue($maxValue)
- {
- $this->maxValue = $maxValue;
- }
- public function getMaxValue()
- {
- return $this->maxValue;
- }
- public function setMinValue($minValue)
- {
- $this->minValue = $minValue;
- }
- public function getMinValue()
- {
- return $this->minValue;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setType($type)
- {
- $this->type = $type;
- }
- public function getType()
- {
- return $this->type;
- }
-}
-
-class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_Flag';
- protected $itemsDataType = 'array';
- public $kind;
-
-
- 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;
- }
-}
-
-class Google_Service_SQLAdmin_ImportContext extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $csvImportOptionsType = 'Google_Service_SQLAdmin_ImportContextCsvImportOptions';
- protected $csvImportOptionsDataType = '';
- public $database;
- public $fileType;
- public $kind;
- public $uri;
-
-
- public function setCsvImportOptions(Google_Service_SQLAdmin_ImportContextCsvImportOptions $csvImportOptions)
- {
- $this->csvImportOptions = $csvImportOptions;
- }
- public function getCsvImportOptions()
- {
- return $this->csvImportOptions;
- }
- public function setDatabase($database)
- {
- $this->database = $database;
- }
- public function getDatabase()
- {
- return $this->database;
- }
- public function setFileType($fileType)
- {
- $this->fileType = $fileType;
- }
- public function getFileType()
- {
- return $this->fileType;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setUri($uri)
- {
- $this->uri = $uri;
- }
- public function getUri()
- {
- return $this->uri;
- }
-}
-
-class Google_Service_SQLAdmin_ImportContextCsvImportOptions extends Google_Collection
-{
- protected $collection_key = 'columns';
- protected $internal_gapi_mappings = array(
- );
- public $columns;
- public $table;
-
-
- public function setColumns($columns)
- {
- $this->columns = $columns;
- }
- public function getColumns()
- {
- return $this->columns;
- }
- public function setTable($table)
- {
- $this->table = $table;
- }
- public function getTable()
- {
- return $this->table;
- }
-}
-
-class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext';
- protected $cloneContextDataType = '';
-
-
- public function setCloneContext(Google_Service_SQLAdmin_CloneContext $cloneContext)
- {
- $this->cloneContext = $cloneContext;
- }
- public function getCloneContext()
- {
- return $this->cloneContext;
- }
-}
-
-class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext';
- protected $exportContextDataType = '';
-
-
- public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext)
- {
- $this->exportContext = $exportContext;
- }
- public function getExportContext()
- {
- return $this->exportContext;
- }
-}
-
-class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $importContextType = 'Google_Service_SQLAdmin_ImportContext';
- protected $importContextDataType = '';
-
-
- public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext)
- {
- $this->importContext = $importContext;
- }
- public function getImportContext()
- {
- return $this->importContext;
- }
-}
-
-class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance';
- protected $itemsDataType = 'array';
- public $kind;
- public $nextPageToken;
-
-
- 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_SQLAdmin_InstancesRestoreBackupRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $restoreBackupContextType = 'Google_Service_SQLAdmin_RestoreBackupContext';
- protected $restoreBackupContextDataType = '';
-
-
- public function setRestoreBackupContext(Google_Service_SQLAdmin_RestoreBackupContext $restoreBackupContext)
- {
- $this->restoreBackupContext = $restoreBackupContext;
- }
- public function getRestoreBackupContext()
- {
- return $this->restoreBackupContext;
- }
-}
-
-class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection
-{
- protected $collection_key = 'authorizedNetworks';
- protected $internal_gapi_mappings = array(
- );
- protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry';
- protected $authorizedNetworksDataType = 'array';
- public $ipv4Enabled;
- public $requireSsl;
-
-
- public function setAuthorizedNetworks($authorizedNetworks)
- {
- $this->authorizedNetworks = $authorizedNetworks;
- }
- public function getAuthorizedNetworks()
- {
- return $this->authorizedNetworks;
- }
- public function setIpv4Enabled($ipv4Enabled)
- {
- $this->ipv4Enabled = $ipv4Enabled;
- }
- public function getIpv4Enabled()
- {
- return $this->ipv4Enabled;
- }
- public function setRequireSsl($requireSsl)
- {
- $this->requireSsl = $requireSsl;
- }
- public function getRequireSsl()
- {
- return $this->requireSsl;
- }
-}
-
-class Google_Service_SQLAdmin_IpMapping extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $ipAddress;
- public $timeToRetire;
-
-
- public function setIpAddress($ipAddress)
- {
- $this->ipAddress = $ipAddress;
- }
- public function getIpAddress()
- {
- return $this->ipAddress;
- }
- public function setTimeToRetire($timeToRetire)
- {
- $this->timeToRetire = $timeToRetire;
- }
- public function getTimeToRetire()
- {
- return $this->timeToRetire;
- }
-}
-
-class Google_Service_SQLAdmin_LocationPreference extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $followGaeApplication;
- public $kind;
- public $zone;
-
-
- public function setFollowGaeApplication($followGaeApplication)
- {
- $this->followGaeApplication = $followGaeApplication;
- }
- public function getFollowGaeApplication()
- {
- return $this->followGaeApplication;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setZone($zone)
- {
- $this->zone = $zone;
- }
- public function getZone()
- {
- return $this->zone;
- }
-}
-
-class Google_Service_SQLAdmin_Operation extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $endTime;
- protected $errorType = 'Google_Service_SQLAdmin_OperationError';
- protected $errorDataType = '';
- protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext';
- protected $exportContextDataType = '';
- protected $importContextType = 'Google_Service_SQLAdmin_ImportContext';
- protected $importContextDataType = '';
- public $insertTime;
- public $kind;
- public $name;
- public $operationType;
- public $selfLink;
- public $startTime;
- public $status;
- public $targetId;
- public $targetLink;
- public $targetProject;
- public $user;
-
-
- public function setEndTime($endTime)
- {
- $this->endTime = $endTime;
- }
- public function getEndTime()
- {
- return $this->endTime;
- }
- public function setError(Google_Service_SQLAdmin_OperationError $error)
- {
- $this->error = $error;
- }
- public function getError()
- {
- return $this->error;
- }
- public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext)
- {
- $this->exportContext = $exportContext;
- }
- public function getExportContext()
- {
- return $this->exportContext;
- }
- public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext)
- {
- $this->importContext = $importContext;
- }
- public function getImportContext()
- {
- return $this->importContext;
- }
- public function setInsertTime($insertTime)
- {
- $this->insertTime = $insertTime;
- }
- public function getInsertTime()
- {
- return $this->insertTime;
- }
- 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 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 setStartTime($startTime)
- {
- $this->startTime = $startTime;
- }
- public function getStartTime()
- {
- return $this->startTime;
- }
- public function setStatus($status)
- {
- $this->status = $status;
- }
- public function getStatus()
- {
- return $this->status;
- }
- public function setTargetId($targetId)
- {
- $this->targetId = $targetId;
- }
- public function getTargetId()
- {
- return $this->targetId;
- }
- public function setTargetLink($targetLink)
- {
- $this->targetLink = $targetLink;
- }
- public function getTargetLink()
- {
- return $this->targetLink;
- }
- public function setTargetProject($targetProject)
- {
- $this->targetProject = $targetProject;
- }
- public function getTargetProject()
- {
- return $this->targetProject;
- }
- public function setUser($user)
- {
- $this->user = $user;
- }
- public function getUser()
- {
- return $this->user;
- }
-}
-
-class Google_Service_SQLAdmin_OperationError extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $code;
- public $kind;
- public $message;
-
-
- public function setCode($code)
- {
- $this->code = $code;
- }
- public function getCode()
- {
- return $this->code;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setMessage($message)
- {
- $this->message = $message;
- }
- public function getMessage()
- {
- return $this->message;
- }
-}
-
-class Google_Service_SQLAdmin_OperationError extends Google_Collection
-{
- protected $collection_key = 'errors';
- protected $internal_gapi_mappings = array(
- );
- protected $errorsType = 'Google_Service_SQLAdmin_OperationError';
- protected $errorsDataType = 'array';
-
-
- public function setErrors($errors)
- {
- $this->errors = $errors;
- }
- public function getErrors()
- {
- return $this->errors;
- }
-}
-
-class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_Operation';
- protected $itemsDataType = 'array';
- public $kind;
- public $nextPageToken;
-
-
- 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_SQLAdmin_RestoreBackupContext extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $backupRunId;
- public $kind;
-
-
- public function setBackupRunId($backupRunId)
- {
- $this->backupRunId = $backupRunId;
- }
- public function getBackupRunId()
- {
- return $this->backupRunId;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
-}
-
-class Google_Service_SQLAdmin_Settings extends Google_Collection
-{
- protected $collection_key = 'databaseFlags';
- protected $internal_gapi_mappings = array(
- );
- public $activationPolicy;
- public $authorizedGaeApplications;
- protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration';
- protected $backupConfigurationDataType = '';
- protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags';
- protected $databaseFlagsDataType = 'array';
- public $databaseReplicationEnabled;
- protected $ipConfigurationType = 'Google_Service_SQLAdmin_IpConfiguration';
- protected $ipConfigurationDataType = '';
- public $kind;
- protected $locationPreferenceType = 'Google_Service_SQLAdmin_LocationPreference';
- protected $locationPreferenceDataType = '';
- public $pricingPlan;
- public $replicationType;
- public $settingsVersion;
- public $tier;
-
-
- public function setActivationPolicy($activationPolicy)
- {
- $this->activationPolicy = $activationPolicy;
- }
- public function getActivationPolicy()
- {
- return $this->activationPolicy;
- }
- public function setAuthorizedGaeApplications($authorizedGaeApplications)
- {
- $this->authorizedGaeApplications = $authorizedGaeApplications;
- }
- public function getAuthorizedGaeApplications()
- {
- return $this->authorizedGaeApplications;
- }
- public function setBackupConfiguration(Google_Service_SQLAdmin_BackupConfiguration $backupConfiguration)
- {
- $this->backupConfiguration = $backupConfiguration;
- }
- public function getBackupConfiguration()
- {
- return $this->backupConfiguration;
- }
- public function setDatabaseFlags($databaseFlags)
- {
- $this->databaseFlags = $databaseFlags;
- }
- public function getDatabaseFlags()
- {
- return $this->databaseFlags;
- }
- public function setDatabaseReplicationEnabled($databaseReplicationEnabled)
- {
- $this->databaseReplicationEnabled = $databaseReplicationEnabled;
- }
- public function getDatabaseReplicationEnabled()
- {
- return $this->databaseReplicationEnabled;
- }
- public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration)
- {
- $this->ipConfiguration = $ipConfiguration;
- }
- public function getIpConfiguration()
- {
- return $this->ipConfiguration;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference $locationPreference)
- {
- $this->locationPreference = $locationPreference;
- }
- public function getLocationPreference()
- {
- return $this->locationPreference;
- }
- public function setPricingPlan($pricingPlan)
- {
- $this->pricingPlan = $pricingPlan;
- }
- public function getPricingPlan()
- {
- return $this->pricingPlan;
- }
- public function setReplicationType($replicationType)
- {
- $this->replicationType = $replicationType;
- }
- public function getReplicationType()
- {
- return $this->replicationType;
- }
- public function setSettingsVersion($settingsVersion)
- {
- $this->settingsVersion = $settingsVersion;
- }
- public function getSettingsVersion()
- {
- return $this->settingsVersion;
- }
- public function setTier($tier)
- {
- $this->tier = $tier;
- }
- public function getTier()
- {
- return $this->tier;
- }
-}
-
-class Google_Service_SQLAdmin_SslCert extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $cert;
- public $certSerialNumber;
- public $commonName;
- public $createTime;
- public $expirationTime;
- public $instance;
- public $kind;
- public $selfLink;
- public $sha1Fingerprint;
-
-
- public function setCert($cert)
- {
- $this->cert = $cert;
- }
- public function getCert()
- {
- return $this->cert;
- }
- public function setCertSerialNumber($certSerialNumber)
- {
- $this->certSerialNumber = $certSerialNumber;
- }
- public function getCertSerialNumber()
- {
- return $this->certSerialNumber;
- }
- public function setCommonName($commonName)
- {
- $this->commonName = $commonName;
- }
- public function getCommonName()
- {
- return $this->commonName;
- }
- public function setCreateTime($createTime)
- {
- $this->createTime = $createTime;
- }
- public function getCreateTime()
- {
- return $this->createTime;
- }
- public function setExpirationTime($expirationTime)
- {
- $this->expirationTime = $expirationTime;
- }
- public function getExpirationTime()
- {
- return $this->expirationTime;
- }
- public function setInstance($instance)
- {
- $this->instance = $instance;
- }
- public function getInstance()
- {
- return $this->instance;
- }
- 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 setSha1Fingerprint($sha1Fingerprint)
- {
- $this->sha1Fingerprint = $sha1Fingerprint;
- }
- public function getSha1Fingerprint()
- {
- return $this->sha1Fingerprint;
- }
-}
-
-class Google_Service_SQLAdmin_SslCertDetail extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $certInfoType = 'Google_Service_SQLAdmin_SslCert';
- protected $certInfoDataType = '';
- public $certPrivateKey;
-
-
- public function setCertInfo(Google_Service_SQLAdmin_SslCert $certInfo)
- {
- $this->certInfo = $certInfo;
- }
- public function getCertInfo()
- {
- return $this->certInfo;
- }
- public function setCertPrivateKey($certPrivateKey)
- {
- $this->certPrivateKey = $certPrivateKey;
- }
- public function getCertPrivateKey()
- {
- return $this->certPrivateKey;
- }
-}
-
-class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $commonName;
-
-
- public function setCommonName($commonName)
- {
- $this->commonName = $commonName;
- }
- public function getCommonName()
- {
- return $this->commonName;
- }
-}
-
-class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $clientCertType = 'Google_Service_SQLAdmin_SslCertDetail';
- protected $clientCertDataType = '';
- public $kind;
- protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert';
- protected $serverCaCertDataType = '';
-
-
- public function setClientCert(Google_Service_SQLAdmin_SslCertDetail $clientCert)
- {
- $this->clientCert = $clientCert;
- }
- public function getClientCert()
- {
- return $this->clientCert;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert)
- {
- $this->serverCaCert = $serverCaCert;
- }
- public function getServerCaCert()
- {
- return $this->serverCaCert;
- }
-}
-
-class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_SslCert';
- protected $itemsDataType = 'array';
- public $kind;
-
-
- 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;
- }
-}
-
-class Google_Service_SQLAdmin_Tier extends Google_Collection
-{
- protected $collection_key = 'region';
- protected $internal_gapi_mappings = array(
- "diskQuota" => "DiskQuota",
- "rAM" => "RAM",
- );
- public $diskQuota;
- public $rAM;
- public $kind;
- public $region;
- public $tier;
-
-
- public function setDiskQuota($diskQuota)
- {
- $this->diskQuota = $diskQuota;
- }
- public function getDiskQuota()
- {
- return $this->diskQuota;
- }
- public function setRAM($rAM)
- {
- $this->rAM = $rAM;
- }
- public function getRAM()
- {
- return $this->rAM;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setRegion($region)
- {
- $this->region = $region;
- }
- public function getRegion()
- {
- return $this->region;
- }
- public function setTier($tier)
- {
- $this->tier = $tier;
- }
- public function getTier()
- {
- return $this->tier;
- }
-}
-
-class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_Tier';
- protected $itemsDataType = 'array';
- public $kind;
-
-
- 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;
- }
-}
-
-class Google_Service_SQLAdmin_User extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $etag;
- public $host;
- public $instance;
- public $kind;
- public $name;
- public $password;
- public $project;
-
-
- public function setEtag($etag)
- {
- $this->etag = $etag;
- }
- public function getEtag()
- {
- return $this->etag;
- }
- public function setHost($host)
- {
- $this->host = $host;
- }
- public function getHost()
- {
- return $this->host;
- }
- public function setInstance($instance)
- {
- $this->instance = $instance;
- }
- public function getInstance()
- {
- return $this->instance;
- }
- 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 setPassword($password)
- {
- $this->password = $password;
- }
- public function getPassword()
- {
- return $this->password;
- }
- public function setProject($project)
- {
- $this->project = $project;
- }
- public function getProject()
- {
- return $this->project;
- }
-}
-
-class Google_Service_SQLAdmin_UsersListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_User';
- protected $itemsDataType = 'array';
- public $kind;
- public $nextPageToken;
-
-
- 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;
- }
-}
From 89df9a568750bce1f30c1121aabcc1e8337332b1 Mon Sep 17 00:00:00 2001
From: Ian Barber + * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_SQLAdmin extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** Manage your Google SQL Service instances. */ + const SQLSERVICE_ADMIN = + "https://www.googleapis.com/auth/sqlservice.admin"; + + public $backupRuns; + public $databases; + public $flags; + public $instances; + public $operations; + public $sslCerts; + public $tiers; + public $users; + + + /** + * Constructs the internal representation of the SQLAdmin service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'sql/v1beta4/'; + $this->version = 'v1beta4'; + $this->serviceName = 'sqladmin'; + + $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource( + $this, + $this->serviceName, + 'backupRuns', + array( + 'methods' => array( + 'get' => array( + 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'id' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/backupRuns', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->databases = new Google_Service_SQLAdmin_Databases_Resource( + $this, + $this->serviceName, + 'databases', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/databases', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/databases', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/instances/{instance}/databases/{database}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'database' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->flags = new Google_Service_SQLAdmin_Flags_Resource( + $this, + $this->serviceName, + 'flags', + array( + 'methods' => array( + 'list' => array( + 'path' => 'flags', + 'httpMethod' => 'GET', + 'parameters' => array(), + ), + ) + ) + ); + $this->instances = new Google_Service_SQLAdmin_Instances_Resource( + $this, + $this->serviceName, + 'instances', + array( + 'methods' => array( + 'clone' => array( + 'path' => 'projects/{project}/instances/{instance}/clone', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'projects/{project}/instances/{instance}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'export' => array( + 'path' => 'projects/{project}/instances/{instance}/export', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'projects/{project}/instances/{instance}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'import' => array( + 'path' => 'projects/{project}/instances/{instance}/import', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'patch' => array( + 'path' => 'projects/{project}/instances/{instance}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'promoteReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/promoteReplica', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'resetSslConfig' => array( + 'path' => 'projects/{project}/instances/{instance}/resetSslConfig', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'restart' => array( + 'path' => 'projects/{project}/instances/{instance}/restart', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'restoreBackup' => array( + 'path' => 'projects/{project}/instances/{instance}/restoreBackup', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'startReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/startReplica', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'stopReplica' => array( + 'path' => 'projects/{project}/instances/{instance}/stopReplica', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/instances/{instance}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->operations = new Google_Service_SQLAdmin_Operations_Resource( + $this, + $this->serviceName, + 'operations', + array( + 'methods' => array( + 'get' => array( + 'path' => 'projects/{project}/operations/{operation}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'operation' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/operations', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'maxResults' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->sslCerts = new Google_Service_SQLAdmin_SslCerts_Resource( + $this, + $this->serviceName, + 'sslCerts', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sha1Fingerprint' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sha1Fingerprint' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/sslCerts', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/sslCerts', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->tiers = new Google_Service_SQLAdmin_Tiers_Resource( + $this, + $this->serviceName, + 'tiers', + array( + 'methods' => array( + 'list' => array( + 'path' => 'projects/{project}/tiers', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_SQLAdmin_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'host' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'POST', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'projects/{project}/instances/{instance}/users', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'project' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'instance' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'host' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + 'name' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "backupRuns" collection of methods. + * Typical usage is: + *
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $backupRuns = $sqladminService->backupRuns;
+ *
+ */
+class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Retrieves a resource containing information about a backup run.
+ * (backupRuns.get)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param string $id The ID of this Backup Run.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_BackupRun
+ */
+ public function get($project, $instance, $id, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun");
+ }
+
+ /**
+ * Lists all backup runs associated with a given instance and configuration in
+ * the reverse chronological order of the enqueued time.
+ * (backupRuns.listBackupRuns)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of backup runs per response.
+ * @opt_param string pageToken A previously-returned page token representing
+ * part of the larger set of results to view.
+ * @return Google_Service_SQLAdmin_BackupRunsListResponse
+ */
+ public function listBackupRuns($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse");
+ }
+}
+
+/**
+ * The "databases" collection of methods.
+ * Typical usage is:
+ *
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $databases = $sqladminService->databases;
+ *
+ */
+class Google_Service_SQLAdmin_Databases_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes a resource containing information about a database inside a Cloud SQL
+ * instance. (databases.delete)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $database Name of the database to be deleted in the instance.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function delete($project, $instance, $database, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'database' => $database);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Retrieves a resource containing information about a database inside a Cloud
+ * SQL instance. (databases.get)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $database Name of the database in the instance.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Database
+ */
+ public function get($project, $instance, $database, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'database' => $database);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_SQLAdmin_Database");
+ }
+
+ /**
+ * Inserts a resource containing information about a database inside a Cloud SQL
+ * instance. (databases.insert)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param Google_Database $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function insert($project, $instance, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Lists databases in the specified Cloud SQL instance.
+ * (databases.listDatabases)
+ *
+ * @param string $project Project ID of the project for which to list Cloud SQL
+ * instances.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_DatabasesListResponse
+ */
+ public function listDatabases($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_DatabasesListResponse");
+ }
+
+ /**
+ * Updates a resource containing information about a database inside a Cloud SQL
+ * instance. This method supports patch semantics. (databases.patch)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $database Name of the database to be updated in the instance.
+ * @param Google_Database $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function patch($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Updates a resource containing information about a database inside a Cloud SQL
+ * instance. (databases.update)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $database Name of the database to be updated in the instance.
+ * @param Google_Database $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function update($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+}
+
+/**
+ * The "flags" collection of methods.
+ * Typical usage is:
+ *
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $flags = $sqladminService->flags;
+ *
+ */
+class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource
+{
+
+ /**
+ * List all available database flags for Google Cloud SQL instances.
+ * (flags.listFlags)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_FlagsListResponse
+ */
+ public function listFlags($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse");
+ }
+}
+
+/**
+ * The "instances" collection of methods.
+ * Typical usage is:
+ *
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $instances = $sqladminService->instances;
+ *
+ */
+class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Creates a Cloud SQL instance as a clone of the source instance.
+ * (instances.cloneInstances)
+ *
+ * @param string $project Project ID of the source as well as the clone Cloud
+ * SQL instance.
+ * @param string $instance The ID of the Cloud SQL instance to be cloned
+ * (source). This does not include the project ID.
+ * @param Google_InstancesCloneRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function cloneInstances($project, $instance, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('clone', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Deletes a Cloud SQL instance. (instances.delete)
+ *
+ * @param string $project Project ID of the project that contains the instance
+ * to be deleted.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function delete($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a
+ * MySQL dump file. (instances.export)
+ *
+ * @param string $project Project ID of the project that contains the instance
+ * to be exported.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_InstancesExportRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Retrieves a resource containing information about a Cloud SQL instance.
+ * (instances.get)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_DatabaseInstance
+ */
+ public function get($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance");
+ }
+
+ /**
+ * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud
+ * Storage. (instances.import)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_InstancesImportRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('import', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Creates a new Cloud SQL instance. (instances.insert)
+ *
+ * @param string $project Project ID of the project to which the newly created
+ * Cloud SQL instances should belong.
+ * @param Google_DatabaseInstance $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Lists instances under a given project in the alphabetical order of the
+ * instance name. (instances.listInstances)
+ *
+ * @param string $project Project ID of the project for which to list Cloud SQL
+ * instances.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken A previously-returned page token representing
+ * part of the larger set of results to view.
+ * @opt_param string maxResults The maximum number of results to return per
+ * response.
+ * @return Google_Service_SQLAdmin_InstancesListResponse
+ */
+ public function listInstances($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse");
+ }
+
+ /**
+ * Updates settings of a Cloud SQL instance. Caution: This is not a partial
+ * update, so you must include values for all the settings that you want to
+ * retain. For partial updates, use patch.. This method supports patch
+ * semantics. (instances.patch)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_DatabaseInstance $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Promotes the read replica instance to be a stand-alone Cloud SQL instance.
+ * (instances.promoteReplica)
+ *
+ * @param string $project ID of the project that contains the read replica.
+ * @param string $instance Cloud SQL read replica instance name.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function promoteReplica($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Deletes all client certificates and generates a new server SSL certificate
+ * for the instance. The changes will not take effect until the instance is
+ * restarted. Existing instances without a server certificate will need to call
+ * this once to set a server certificate. (instances.resetSslConfig)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function resetSslConfig($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Restarts a Cloud SQL instance. (instances.restart)
+ *
+ * @param string $project Project ID of the project that contains the instance
+ * to be restarted.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function restart($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('restart', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Restores a backup of a Cloud SQL instance. (instances.restoreBackup)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_InstancesRestoreBackupRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function restoreBackup($project, $instance, Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Starts the replication in the read replica instance. (instances.startReplica)
+ *
+ * @param string $project ID of the project that contains the read replica.
+ * @param string $instance Cloud SQL read replica instance name.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function startReplica($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('startReplica', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Stops the replication in the read replica instance. (instances.stopReplica)
+ *
+ * @param string $project ID of the project that contains the read replica.
+ * @param string $instance Cloud SQL read replica instance name.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function stopReplica($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('stopReplica', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Updates settings of a Cloud SQL instance. Caution: This is not a partial
+ * update, so you must include values for all the settings that you want to
+ * retain. For partial updates, use patch. (instances.update)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_DatabaseInstance $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+}
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ *
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $operations = $sqladminService->operations;
+ *
+ */
+class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Retrieves an instance operation that has been performed on an instance.
+ * (operations.get)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $operation Instance operation ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function get($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Lists all instance operations that have been performed on the given Cloud SQL
+ * instance in the reverse chronological order of the start time.
+ * (operations.listOperations)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of operations per response.
+ * @opt_param string pageToken A previously-returned page token representing
+ * part of the larger set of results to view.
+ * @return Google_Service_SQLAdmin_OperationsListResponse
+ */
+ public function listOperations($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_OperationsListResponse");
+ }
+}
+
+/**
+ * The "sslCerts" collection of methods.
+ * Typical usage is:
+ *
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $sslCerts = $sqladminService->sslCerts;
+ *
+ */
+class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes the SSL certificate. The change will not take effect until the
+ * instance is restarted. (sslCerts.delete)
+ *
+ * @param string $project Project ID of the project that contains the instance
+ * to be deleted.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param string $sha1Fingerprint Sha1 FingerPrint.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function delete($project, $instance, $sha1Fingerprint, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Retrieves a particular SSL certificate. Does not include the private key
+ * (required for usage). The private key must be saved from the response to
+ * initial creation. (sslCerts.get)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param string $sha1Fingerprint Sha1 FingerPrint.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_SslCert
+ */
+ public function get($project, $instance, $sha1Fingerprint, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert");
+ }
+
+ /**
+ * Creates an SSL certificate and returns it along with the private key and
+ * server certificate authority. The new certificate will not be usable until
+ * the instance is restarted. (sslCerts.insert)
+ *
+ * @param string $project Project ID of the project to which the newly created
+ * Cloud SQL instances should belong.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param Google_SslCertsInsertRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_SslCertsInsertResponse
+ */
+ public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInsertRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse");
+ }
+
+ /**
+ * Lists all of the current SSL certificates for the instance.
+ * (sslCerts.listSslCerts)
+ *
+ * @param string $project Project ID of the project for which to list Cloud SQL
+ * instances.
+ * @param string $instance Cloud SQL instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_SslCertsListResponse
+ */
+ public function listSslCerts($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_SslCertsListResponse");
+ }
+}
+
+/**
+ * The "tiers" collection of methods.
+ * Typical usage is:
+ *
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $tiers = $sqladminService->tiers;
+ *
+ */
+class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Lists all available service tiers for Google Cloud SQL, for example D1, D2.
+ * For related information, see Pricing. (tiers.listTiers)
+ *
+ * @param string $project Project ID of the project for which to list tiers.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_TiersListResponse
+ */
+ public function listTiers($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_TiersListResponse");
+ }
+}
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ *
+ * $sqladminService = new Google_Service_SQLAdmin(...);
+ * $users = $sqladminService->users;
+ *
+ */
+class Google_Service_SQLAdmin_Users_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes a user from a Cloud SQL instance. (users.delete)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $host Host of the user in the instance.
+ * @param string $name Name of the user in the instance.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function delete($project, $instance, $host, $name, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Creates a new user in a Cloud SQL instance. (users.insert)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param Google_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function insert($project, $instance, Google_Service_SQLAdmin_User $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+
+ /**
+ * Lists users in the specified Cloud SQL instance. (users.listUsers)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_UsersListResponse
+ */
+ public function listUsers($project, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_SQLAdmin_UsersListResponse");
+ }
+
+ /**
+ * Updates an existing user in a Cloud SQL instance. (users.update)
+ *
+ * @param string $project Project ID of the project that contains the instance.
+ * @param string $instance Database instance ID. This does not include the
+ * project ID.
+ * @param string $host Host of the user in the instance.
+ * @param string $name Name of the user in the instance.
+ * @param Google_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SQLAdmin_Operation
+ */
+ public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
+ }
+}
+
+
+
+
+class Google_Service_SQLAdmin_AclEntry extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $expirationTime;
+ public $kind;
+ public $name;
+ public $value;
+
+
+ public function setExpirationTime($expirationTime)
+ {
+ $this->expirationTime = $expirationTime;
+ }
+ public function getExpirationTime()
+ {
+ return $this->expirationTime;
+ }
+ 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 setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
+class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $binaryLogEnabled;
+ public $enabled;
+ public $kind;
+ public $startTime;
+
+
+ public function setBinaryLogEnabled($binaryLogEnabled)
+ {
+ $this->binaryLogEnabled = $binaryLogEnabled;
+ }
+ public function getBinaryLogEnabled()
+ {
+ return $this->binaryLogEnabled;
+ }
+ public function setEnabled($enabled)
+ {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled()
+ {
+ return $this->enabled;
+ }
+ 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;
+ }
+}
+
+class Google_Service_SQLAdmin_BackupRun extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $endTime;
+ public $enqueuedTime;
+ protected $errorType = 'Google_Service_SQLAdmin_OperationError';
+ protected $errorDataType = '';
+ public $id;
+ public $instance;
+ public $kind;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $windowStartTime;
+
+
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setEnqueuedTime($enqueuedTime)
+ {
+ $this->enqueuedTime = $enqueuedTime;
+ }
+ public function getEnqueuedTime()
+ {
+ return $this->enqueuedTime;
+ }
+ public function setError(Google_Service_SQLAdmin_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ 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 setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setWindowStartTime($windowStartTime)
+ {
+ $this->windowStartTime = $windowStartTime;
+ }
+ public function getWindowStartTime()
+ {
+ return $this->windowStartTime;
+ }
+}
+
+class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_SQLAdmin_BackupRun';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+
+ 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_SQLAdmin_BinLogCoordinates extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $binLogFileName;
+ public $binLogPosition;
+ public $kind;
+
+
+ public function setBinLogFileName($binLogFileName)
+ {
+ $this->binLogFileName = $binLogFileName;
+ }
+ public function getBinLogFileName()
+ {
+ return $this->binLogFileName;
+ }
+ public function setBinLogPosition($binLogPosition)
+ {
+ $this->binLogPosition = $binLogPosition;
+ }
+ public function getBinLogPosition()
+ {
+ return $this->binLogPosition;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_SQLAdmin_CloneContext extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $binLogCoordinatesType = 'Google_Service_SQLAdmin_BinLogCoordinates';
+ protected $binLogCoordinatesDataType = '';
+ public $destinationInstanceName;
+ public $kind;
+
+
+ public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates)
+ {
+ $this->binLogCoordinates = $binLogCoordinates;
+ }
+ public function getBinLogCoordinates()
+ {
+ return $this->binLogCoordinates;
+ }
+ public function setDestinationInstanceName($destinationInstanceName)
+ {
+ $this->destinationInstanceName = $destinationInstanceName;
+ }
+ public function getDestinationInstanceName()
+ {
+ return $this->destinationInstanceName;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_SQLAdmin_Database extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $charset;
+ public $collation;
+ public $etag;
+ public $instance;
+ public $kind;
+ public $name;
+ public $project;
+ public $selfLink;
+
+
+ public function setCharset($charset)
+ {
+ $this->charset = $charset;
+ }
+ public function getCharset()
+ {
+ return $this->charset;
+ }
+ public function setCollation($collation)
+ {
+ $this->collation = $collation;
+ }
+ public function getCollation()
+ {
+ return $this->collation;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ 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 setProject($project)
+ {
+ $this->project = $project;
+ }
+ public function getProject()
+ {
+ return $this->project;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_SQLAdmin_DatabaseFlags 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_SQLAdmin_DatabaseInstance extends Google_Collection
+{
+ protected $collection_key = 'replicaNames';
+ protected $internal_gapi_mappings = array(
+ );
+ public $currentDiskSize;
+ public $databaseVersion;
+ public $etag;
+ public $instanceType;
+ protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping';
+ protected $ipAddressesDataType = 'array';
+ public $ipv6Address;
+ public $kind;
+ public $masterInstanceName;
+ public $maxDiskSize;
+ public $name;
+ public $project;
+ public $region;
+ public $replicaNames;
+ public $selfLink;
+ protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert';
+ protected $serverCaCertDataType = '';
+ public $serviceAccountEmailAddress;
+ protected $settingsType = 'Google_Service_SQLAdmin_Settings';
+ protected $settingsDataType = '';
+ public $state;
+
+
+ public function setCurrentDiskSize($currentDiskSize)
+ {
+ $this->currentDiskSize = $currentDiskSize;
+ }
+ public function getCurrentDiskSize()
+ {
+ return $this->currentDiskSize;
+ }
+ public function setDatabaseVersion($databaseVersion)
+ {
+ $this->databaseVersion = $databaseVersion;
+ }
+ public function getDatabaseVersion()
+ {
+ return $this->databaseVersion;
+ }
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setInstanceType($instanceType)
+ {
+ $this->instanceType = $instanceType;
+ }
+ public function getInstanceType()
+ {
+ return $this->instanceType;
+ }
+ public function setIpAddresses($ipAddresses)
+ {
+ $this->ipAddresses = $ipAddresses;
+ }
+ public function getIpAddresses()
+ {
+ return $this->ipAddresses;
+ }
+ public function setIpv6Address($ipv6Address)
+ {
+ $this->ipv6Address = $ipv6Address;
+ }
+ public function getIpv6Address()
+ {
+ return $this->ipv6Address;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMasterInstanceName($masterInstanceName)
+ {
+ $this->masterInstanceName = $masterInstanceName;
+ }
+ public function getMasterInstanceName()
+ {
+ return $this->masterInstanceName;
+ }
+ public function setMaxDiskSize($maxDiskSize)
+ {
+ $this->maxDiskSize = $maxDiskSize;
+ }
+ public function getMaxDiskSize()
+ {
+ return $this->maxDiskSize;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProject($project)
+ {
+ $this->project = $project;
+ }
+ public function getProject()
+ {
+ return $this->project;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setReplicaNames($replicaNames)
+ {
+ $this->replicaNames = $replicaNames;
+ }
+ public function getReplicaNames()
+ {
+ return $this->replicaNames;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert)
+ {
+ $this->serverCaCert = $serverCaCert;
+ }
+ public function getServerCaCert()
+ {
+ return $this->serverCaCert;
+ }
+ public function setServiceAccountEmailAddress($serviceAccountEmailAddress)
+ {
+ $this->serviceAccountEmailAddress = $serviceAccountEmailAddress;
+ }
+ public function getServiceAccountEmailAddress()
+ {
+ return $this->serviceAccountEmailAddress;
+ }
+ public function setSettings(Google_Service_SQLAdmin_Settings $settings)
+ {
+ $this->settings = $settings;
+ }
+ public function getSettings()
+ {
+ return $this->settings;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
+
+class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_SQLAdmin_Database';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+
+ 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;
+ }
+}
+
+class Google_Service_SQLAdmin_ExportContext extends Google_Collection
+{
+ protected $collection_key = 'databases';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $csvExportOptionsType = 'Google_Service_SQLAdmin_ExportContextCsvExportOptions';
+ protected $csvExportOptionsDataType = '';
+ public $databases;
+ public $fileType;
+ public $kind;
+ protected $sqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptions';
+ protected $sqlExportOptionsDataType = '';
+ public $uri;
+
+
+ public function setCsvExportOptions(Google_Service_SQLAdmin_ExportContextCsvExportOptions $csvExportOptions)
+ {
+ $this->csvExportOptions = $csvExportOptions;
+ }
+ public function getCsvExportOptions()
+ {
+ return $this->csvExportOptions;
+ }
+ public function setDatabases($databases)
+ {
+ $this->databases = $databases;
+ }
+ public function getDatabases()
+ {
+ return $this->databases;
+ }
+ public function setFileType($fileType)
+ {
+ $this->fileType = $fileType;
+ }
+ public function getFileType()
+ {
+ return $this->fileType;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptions $sqlExportOptions)
+ {
+ $this->sqlExportOptions = $sqlExportOptions;
+ }
+ public function getSqlExportOptions()
+ {
+ return $this->sqlExportOptions;
+ }
+ public function setUri($uri)
+ {
+ $this->uri = $uri;
+ }
+ public function getUri()
+ {
+ return $this->uri;
+ }
+}
+
+class Google_Service_SQLAdmin_ExportContextCsvExportOptions extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $selectQuery;
+
+
+ public function setSelectQuery($selectQuery)
+ {
+ $this->selectQuery = $selectQuery;
+ }
+ public function getSelectQuery()
+ {
+ return $this->selectQuery;
+ }
+}
+
+class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection
+{
+ protected $collection_key = 'tables';
+ protected $internal_gapi_mappings = array(
+ );
+ public $tables;
+
+
+ public function setTables($tables)
+ {
+ $this->tables = $tables;
+ }
+ public function getTables()
+ {
+ return $this->tables;
+ }
+}
+
+class Google_Service_SQLAdmin_Flag extends Google_Collection
+{
+ protected $collection_key = 'appliesTo';
+ protected $internal_gapi_mappings = array(
+ );
+ public $allowedStringValues;
+ public $appliesTo;
+ public $kind;
+ public $maxValue;
+ public $minValue;
+ public $name;
+ public $type;
+
+
+ public function setAllowedStringValues($allowedStringValues)
+ {
+ $this->allowedStringValues = $allowedStringValues;
+ }
+ public function getAllowedStringValues()
+ {
+ return $this->allowedStringValues;
+ }
+ public function setAppliesTo($appliesTo)
+ {
+ $this->appliesTo = $appliesTo;
+ }
+ public function getAppliesTo()
+ {
+ return $this->appliesTo;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMaxValue($maxValue)
+ {
+ $this->maxValue = $maxValue;
+ }
+ public function getMaxValue()
+ {
+ return $this->maxValue;
+ }
+ public function setMinValue($minValue)
+ {
+ $this->minValue = $minValue;
+ }
+ public function getMinValue()
+ {
+ return $this->minValue;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
+
+class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_SQLAdmin_Flag';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+
+ 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;
+ }
+}
+
+class Google_Service_SQLAdmin_ImportContext extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $csvImportOptionsType = 'Google_Service_SQLAdmin_ImportContextCsvImportOptions';
+ protected $csvImportOptionsDataType = '';
+ public $database;
+ public $fileType;
+ public $kind;
+ public $uri;
+
+
+ public function setCsvImportOptions(Google_Service_SQLAdmin_ImportContextCsvImportOptions $csvImportOptions)
+ {
+ $this->csvImportOptions = $csvImportOptions;
+ }
+ public function getCsvImportOptions()
+ {
+ return $this->csvImportOptions;
+ }
+ public function setDatabase($database)
+ {
+ $this->database = $database;
+ }
+ public function getDatabase()
+ {
+ return $this->database;
+ }
+ public function setFileType($fileType)
+ {
+ $this->fileType = $fileType;
+ }
+ public function getFileType()
+ {
+ return $this->fileType;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUri($uri)
+ {
+ $this->uri = $uri;
+ }
+ public function getUri()
+ {
+ return $this->uri;
+ }
+}
+
+class Google_Service_SQLAdmin_ImportContextCsvImportOptions extends Google_Collection
+{
+ protected $collection_key = 'columns';
+ protected $internal_gapi_mappings = array(
+ );
+ public $columns;
+ public $table;
+
+
+ public function setColumns($columns)
+ {
+ $this->columns = $columns;
+ }
+ public function getColumns()
+ {
+ return $this->columns;
+ }
+ public function setTable($table)
+ {
+ $this->table = $table;
+ }
+ public function getTable()
+ {
+ return $this->table;
+ }
+}
+
+class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext';
+ protected $cloneContextDataType = '';
+
+
+ public function setCloneContext(Google_Service_SQLAdmin_CloneContext $cloneContext)
+ {
+ $this->cloneContext = $cloneContext;
+ }
+ public function getCloneContext()
+ {
+ return $this->cloneContext;
+ }
+}
+
+class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext';
+ protected $exportContextDataType = '';
+
+
+ public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext)
+ {
+ $this->exportContext = $exportContext;
+ }
+ public function getExportContext()
+ {
+ return $this->exportContext;
+ }
+}
+
+class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $importContextType = 'Google_Service_SQLAdmin_ImportContext';
+ protected $importContextDataType = '';
+
+
+ public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext)
+ {
+ $this->importContext = $importContext;
+ }
+ public function getImportContext()
+ {
+ return $this->importContext;
+ }
+}
+
+class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+
+ 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_SQLAdmin_InstancesRestoreBackupRequest extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $restoreBackupContextType = 'Google_Service_SQLAdmin_RestoreBackupContext';
+ protected $restoreBackupContextDataType = '';
+
+
+ public function setRestoreBackupContext(Google_Service_SQLAdmin_RestoreBackupContext $restoreBackupContext)
+ {
+ $this->restoreBackupContext = $restoreBackupContext;
+ }
+ public function getRestoreBackupContext()
+ {
+ return $this->restoreBackupContext;
+ }
+}
+
+class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection
+{
+ protected $collection_key = 'authorizedNetworks';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry';
+ protected $authorizedNetworksDataType = 'array';
+ public $ipv4Enabled;
+ public $requireSsl;
+
+
+ public function setAuthorizedNetworks($authorizedNetworks)
+ {
+ $this->authorizedNetworks = $authorizedNetworks;
+ }
+ public function getAuthorizedNetworks()
+ {
+ return $this->authorizedNetworks;
+ }
+ public function setIpv4Enabled($ipv4Enabled)
+ {
+ $this->ipv4Enabled = $ipv4Enabled;
+ }
+ public function getIpv4Enabled()
+ {
+ return $this->ipv4Enabled;
+ }
+ public function setRequireSsl($requireSsl)
+ {
+ $this->requireSsl = $requireSsl;
+ }
+ public function getRequireSsl()
+ {
+ return $this->requireSsl;
+ }
+}
+
+class Google_Service_SQLAdmin_IpMapping extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $ipAddress;
+ public $timeToRetire;
+
+
+ public function setIpAddress($ipAddress)
+ {
+ $this->ipAddress = $ipAddress;
+ }
+ public function getIpAddress()
+ {
+ return $this->ipAddress;
+ }
+ public function setTimeToRetire($timeToRetire)
+ {
+ $this->timeToRetire = $timeToRetire;
+ }
+ public function getTimeToRetire()
+ {
+ return $this->timeToRetire;
+ }
+}
+
+class Google_Service_SQLAdmin_LocationPreference extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $followGaeApplication;
+ public $kind;
+ public $zone;
+
+
+ public function setFollowGaeApplication($followGaeApplication)
+ {
+ $this->followGaeApplication = $followGaeApplication;
+ }
+ public function getFollowGaeApplication()
+ {
+ return $this->followGaeApplication;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
+
+class Google_Service_SQLAdmin_Operation extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $endTime;
+ protected $errorType = 'Google_Service_SQLAdmin_OperationError';
+ protected $errorDataType = '';
+ protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext';
+ protected $exportContextDataType = '';
+ protected $importContextType = 'Google_Service_SQLAdmin_ImportContext';
+ protected $importContextDataType = '';
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $targetId;
+ public $targetLink;
+ public $targetProject;
+ public $user;
+
+
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_SQLAdmin_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext)
+ {
+ $this->exportContext = $exportContext;
+ }
+ public function getExportContext()
+ {
+ return $this->exportContext;
+ }
+ public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext)
+ {
+ $this->importContext = $importContext;
+ }
+ public function getImportContext()
+ {
+ return $this->importContext;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ 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 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 setStartTime($startTime)
+ {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime()
+ {
+ return $this->startTime;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setTargetProject($targetProject)
+ {
+ $this->targetProject = $targetProject;
+ }
+ public function getTargetProject()
+ {
+ return $this->targetProject;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
+
+class Google_Service_SQLAdmin_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $errorsType = 'Google_Service_SQLAdmin_OperationError';
+ protected $errorsDataType = 'array';
+
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
+
+class Google_Service_SQLAdmin_OperationError extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ public $kind;
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_SQLAdmin_Operation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+
+ 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_SQLAdmin_RestoreBackupContext extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $backupRunId;
+ public $kind;
+
+
+ public function setBackupRunId($backupRunId)
+ {
+ $this->backupRunId = $backupRunId;
+ }
+ public function getBackupRunId()
+ {
+ return $this->backupRunId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_SQLAdmin_Settings extends Google_Collection
+{
+ protected $collection_key = 'databaseFlags';
+ protected $internal_gapi_mappings = array(
+ );
+ public $activationPolicy;
+ public $authorizedGaeApplications;
+ protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration';
+ protected $backupConfigurationDataType = '';
+ protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags';
+ protected $databaseFlagsDataType = 'array';
+ public $databaseReplicationEnabled;
+ protected $ipConfigurationType = 'Google_Service_SQLAdmin_IpConfiguration';
+ protected $ipConfigurationDataType = '';
+ public $kind;
+ protected $locationPreferenceType = 'Google_Service_SQLAdmin_LocationPreference';
+ protected $locationPreferenceDataType = '';
+ public $pricingPlan;
+ public $replicationType;
+ public $settingsVersion;
+ public $tier;
+
+
+ public function setActivationPolicy($activationPolicy)
+ {
+ $this->activationPolicy = $activationPolicy;
+ }
+ public function getActivationPolicy()
+ {
+ return $this->activationPolicy;
+ }
+ public function setAuthorizedGaeApplications($authorizedGaeApplications)
+ {
+ $this->authorizedGaeApplications = $authorizedGaeApplications;
+ }
+ public function getAuthorizedGaeApplications()
+ {
+ return $this->authorizedGaeApplications;
+ }
+ public function setBackupConfiguration(Google_Service_SQLAdmin_BackupConfiguration $backupConfiguration)
+ {
+ $this->backupConfiguration = $backupConfiguration;
+ }
+ public function getBackupConfiguration()
+ {
+ return $this->backupConfiguration;
+ }
+ public function setDatabaseFlags($databaseFlags)
+ {
+ $this->databaseFlags = $databaseFlags;
+ }
+ public function getDatabaseFlags()
+ {
+ return $this->databaseFlags;
+ }
+ public function setDatabaseReplicationEnabled($databaseReplicationEnabled)
+ {
+ $this->databaseReplicationEnabled = $databaseReplicationEnabled;
+ }
+ public function getDatabaseReplicationEnabled()
+ {
+ return $this->databaseReplicationEnabled;
+ }
+ public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration)
+ {
+ $this->ipConfiguration = $ipConfiguration;
+ }
+ public function getIpConfiguration()
+ {
+ return $this->ipConfiguration;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference $locationPreference)
+ {
+ $this->locationPreference = $locationPreference;
+ }
+ public function getLocationPreference()
+ {
+ return $this->locationPreference;
+ }
+ public function setPricingPlan($pricingPlan)
+ {
+ $this->pricingPlan = $pricingPlan;
+ }
+ public function getPricingPlan()
+ {
+ return $this->pricingPlan;
+ }
+ public function setReplicationType($replicationType)
+ {
+ $this->replicationType = $replicationType;
+ }
+ public function getReplicationType()
+ {
+ return $this->replicationType;
+ }
+ public function setSettingsVersion($settingsVersion)
+ {
+ $this->settingsVersion = $settingsVersion;
+ }
+ public function getSettingsVersion()
+ {
+ return $this->settingsVersion;
+ }
+ public function setTier($tier)
+ {
+ $this->tier = $tier;
+ }
+ public function getTier()
+ {
+ return $this->tier;
+ }
+}
+
+class Google_Service_SQLAdmin_SslCert extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $cert;
+ public $certSerialNumber;
+ public $commonName;
+ public $createTime;
+ public $expirationTime;
+ public $instance;
+ public $kind;
+ public $selfLink;
+ public $sha1Fingerprint;
+
+
+ public function setCert($cert)
+ {
+ $this->cert = $cert;
+ }
+ public function getCert()
+ {
+ return $this->cert;
+ }
+ public function setCertSerialNumber($certSerialNumber)
+ {
+ $this->certSerialNumber = $certSerialNumber;
+ }
+ public function getCertSerialNumber()
+ {
+ return $this->certSerialNumber;
+ }
+ public function setCommonName($commonName)
+ {
+ $this->commonName = $commonName;
+ }
+ public function getCommonName()
+ {
+ return $this->commonName;
+ }
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setExpirationTime($expirationTime)
+ {
+ $this->expirationTime = $expirationTime;
+ }
+ public function getExpirationTime()
+ {
+ return $this->expirationTime;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ 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 setSha1Fingerprint($sha1Fingerprint)
+ {
+ $this->sha1Fingerprint = $sha1Fingerprint;
+ }
+ public function getSha1Fingerprint()
+ {
+ return $this->sha1Fingerprint;
+ }
+}
+
+class Google_Service_SQLAdmin_SslCertDetail extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $certInfoType = 'Google_Service_SQLAdmin_SslCert';
+ protected $certInfoDataType = '';
+ public $certPrivateKey;
+
+
+ public function setCertInfo(Google_Service_SQLAdmin_SslCert $certInfo)
+ {
+ $this->certInfo = $certInfo;
+ }
+ public function getCertInfo()
+ {
+ return $this->certInfo;
+ }
+ public function setCertPrivateKey($certPrivateKey)
+ {
+ $this->certPrivateKey = $certPrivateKey;
+ }
+ public function getCertPrivateKey()
+ {
+ return $this->certPrivateKey;
+ }
+}
+
+class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $commonName;
+
+
+ public function setCommonName($commonName)
+ {
+ $this->commonName = $commonName;
+ }
+ public function getCommonName()
+ {
+ return $this->commonName;
+ }
+}
+
+class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $clientCertType = 'Google_Service_SQLAdmin_SslCertDetail';
+ protected $clientCertDataType = '';
+ public $kind;
+ protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert';
+ protected $serverCaCertDataType = '';
+
+
+ public function setClientCert(Google_Service_SQLAdmin_SslCertDetail $clientCert)
+ {
+ $this->clientCert = $clientCert;
+ }
+ public function getClientCert()
+ {
+ return $this->clientCert;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert)
+ {
+ $this->serverCaCert = $serverCaCert;
+ }
+ public function getServerCaCert()
+ {
+ return $this->serverCaCert;
+ }
+}
+
+class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_SQLAdmin_SslCert';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+
+ 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;
+ }
+}
+
+class Google_Service_SQLAdmin_Tier extends Google_Collection
+{
+ protected $collection_key = 'region';
+ protected $internal_gapi_mappings = array(
+ "diskQuota" => "DiskQuota",
+ "rAM" => "RAM",
+ );
+ public $diskQuota;
+ public $rAM;
+ public $kind;
+ public $region;
+ public $tier;
+
+
+ public function setDiskQuota($diskQuota)
+ {
+ $this->diskQuota = $diskQuota;
+ }
+ public function getDiskQuota()
+ {
+ return $this->diskQuota;
+ }
+ public function setRAM($rAM)
+ {
+ $this->rAM = $rAM;
+ }
+ public function getRAM()
+ {
+ return $this->rAM;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setTier($tier)
+ {
+ $this->tier = $tier;
+ }
+ public function getTier()
+ {
+ return $this->tier;
+ }
+}
+
+class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_SQLAdmin_Tier';
+ protected $itemsDataType = 'array';
+ public $kind;
+
+
+ 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;
+ }
+}
+
+class Google_Service_SQLAdmin_User extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ public $host;
+ public $instance;
+ public $kind;
+ public $name;
+ public $password;
+ public $project;
+
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setInstance($instance)
+ {
+ $this->instance = $instance;
+ }
+ public function getInstance()
+ {
+ return $this->instance;
+ }
+ 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 setPassword($password)
+ {
+ $this->password = $password;
+ }
+ public function getPassword()
+ {
+ return $this->password;
+ }
+ public function setProject($project)
+ {
+ $this->project = $project;
+ }
+ public function getProject()
+ {
+ return $this->project;
+ }
+}
+
+class Google_Service_SQLAdmin_UsersListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $itemsType = 'Google_Service_SQLAdmin_User';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+
+ 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;
+ }
+}
From fb3e048f9c8b21d90be02c638af6c342cfdc9c3c Mon Sep 17 00:00:00 2001
From: Silvano Luciani * For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. From 5e759a61679a9b9b2aa87e47cd5a66eef67e7e21 Mon Sep 17 00:00:00 2001 From: Silvano Luciani+ * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_AndroidEnterprise extends Google_Service +{ + /** Manage corporate Android devices. */ + const ANDROIDENTERPRISE = + "https://www.googleapis.com/auth/androidenterprise"; + + public $collections; + public $collectionviewers; + public $devices; + public $enterprises; + public $entitlements; + public $grouplicenses; + public $grouplicenseusers; + public $installs; + public $permissions; + public $products; + public $users; + + + /** + * Constructs the internal representation of the AndroidEnterprise service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = 'androidenterprise/v1/'; + $this->version = 'v1'; + $this->serviceName = 'androidenterprise'; + + $this->collections = new Google_Service_AndroidEnterprise_Collections_Resource( + $this, + $this->serviceName, + 'collections', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'enterprises/{enterpriseId}/collections', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/collections', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->collectionviewers = new Google_Service_AndroidEnterprise_Collectionviewers_Resource( + $this, + $this->serviceName, + 'collectionviewers', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'collectionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->devices = new Google_Service_AndroidEnterprise_Devices_Resource( + $this, + $this->serviceName, + 'devices', + array( + 'methods' => array( + 'get' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'getState' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setState' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->enterprises = new Google_Service_AndroidEnterprise_Enterprises_Resource( + $this, + $this->serviceName, + 'enterprises', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'enroll' => array( + 'path' => 'enterprises/enroll', + 'httpMethod' => 'POST', + 'parameters' => array( + 'token' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'insert' => array( + 'path' => 'enterprises', + 'httpMethod' => 'POST', + 'parameters' => array( + 'token' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises', + 'httpMethod' => 'GET', + 'parameters' => array( + 'domain' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'setAccount' => array( + 'path' => 'enterprises/{enterpriseId}/account', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'unenroll' => array( + 'path' => 'enterprises/{enterpriseId}/unenroll', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->entitlements = new Google_Service_AndroidEnterprise_Entitlements_Resource( + $this, + $this->serviceName, + 'entitlements', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entitlementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entitlementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entitlementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'install' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'entitlementId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'install' => array( + 'location' => 'query', + 'type' => 'boolean', + ), + ), + ), + ) + ) + ); + $this->grouplicenses = new Google_Service_AndroidEnterprise_Grouplicenses_Resource( + $this, + $this->serviceName, + 'grouplicenses', + array( + 'methods' => array( + 'get' => array( + 'path' => 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupLicenseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/groupLicenses', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->grouplicenseusers = new Google_Service_AndroidEnterprise_Grouplicenseusers_Resource( + $this, + $this->serviceName, + 'grouplicenseusers', + array( + 'methods' => array( + 'list' => array( + 'path' => 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'groupLicenseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->installs = new Google_Service_AndroidEnterprise_Installs_Resource( + $this, + $this->serviceName, + 'installs', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'installId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'installId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'patch' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', + 'httpMethod' => 'PATCH', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'installId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'deviceId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'installId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->permissions = new Google_Service_AndroidEnterprise_Permissions_Resource( + $this, + $this->serviceName, + 'permissions', + array( + 'methods' => array( + 'get' => array( + 'path' => 'permissions/{permissionId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'permissionId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->products = new Google_Service_AndroidEnterprise_Products_Resource( + $this, + $this->serviceName, + 'products', + array( + 'methods' => array( + 'get' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getAppRestrictionsSchema' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'language' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'getPermissions' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/permissions', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'updatePermissions' => array( + 'path' => 'enterprises/{enterpriseId}/products/{productId}/permissions', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'productId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->users = new Google_Service_AndroidEnterprise_Users_Resource( + $this, + $this->serviceName, + 'users', + array( + 'methods' => array( + 'generateToken' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/token', + 'httpMethod' => 'POST', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'enterprises/{enterpriseId}/users', + 'httpMethod' => 'GET', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'email' => array( + 'location' => 'query', + 'type' => 'string', + 'required' => true, + ), + ), + ),'revokeToken' => array( + 'path' => 'enterprises/{enterpriseId}/users/{userId}/token', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'enterpriseId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'userId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "collections" collection of methods. + * Typical usage is: + *
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $collections = $androidenterpriseService->collections;
+ *
+ */
+class Google_Service_AndroidEnterprise_Collections_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes a collection. (collections.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $collectionId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Retrieves the details of a collection. (collections.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Collection
+ */
+ public function get($enterpriseId, $collectionId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Collection");
+ }
+
+ /**
+ * Creates a new collection. (collections.insert)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param Google_Collection $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Collection
+ */
+ public function insert($enterpriseId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_Collection");
+ }
+
+ /**
+ * Retrieves the IDs of all the collections for an enterprise.
+ * (collections.listCollections)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_CollectionsListResponse
+ */
+ public function listCollections($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_CollectionsListResponse");
+ }
+
+ /**
+ * Updates a collection. This method supports patch semantics.
+ * (collections.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param Google_Collection $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Collection
+ */
+ public function patch($enterpriseId, $collectionId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Collection");
+ }
+
+ /**
+ * Updates a collection. (collections.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param Google_Collection $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Collection
+ */
+ public function update($enterpriseId, $collectionId, Google_Service_AndroidEnterprise_Collection $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Collection");
+ }
+}
+
+/**
+ * The "collectionviewers" collection of methods.
+ * Typical usage is:
+ *
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $collectionviewers = $androidenterpriseService->collectionviewers;
+ *
+ */
+class Google_Service_AndroidEnterprise_Collectionviewers_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Removes the user from the list of those specifically allowed to see the
+ * collection. If the collection's visibility is set to viewersOnly then only
+ * such users will see the collection. (collectionviewers.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $collectionId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Retrieves the ID of the user if they have been specifically allowed to see
+ * the collection. If the collection's visibility is set to viewersOnly then
+ * only these users will see the collection. (collectionviewers.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_User
+ */
+ public function get($enterpriseId, $collectionId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User");
+ }
+
+ /**
+ * Retrieves the IDs of the users who have been specifically allowed to see the
+ * collection. If the collection's visibility is set to viewersOnly then only
+ * these users will see the collection.
+ * (collectionviewers.listCollectionviewers)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_CollectionViewersListResponse
+ */
+ public function listCollectionviewers($enterpriseId, $collectionId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_CollectionViewersListResponse");
+ }
+
+ /**
+ * Adds the user to the list of those specifically allowed to see the
+ * collection. If the collection's visibility is set to viewersOnly then only
+ * such users will see the collection. This method supports patch semantics.
+ * (collectionviewers.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param string $userId The ID of the user.
+ * @param Google_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_User
+ */
+ public function patch($enterpriseId, $collectionId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_User");
+ }
+
+ /**
+ * Adds the user to the list of those specifically allowed to see the
+ * collection. If the collection's visibility is set to viewersOnly then only
+ * such users will see the collection. (collectionviewers.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $collectionId The ID of the collection.
+ * @param string $userId The ID of the user.
+ * @param Google_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_User
+ */
+ public function update($enterpriseId, $collectionId, $userId, Google_Service_AndroidEnterprise_User $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'collectionId' => $collectionId, 'userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_User");
+ }
+}
+
+/**
+ * The "devices" collection of methods.
+ * Typical usage is:
+ *
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $devices = $androidenterpriseService->devices;
+ *
+ */
+class Google_Service_AndroidEnterprise_Devices_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Retrieves the details of a device. (devices.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The ID of the device.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Device
+ */
+ public function get($enterpriseId, $userId, $deviceId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Device");
+ }
+
+ /**
+ * Retrieves whether a device is enabled or disabled for access by the user to
+ * Google services. The device state takes effect only if enforcing EMM policies
+ * on Android devices is enabled in the Google Admin Console. Otherwise, the
+ * device state is ignored and all devices are allowed access to Google
+ * services. (devices.getState)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The ID of the device.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_DeviceState
+ */
+ public function getState($enterpriseId, $userId, $deviceId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getState', array($params), "Google_Service_AndroidEnterprise_DeviceState");
+ }
+
+ /**
+ * Retrieves the IDs of all of a user's devices. (devices.listDevices)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_DevicesListResponse
+ */
+ public function listDevices($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_DevicesListResponse");
+ }
+
+ /**
+ * Sets whether a device is enabled or disabled for access by the user to Google
+ * services. The device state takes effect only if enforcing EMM policies on
+ * Android devices is enabled in the Google Admin Console. Otherwise, the device
+ * state is ignored and all devices are allowed access to Google services.
+ * (devices.setState)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The ID of the device.
+ * @param Google_DeviceState $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_DeviceState
+ */
+ public function setState($enterpriseId, $userId, $deviceId, Google_Service_AndroidEnterprise_DeviceState $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setState', array($params), "Google_Service_AndroidEnterprise_DeviceState");
+ }
+}
+
+/**
+ * The "enterprises" collection of methods.
+ * Typical usage is:
+ *
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $enterprises = $androidenterpriseService->enterprises;
+ *
+ */
+class Google_Service_AndroidEnterprise_Enterprises_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes the binding between the MDM and enterprise. This is now deprecated;
+ * use this to unenroll customers that were previously enrolled with the
+ * 'insert' call, then enroll them again with the 'enroll' call.
+ * (enterprises.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Enrolls an enterprise with the calling MDM. (enterprises.enroll)
+ *
+ * @param string $token The token provided by the enterprise to register the
+ * MDM.
+ * @param Google_Enterprise $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Enterprise
+ */
+ public function enroll($token, Google_Service_AndroidEnterprise_Enterprise $postBody, $optParams = array())
+ {
+ $params = array('token' => $token, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('enroll', array($params), "Google_Service_AndroidEnterprise_Enterprise");
+ }
+
+ /**
+ * Retrieves the name and domain of an enterprise. (enterprises.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Enterprise
+ */
+ public function get($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Enterprise");
+ }
+
+ /**
+ * Establishes the binding between the MDM and an enterprise. This is now
+ * deprecated; use enroll instead. (enterprises.insert)
+ *
+ * @param string $token The token provided by the enterprise to register the
+ * MDM.
+ * @param Google_Enterprise $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Enterprise
+ */
+ public function insert($token, Google_Service_AndroidEnterprise_Enterprise $postBody, $optParams = array())
+ {
+ $params = array('token' => $token, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_AndroidEnterprise_Enterprise");
+ }
+
+ /**
+ * Looks up an enterprise by domain name. (enterprises.listEnterprises)
+ *
+ * @param string $domain The exact primary domain name of the enterprise to look
+ * up.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_EnterprisesListResponse
+ */
+ public function listEnterprises($domain, $optParams = array())
+ {
+ $params = array('domain' => $domain);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EnterprisesListResponse");
+ }
+
+ /**
+ * Set the account that will be used to authenticate to the API as the
+ * enterprise. (enterprises.setAccount)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param Google_EnterpriseAccount $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_EnterpriseAccount
+ */
+ public function setAccount($enterpriseId, Google_Service_AndroidEnterprise_EnterpriseAccount $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('setAccount', array($params), "Google_Service_AndroidEnterprise_EnterpriseAccount");
+ }
+
+ /**
+ * Unenrolls an enterprise from the calling MDM. (enterprises.unenroll)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ */
+ public function unenroll($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('unenroll', array($params));
+ }
+}
+
+/**
+ * The "entitlements" collection of methods.
+ * Typical usage is:
+ *
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $entitlements = $androidenterpriseService->entitlements;
+ *
+ */
+class Google_Service_AndroidEnterprise_Entitlements_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Removes an entitlement to an app for a user and uninstalls it.
+ * (entitlements.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $entitlementId The ID of the entitlement, e.g.
+ * "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $userId, $entitlementId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Retrieves details of an entitlement. (entitlements.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $entitlementId The ID of the entitlement, e.g.
+ * "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Entitlement
+ */
+ public function get($enterpriseId, $userId, $entitlementId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Entitlement");
+ }
+
+ /**
+ * List of all entitlements for the specified user. Only the ID is set.
+ * (entitlements.listEntitlements)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_EntitlementsListResponse
+ */
+ public function listEntitlements($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_EntitlementsListResponse");
+ }
+
+ /**
+ * Adds or updates an entitlement to an app for a user. This method supports
+ * patch semantics. (entitlements.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $entitlementId The ID of the entitlement, e.g.
+ * "app:com.google.android.gm".
+ * @param Google_Entitlement $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool install Set to true to also install the product on all the
+ * user's devices where possible. Failure to install on one or more devices will
+ * not prevent this operation from returning successfully, as long as the
+ * entitlement was successfully assigned to the user.
+ * @return Google_Service_AndroidEnterprise_Entitlement
+ */
+ public function patch($enterpriseId, $userId, $entitlementId, Google_Service_AndroidEnterprise_Entitlement $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Entitlement");
+ }
+
+ /**
+ * Adds or updates an entitlement to an app for a user. (entitlements.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $entitlementId The ID of the entitlement, e.g.
+ * "app:com.google.android.gm".
+ * @param Google_Entitlement $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool install Set to true to also install the product on all the
+ * user's devices where possible. Failure to install on one or more devices will
+ * not prevent this operation from returning successfully, as long as the
+ * entitlement was successfully assigned to the user.
+ * @return Google_Service_AndroidEnterprise_Entitlement
+ */
+ public function update($enterpriseId, $userId, $entitlementId, Google_Service_AndroidEnterprise_Entitlement $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'entitlementId' => $entitlementId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Entitlement");
+ }
+}
+
+/**
+ * The "grouplicenses" collection of methods.
+ * Typical usage is:
+ *
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $grouplicenses = $androidenterpriseService->grouplicenses;
+ *
+ */
+class Google_Service_AndroidEnterprise_Grouplicenses_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Retrieves details of an enterprise's group license for a product.
+ * (grouplicenses.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $groupLicenseId The ID of the product the group license is for,
+ * e.g. "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_GroupLicense
+ */
+ public function get($enterpriseId, $groupLicenseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_GroupLicense");
+ }
+
+ /**
+ * Retrieves IDs of all products for which the enterprise has a group license.
+ * (grouplicenses.listGrouplicenses)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_GroupLicensesListResponse
+ */
+ public function listGrouplicenses($enterpriseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_GroupLicensesListResponse");
+ }
+}
+
+/**
+ * The "grouplicenseusers" collection of methods.
+ * Typical usage is:
+ *
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $grouplicenseusers = $androidenterpriseService->grouplicenseusers;
+ *
+ */
+class Google_Service_AndroidEnterprise_Grouplicenseusers_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Retrieves the IDs of the users who have been granted entitlements under the
+ * license. (grouplicenseusers.listGrouplicenseusers)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $groupLicenseId The ID of the product the group license is for,
+ * e.g. "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse
+ */
+ public function listGrouplicenseusers($enterpriseId, $groupLicenseId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'groupLicenseId' => $groupLicenseId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse");
+ }
+}
+
+/**
+ * The "installs" collection of methods.
+ * Typical usage is:
+ *
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $installs = $androidenterpriseService->installs;
+ *
+ */
+class Google_Service_AndroidEnterprise_Installs_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Requests to remove an app from a device. A call to get or list will still
+ * show the app as installed on the device until it is actually removed.
+ * (installs.delete)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param string $installId The ID of the product represented by the install,
+ * e.g. "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($enterpriseId, $userId, $deviceId, $installId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Retrieves details of an installation of an app on a device. (installs.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param string $installId The ID of the product represented by the install,
+ * e.g. "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Install
+ */
+ public function get($enterpriseId, $userId, $deviceId, $installId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Install");
+ }
+
+ /**
+ * Retrieves the details of all apps installed on the specified device.
+ * (installs.listInstalls)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_InstallsListResponse
+ */
+ public function listInstalls($enterpriseId, $userId, $deviceId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_InstallsListResponse");
+ }
+
+ /**
+ * Requests to install the latest version of an app to a device. If the app is
+ * already installed then it is updated to the latest version if necessary. This
+ * method supports patch semantics. (installs.patch)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param string $installId The ID of the product represented by the install,
+ * e.g. "app:com.google.android.gm".
+ * @param Google_Install $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Install
+ */
+ public function patch($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_AndroidEnterprise_Install");
+ }
+
+ /**
+ * Requests to install the latest version of an app to a device. If the app is
+ * already installed then it is updated to the latest version if necessary.
+ * (installs.update)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param string $deviceId The Android ID of the device.
+ * @param string $installId The ID of the product represented by the install,
+ * e.g. "app:com.google.android.gm".
+ * @param Google_Install $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_Install
+ */
+ public function update($enterpriseId, $userId, $deviceId, $installId, Google_Service_AndroidEnterprise_Install $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId, 'deviceId' => $deviceId, 'installId' => $installId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_AndroidEnterprise_Install");
+ }
+}
+
+/**
+ * The "permissions" collection of methods.
+ * Typical usage is:
+ *
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $permissions = $androidenterpriseService->permissions;
+ *
+ */
+class Google_Service_AndroidEnterprise_Permissions_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Retrieves details of an Android app permission for display to an enterprise
+ * admin. (permissions.get)
+ *
+ * @param string $permissionId The ID of the permission.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string language The BCP47 tag for the user's preferred language
+ * (e.g. "en-US", "de")
+ * @return Google_Service_AndroidEnterprise_Permission
+ */
+ public function get($permissionId, $optParams = array())
+ {
+ $params = array('permissionId' => $permissionId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Permission");
+ }
+}
+
+/**
+ * The "products" collection of methods.
+ * Typical usage is:
+ *
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $products = $androidenterpriseService->products;
+ *
+ */
+class Google_Service_AndroidEnterprise_Products_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Retrieves details of a product for display to an enterprise admin.
+ * (products.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $productId The ID of the product, e.g.
+ * "app:com.google.android.gm".
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string language The BCP47 tag for the user's preferred language
+ * (e.g. "en-US", "de").
+ * @return Google_Service_AndroidEnterprise_Product
+ */
+ public function get($enterpriseId, $productId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_Product");
+ }
+
+ /**
+ * Retrieves the schema defining app restrictions configurable for this product.
+ * All products have a schema, but this may be empty if no app restrictions are
+ * defined. (products.getAppRestrictionsSchema)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $productId The ID of the product.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string language The BCP47 tag for the user's preferred language
+ * (e.g. "en-US", "de").
+ * @return Google_Service_AndroidEnterprise_AppRestrictionsSchema
+ */
+ public function getAppRestrictionsSchema($enterpriseId, $productId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAppRestrictionsSchema', array($params), "Google_Service_AndroidEnterprise_AppRestrictionsSchema");
+ }
+
+ /**
+ * Retrieves the Android app permissions required by this app.
+ * (products.getPermissions)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $productId The ID of the product.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ProductPermissions
+ */
+ public function getPermissions($enterpriseId, $productId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getPermissions', array($params), "Google_Service_AndroidEnterprise_ProductPermissions");
+ }
+
+ /**
+ * Updates the set of Android app permissions for this app that have been
+ * accepted by the enterprise. (products.updatePermissions)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $productId The ID of the product.
+ * @param Google_ProductPermissions $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_ProductPermissions
+ */
+ public function updatePermissions($enterpriseId, $productId, Google_Service_AndroidEnterprise_ProductPermissions $postBody, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'productId' => $productId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('updatePermissions', array($params), "Google_Service_AndroidEnterprise_ProductPermissions");
+ }
+}
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ *
+ * $androidenterpriseService = new Google_Service_AndroidEnterprise(...);
+ * $users = $androidenterpriseService->users;
+ *
+ */
+class Google_Service_AndroidEnterprise_Users_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Generates a token (activation code) to allow this user to configure their
+ * work account in the Android Setup Wizard. Revokes any previously generated
+ * token. (users.generateToken)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_UserToken
+ */
+ public function generateToken($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('generateToken', array($params), "Google_Service_AndroidEnterprise_UserToken");
+ }
+
+ /**
+ * Retrieves a user's details. (users.get)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_User
+ */
+ public function get($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_AndroidEnterprise_User");
+ }
+
+ /**
+ * Looks up a user by email address. (users.listUsers)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $email The exact primary email address of the user to look up.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_AndroidEnterprise_UsersListResponse
+ */
+ public function listUsers($enterpriseId, $email, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'email' => $email);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_AndroidEnterprise_UsersListResponse");
+ }
+
+ /**
+ * Revokes a previously generated token (activation code) for the user.
+ * (users.revokeToken)
+ *
+ * @param string $enterpriseId The ID of the enterprise.
+ * @param string $userId The ID of the user.
+ * @param array $optParams Optional parameters.
+ */
+ public function revokeToken($enterpriseId, $userId, $optParams = array())
+ {
+ $params = array('enterpriseId' => $enterpriseId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ return $this->call('revokeToken', array($params));
+ }
+}
+
+
+
+
+class Google_Service_AndroidEnterprise_AppRestrictionsSchema extends Google_Collection
+{
+ protected $collection_key = 'restrictions';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $restrictionsType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction';
+ protected $restrictionsDataType = 'array';
+
+
+ public function setRestrictions($restrictions)
+ {
+ $this->restrictions = $restrictions;
+ }
+ public function getRestrictions()
+ {
+ return $this->restrictions;
+ }
+}
+
+class Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestriction extends Google_Collection
+{
+ protected $collection_key = 'entryValue';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $defaultValueType = 'Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue';
+ protected $defaultValueDataType = '';
+ public $description;
+ public $entry;
+ public $entryValue;
+ public $key;
+ public $restrictionType;
+ public $title;
+
+
+ public function setDefaultValue(Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue $defaultValue)
+ {
+ $this->defaultValue = $defaultValue;
+ }
+ public function getDefaultValue()
+ {
+ return $this->defaultValue;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setEntry($entry)
+ {
+ $this->entry = $entry;
+ }
+ public function getEntry()
+ {
+ return $this->entry;
+ }
+ public function setEntryValue($entryValue)
+ {
+ $this->entryValue = $entryValue;
+ }
+ public function getEntryValue()
+ {
+ return $this->entryValue;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setRestrictionType($restrictionType)
+ {
+ $this->restrictionType = $restrictionType;
+ }
+ public function getRestrictionType()
+ {
+ return $this->restrictionType;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
+
+class Google_Service_AndroidEnterprise_AppRestrictionsSchemaRestrictionRestrictionValue extends Google_Collection
+{
+ protected $collection_key = 'valueMultiselect';
+ protected $internal_gapi_mappings = array(
+ );
+ public $type;
+ public $valueBool;
+ public $valueInteger;
+ public $valueMultiselect;
+ public $valueString;
+
+
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValueBool($valueBool)
+ {
+ $this->valueBool = $valueBool;
+ }
+ public function getValueBool()
+ {
+ return $this->valueBool;
+ }
+ public function setValueInteger($valueInteger)
+ {
+ $this->valueInteger = $valueInteger;
+ }
+ public function getValueInteger()
+ {
+ return $this->valueInteger;
+ }
+ public function setValueMultiselect($valueMultiselect)
+ {
+ $this->valueMultiselect = $valueMultiselect;
+ }
+ public function getValueMultiselect()
+ {
+ return $this->valueMultiselect;
+ }
+ public function setValueString($valueString)
+ {
+ $this->valueString = $valueString;
+ }
+ public function getValueString()
+ {
+ return $this->valueString;
+ }
+}
+
+class Google_Service_AndroidEnterprise_Collection extends Google_Collection
+{
+ protected $collection_key = 'productId';
+ protected $internal_gapi_mappings = array(
+ );
+ public $collectionId;
+ public $kind;
+ public $name;
+ public $productId;
+ public $visibility;
+
+
+ public function setCollectionId($collectionId)
+ {
+ $this->collectionId = $collectionId;
+ }
+ public function getCollectionId()
+ {
+ return $this->collectionId;
+ }
+ 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 setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+ public function setVisibility($visibility)
+ {
+ $this->visibility = $visibility;
+ }
+ public function getVisibility()
+ {
+ return $this->visibility;
+ }
+}
+
+class Google_Service_AndroidEnterprise_CollectionViewersListResponse extends Google_Collection
+{
+ protected $collection_key = 'user';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ protected $userType = 'Google_Service_AndroidEnterprise_User';
+ protected $userDataType = 'array';
+
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
+
+class Google_Service_AndroidEnterprise_CollectionsListResponse extends Google_Collection
+{
+ protected $collection_key = 'collection';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $collectionType = 'Google_Service_AndroidEnterprise_Collection';
+ protected $collectionDataType = 'array';
+ public $kind;
+
+
+ public function setCollection($collection)
+ {
+ $this->collection = $collection;
+ }
+ public function getCollection()
+ {
+ return $this->collection;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_AndroidEnterprise_Device extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $androidId;
+ public $kind;
+
+
+ public function setAndroidId($androidId)
+ {
+ $this->androidId = $androidId;
+ }
+ public function getAndroidId()
+ {
+ return $this->androidId;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_AndroidEnterprise_DeviceState extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountState;
+ public $kind;
+
+
+ public function setAccountState($accountState)
+ {
+ $this->accountState = $accountState;
+ }
+ public function getAccountState()
+ {
+ return $this->accountState;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_AndroidEnterprise_DevicesListResponse extends Google_Collection
+{
+ protected $collection_key = 'device';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $deviceType = 'Google_Service_AndroidEnterprise_Device';
+ protected $deviceDataType = 'array';
+ public $kind;
+
+
+ public function setDevice($device)
+ {
+ $this->device = $device;
+ }
+ public function getDevice()
+ {
+ return $this->device;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_AndroidEnterprise_Enterprise extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ public $kind;
+ public $name;
+ public $primaryDomain;
+
+
+ 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 setPrimaryDomain($primaryDomain)
+ {
+ $this->primaryDomain = $primaryDomain;
+ }
+ public function getPrimaryDomain()
+ {
+ return $this->primaryDomain;
+ }
+}
+
+class Google_Service_AndroidEnterprise_EnterpriseAccount extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountEmail;
+ public $kind;
+
+
+ public function setAccountEmail($accountEmail)
+ {
+ $this->accountEmail = $accountEmail;
+ }
+ public function getAccountEmail()
+ {
+ return $this->accountEmail;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_AndroidEnterprise_EnterprisesListResponse extends Google_Collection
+{
+ protected $collection_key = 'enterprise';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $enterpriseType = 'Google_Service_AndroidEnterprise_Enterprise';
+ protected $enterpriseDataType = 'array';
+ public $kind;
+
+
+ public function setEnterprise($enterprise)
+ {
+ $this->enterprise = $enterprise;
+ }
+ public function getEnterprise()
+ {
+ return $this->enterprise;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_AndroidEnterprise_Entitlement extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ public $productId;
+ public $reason;
+
+
+ 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 setReason($reason)
+ {
+ $this->reason = $reason;
+ }
+ public function getReason()
+ {
+ return $this->reason;
+ }
+}
+
+class Google_Service_AndroidEnterprise_EntitlementsListResponse extends Google_Collection
+{
+ protected $collection_key = 'entitlement';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $entitlementType = 'Google_Service_AndroidEnterprise_Entitlement';
+ protected $entitlementDataType = 'array';
+ public $kind;
+
+
+ public function setEntitlement($entitlement)
+ {
+ $this->entitlement = $entitlement;
+ }
+ public function getEntitlement()
+ {
+ return $this->entitlement;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_AndroidEnterprise_GroupLicense extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $acquisitionKind;
+ public $approval;
+ public $kind;
+ public $numProvisioned;
+ public $numPurchased;
+ public $productId;
+
+
+ public function setAcquisitionKind($acquisitionKind)
+ {
+ $this->acquisitionKind = $acquisitionKind;
+ }
+ public function getAcquisitionKind()
+ {
+ return $this->acquisitionKind;
+ }
+ public function setApproval($approval)
+ {
+ $this->approval = $approval;
+ }
+ public function getApproval()
+ {
+ return $this->approval;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setNumProvisioned($numProvisioned)
+ {
+ $this->numProvisioned = $numProvisioned;
+ }
+ public function getNumProvisioned()
+ {
+ return $this->numProvisioned;
+ }
+ public function setNumPurchased($numPurchased)
+ {
+ $this->numPurchased = $numPurchased;
+ }
+ public function getNumPurchased()
+ {
+ return $this->numPurchased;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+}
+
+class Google_Service_AndroidEnterprise_GroupLicenseUsersListResponse extends Google_Collection
+{
+ protected $collection_key = 'user';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ protected $userType = 'Google_Service_AndroidEnterprise_User';
+ protected $userDataType = 'array';
+
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
+
+class Google_Service_AndroidEnterprise_GroupLicensesListResponse extends Google_Collection
+{
+ protected $collection_key = 'groupLicense';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $groupLicenseType = 'Google_Service_AndroidEnterprise_GroupLicense';
+ protected $groupLicenseDataType = 'array';
+ public $kind;
+
+
+ public function setGroupLicense($groupLicense)
+ {
+ $this->groupLicense = $groupLicense;
+ }
+ public function getGroupLicense()
+ {
+ return $this->groupLicense;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_AndroidEnterprise_Install extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $installState;
+ public $kind;
+ public $productId;
+ public $versionCode;
+
+
+ public function setInstallState($installState)
+ {
+ $this->installState = $installState;
+ }
+ public function getInstallState()
+ {
+ return $this->installState;
+ }
+ 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 setVersionCode($versionCode)
+ {
+ $this->versionCode = $versionCode;
+ }
+ public function getVersionCode()
+ {
+ return $this->versionCode;
+ }
+}
+
+class Google_Service_AndroidEnterprise_InstallsListResponse extends Google_Collection
+{
+ protected $collection_key = 'install';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $installType = 'Google_Service_AndroidEnterprise_Install';
+ protected $installDataType = 'array';
+ public $kind;
+
+
+ public function setInstall($install)
+ {
+ $this->install = $install;
+ }
+ public function getInstall()
+ {
+ return $this->install;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+}
+
+class Google_Service_AndroidEnterprise_Permission extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $description;
+ public $kind;
+ public $name;
+ public $permissionId;
+
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ 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 setPermissionId($permissionId)
+ {
+ $this->permissionId = $permissionId;
+ }
+ public function getPermissionId()
+ {
+ return $this->permissionId;
+ }
+}
+
+class Google_Service_AndroidEnterprise_Product extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $authorName;
+ public $detailsUrl;
+ public $iconUrl;
+ public $kind;
+ public $productId;
+ public $title;
+ public $workDetailsUrl;
+
+
+ public function setAuthorName($authorName)
+ {
+ $this->authorName = $authorName;
+ }
+ public function getAuthorName()
+ {
+ return $this->authorName;
+ }
+ public function setDetailsUrl($detailsUrl)
+ {
+ $this->detailsUrl = $detailsUrl;
+ }
+ public function getDetailsUrl()
+ {
+ return $this->detailsUrl;
+ }
+ public function setIconUrl($iconUrl)
+ {
+ $this->iconUrl = $iconUrl;
+ }
+ public function getIconUrl()
+ {
+ return $this->iconUrl;
+ }
+ 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 setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setWorkDetailsUrl($workDetailsUrl)
+ {
+ $this->workDetailsUrl = $workDetailsUrl;
+ }
+ public function getWorkDetailsUrl()
+ {
+ return $this->workDetailsUrl;
+ }
+}
+
+class Google_Service_AndroidEnterprise_ProductPermission extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $permissionId;
+ public $state;
+
+
+ public function setPermissionId($permissionId)
+ {
+ $this->permissionId = $permissionId;
+ }
+ public function getPermissionId()
+ {
+ return $this->permissionId;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
+
+class Google_Service_AndroidEnterprise_ProductPermissions extends Google_Collection
+{
+ protected $collection_key = 'permission';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ protected $permissionType = 'Google_Service_AndroidEnterprise_ProductPermission';
+ protected $permissionDataType = 'array';
+ public $productId;
+
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPermission($permission)
+ {
+ $this->permission = $permission;
+ }
+ public function getPermission()
+ {
+ return $this->permission;
+ }
+ public function setProductId($productId)
+ {
+ $this->productId = $productId;
+ }
+ public function getProductId()
+ {
+ return $this->productId;
+ }
+}
+
+class Google_Service_AndroidEnterprise_User extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ public $kind;
+ public $primaryEmail;
+
+
+ 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 setPrimaryEmail($primaryEmail)
+ {
+ $this->primaryEmail = $primaryEmail;
+ }
+ public function getPrimaryEmail()
+ {
+ return $this->primaryEmail;
+ }
+}
+
+class Google_Service_AndroidEnterprise_UserToken extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ public $token;
+ public $userId;
+
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setToken($token)
+ {
+ $this->token = $token;
+ }
+ public function getToken()
+ {
+ return $this->token;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+}
+
+class Google_Service_AndroidEnterprise_UsersListResponse extends Google_Collection
+{
+ protected $collection_key = 'user';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ protected $userType = 'Google_Service_AndroidEnterprise_User';
+ protected $userDataType = 'array';
+
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+}
From 016a8d69a6755cb94fac147daa663941f0f17ea1 Mon Sep 17 00:00:00 2001
From: Silvano Luciani - * Allows MDMs and corporations to manage Android corp devices.
+ * Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android + * for Work users. * ** For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. From 5456aa42f94829859802cffe34ae2cdf0b3cc194 Mon Sep 17 00:00:00 2001 From: Ian Barber- * For more information about this service, see the API - * Documentation - *
- * - * @author Google, Inc. - */ -class Google_Service_SQLAdmin extends Google_Service -{ - /** View and manage your data across Google Cloud Platform services. */ - const CLOUD_PLATFORM = - "https://www.googleapis.com/auth/cloud-platform"; - /** Manage your Google SQL Service instances. */ - const SQLSERVICE_ADMIN = - "https://www.googleapis.com/auth/sqlservice.admin"; - - public $backupRuns; - public $databases; - public $flags; - public $instances; - public $operations; - public $sslCerts; - public $tiers; - public $users; - - - /** - * Constructs the internal representation of the SQLAdmin service. - * - * @param Google_Client $client - */ - public function __construct(Google_Client $client) - { - parent::__construct($client); - $this->servicePath = 'sql/v1beta4/'; - $this->version = 'v1beta4'; - $this->serviceName = 'sqladmin'; - - $this->backupRuns = new Google_Service_SQLAdmin_BackupRuns_Resource( - $this, - $this->serviceName, - 'backupRuns', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns/{id}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'id' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/backupRuns', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->databases = new Google_Service_SQLAdmin_Databases_Resource( - $this, - $this->serviceName, - 'databases', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/databases', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/databases', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}/databases/{database}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'database' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->flags = new Google_Service_SQLAdmin_Flags_Resource( - $this, - $this->serviceName, - 'flags', - array( - 'methods' => array( - 'list' => array( - 'path' => 'flags', - 'httpMethod' => 'GET', - 'parameters' => array(), - ), - ) - ) - ); - $this->instances = new Google_Service_SQLAdmin_Instances_Resource( - $this, - $this->serviceName, - 'instances', - array( - 'methods' => array( - 'clone' => array( - 'path' => 'projects/{project}/instances/{instance}/clone', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'delete' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'export' => array( - 'path' => 'projects/{project}/instances/{instance}/export', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'import' => array( - 'path' => 'projects/{project}/instances/{instance}/import', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - ), - ),'patch' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PATCH', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'promoteReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/promoteReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'resetSslConfig' => array( - 'path' => 'projects/{project}/instances/{instance}/resetSslConfig', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restart' => array( - 'path' => 'projects/{project}/instances/{instance}/restart', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'restoreBackup' => array( - 'path' => 'projects/{project}/instances/{instance}/restoreBackup', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'startReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/startReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'stopReplica' => array( - 'path' => 'projects/{project}/instances/{instance}/stopReplica', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->operations = new Google_Service_SQLAdmin_Operations_Resource( - $this, - $this->serviceName, - 'operations', - array( - 'methods' => array( - 'get' => array( - 'path' => 'projects/{project}/operations/{operation}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'operation' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/operations', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'maxResults' => array( - 'location' => 'query', - 'type' => 'integer', - ), - 'pageToken' => array( - 'location' => 'query', - 'type' => 'string', - ), - ), - ), - ) - ) - ); - $this->sslCerts = new Google_Service_SQLAdmin_SslCerts_Resource( - $this, - $this->serviceName, - 'sslCerts', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'get' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'sha1Fingerprint' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/sslCerts', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->tiers = new Google_Service_SQLAdmin_Tiers_Resource( - $this, - $this->serviceName, - 'tiers', - array( - 'methods' => array( - 'list' => array( - 'path' => 'projects/{project}/tiers', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - $this->users = new Google_Service_SQLAdmin_Users_Resource( - $this, - $this->serviceName, - 'users', - array( - 'methods' => array( - 'delete' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'DELETE', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'host' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ),'insert' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'POST', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'list' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'GET', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - ), - ),'update' => array( - 'path' => 'projects/{project}/instances/{instance}/users', - 'httpMethod' => 'PUT', - 'parameters' => array( - 'project' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'instance' => array( - 'location' => 'path', - 'type' => 'string', - 'required' => true, - ), - 'host' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - 'name' => array( - 'location' => 'query', - 'type' => 'string', - 'required' => true, - ), - ), - ), - ) - ) - ); - } -} - - -/** - * The "backupRuns" collection of methods. - * Typical usage is: - *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $backupRuns = $sqladminService->backupRuns;
- *
- */
-class Google_Service_SQLAdmin_BackupRuns_Resource extends Google_Service_Resource
-{
-
- /**
- * Retrieves a resource containing information about a backup run.
- * (backupRuns.get)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param string $id The ID of this Backup Run.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_BackupRun
- */
- public function get($project, $instance, $id, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'id' => $id);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_SQLAdmin_BackupRun");
- }
-
- /**
- * Lists all backup runs associated with a given instance and configuration in
- * the reverse chronological order of the enqueued time.
- * (backupRuns.listBackupRuns)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults Maximum number of backup runs per response.
- * @opt_param string pageToken A previously-returned page token representing
- * part of the larger set of results to view.
- * @return Google_Service_SQLAdmin_BackupRunsListResponse
- */
- public function listBackupRuns($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_BackupRunsListResponse");
- }
-}
-
-/**
- * The "databases" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $databases = $sqladminService->databases;
- *
- */
-class Google_Service_SQLAdmin_Databases_Resource extends Google_Service_Resource
-{
-
- /**
- * Deletes a resource containing information about a database inside a Cloud SQL
- * instance. (databases.delete)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param string $database Name of the database to be deleted in the instance.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function delete($project, $instance, $database, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'database' => $database);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Retrieves a resource containing information about a database inside a Cloud
- * SQL instance. (databases.get)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param string $database Name of the database in the instance.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Database
- */
- public function get($project, $instance, $database, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'database' => $database);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_SQLAdmin_Database");
- }
-
- /**
- * Inserts a resource containing information about a database inside a Cloud SQL
- * instance. (databases.insert)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param Google_Database $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function insert($project, $instance, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Lists databases in the specified Cloud SQL instance.
- * (databases.listDatabases)
- *
- * @param string $project Project ID of the project for which to list Cloud SQL
- * instances.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_DatabasesListResponse
- */
- public function listDatabases($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_DatabasesListResponse");
- }
-
- /**
- * Updates a resource containing information about a database inside a Cloud SQL
- * instance. This method supports patch semantics. (databases.patch)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param string $database Name of the database to be updated in the instance.
- * @param Google_Database $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function patch($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Updates a resource containing information about a database inside a Cloud SQL
- * instance. (databases.update)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param string $database Name of the database to be updated in the instance.
- * @param Google_Database $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function update($project, $instance, $database, Google_Service_SQLAdmin_Database $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'database' => $database, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
- }
-}
-
-/**
- * The "flags" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $flags = $sqladminService->flags;
- *
- */
-class Google_Service_SQLAdmin_Flags_Resource extends Google_Service_Resource
-{
-
- /**
- * List all available database flags for Google Cloud SQL instances.
- * (flags.listFlags)
- *
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_FlagsListResponse
- */
- public function listFlags($optParams = array())
- {
- $params = array();
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_FlagsListResponse");
- }
-}
-
-/**
- * The "instances" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $instances = $sqladminService->instances;
- *
- */
-class Google_Service_SQLAdmin_Instances_Resource extends Google_Service_Resource
-{
-
- /**
- * Creates a Cloud SQL instance as a clone of the source instance.
- * (instances.cloneInstances)
- *
- * @param string $project Project ID of the source as well as the clone Cloud
- * SQL instance.
- * @param string $instance The ID of the Cloud SQL instance to be cloned
- * (source). This does not include the project ID.
- * @param Google_InstancesCloneRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function cloneInstances($project, $instance, Google_Service_SQLAdmin_InstancesCloneRequest $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('clone', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Deletes a Cloud SQL instance. (instances.delete)
- *
- * @param string $project Project ID of the project that contains the instance
- * to be deleted.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function delete($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a
- * MySQL dump file. (instances.export)
- *
- * @param string $project Project ID of the project that contains the instance
- * to be exported.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_InstancesExportRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function export($project, $instance, Google_Service_SQLAdmin_InstancesExportRequest $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('export', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Retrieves a resource containing information about a Cloud SQL instance.
- * (instances.get)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_DatabaseInstance
- */
- public function get($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_SQLAdmin_DatabaseInstance");
- }
-
- /**
- * Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud
- * Storage. (instances.import)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_InstancesImportRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function import($project, $instance, Google_Service_SQLAdmin_InstancesImportRequest $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('import', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Creates a new Cloud SQL instance. (instances.insert)
- *
- * @param string $project Project ID of the project to which the newly created
- * Cloud SQL instances should belong.
- * @param Google_DatabaseInstance $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function insert($project, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Lists instances under a given project in the alphabetical order of the
- * instance name. (instances.listInstances)
- *
- * @param string $project Project ID of the project for which to list Cloud SQL
- * instances.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken A previously-returned page token representing
- * part of the larger set of results to view.
- * @opt_param string maxResults The maximum number of results to return per
- * response.
- * @return Google_Service_SQLAdmin_InstancesListResponse
- */
- public function listInstances($project, $optParams = array())
- {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_InstancesListResponse");
- }
-
- /**
- * Updates settings of a Cloud SQL instance. Caution: This is not a partial
- * update, so you must include values for all the settings that you want to
- * retain. For partial updates, use patch.. This method supports patch
- * semantics. (instances.patch)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_DatabaseInstance $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function patch($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Promotes the read replica instance to be a stand-alone Cloud SQL instance.
- * (instances.promoteReplica)
- *
- * @param string $project ID of the project that contains the read replica.
- * @param string $instance Cloud SQL read replica instance name.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function promoteReplica($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('promoteReplica', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Deletes all client certificates and generates a new server SSL certificate
- * for the instance. The changes will not take effect until the instance is
- * restarted. Existing instances without a server certificate will need to call
- * this once to set a server certificate. (instances.resetSslConfig)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function resetSslConfig($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('resetSslConfig', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Restarts a Cloud SQL instance. (instances.restart)
- *
- * @param string $project Project ID of the project that contains the instance
- * to be restarted.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function restart($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('restart', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Restores a backup of a Cloud SQL instance. (instances.restoreBackup)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_InstancesRestoreBackupRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function restoreBackup($project, $instance, Google_Service_SQLAdmin_InstancesRestoreBackupRequest $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('restoreBackup', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Starts the replication in the read replica instance. (instances.startReplica)
- *
- * @param string $project ID of the project that contains the read replica.
- * @param string $instance Cloud SQL read replica instance name.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function startReplica($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('startReplica', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Stops the replication in the read replica instance. (instances.stopReplica)
- *
- * @param string $project ID of the project that contains the read replica.
- * @param string $instance Cloud SQL read replica instance name.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function stopReplica($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('stopReplica', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Updates settings of a Cloud SQL instance. Caution: This is not a partial
- * update, so you must include values for all the settings that you want to
- * retain. For partial updates, use patch. (instances.update)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_DatabaseInstance $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function update($project, $instance, Google_Service_SQLAdmin_DatabaseInstance $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
- }
-}
-
-/**
- * The "operations" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $operations = $sqladminService->operations;
- *
- */
-class Google_Service_SQLAdmin_Operations_Resource extends Google_Service_Resource
-{
-
- /**
- * Retrieves an instance operation that has been performed on an instance.
- * (operations.get)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $operation Instance operation ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function get($project, $operation, $optParams = array())
- {
- $params = array('project' => $project, 'operation' => $operation);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Lists all instance operations that have been performed on the given Cloud SQL
- * instance in the reverse chronological order of the start time.
- * (operations.listOperations)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string maxResults Maximum number of operations per response.
- * @opt_param string pageToken A previously-returned page token representing
- * part of the larger set of results to view.
- * @return Google_Service_SQLAdmin_OperationsListResponse
- */
- public function listOperations($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_OperationsListResponse");
- }
-}
-
-/**
- * The "sslCerts" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $sslCerts = $sqladminService->sslCerts;
- *
- */
-class Google_Service_SQLAdmin_SslCerts_Resource extends Google_Service_Resource
-{
-
- /**
- * Deletes the SSL certificate. The change will not take effect until the
- * instance is restarted. (sslCerts.delete)
- *
- * @param string $project Project ID of the project that contains the instance
- * to be deleted.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param string $sha1Fingerprint Sha1 FingerPrint.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function delete($project, $instance, $sha1Fingerprint, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Retrieves a particular SSL certificate. Does not include the private key
- * (required for usage). The private key must be saved from the response to
- * initial creation. (sslCerts.get)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param string $sha1Fingerprint Sha1 FingerPrint.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_SslCert
- */
- public function get($project, $instance, $sha1Fingerprint, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'sha1Fingerprint' => $sha1Fingerprint);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_SQLAdmin_SslCert");
- }
-
- /**
- * Creates an SSL certificate and returns it along with the private key and
- * server certificate authority. The new certificate will not be usable until
- * the instance is restarted. (sslCerts.insert)
- *
- * @param string $project Project ID of the project to which the newly created
- * Cloud SQL instances should belong.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param Google_SslCertsInsertRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_SslCertsInsertResponse
- */
- public function insert($project, $instance, Google_Service_SQLAdmin_SslCertsInsertRequest $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_SQLAdmin_SslCertsInsertResponse");
- }
-
- /**
- * Lists all of the current SSL certificates for the instance.
- * (sslCerts.listSslCerts)
- *
- * @param string $project Project ID of the project for which to list Cloud SQL
- * instances.
- * @param string $instance Cloud SQL instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_SslCertsListResponse
- */
- public function listSslCerts($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_SslCertsListResponse");
- }
-}
-
-/**
- * The "tiers" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $tiers = $sqladminService->tiers;
- *
- */
-class Google_Service_SQLAdmin_Tiers_Resource extends Google_Service_Resource
-{
-
- /**
- * Lists all available service tiers for Google Cloud SQL, for example D1, D2.
- * For related information, see Pricing. (tiers.listTiers)
- *
- * @param string $project Project ID of the project for which to list tiers.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_TiersListResponse
- */
- public function listTiers($project, $optParams = array())
- {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_TiersListResponse");
- }
-}
-
-/**
- * The "users" collection of methods.
- * Typical usage is:
- *
- * $sqladminService = new Google_Service_SQLAdmin(...);
- * $users = $sqladminService->users;
- *
- */
-class Google_Service_SQLAdmin_Users_Resource extends Google_Service_Resource
-{
-
- /**
- * Deletes a user from a Cloud SQL instance. (users.delete)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param string $host Host of the user in the instance.
- * @param string $name Name of the user in the instance.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function delete($project, $instance, $host, $name, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Creates a new user in a Cloud SQL instance. (users.insert)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param Google_User $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function insert($project, $instance, Google_Service_SQLAdmin_User $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_SQLAdmin_Operation");
- }
-
- /**
- * Lists users in the specified Cloud SQL instance. (users.listUsers)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_UsersListResponse
- */
- public function listUsers($project, $instance, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_SQLAdmin_UsersListResponse");
- }
-
- /**
- * Updates an existing user in a Cloud SQL instance. (users.update)
- *
- * @param string $project Project ID of the project that contains the instance.
- * @param string $instance Database instance ID. This does not include the
- * project ID.
- * @param string $host Host of the user in the instance.
- * @param string $name Name of the user in the instance.
- * @param Google_User $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_SQLAdmin_Operation
- */
- public function update($project, $instance, $host, $name, Google_Service_SQLAdmin_User $postBody, $optParams = array())
- {
- $params = array('project' => $project, 'instance' => $instance, 'host' => $host, 'name' => $name, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_SQLAdmin_Operation");
- }
-}
-
-
-
-
-class Google_Service_SQLAdmin_AclEntry extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $expirationTime;
- public $kind;
- public $name;
- public $value;
-
-
- public function setExpirationTime($expirationTime)
- {
- $this->expirationTime = $expirationTime;
- }
- public function getExpirationTime()
- {
- return $this->expirationTime;
- }
- 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 setValue($value)
- {
- $this->value = $value;
- }
- public function getValue()
- {
- return $this->value;
- }
-}
-
-class Google_Service_SQLAdmin_BackupConfiguration extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $binaryLogEnabled;
- public $enabled;
- public $kind;
- public $startTime;
-
-
- public function setBinaryLogEnabled($binaryLogEnabled)
- {
- $this->binaryLogEnabled = $binaryLogEnabled;
- }
- public function getBinaryLogEnabled()
- {
- return $this->binaryLogEnabled;
- }
- public function setEnabled($enabled)
- {
- $this->enabled = $enabled;
- }
- public function getEnabled()
- {
- return $this->enabled;
- }
- 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;
- }
-}
-
-class Google_Service_SQLAdmin_BackupRun extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $endTime;
- public $enqueuedTime;
- protected $errorType = 'Google_Service_SQLAdmin_OperationError';
- protected $errorDataType = '';
- public $id;
- public $instance;
- public $kind;
- public $selfLink;
- public $startTime;
- public $status;
- public $windowStartTime;
-
-
- public function setEndTime($endTime)
- {
- $this->endTime = $endTime;
- }
- public function getEndTime()
- {
- return $this->endTime;
- }
- public function setEnqueuedTime($enqueuedTime)
- {
- $this->enqueuedTime = $enqueuedTime;
- }
- public function getEnqueuedTime()
- {
- return $this->enqueuedTime;
- }
- public function setError(Google_Service_SQLAdmin_OperationError $error)
- {
- $this->error = $error;
- }
- public function getError()
- {
- return $this->error;
- }
- public function setId($id)
- {
- $this->id = $id;
- }
- public function getId()
- {
- return $this->id;
- }
- public function setInstance($instance)
- {
- $this->instance = $instance;
- }
- public function getInstance()
- {
- return $this->instance;
- }
- 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 setStartTime($startTime)
- {
- $this->startTime = $startTime;
- }
- public function getStartTime()
- {
- return $this->startTime;
- }
- public function setStatus($status)
- {
- $this->status = $status;
- }
- public function getStatus()
- {
- return $this->status;
- }
- public function setWindowStartTime($windowStartTime)
- {
- $this->windowStartTime = $windowStartTime;
- }
- public function getWindowStartTime()
- {
- return $this->windowStartTime;
- }
-}
-
-class Google_Service_SQLAdmin_BackupRunsListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_BackupRun';
- protected $itemsDataType = 'array';
- public $kind;
- public $nextPageToken;
-
-
- 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_SQLAdmin_BinLogCoordinates extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $binLogFileName;
- public $binLogPosition;
- public $kind;
-
-
- public function setBinLogFileName($binLogFileName)
- {
- $this->binLogFileName = $binLogFileName;
- }
- public function getBinLogFileName()
- {
- return $this->binLogFileName;
- }
- public function setBinLogPosition($binLogPosition)
- {
- $this->binLogPosition = $binLogPosition;
- }
- public function getBinLogPosition()
- {
- return $this->binLogPosition;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
-}
-
-class Google_Service_SQLAdmin_CloneContext extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $binLogCoordinatesType = 'Google_Service_SQLAdmin_BinLogCoordinates';
- protected $binLogCoordinatesDataType = '';
- public $destinationInstanceName;
- public $kind;
-
-
- public function setBinLogCoordinates(Google_Service_SQLAdmin_BinLogCoordinates $binLogCoordinates)
- {
- $this->binLogCoordinates = $binLogCoordinates;
- }
- public function getBinLogCoordinates()
- {
- return $this->binLogCoordinates;
- }
- public function setDestinationInstanceName($destinationInstanceName)
- {
- $this->destinationInstanceName = $destinationInstanceName;
- }
- public function getDestinationInstanceName()
- {
- return $this->destinationInstanceName;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
-}
-
-class Google_Service_SQLAdmin_Database extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $charset;
- public $collation;
- public $etag;
- public $instance;
- public $kind;
- public $name;
- public $project;
- public $selfLink;
-
-
- public function setCharset($charset)
- {
- $this->charset = $charset;
- }
- public function getCharset()
- {
- return $this->charset;
- }
- public function setCollation($collation)
- {
- $this->collation = $collation;
- }
- public function getCollation()
- {
- return $this->collation;
- }
- public function setEtag($etag)
- {
- $this->etag = $etag;
- }
- public function getEtag()
- {
- return $this->etag;
- }
- public function setInstance($instance)
- {
- $this->instance = $instance;
- }
- public function getInstance()
- {
- return $this->instance;
- }
- 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 setProject($project)
- {
- $this->project = $project;
- }
- public function getProject()
- {
- return $this->project;
- }
- public function setSelfLink($selfLink)
- {
- $this->selfLink = $selfLink;
- }
- public function getSelfLink()
- {
- return $this->selfLink;
- }
-}
-
-class Google_Service_SQLAdmin_DatabaseFlags 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_SQLAdmin_DatabaseInstance extends Google_Collection
-{
- protected $collection_key = 'replicaNames';
- protected $internal_gapi_mappings = array(
- );
- public $currentDiskSize;
- public $databaseVersion;
- public $etag;
- public $instanceType;
- protected $ipAddressesType = 'Google_Service_SQLAdmin_IpMapping';
- protected $ipAddressesDataType = 'array';
- public $ipv6Address;
- public $kind;
- public $masterInstanceName;
- public $maxDiskSize;
- public $name;
- public $project;
- public $region;
- public $replicaNames;
- public $selfLink;
- protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert';
- protected $serverCaCertDataType = '';
- public $serviceAccountEmailAddress;
- protected $settingsType = 'Google_Service_SQLAdmin_Settings';
- protected $settingsDataType = '';
- public $state;
-
-
- public function setCurrentDiskSize($currentDiskSize)
- {
- $this->currentDiskSize = $currentDiskSize;
- }
- public function getCurrentDiskSize()
- {
- return $this->currentDiskSize;
- }
- public function setDatabaseVersion($databaseVersion)
- {
- $this->databaseVersion = $databaseVersion;
- }
- public function getDatabaseVersion()
- {
- return $this->databaseVersion;
- }
- public function setEtag($etag)
- {
- $this->etag = $etag;
- }
- public function getEtag()
- {
- return $this->etag;
- }
- public function setInstanceType($instanceType)
- {
- $this->instanceType = $instanceType;
- }
- public function getInstanceType()
- {
- return $this->instanceType;
- }
- public function setIpAddresses($ipAddresses)
- {
- $this->ipAddresses = $ipAddresses;
- }
- public function getIpAddresses()
- {
- return $this->ipAddresses;
- }
- public function setIpv6Address($ipv6Address)
- {
- $this->ipv6Address = $ipv6Address;
- }
- public function getIpv6Address()
- {
- return $this->ipv6Address;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setMasterInstanceName($masterInstanceName)
- {
- $this->masterInstanceName = $masterInstanceName;
- }
- public function getMasterInstanceName()
- {
- return $this->masterInstanceName;
- }
- public function setMaxDiskSize($maxDiskSize)
- {
- $this->maxDiskSize = $maxDiskSize;
- }
- public function getMaxDiskSize()
- {
- return $this->maxDiskSize;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setProject($project)
- {
- $this->project = $project;
- }
- public function getProject()
- {
- return $this->project;
- }
- public function setRegion($region)
- {
- $this->region = $region;
- }
- public function getRegion()
- {
- return $this->region;
- }
- public function setReplicaNames($replicaNames)
- {
- $this->replicaNames = $replicaNames;
- }
- public function getReplicaNames()
- {
- return $this->replicaNames;
- }
- public function setSelfLink($selfLink)
- {
- $this->selfLink = $selfLink;
- }
- public function getSelfLink()
- {
- return $this->selfLink;
- }
- public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert)
- {
- $this->serverCaCert = $serverCaCert;
- }
- public function getServerCaCert()
- {
- return $this->serverCaCert;
- }
- public function setServiceAccountEmailAddress($serviceAccountEmailAddress)
- {
- $this->serviceAccountEmailAddress = $serviceAccountEmailAddress;
- }
- public function getServiceAccountEmailAddress()
- {
- return $this->serviceAccountEmailAddress;
- }
- public function setSettings(Google_Service_SQLAdmin_Settings $settings)
- {
- $this->settings = $settings;
- }
- public function getSettings()
- {
- return $this->settings;
- }
- public function setState($state)
- {
- $this->state = $state;
- }
- public function getState()
- {
- return $this->state;
- }
-}
-
-class Google_Service_SQLAdmin_DatabasesListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_Database';
- protected $itemsDataType = 'array';
- public $kind;
-
-
- 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;
- }
-}
-
-class Google_Service_SQLAdmin_ExportContext extends Google_Collection
-{
- protected $collection_key = 'databases';
- protected $internal_gapi_mappings = array(
- );
- protected $csvExportOptionsType = 'Google_Service_SQLAdmin_ExportContextCsvExportOptions';
- protected $csvExportOptionsDataType = '';
- public $databases;
- public $fileType;
- public $kind;
- protected $sqlExportOptionsType = 'Google_Service_SQLAdmin_ExportContextSqlExportOptions';
- protected $sqlExportOptionsDataType = '';
- public $uri;
-
-
- public function setCsvExportOptions(Google_Service_SQLAdmin_ExportContextCsvExportOptions $csvExportOptions)
- {
- $this->csvExportOptions = $csvExportOptions;
- }
- public function getCsvExportOptions()
- {
- return $this->csvExportOptions;
- }
- public function setDatabases($databases)
- {
- $this->databases = $databases;
- }
- public function getDatabases()
- {
- return $this->databases;
- }
- public function setFileType($fileType)
- {
- $this->fileType = $fileType;
- }
- public function getFileType()
- {
- return $this->fileType;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setSqlExportOptions(Google_Service_SQLAdmin_ExportContextSqlExportOptions $sqlExportOptions)
- {
- $this->sqlExportOptions = $sqlExportOptions;
- }
- public function getSqlExportOptions()
- {
- return $this->sqlExportOptions;
- }
- public function setUri($uri)
- {
- $this->uri = $uri;
- }
- public function getUri()
- {
- return $this->uri;
- }
-}
-
-class Google_Service_SQLAdmin_ExportContextCsvExportOptions extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $selectQuery;
-
-
- public function setSelectQuery($selectQuery)
- {
- $this->selectQuery = $selectQuery;
- }
- public function getSelectQuery()
- {
- return $this->selectQuery;
- }
-}
-
-class Google_Service_SQLAdmin_ExportContextSqlExportOptions extends Google_Collection
-{
- protected $collection_key = 'tables';
- protected $internal_gapi_mappings = array(
- );
- public $tables;
-
-
- public function setTables($tables)
- {
- $this->tables = $tables;
- }
- public function getTables()
- {
- return $this->tables;
- }
-}
-
-class Google_Service_SQLAdmin_Flag extends Google_Collection
-{
- protected $collection_key = 'appliesTo';
- protected $internal_gapi_mappings = array(
- );
- public $allowedStringValues;
- public $appliesTo;
- public $kind;
- public $maxValue;
- public $minValue;
- public $name;
- public $type;
-
-
- public function setAllowedStringValues($allowedStringValues)
- {
- $this->allowedStringValues = $allowedStringValues;
- }
- public function getAllowedStringValues()
- {
- return $this->allowedStringValues;
- }
- public function setAppliesTo($appliesTo)
- {
- $this->appliesTo = $appliesTo;
- }
- public function getAppliesTo()
- {
- return $this->appliesTo;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setMaxValue($maxValue)
- {
- $this->maxValue = $maxValue;
- }
- public function getMaxValue()
- {
- return $this->maxValue;
- }
- public function setMinValue($minValue)
- {
- $this->minValue = $minValue;
- }
- public function getMinValue()
- {
- return $this->minValue;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setType($type)
- {
- $this->type = $type;
- }
- public function getType()
- {
- return $this->type;
- }
-}
-
-class Google_Service_SQLAdmin_FlagsListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_Flag';
- protected $itemsDataType = 'array';
- public $kind;
-
-
- 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;
- }
-}
-
-class Google_Service_SQLAdmin_ImportContext extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $csvImportOptionsType = 'Google_Service_SQLAdmin_ImportContextCsvImportOptions';
- protected $csvImportOptionsDataType = '';
- public $database;
- public $fileType;
- public $kind;
- public $uri;
-
-
- public function setCsvImportOptions(Google_Service_SQLAdmin_ImportContextCsvImportOptions $csvImportOptions)
- {
- $this->csvImportOptions = $csvImportOptions;
- }
- public function getCsvImportOptions()
- {
- return $this->csvImportOptions;
- }
- public function setDatabase($database)
- {
- $this->database = $database;
- }
- public function getDatabase()
- {
- return $this->database;
- }
- public function setFileType($fileType)
- {
- $this->fileType = $fileType;
- }
- public function getFileType()
- {
- return $this->fileType;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setUri($uri)
- {
- $this->uri = $uri;
- }
- public function getUri()
- {
- return $this->uri;
- }
-}
-
-class Google_Service_SQLAdmin_ImportContextCsvImportOptions extends Google_Collection
-{
- protected $collection_key = 'columns';
- protected $internal_gapi_mappings = array(
- );
- public $columns;
- public $table;
-
-
- public function setColumns($columns)
- {
- $this->columns = $columns;
- }
- public function getColumns()
- {
- return $this->columns;
- }
- public function setTable($table)
- {
- $this->table = $table;
- }
- public function getTable()
- {
- return $this->table;
- }
-}
-
-class Google_Service_SQLAdmin_InstancesCloneRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $cloneContextType = 'Google_Service_SQLAdmin_CloneContext';
- protected $cloneContextDataType = '';
-
-
- public function setCloneContext(Google_Service_SQLAdmin_CloneContext $cloneContext)
- {
- $this->cloneContext = $cloneContext;
- }
- public function getCloneContext()
- {
- return $this->cloneContext;
- }
-}
-
-class Google_Service_SQLAdmin_InstancesExportRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext';
- protected $exportContextDataType = '';
-
-
- public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext)
- {
- $this->exportContext = $exportContext;
- }
- public function getExportContext()
- {
- return $this->exportContext;
- }
-}
-
-class Google_Service_SQLAdmin_InstancesImportRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $importContextType = 'Google_Service_SQLAdmin_ImportContext';
- protected $importContextDataType = '';
-
-
- public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext)
- {
- $this->importContext = $importContext;
- }
- public function getImportContext()
- {
- return $this->importContext;
- }
-}
-
-class Google_Service_SQLAdmin_InstancesListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_DatabaseInstance';
- protected $itemsDataType = 'array';
- public $kind;
- public $nextPageToken;
-
-
- 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_SQLAdmin_InstancesRestoreBackupRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $restoreBackupContextType = 'Google_Service_SQLAdmin_RestoreBackupContext';
- protected $restoreBackupContextDataType = '';
-
-
- public function setRestoreBackupContext(Google_Service_SQLAdmin_RestoreBackupContext $restoreBackupContext)
- {
- $this->restoreBackupContext = $restoreBackupContext;
- }
- public function getRestoreBackupContext()
- {
- return $this->restoreBackupContext;
- }
-}
-
-class Google_Service_SQLAdmin_IpConfiguration extends Google_Collection
-{
- protected $collection_key = 'authorizedNetworks';
- protected $internal_gapi_mappings = array(
- );
- protected $authorizedNetworksType = 'Google_Service_SQLAdmin_AclEntry';
- protected $authorizedNetworksDataType = 'array';
- public $ipv4Enabled;
- public $requireSsl;
-
-
- public function setAuthorizedNetworks($authorizedNetworks)
- {
- $this->authorizedNetworks = $authorizedNetworks;
- }
- public function getAuthorizedNetworks()
- {
- return $this->authorizedNetworks;
- }
- public function setIpv4Enabled($ipv4Enabled)
- {
- $this->ipv4Enabled = $ipv4Enabled;
- }
- public function getIpv4Enabled()
- {
- return $this->ipv4Enabled;
- }
- public function setRequireSsl($requireSsl)
- {
- $this->requireSsl = $requireSsl;
- }
- public function getRequireSsl()
- {
- return $this->requireSsl;
- }
-}
-
-class Google_Service_SQLAdmin_IpMapping extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $ipAddress;
- public $timeToRetire;
-
-
- public function setIpAddress($ipAddress)
- {
- $this->ipAddress = $ipAddress;
- }
- public function getIpAddress()
- {
- return $this->ipAddress;
- }
- public function setTimeToRetire($timeToRetire)
- {
- $this->timeToRetire = $timeToRetire;
- }
- public function getTimeToRetire()
- {
- return $this->timeToRetire;
- }
-}
-
-class Google_Service_SQLAdmin_LocationPreference extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $followGaeApplication;
- public $kind;
- public $zone;
-
-
- public function setFollowGaeApplication($followGaeApplication)
- {
- $this->followGaeApplication = $followGaeApplication;
- }
- public function getFollowGaeApplication()
- {
- return $this->followGaeApplication;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setZone($zone)
- {
- $this->zone = $zone;
- }
- public function getZone()
- {
- return $this->zone;
- }
-}
-
-class Google_Service_SQLAdmin_Operation extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $endTime;
- protected $errorType = 'Google_Service_SQLAdmin_OperationError';
- protected $errorDataType = '';
- protected $exportContextType = 'Google_Service_SQLAdmin_ExportContext';
- protected $exportContextDataType = '';
- protected $importContextType = 'Google_Service_SQLAdmin_ImportContext';
- protected $importContextDataType = '';
- public $insertTime;
- public $kind;
- public $name;
- public $operationType;
- public $selfLink;
- public $startTime;
- public $status;
- public $targetId;
- public $targetLink;
- public $targetProject;
- public $user;
-
-
- public function setEndTime($endTime)
- {
- $this->endTime = $endTime;
- }
- public function getEndTime()
- {
- return $this->endTime;
- }
- public function setError(Google_Service_SQLAdmin_OperationError $error)
- {
- $this->error = $error;
- }
- public function getError()
- {
- return $this->error;
- }
- public function setExportContext(Google_Service_SQLAdmin_ExportContext $exportContext)
- {
- $this->exportContext = $exportContext;
- }
- public function getExportContext()
- {
- return $this->exportContext;
- }
- public function setImportContext(Google_Service_SQLAdmin_ImportContext $importContext)
- {
- $this->importContext = $importContext;
- }
- public function getImportContext()
- {
- return $this->importContext;
- }
- public function setInsertTime($insertTime)
- {
- $this->insertTime = $insertTime;
- }
- public function getInsertTime()
- {
- return $this->insertTime;
- }
- 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 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 setStartTime($startTime)
- {
- $this->startTime = $startTime;
- }
- public function getStartTime()
- {
- return $this->startTime;
- }
- public function setStatus($status)
- {
- $this->status = $status;
- }
- public function getStatus()
- {
- return $this->status;
- }
- public function setTargetId($targetId)
- {
- $this->targetId = $targetId;
- }
- public function getTargetId()
- {
- return $this->targetId;
- }
- public function setTargetLink($targetLink)
- {
- $this->targetLink = $targetLink;
- }
- public function getTargetLink()
- {
- return $this->targetLink;
- }
- public function setTargetProject($targetProject)
- {
- $this->targetProject = $targetProject;
- }
- public function getTargetProject()
- {
- return $this->targetProject;
- }
- public function setUser($user)
- {
- $this->user = $user;
- }
- public function getUser()
- {
- return $this->user;
- }
-}
-
-class Google_Service_SQLAdmin_OperationError extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $code;
- public $kind;
- public $message;
-
-
- public function setCode($code)
- {
- $this->code = $code;
- }
- public function getCode()
- {
- return $this->code;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setMessage($message)
- {
- $this->message = $message;
- }
- public function getMessage()
- {
- return $this->message;
- }
-}
-
-class Google_Service_SQLAdmin_OperationError extends Google_Collection
-{
- protected $collection_key = 'errors';
- protected $internal_gapi_mappings = array(
- );
- protected $errorsType = 'Google_Service_SQLAdmin_OperationError';
- protected $errorsDataType = 'array';
-
-
- public function setErrors($errors)
- {
- $this->errors = $errors;
- }
- public function getErrors()
- {
- return $this->errors;
- }
-}
-
-class Google_Service_SQLAdmin_OperationsListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_Operation';
- protected $itemsDataType = 'array';
- public $kind;
- public $nextPageToken;
-
-
- 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_SQLAdmin_RestoreBackupContext extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $backupRunId;
- public $kind;
-
-
- public function setBackupRunId($backupRunId)
- {
- $this->backupRunId = $backupRunId;
- }
- public function getBackupRunId()
- {
- return $this->backupRunId;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
-}
-
-class Google_Service_SQLAdmin_Settings extends Google_Collection
-{
- protected $collection_key = 'databaseFlags';
- protected $internal_gapi_mappings = array(
- );
- public $activationPolicy;
- public $authorizedGaeApplications;
- protected $backupConfigurationType = 'Google_Service_SQLAdmin_BackupConfiguration';
- protected $backupConfigurationDataType = '';
- protected $databaseFlagsType = 'Google_Service_SQLAdmin_DatabaseFlags';
- protected $databaseFlagsDataType = 'array';
- public $databaseReplicationEnabled;
- protected $ipConfigurationType = 'Google_Service_SQLAdmin_IpConfiguration';
- protected $ipConfigurationDataType = '';
- public $kind;
- protected $locationPreferenceType = 'Google_Service_SQLAdmin_LocationPreference';
- protected $locationPreferenceDataType = '';
- public $pricingPlan;
- public $replicationType;
- public $settingsVersion;
- public $tier;
-
-
- public function setActivationPolicy($activationPolicy)
- {
- $this->activationPolicy = $activationPolicy;
- }
- public function getActivationPolicy()
- {
- return $this->activationPolicy;
- }
- public function setAuthorizedGaeApplications($authorizedGaeApplications)
- {
- $this->authorizedGaeApplications = $authorizedGaeApplications;
- }
- public function getAuthorizedGaeApplications()
- {
- return $this->authorizedGaeApplications;
- }
- public function setBackupConfiguration(Google_Service_SQLAdmin_BackupConfiguration $backupConfiguration)
- {
- $this->backupConfiguration = $backupConfiguration;
- }
- public function getBackupConfiguration()
- {
- return $this->backupConfiguration;
- }
- public function setDatabaseFlags($databaseFlags)
- {
- $this->databaseFlags = $databaseFlags;
- }
- public function getDatabaseFlags()
- {
- return $this->databaseFlags;
- }
- public function setDatabaseReplicationEnabled($databaseReplicationEnabled)
- {
- $this->databaseReplicationEnabled = $databaseReplicationEnabled;
- }
- public function getDatabaseReplicationEnabled()
- {
- return $this->databaseReplicationEnabled;
- }
- public function setIpConfiguration(Google_Service_SQLAdmin_IpConfiguration $ipConfiguration)
- {
- $this->ipConfiguration = $ipConfiguration;
- }
- public function getIpConfiguration()
- {
- return $this->ipConfiguration;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setLocationPreference(Google_Service_SQLAdmin_LocationPreference $locationPreference)
- {
- $this->locationPreference = $locationPreference;
- }
- public function getLocationPreference()
- {
- return $this->locationPreference;
- }
- public function setPricingPlan($pricingPlan)
- {
- $this->pricingPlan = $pricingPlan;
- }
- public function getPricingPlan()
- {
- return $this->pricingPlan;
- }
- public function setReplicationType($replicationType)
- {
- $this->replicationType = $replicationType;
- }
- public function getReplicationType()
- {
- return $this->replicationType;
- }
- public function setSettingsVersion($settingsVersion)
- {
- $this->settingsVersion = $settingsVersion;
- }
- public function getSettingsVersion()
- {
- return $this->settingsVersion;
- }
- public function setTier($tier)
- {
- $this->tier = $tier;
- }
- public function getTier()
- {
- return $this->tier;
- }
-}
-
-class Google_Service_SQLAdmin_SslCert extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $cert;
- public $certSerialNumber;
- public $commonName;
- public $createTime;
- public $expirationTime;
- public $instance;
- public $kind;
- public $selfLink;
- public $sha1Fingerprint;
-
-
- public function setCert($cert)
- {
- $this->cert = $cert;
- }
- public function getCert()
- {
- return $this->cert;
- }
- public function setCertSerialNumber($certSerialNumber)
- {
- $this->certSerialNumber = $certSerialNumber;
- }
- public function getCertSerialNumber()
- {
- return $this->certSerialNumber;
- }
- public function setCommonName($commonName)
- {
- $this->commonName = $commonName;
- }
- public function getCommonName()
- {
- return $this->commonName;
- }
- public function setCreateTime($createTime)
- {
- $this->createTime = $createTime;
- }
- public function getCreateTime()
- {
- return $this->createTime;
- }
- public function setExpirationTime($expirationTime)
- {
- $this->expirationTime = $expirationTime;
- }
- public function getExpirationTime()
- {
- return $this->expirationTime;
- }
- public function setInstance($instance)
- {
- $this->instance = $instance;
- }
- public function getInstance()
- {
- return $this->instance;
- }
- 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 setSha1Fingerprint($sha1Fingerprint)
- {
- $this->sha1Fingerprint = $sha1Fingerprint;
- }
- public function getSha1Fingerprint()
- {
- return $this->sha1Fingerprint;
- }
-}
-
-class Google_Service_SQLAdmin_SslCertDetail extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $certInfoType = 'Google_Service_SQLAdmin_SslCert';
- protected $certInfoDataType = '';
- public $certPrivateKey;
-
-
- public function setCertInfo(Google_Service_SQLAdmin_SslCert $certInfo)
- {
- $this->certInfo = $certInfo;
- }
- public function getCertInfo()
- {
- return $this->certInfo;
- }
- public function setCertPrivateKey($certPrivateKey)
- {
- $this->certPrivateKey = $certPrivateKey;
- }
- public function getCertPrivateKey()
- {
- return $this->certPrivateKey;
- }
-}
-
-class Google_Service_SQLAdmin_SslCertsInsertRequest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $commonName;
-
-
- public function setCommonName($commonName)
- {
- $this->commonName = $commonName;
- }
- public function getCommonName()
- {
- return $this->commonName;
- }
-}
-
-class Google_Service_SQLAdmin_SslCertsInsertResponse extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $clientCertType = 'Google_Service_SQLAdmin_SslCertDetail';
- protected $clientCertDataType = '';
- public $kind;
- protected $serverCaCertType = 'Google_Service_SQLAdmin_SslCert';
- protected $serverCaCertDataType = '';
-
-
- public function setClientCert(Google_Service_SQLAdmin_SslCertDetail $clientCert)
- {
- $this->clientCert = $clientCert;
- }
- public function getClientCert()
- {
- return $this->clientCert;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setServerCaCert(Google_Service_SQLAdmin_SslCert $serverCaCert)
- {
- $this->serverCaCert = $serverCaCert;
- }
- public function getServerCaCert()
- {
- return $this->serverCaCert;
- }
-}
-
-class Google_Service_SQLAdmin_SslCertsListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_SslCert';
- protected $itemsDataType = 'array';
- public $kind;
-
-
- 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;
- }
-}
-
-class Google_Service_SQLAdmin_Tier extends Google_Collection
-{
- protected $collection_key = 'region';
- protected $internal_gapi_mappings = array(
- "diskQuota" => "DiskQuota",
- "rAM" => "RAM",
- );
- public $diskQuota;
- public $rAM;
- public $kind;
- public $region;
- public $tier;
-
-
- public function setDiskQuota($diskQuota)
- {
- $this->diskQuota = $diskQuota;
- }
- public function getDiskQuota()
- {
- return $this->diskQuota;
- }
- public function setRAM($rAM)
- {
- $this->rAM = $rAM;
- }
- public function getRAM()
- {
- return $this->rAM;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setRegion($region)
- {
- $this->region = $region;
- }
- public function getRegion()
- {
- return $this->region;
- }
- public function setTier($tier)
- {
- $this->tier = $tier;
- }
- public function getTier()
- {
- return $this->tier;
- }
-}
-
-class Google_Service_SQLAdmin_TiersListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_Tier';
- protected $itemsDataType = 'array';
- public $kind;
-
-
- 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;
- }
-}
-
-class Google_Service_SQLAdmin_User extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $etag;
- public $host;
- public $instance;
- public $kind;
- public $name;
- public $password;
- public $project;
-
-
- public function setEtag($etag)
- {
- $this->etag = $etag;
- }
- public function getEtag()
- {
- return $this->etag;
- }
- public function setHost($host)
- {
- $this->host = $host;
- }
- public function getHost()
- {
- return $this->host;
- }
- public function setInstance($instance)
- {
- $this->instance = $instance;
- }
- public function getInstance()
- {
- return $this->instance;
- }
- 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 setPassword($password)
- {
- $this->password = $password;
- }
- public function getPassword()
- {
- return $this->password;
- }
- public function setProject($project)
- {
- $this->project = $project;
- }
- public function getProject()
- {
- return $this->project;
- }
-}
-
-class Google_Service_SQLAdmin_UsersListResponse extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_SQLAdmin_User';
- protected $itemsDataType = 'array';
- public $kind;
- public $nextPageToken;
-
-
- 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;
- }
-}
diff --git a/tests/general/ApiClientTest.php b/tests/general/ApiClientTest.php
index 2c5d06b1f..58c3e5066 100644
--- a/tests/general/ApiClientTest.php
+++ b/tests/general/ApiClientTest.php
@@ -189,4 +189,14 @@ public function testIniConfig()
$config->getClassConfig('Google_IO_Abstract', 'request_timeout_seconds')
);
}
+
+ public function testServiceAccountJson()
+ {
+ $client = new Google_Client();
+ $c = $client->loadServiceAccountJson(
+ __DIR__ . "/testdata/service-12345.json",
+ array()
+ );
+ $this->assertInstanceOf('Google_Auth_AssertionCredentials', $c);
+ }
}
diff --git a/tests/general/ApiModelTest.php b/tests/general/ApiModelTest.php
index 8eb7ee2a1..9a81e714e 100644
--- a/tests/general/ApiModelTest.php
+++ b/tests/general/ApiModelTest.php
@@ -20,45 +20,57 @@
class ApiModelTest extends BaseTest
{
+ private $calendarData = '{
+ "kind": "calendar#event",
+ "etag": "\"-kteSF26GsdKQ5bfmcd4H3_-u3g/MTE0NTUyNTAxOTk0MjAwMA\"",
+ "id": "1234566",
+ "status": "confirmed",
+ "htmlLink": "https://www.google.com/calendar/event?eid=N",
+ "created": "2006-04-13T14:22:08.000Z",
+ "updated": "2006-04-20T09:23:39.942Z",
+ "summary": "Evening Jolt Q3 CTFL",
+ "description": "6.30 - Adminning\n9.30 - Game",
+ "creator": {
+ "email": "ian@example.com",
+ "displayName": "Ian Test",
+ "self": true
+ },
+ "organizer": {
+ "email": "ian@example.com",
+ "displayName": "Ian Test",
+ "self": true
+ },
+ "start": {
+ "date": "2006-04-23"
+ },
+ "end": {
+ "date": "2006-04-24"
+ },
+ "iCalUID": "5gi2ac493nnrfdfd7jhesafget8@google.com",
+ "sequence": 0,
+ "reminders": {
+ "useDefault": false
+ }
+ }';
+
+ public function testIntentionalNulls()
+ {
+ $data = json_decode($this->calendarData, true);
+ $event = new Google_Service_Calendar_Event($data);
+ $obj = json_decode(json_encode($event->toSimpleObject()), true);
+ $this->assertArrayHasKey('date', $obj['start']);
+ $this->assertArrayNotHasKey('dateTime', $obj['start']);
+ $date = new Google_Service_Calendar_EventDateTime();
+ $date->setDate(Google_Model::NULL_VALUE);
+ $event->setStart($date);
+ $obj = json_decode(json_encode($event->toSimpleObject()), true);
+ $this->assertNull($obj['start']['date']);
+ $this->assertArrayHasKey('date', $obj['start']);
+ $this->assertArrayNotHasKey('dateTime', $obj['start']);
+ }
public function testModelMutation()
{
- $htmlLink = 'https://www.google.com/calendar/event?'
- . 'eid=NWdpMmFjNDkzbm5yZzh2N2poZXNhZmdldDggaWFuLmJhcmJlckBt';
- $data = json_decode(
- '{
- "kind": "calendar#event",
- "etag": "\"-kteSF26GsdKQ5bfmcd4H3_-u3g/MTE0NTUyNTAxOTk0MjAwMA\"",
- "id": "1234566",
- "status": "confirmed",
- "htmlLink": "' . $htmlLink . '",
- "created": "2006-04-13T14:22:08.000Z",
- "updated": "2006-04-20T09:23:39.942Z",
- "summary": "Evening Jolt Q3 CTFL",
- "description": "6.30 - Adminning\n9.30 - Game",
- "creator": {
- "email": "ian@example.com",
- "displayName": "Ian Test",
- "self": true
- },
- "organizer": {
- "email": "ian@example.com",
- "displayName": "Ian Test",
- "self": true
- },
- "start": {
- "date": "2006-04-23"
- },
- "end": {
- "date": "2006-04-24"
- },
- "iCalUID": "5gi2ac493nnrfdfd7jhesafget8@google.com",
- "sequence": 0,
- "reminders": {
- "useDefault": false
- }
- }',
- true
- );
+ $data = json_decode($this->calendarData, true);
$event = new Google_Service_Calendar_Event($data);
$date = new Google_Service_Calendar_EventDateTime();
date_default_timezone_set('UTC');
diff --git a/tests/general/testdata/service-12345.json b/tests/general/testdata/service-12345.json
new file mode 100644
index 000000000..a6a2df0ed
--- /dev/null
+++ b/tests/general/testdata/service-12345.json
@@ -0,0 +1,7 @@
+{
+ "private_key_id": "1936f241be592afc6f3a6d309f75cbf5229d3e75",
+ "private_key": "-----BEGIN RSA PRIVATE KEY-----MIIBOwIBAAJBAM4Aozh3TMZYcPx7MHlnD8MtyVUjzo6OdT32JwRHzHHNMMm88lNVfLYIT9C/jgXlDqG0h5wSClMvTQbdihNdFOkCAwEAAQJBAJuMo7KpcpF6iqY7Jtkk1yQb2KCvTvMZ4rGMwt1akaeDW2noyqCeO675gFBtlizgcRsybealQVQgGX4E5VqFUJkCIQDzJZZi2jloDXcyyy2rEa4mj4RnrnIYsDMJ55XMWJ9c9wIhANjkY97FSRX3WSdRFqXd3Pc4URUho+rCcPibafMOwAUfAiAa58ngXm2DyhmqkTkYePhgY/kuz+roOHctXWcCGbxouQIgLC5qAakieC0Ipi+oc2U8a8e3DJzrrRiqtpnB/VcV2nUCIQC2DXrpyt6jjVIzs4jI5Cl3QGLL6TZ8FqpyonU/1ARuhA==-----END RSA PRIVATE KEY-----",
+ "client_email": "12345-is5nq94smihmoa2k0567jab6u6vj278c@developer.gserviceaccount.com",
+ "client_id": "12345-is5nq94smihmoa2k0567jab6u6vj278c.apps.googleusercontent.com",
+ "type": "service_account"
+}
\ No newline at end of file
From 04a9df4763c25c9a46a8dcef60c7241d7f951b54 Mon Sep 17 00:00:00 2001
From: Ian Barber
- * $analyticsService = new Google_Service_Analytics(...);
- * $dailyUploads = $analyticsService->dailyUploads;
- *
- */
-class Google_Service_Analytics_ManagementDailyUploads_Resource extends Google_Service_Resource
-{
-
- /**
- * Delete uploaded data for the given date. (dailyUploads.delete)
- *
- * @param string $accountId Account Id associated with daily upload delete.
- * @param string $webPropertyId Web property Id associated with daily upload
- * delete.
- * @param string $customDataSourceId Custom data source Id associated with daily
- * upload delete.
- * @param string $date Date for which data is to be deleted. Date should be
- * formatted as YYYY-MM-DD.
- * @param string $type Type of data for this delete.
- * @param array $optParams Optional parameters.
- */
- public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
-
- /**
- * List daily uploads to which the user has access.
- * (dailyUploads.listManagementDailyUploads)
- *
- * @param string $accountId Account Id for the daily uploads to retrieve.
- * @param string $webPropertyId Web property Id for the daily uploads to
- * retrieve.
- * @param string $customDataSourceId Custom data source Id for daily uploads to
- * retrieve.
- * @param string $startDate Start date of the form YYYY-MM-DD.
- * @param string $endDate End date of the form YYYY-MM-DD.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int max-results The maximum number of custom data sources to
- * include in this response.
- * @opt_param int start-index A 1-based index of the first daily upload to
- * retrieve. Use this parameter as a pagination mechanism along with the max-
- * results parameter.
- * @return Google_Service_Analytics_DailyUploads
- */
- public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $startDate, $endDate, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $startDate, 'end-date' => $endDate);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Analytics_DailyUploads");
- }
-
- /**
- * Update/Overwrite data for a custom data source. (dailyUploads.upload)
- *
- * @param string $accountId Account Id associated with daily upload.
- * @param string $webPropertyId Web property Id associated with daily upload.
- * @param string $customDataSourceId Custom data source Id to which the data
- * being uploaded belongs.
- * @param string $date Date for which data is uploaded. Date should be formatted
- * as YYYY-MM-DD.
- * @param int $appendNumber Append number for this upload indexed from 1.
- * @param string $type Type of data for this upload.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool reset Reset/Overwrite all previous appends for this date and
- * start over with this file as the first upload.
- * @return Google_Service_Analytics_DailyUploadAppend
- */
- public function upload($accountId, $webPropertyId, $customDataSourceId, $date, $appendNumber, $type, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'appendNumber' => $appendNumber, 'type' => $type);
- $params = array_merge($params, $optParams);
- return $this->call('upload', array($params), "Google_Service_Analytics_DailyUploadAppend");
- }
-}
/**
* The "experiments" collection of methods.
* Typical usage is:
@@ -3593,22 +3373,6 @@ public function listManagementUploads($accountId, $webPropertyId, $customDataSou
return $this->call('list', array($params), "Google_Service_Analytics_Uploads");
}
- /**
- * Migrate custom data source and data imports to latest version.
- * (uploads.migrateDataImport)
- *
- * @param string $accountId Account Id for migration.
- * @param string $webPropertyId Web property Id for migration.
- * @param string $customDataSourceId Custom data source Id for migration.
- * @param array $optParams Optional parameters.
- */
- public function migrateDataImport($accountId, $webPropertyId, $customDataSourceId, $optParams = array())
- {
- $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId);
- $params = array_merge($params, $optParams);
- return $this->call('migrateDataImport', array($params));
- }
-
/**
* Upload data for a custom data source. (uploads.uploadData)
*
@@ -5357,321 +5121,6 @@ public function getUsername()
}
}
-class Google_Service_Analytics_DailyUpload extends Google_Collection
-{
- protected $collection_key = 'recentChanges';
- protected $internal_gapi_mappings = array(
- );
- public $accountId;
- public $appendCount;
- public $createdTime;
- public $customDataSourceId;
- public $date;
- public $kind;
- public $modifiedTime;
- protected $parentLinkType = 'Google_Service_Analytics_DailyUploadParentLink';
- protected $parentLinkDataType = '';
- protected $recentChangesType = 'Google_Service_Analytics_DailyUploadRecentChanges';
- protected $recentChangesDataType = 'array';
- public $selfLink;
- public $webPropertyId;
-
-
- public function setAccountId($accountId)
- {
- $this->accountId = $accountId;
- }
- public function getAccountId()
- {
- return $this->accountId;
- }
- public function setAppendCount($appendCount)
- {
- $this->appendCount = $appendCount;
- }
- public function getAppendCount()
- {
- return $this->appendCount;
- }
- public function setCreatedTime($createdTime)
- {
- $this->createdTime = $createdTime;
- }
- public function getCreatedTime()
- {
- return $this->createdTime;
- }
- public function setCustomDataSourceId($customDataSourceId)
- {
- $this->customDataSourceId = $customDataSourceId;
- }
- public function getCustomDataSourceId()
- {
- return $this->customDataSourceId;
- }
- public function setDate($date)
- {
- $this->date = $date;
- }
- public function getDate()
- {
- return $this->date;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setModifiedTime($modifiedTime)
- {
- $this->modifiedTime = $modifiedTime;
- }
- public function getModifiedTime()
- {
- return $this->modifiedTime;
- }
- public function setParentLink(Google_Service_Analytics_DailyUploadParentLink $parentLink)
- {
- $this->parentLink = $parentLink;
- }
- public function getParentLink()
- {
- return $this->parentLink;
- }
- public function setRecentChanges($recentChanges)
- {
- $this->recentChanges = $recentChanges;
- }
- public function getRecentChanges()
- {
- return $this->recentChanges;
- }
- public function setSelfLink($selfLink)
- {
- $this->selfLink = $selfLink;
- }
- public function getSelfLink()
- {
- return $this->selfLink;
- }
- public function setWebPropertyId($webPropertyId)
- {
- $this->webPropertyId = $webPropertyId;
- }
- public function getWebPropertyId()
- {
- return $this->webPropertyId;
- }
-}
-
-class Google_Service_Analytics_DailyUploadAppend extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $accountId;
- public $appendNumber;
- public $customDataSourceId;
- public $date;
- public $kind;
- public $nextAppendLink;
- public $webPropertyId;
-
-
- public function setAccountId($accountId)
- {
- $this->accountId = $accountId;
- }
- public function getAccountId()
- {
- return $this->accountId;
- }
- public function setAppendNumber($appendNumber)
- {
- $this->appendNumber = $appendNumber;
- }
- public function getAppendNumber()
- {
- return $this->appendNumber;
- }
- public function setCustomDataSourceId($customDataSourceId)
- {
- $this->customDataSourceId = $customDataSourceId;
- }
- public function getCustomDataSourceId()
- {
- return $this->customDataSourceId;
- }
- public function setDate($date)
- {
- $this->date = $date;
- }
- public function getDate()
- {
- return $this->date;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setNextAppendLink($nextAppendLink)
- {
- $this->nextAppendLink = $nextAppendLink;
- }
- public function getNextAppendLink()
- {
- return $this->nextAppendLink;
- }
- public function setWebPropertyId($webPropertyId)
- {
- $this->webPropertyId = $webPropertyId;
- }
- public function getWebPropertyId()
- {
- return $this->webPropertyId;
- }
-}
-
-class Google_Service_Analytics_DailyUploadParentLink extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $href;
- public $type;
-
-
- public function setHref($href)
- {
- $this->href = $href;
- }
- public function getHref()
- {
- return $this->href;
- }
- public function setType($type)
- {
- $this->type = $type;
- }
- public function getType()
- {
- return $this->type;
- }
-}
-
-class Google_Service_Analytics_DailyUploadRecentChanges extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $change;
- public $time;
-
-
- public function setChange($change)
- {
- $this->change = $change;
- }
- public function getChange()
- {
- return $this->change;
- }
- public function setTime($time)
- {
- $this->time = $time;
- }
- public function getTime()
- {
- return $this->time;
- }
-}
-
-class Google_Service_Analytics_DailyUploads extends Google_Collection
-{
- protected $collection_key = 'items';
- protected $internal_gapi_mappings = array(
- );
- protected $itemsType = 'Google_Service_Analytics_DailyUpload';
- protected $itemsDataType = 'array';
- public $itemsPerPage;
- public $kind;
- public $nextLink;
- public $previousLink;
- public $startIndex;
- public $totalResults;
- public $username;
-
-
- public function setItems($items)
- {
- $this->items = $items;
- }
- public function getItems()
- {
- return $this->items;
- }
- public function setItemsPerPage($itemsPerPage)
- {
- $this->itemsPerPage = $itemsPerPage;
- }
- public function getItemsPerPage()
- {
- return $this->itemsPerPage;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setNextLink($nextLink)
- {
- $this->nextLink = $nextLink;
- }
- public function getNextLink()
- {
- return $this->nextLink;
- }
- public function setPreviousLink($previousLink)
- {
- $this->previousLink = $previousLink;
- }
- public function getPreviousLink()
- {
- return $this->previousLink;
- }
- public function setStartIndex($startIndex)
- {
- $this->startIndex = $startIndex;
- }
- public function getStartIndex()
- {
- return $this->startIndex;
- }
- public function setTotalResults($totalResults)
- {
- $this->totalResults = $totalResults;
- }
- public function getTotalResults()
- {
- return $this->totalResults;
- }
- public function setUsername($username)
- {
- $this->username = $username;
- }
- public function getUsername()
- {
- return $this->username;
- }
-}
-
class Google_Service_Analytics_EntityAdWordsLink extends Google_Collection
{
protected $collection_key = 'profileIds';
From 1b3d897b6fbc4cc9c544744e08bfa48d4f90a945 Mon Sep 17 00:00:00 2001
From: Silvano Luciani * For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. From 9bb73ea0c19585e0d946b50c4236aaafa9c0ecd3 Mon Sep 17 00:00:00 2001 From: Silvano Luciani* For more information about this service, see the API - * Documentation + * Documentation *
* * @author Google, Inc. From cc043239aa0cbb77acdc19d9478aebdffd4ebc06 Mon Sep 17 00:00:00 2001 From: Silvano Luciani
* $computeService = new Google_Service_Compute(...);
- * $urlMaps = $computeService->urlMaps;
+ * $targetVpnGateways = $computeService->targetVpnGateways;
*
*/
-class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource
+class Google_Service_Compute_TargetVpnGateways_Resource extends Google_Service_Resource
{
/**
- * Deletes the specified UrlMap resource. (urlMaps.delete)
+ * Retrieves the list of target VPN gateways grouped by scope.
+ * (targetVpnGateways.aggregatedList)
*
- * @param string $project Name of the project scoping this request.
- * @param string $urlMap Name of the UrlMap resource to delete.
+ * @param string $project Project ID for this request.
* @param array $optParams Optional parameters.
- * @return Google_Service_Compute_Operation
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @return Google_Service_Compute_TargetVpnGatewayAggregatedList
*/
- public function delete($project, $urlMap, $optParams = array())
+ public function aggregatedList($project, $optParams = array())
{
- $params = array('project' => $project, 'urlMap' => $urlMap);
+ $params = array('project' => $project);
$params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_TargetVpnGatewayAggregatedList");
}
/**
- * Returns the specified UrlMap resource. (urlMaps.get)
+ * Deletes the specified TargetVpnGateway resource. (targetVpnGateways.delete)
*
- * @param string $project Name of the project scoping this request.
- * @param string $urlMap Name of the UrlMap resource to return.
+ * @param string $project Project ID for this request.
+ * @param string $region The name of the region for this request.
+ * @param string $targetVpnGateway Name of the TargetVpnGateway resource to
+ * delete.
* @param array $optParams Optional parameters.
- * @return Google_Service_Compute_UrlMap
+ * @return Google_Service_Compute_Operation
*/
- public function get($project, $urlMap, $optParams = array())
+ public function delete($project, $region, $targetVpnGateway, $optParams = array())
{
- $params = array('project' => $project, 'urlMap' => $urlMap);
+ $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway);
$params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Compute_UrlMap");
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
}
/**
- * Creates a UrlMap resource in the specified project using the data included in
- * the request. (urlMaps.insert)
+ * Returns the specified TargetVpnGateway resource. (targetVpnGateways.get)
*
- * @param string $project Name of the project scoping this request.
- * @param Google_UrlMap $postBody
+ * @param string $project Project ID for this request.
+ * @param string $region The name of the region for this request.
+ * @param string $targetVpnGateway Name of the TargetVpnGateway resource to
+ * return.
* @param array $optParams Optional parameters.
- * @return Google_Service_Compute_Operation
+ * @return Google_Service_Compute_TargetVpnGateway
*/
- public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array())
+ public function get($project, $region, $targetVpnGateway, $optParams = array())
{
- $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array('project' => $project, 'region' => $region, 'targetVpnGateway' => $targetVpnGateway);
$params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ return $this->call('get', array($params), "Google_Service_Compute_TargetVpnGateway");
}
/**
- * Retrieves the list of UrlMap resources available to the specified project.
- * (urlMaps.listUrlMaps)
+ * Creates a TargetVpnGateway resource in the specified project and region using
+ * the data included in the request. (targetVpnGateways.insert)
*
- * @param string $project Name of the project scoping this request.
+ * @param string $project Project ID for this request.
+ * @param string $region The name of the region for this request.
+ * @param Google_TargetVpnGateway $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $region, Google_Service_Compute_TargetVpnGateway $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+
+ /**
+ * Retrieves the list of TargetVpnGateway resources available to the specified
+ * project and region. (targetVpnGateways.listTargetVpnGateways)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region The name of the region for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @return Google_Service_Compute_TargetVpnGatewayList
+ */
+ public function listTargetVpnGateways($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_TargetVpnGatewayList");
+ }
+}
+
+/**
+ * The "urlMaps" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_Service_Compute(...);
+ * $urlMaps = $computeService->urlMaps;
+ *
+ */
+class Google_Service_Compute_UrlMaps_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes the specified UrlMap resource. (urlMaps.delete)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $urlMap Name of the UrlMap resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $urlMap, $optParams = array())
+ {
+ $params = array('project' => $project, 'urlMap' => $urlMap);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+
+ /**
+ * Returns the specified UrlMap resource. (urlMaps.get)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $urlMap Name of the UrlMap resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_UrlMap
+ */
+ public function get($project, $urlMap, $optParams = array())
+ {
+ $params = array('project' => $project, 'urlMap' => $urlMap);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_UrlMap");
+ }
+
+ /**
+ * Creates a UrlMap resource in the specified project using the data included in
+ * the request. (urlMaps.insert)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param Google_UrlMap $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_UrlMap $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+
+ /**
+ * Retrieves the list of UrlMap resources available to the specified project.
+ * (urlMaps.listUrlMaps)
+ *
+ * @param string $project Name of the project scoping this request.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression for filtering listed
@@ -5485,6 +5823,112 @@ public function validate($project, $urlMap, Google_Service_Compute_UrlMapsValida
}
}
+/**
+ * The "vpnTunnels" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_Service_Compute(...);
+ * $vpnTunnels = $computeService->vpnTunnels;
+ *
+ */
+class Google_Service_Compute_VpnTunnels_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Retrieves the list of VPN tunnels grouped by scope.
+ * (vpnTunnels.aggregatedList)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @return Google_Service_Compute_VpnTunnelAggregatedList
+ */
+ public function aggregatedList($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregatedList', array($params), "Google_Service_Compute_VpnTunnelAggregatedList");
+ }
+
+ /**
+ * Deletes the specified VpnTunnel resource. (vpnTunnels.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region The name of the region for this request.
+ * @param string $vpnTunnel Name of the VpnTunnel resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function delete($project, $region, $vpnTunnel, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Compute_Operation");
+ }
+
+ /**
+ * Returns the specified VpnTunnel resource. (vpnTunnels.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region The name of the region for this request.
+ * @param string $vpnTunnel Name of the VpnTunnel resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_VpnTunnel
+ */
+ public function get($project, $region, $vpnTunnel, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'vpnTunnel' => $vpnTunnel);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Compute_VpnTunnel");
+ }
+
+ /**
+ * Creates a VpnTunnel resource in the specified project and region using the
+ * data included in the request. (vpnTunnels.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region The name of the region for this request.
+ * @param Google_VpnTunnel $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, $region, Google_Service_Compute_VpnTunnel $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Compute_Operation");
+ }
+
+ /**
+ * Retrieves the list of VpnTunnel resources contained in the specified project
+ * and region. (vpnTunnels.listVpnTunnels)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $region The name of the region for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @return Google_Service_Compute_VpnTunnelList
+ */
+ public function listVpnTunnels($project, $region, $optParams = array())
+ {
+ $params = array('project' => $project, 'region' => $region);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Compute_VpnTunnelList");
+ }
+}
+
/**
* The "zoneOperations" collection of methods.
* Typical usage is:
@@ -8153,6 +8597,7 @@ class Google_Service_Compute_Instance extends Google_Collection
protected $internal_gapi_mappings = array(
);
public $canIpForward;
+ public $cpuPlatform;
public $creationTimestamp;
public $description;
protected $disksType = 'Google_Service_Compute_AttachedDisk';
@@ -8185,6 +8630,14 @@ public function getCanIpForward()
{
return $this->canIpForward;
}
+ public function setCpuPlatform($cpuPlatform)
+ {
+ $this->cpuPlatform = $cpuPlatform;
+ }
+ public function getCpuPlatform()
+ {
+ return $this->cpuPlatform;
+ }
public function setCreationTimestamp($creationTimestamp)
{
$this->creationTimestamp = $creationTimestamp;
@@ -11761,69 +12214,22 @@ public function getTarget()
}
}
-class Google_Service_Compute_TestFailure extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $actualService;
- public $expectedService;
- public $host;
- public $path;
-
-
- public function setActualService($actualService)
- {
- $this->actualService = $actualService;
- }
- public function getActualService()
- {
- return $this->actualService;
- }
- public function setExpectedService($expectedService)
- {
- $this->expectedService = $expectedService;
- }
- public function getExpectedService()
- {
- return $this->expectedService;
- }
- public function setHost($host)
- {
- $this->host = $host;
- }
- public function getHost()
- {
- return $this->host;
- }
- public function setPath($path)
- {
- $this->path = $path;
- }
- public function getPath()
- {
- return $this->path;
- }
-}
-
-class Google_Service_Compute_UrlMap extends Google_Collection
+class Google_Service_Compute_TargetVpnGateway extends Google_Collection
{
- protected $collection_key = 'tests';
+ protected $collection_key = 'tunnels';
protected $internal_gapi_mappings = array(
);
public $creationTimestamp;
- public $defaultService;
public $description;
- public $fingerprint;
- protected $hostRulesType = 'Google_Service_Compute_HostRule';
- protected $hostRulesDataType = 'array';
+ public $forwardingRules;
public $id;
public $kind;
public $name;
- protected $pathMatchersType = 'Google_Service_Compute_PathMatcher';
- protected $pathMatchersDataType = 'array';
+ public $network;
+ public $region;
public $selfLink;
- protected $testsType = 'Google_Service_Compute_UrlMapTest';
- protected $testsDataType = 'array';
+ public $status;
+ public $tunnels;
public function setCreationTimestamp($creationTimestamp)
@@ -11834,14 +12240,6 @@ public function getCreationTimestamp()
{
return $this->creationTimestamp;
}
- public function setDefaultService($defaultService)
- {
- $this->defaultService = $defaultService;
- }
- public function getDefaultService()
- {
- return $this->defaultService;
- }
public function setDescription($description)
{
$this->description = $description;
@@ -11850,27 +12248,19 @@ public function getDescription()
{
return $this->description;
}
- public function setFingerprint($fingerprint)
+ public function setForwardingRules($forwardingRules)
{
- $this->fingerprint = $fingerprint;
+ $this->forwardingRules = $forwardingRules;
}
- public function getFingerprint()
+ public function getForwardingRules()
{
- return $this->fingerprint;
+ return $this->forwardingRules;
}
- public function setHostRules($hostRules)
+ public function setId($id)
{
- $this->hostRules = $hostRules;
+ $this->id = $id;
}
- public function getHostRules()
- {
- return $this->hostRules;
- }
- public function setId($id)
- {
- $this->id = $id;
- }
- public function getId()
+ public function getId()
{
return $this->id;
}
@@ -11890,13 +12280,21 @@ public function getName()
{
return $this->name;
}
- public function setPathMatchers($pathMatchers)
+ public function setNetwork($network)
{
- $this->pathMatchers = $pathMatchers;
+ $this->network = $network;
}
- public function getPathMatchers()
+ public function getNetwork()
{
- return $this->pathMatchers;
+ return $this->network;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
}
public function setSelfLink($selfLink)
{
@@ -11906,24 +12304,31 @@ public function getSelfLink()
{
return $this->selfLink;
}
- public function setTests($tests)
+ public function setStatus($status)
{
- $this->tests = $tests;
+ $this->status = $status;
}
- public function getTests()
+ public function getStatus()
{
- return $this->tests;
+ return $this->status;
+ }
+ public function setTunnels($tunnels)
+ {
+ $this->tunnels = $tunnels;
+ }
+ public function getTunnels()
+ {
+ return $this->tunnels;
}
}
-class Google_Service_Compute_UrlMapList extends Google_Collection
+class Google_Service_Compute_TargetVpnGatewayAggregatedList extends Google_Model
{
- protected $collection_key = 'items';
protected $internal_gapi_mappings = array(
);
public $id;
- protected $itemsType = 'Google_Service_Compute_UrlMap';
- protected $itemsDataType = 'array';
+ protected $itemsType = 'Google_Service_Compute_TargetVpnGatewaysScopedList';
+ protected $itemsDataType = 'map';
public $kind;
public $nextPageToken;
public $selfLink;
@@ -11971,172 +12376,882 @@ public function getSelfLink()
}
}
-class Google_Service_Compute_UrlMapReference extends Google_Model
+class Google_Service_Compute_TargetVpnGatewayAggregatedListItems extends Google_Model
+{
+}
+
+class Google_Service_Compute_TargetVpnGatewayList extends Google_Collection
{
+ protected $collection_key = 'items';
protected $internal_gapi_mappings = array(
);
- public $urlMap;
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_TargetVpnGateway';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
- public function setUrlMap($urlMap)
+ public function setId($id)
{
- $this->urlMap = $urlMap;
+ $this->id = $id;
}
- public function getUrlMap()
+ public function getId()
{
- return $this->urlMap;
+ return $this->id;
}
-}
-
-class Google_Service_Compute_UrlMapTest extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $description;
- public $host;
- public $path;
- public $service;
-
-
- public function setDescription($description)
+ public function setItems($items)
{
- $this->description = $description;
+ $this->items = $items;
}
- public function getDescription()
+ public function getItems()
{
- return $this->description;
+ return $this->items;
}
- public function setHost($host)
+ public function setKind($kind)
{
- $this->host = $host;
+ $this->kind = $kind;
}
- public function getHost()
+ public function getKind()
{
- return $this->host;
+ return $this->kind;
}
- public function setPath($path)
+ public function setNextPageToken($nextPageToken)
{
- $this->path = $path;
+ $this->nextPageToken = $nextPageToken;
}
- public function getPath()
+ public function getNextPageToken()
{
- return $this->path;
+ return $this->nextPageToken;
}
- public function setService($service)
+ public function setSelfLink($selfLink)
{
- $this->service = $service;
+ $this->selfLink = $selfLink;
}
- public function getService()
+ public function getSelfLink()
{
- return $this->service;
+ return $this->selfLink;
}
}
-class Google_Service_Compute_UrlMapValidationResult extends Google_Collection
+class Google_Service_Compute_TargetVpnGatewaysScopedList extends Google_Collection
{
- protected $collection_key = 'testFailures';
+ protected $collection_key = 'targetVpnGateways';
protected $internal_gapi_mappings = array(
);
- public $loadErrors;
- public $loadSucceeded;
- protected $testFailuresType = 'Google_Service_Compute_TestFailure';
- protected $testFailuresDataType = 'array';
- public $testPassed;
+ protected $targetVpnGatewaysType = 'Google_Service_Compute_TargetVpnGateway';
+ protected $targetVpnGatewaysDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarning';
+ protected $warningDataType = '';
- public function setLoadErrors($loadErrors)
+ public function setTargetVpnGateways($targetVpnGateways)
{
- $this->loadErrors = $loadErrors;
+ $this->targetVpnGateways = $targetVpnGateways;
}
- public function getLoadErrors()
+ public function getTargetVpnGateways()
{
- return $this->loadErrors;
+ return $this->targetVpnGateways;
}
- public function setLoadSucceeded($loadSucceeded)
+ public function setWarning(Google_Service_Compute_TargetVpnGatewaysScopedListWarning $warning)
{
- $this->loadSucceeded = $loadSucceeded;
+ $this->warning = $warning;
}
- public function getLoadSucceeded()
+ public function getWarning()
{
- return $this->loadSucceeded;
+ return $this->warning;
}
- public function setTestFailures($testFailures)
+}
+
+class Google_Service_Compute_TargetVpnGatewaysScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ protected $dataType = 'Google_Service_Compute_TargetVpnGatewaysScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+
+ public function setCode($code)
{
- $this->testFailures = $testFailures;
+ $this->code = $code;
}
- public function getTestFailures()
+ public function getCode()
{
- return $this->testFailures;
+ return $this->code;
}
- public function setTestPassed($testPassed)
+ public function setData($data)
{
- $this->testPassed = $testPassed;
+ $this->data = $data;
}
- public function getTestPassed()
+ public function getData()
{
- return $this->testPassed;
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
}
}
-class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model
+class Google_Service_Compute_TargetVpnGatewaysScopedListWarningData extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- protected $resourceType = 'Google_Service_Compute_UrlMap';
- protected $resourceDataType = '';
+ public $key;
+ public $value;
- public function setResource(Google_Service_Compute_UrlMap $resource)
+ public function setKey($key)
{
- $this->resource = $resource;
+ $this->key = $key;
}
- public function getResource()
+ public function getKey()
{
- return $this->resource;
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
}
}
-class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model
+class Google_Service_Compute_TestFailure extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- protected $resultType = 'Google_Service_Compute_UrlMapValidationResult';
- protected $resultDataType = '';
+ public $actualService;
+ public $expectedService;
+ public $host;
+ public $path;
- public function setResult(Google_Service_Compute_UrlMapValidationResult $result)
+ public function setActualService($actualService)
{
- $this->result = $result;
+ $this->actualService = $actualService;
}
- public function getResult()
+ public function getActualService()
{
- return $this->result;
+ return $this->actualService;
+ }
+ public function setExpectedService($expectedService)
+ {
+ $this->expectedService = $expectedService;
+ }
+ public function getExpectedService()
+ {
+ return $this->expectedService;
+ }
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
}
}
-class Google_Service_Compute_UsageExportLocation extends Google_Model
+class Google_Service_Compute_UrlMap extends Google_Collection
{
+ protected $collection_key = 'tests';
protected $internal_gapi_mappings = array(
);
- public $bucketName;
- public $reportNamePrefix;
+ public $creationTimestamp;
+ public $defaultService;
+ public $description;
+ public $fingerprint;
+ protected $hostRulesType = 'Google_Service_Compute_HostRule';
+ protected $hostRulesDataType = 'array';
+ public $id;
+ public $kind;
+ public $name;
+ protected $pathMatchersType = 'Google_Service_Compute_PathMatcher';
+ protected $pathMatchersDataType = 'array';
+ public $selfLink;
+ protected $testsType = 'Google_Service_Compute_UrlMapTest';
+ protected $testsDataType = 'array';
- public function setBucketName($bucketName)
+ public function setCreationTimestamp($creationTimestamp)
{
- $this->bucketName = $bucketName;
+ $this->creationTimestamp = $creationTimestamp;
}
- public function getBucketName()
+ public function getCreationTimestamp()
{
- return $this->bucketName;
+ return $this->creationTimestamp;
}
- public function setReportNamePrefix($reportNamePrefix)
+ public function setDefaultService($defaultService)
{
- $this->reportNamePrefix = $reportNamePrefix;
+ $this->defaultService = $defaultService;
}
- public function getReportNamePrefix()
+ public function getDefaultService()
{
- return $this->reportNamePrefix;
+ return $this->defaultService;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setHostRules($hostRules)
+ {
+ $this->hostRules = $hostRules;
+ }
+ public function getHostRules()
+ {
+ return $this->hostRules;
+ }
+ 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 setPathMatchers($pathMatchers)
+ {
+ $this->pathMatchers = $pathMatchers;
+ }
+ public function getPathMatchers()
+ {
+ return $this->pathMatchers;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setTests($tests)
+ {
+ $this->tests = $tests;
+ }
+ public function getTests()
+ {
+ return $this->tests;
+ }
+}
+
+class Google_Service_Compute_UrlMapList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_UrlMap';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ 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;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Compute_UrlMapReference extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $urlMap;
+
+
+ public function setUrlMap($urlMap)
+ {
+ $this->urlMap = $urlMap;
+ }
+ public function getUrlMap()
+ {
+ return $this->urlMap;
+ }
+}
+
+class Google_Service_Compute_UrlMapTest extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $description;
+ public $host;
+ public $path;
+ public $service;
+
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setHost($host)
+ {
+ $this->host = $host;
+ }
+ public function getHost()
+ {
+ return $this->host;
+ }
+ public function setPath($path)
+ {
+ $this->path = $path;
+ }
+ public function getPath()
+ {
+ return $this->path;
+ }
+ public function setService($service)
+ {
+ $this->service = $service;
+ }
+ public function getService()
+ {
+ return $this->service;
+ }
+}
+
+class Google_Service_Compute_UrlMapValidationResult extends Google_Collection
+{
+ protected $collection_key = 'testFailures';
+ protected $internal_gapi_mappings = array(
+ );
+ public $loadErrors;
+ public $loadSucceeded;
+ protected $testFailuresType = 'Google_Service_Compute_TestFailure';
+ protected $testFailuresDataType = 'array';
+ public $testPassed;
+
+
+ public function setLoadErrors($loadErrors)
+ {
+ $this->loadErrors = $loadErrors;
+ }
+ public function getLoadErrors()
+ {
+ return $this->loadErrors;
+ }
+ public function setLoadSucceeded($loadSucceeded)
+ {
+ $this->loadSucceeded = $loadSucceeded;
+ }
+ public function getLoadSucceeded()
+ {
+ return $this->loadSucceeded;
+ }
+ public function setTestFailures($testFailures)
+ {
+ $this->testFailures = $testFailures;
+ }
+ public function getTestFailures()
+ {
+ return $this->testFailures;
+ }
+ public function setTestPassed($testPassed)
+ {
+ $this->testPassed = $testPassed;
+ }
+ public function getTestPassed()
+ {
+ return $this->testPassed;
+ }
+}
+
+class Google_Service_Compute_UrlMapsValidateRequest extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $resourceType = 'Google_Service_Compute_UrlMap';
+ protected $resourceDataType = '';
+
+
+ public function setResource(Google_Service_Compute_UrlMap $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
+
+class Google_Service_Compute_UrlMapsValidateResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $resultType = 'Google_Service_Compute_UrlMapValidationResult';
+ protected $resultDataType = '';
+
+
+ public function setResult(Google_Service_Compute_UrlMapValidationResult $result)
+ {
+ $this->result = $result;
+ }
+ public function getResult()
+ {
+ return $this->result;
+ }
+}
+
+class Google_Service_Compute_UsageExportLocation extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $bucketName;
+ public $reportNamePrefix;
+
+
+ public function setBucketName($bucketName)
+ {
+ $this->bucketName = $bucketName;
+ }
+ public function getBucketName()
+ {
+ return $this->bucketName;
+ }
+ public function setReportNamePrefix($reportNamePrefix)
+ {
+ $this->reportNamePrefix = $reportNamePrefix;
+ }
+ public function getReportNamePrefix()
+ {
+ return $this->reportNamePrefix;
+ }
+}
+
+class Google_Service_Compute_VpnTunnel extends Google_Collection
+{
+ protected $collection_key = 'ikeNetworks';
+ protected $internal_gapi_mappings = array(
+ );
+ public $creationTimestamp;
+ public $description;
+ public $detailedStatus;
+ public $id;
+ public $ikeNetworks;
+ public $ikeVersion;
+ public $kind;
+ public $name;
+ public $peerIp;
+ public $region;
+ public $selfLink;
+ public $sharedSecret;
+ public $sharedSecretHash;
+ public $status;
+ public $targetVpnGateway;
+
+
+ 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 setDetailedStatus($detailedStatus)
+ {
+ $this->detailedStatus = $detailedStatus;
+ }
+ public function getDetailedStatus()
+ {
+ return $this->detailedStatus;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIkeNetworks($ikeNetworks)
+ {
+ $this->ikeNetworks = $ikeNetworks;
+ }
+ public function getIkeNetworks()
+ {
+ return $this->ikeNetworks;
+ }
+ public function setIkeVersion($ikeVersion)
+ {
+ $this->ikeVersion = $ikeVersion;
+ }
+ public function getIkeVersion()
+ {
+ return $this->ikeVersion;
+ }
+ 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 setPeerIp($peerIp)
+ {
+ $this->peerIp = $peerIp;
+ }
+ public function getPeerIp()
+ {
+ return $this->peerIp;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ public function setSharedSecret($sharedSecret)
+ {
+ $this->sharedSecret = $sharedSecret;
+ }
+ public function getSharedSecret()
+ {
+ return $this->sharedSecret;
+ }
+ public function setSharedSecretHash($sharedSecretHash)
+ {
+ $this->sharedSecretHash = $sharedSecretHash;
+ }
+ public function getSharedSecretHash()
+ {
+ return $this->sharedSecretHash;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTargetVpnGateway($targetVpnGateway)
+ {
+ $this->targetVpnGateway = $targetVpnGateway;
+ }
+ public function getTargetVpnGateway()
+ {
+ return $this->targetVpnGateway;
+ }
+}
+
+class Google_Service_Compute_VpnTunnelAggregatedList extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_VpnTunnelsScopedList';
+ protected $itemsDataType = 'map';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ 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;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Compute_VpnTunnelAggregatedListItems extends Google_Model
+{
+}
+
+class Google_Service_Compute_VpnTunnelList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ protected $itemsType = 'Google_Service_Compute_VpnTunnel';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ 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;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Compute_VpnTunnelsScopedList extends Google_Collection
+{
+ protected $collection_key = 'vpnTunnels';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $vpnTunnelsType = 'Google_Service_Compute_VpnTunnel';
+ protected $vpnTunnelsDataType = 'array';
+ protected $warningType = 'Google_Service_Compute_VpnTunnelsScopedListWarning';
+ protected $warningDataType = '';
+
+
+ public function setVpnTunnels($vpnTunnels)
+ {
+ $this->vpnTunnels = $vpnTunnels;
+ }
+ public function getVpnTunnels()
+ {
+ return $this->vpnTunnels;
+ }
+ public function setWarning(Google_Service_Compute_VpnTunnelsScopedListWarning $warning)
+ {
+ $this->warning = $warning;
+ }
+ public function getWarning()
+ {
+ return $this->warning;
+ }
+}
+
+class Google_Service_Compute_VpnTunnelsScopedListWarning extends Google_Collection
+{
+ protected $collection_key = 'data';
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ protected $dataType = 'Google_Service_Compute_VpnTunnelsScopedListWarningData';
+ protected $dataDataType = 'array';
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_Compute_VpnTunnelsScopedListWarningData extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $key;
+ public $value;
+
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
}
}
From 67a61f0bfef708466bc5c17333232e1a727fb6fb Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $streamingVariantStore = $genomicsService->streamingVariantStore;
+ *
+ */
+class Google_Service_Genomics_StreamingVariantStore_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Returns a stream of all the variants matching the search request, ordered by
+ * reference name, position, and ID. (streamingVariantStore.streamvariants)
+ *
+ * @param Google_StreamVariantsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_Variant
+ */
+ public function streamvariants(Google_Service_Genomics_StreamVariantsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('streamvariants', array($params), "Google_Service_Genomics_Variant");
+ }
+}
+
/**
* The "variants" collection of methods.
* Typical usage is:
@@ -4998,6 +5040,60 @@ public function getVariants()
}
}
+class Google_Service_Genomics_StreamVariantsRequest extends Google_Collection
+{
+ protected $collection_key = 'variantSetIds';
+ protected $internal_gapi_mappings = array(
+ );
+ public $callSetIds;
+ public $end;
+ public $referenceName;
+ public $start;
+ public $variantSetIds;
+
+
+ public function setCallSetIds($callSetIds)
+ {
+ $this->callSetIds = $callSetIds;
+ }
+ public function getCallSetIds()
+ {
+ return $this->callSetIds;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+ public function setVariantSetIds($variantSetIds)
+ {
+ $this->variantSetIds = $variantSetIds;
+ }
+ public function getVariantSetIds()
+ {
+ return $this->variantSetIds;
+ }
+}
+
class Google_Service_Genomics_Transcript extends Google_Collection
{
protected $collection_key = 'exons';
From f3aad4382a8bf23b0fe311cc425831dcfb214033 Mon Sep 17 00:00:00 2001
From: Silvano Luciani + * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Cloudsearch extends Google_Service +{ + /** View and manage your data across Google Cloud Platform services. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + /** FOR TESTING ONLY. */ + const CLOUDSEARCH = + "https://www.googleapis.com/auth/cloudsearch"; + /** View your email address. */ + const USERINFO_EMAIL = + "https://www.googleapis.com/auth/userinfo.email"; + + public $projects_indexes; + public $projects_indexes_documents; + + + /** + * Constructs the internal representation of the Cloudsearch service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = ''; + $this->version = 'v1'; + $this->serviceName = 'cloudsearch'; + + $this->projects_indexes = new Google_Service_Cloudsearch_ProjectsIndexes_Resource( + $this, + $this->serviceName, + 'indexes', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1/projects/{projectId}/indexes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexNamePrefix' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ),'search' => array( + 'path' => 'v1/projects/{projectId}/indexes/{indexId}/search', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'query' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'fieldExpressions' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'offset' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'matchedCountAccuracy' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scorer' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'scorerSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'returnFields' => array( + 'location' => 'query', + 'type' => 'string', + 'repeated' => true, + ), + ), + ), + ) + ) + ); + $this->projects_indexes_documents = new Google_Service_Cloudsearch_ProjectsIndexesDocuments_Resource( + $this, + $this->serviceName, + 'documents', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1/projects/{projectId}/indexes/{indexId}/documents', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1/projects/{projectId}/indexes/{indexId}/documents/{docId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'docId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1/projects/{projectId}/indexes/{indexId}/documents/{docId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'docId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1/projects/{projectId}/indexes/{indexId}/documents', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'view' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "projects" collection of methods. + * Typical usage is: + *
+ * $cloudsearchService = new Google_Service_Cloudsearch(...);
+ * $projects = $cloudsearchService->projects;
+ *
+ */
+class Google_Service_Cloudsearch_Projects_Resource extends Google_Service_Resource
+{
+}
+
+/**
+ * The "indexes" collection of methods.
+ * Typical usage is:
+ *
+ * $cloudsearchService = new Google_Service_Cloudsearch(...);
+ * $indexes = $cloudsearchService->indexes;
+ *
+ */
+class Google_Service_Cloudsearch_ProjectsIndexes_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Lists search indexes belonging to the specified project.
+ * (indexes.listProjectsIndexes)
+ *
+ * @param string $projectId The project from which to retrieve indexes. It
+ * cannot be the empty string.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string indexNamePrefix The prefix of the index name. It is used to
+ * list all indexes with names that have this prefix.
+ * @opt_param int pageSize The maximum number of indexes to return per page. If
+ * not specified, 100 indexes are returned per page.
+ * @opt_param string pageToken A `nextPageToken` returned from previous list
+ * indexes call as the starting point for this call. If not specified, list
+ * indexes from the beginning.
+ * @opt_param string view Specifies which parts of the IndexInfo resource is
+ * returned in the response. If not specified, `ID_ONLY` is used.
+ * @return Google_Service_Cloudsearch_ListIndexesResponse
+ */
+ public function listProjectsIndexes($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Cloudsearch_ListIndexesResponse");
+ }
+
+ /**
+ * Lists the documents in the named index that match the query. (indexes.search)
+ *
+ * @param string $projectId The project associated with the index for searching
+ * document. It cannot be the empty string.
+ * @param string $indexId The index to search. It cannot be the empty string.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string query The query string in search query syntax. If the query
+ * is missing or empty, all documents are returned.
+ * @opt_param string fieldExpressions Customized expressions used in `orderBy`
+ * or `returnFields`. The expression can contain fields in `Document`, the
+ * built-in fields ( `_rank`, the document rank, and `_score` if scoring is
+ * enabled) and fields defined in `fieldExpressions`. Each field expression is
+ * represented in a json object with the following fields: * `name`: the name of
+ * the field expression in string. * `expression`: the expression to be
+ * computed. It can be a combination of supported functions encoded in string.
+ * Expressions involving number fields can use the arithmetical operators (`+`,
+ * `-`, `*`, `/`) and the built-in numeric functions (`max`, `min`, `pow`,
+ * `count`, `log`, `abs`). Expressions involving geopoint fields can use the
+ * `geopoint` and `distance` functions. Expressions for text and html fields can
+ * use the `snippet` function. For example: ``` fieldExpressions={name:
+ * "TotalPrice", expression: "(Price+Tax)"} ``` ``` fieldExpressions={name:
+ * "snippet", expression: "snippet('good times', content)"} ``` The field
+ * expression names can be used in `orderBy` and `returnFields` after they are
+ * defined in `fieldExpressions`.
+ * @opt_param int pageSize The maximum number of search results to return per
+ * page. Searches perform best when the `pageSize` is kept as small as possible.
+ * If not specified, 10 results are returned per page.
+ * @opt_param string pageToken A `nextPageToken` returned from previous Search
+ * call as the starting point for this call. Pagination tokens provide better
+ * performance and consistency than offsets, and they cannot be used in
+ * combination with offsets.
+ * @opt_param int offset Offset is used to move to an arbitrary result,
+ * independent of the previous results. Offsets are inefficient when compared to
+ * `pageToken`. `pageToken` and `offset` cannot be both set. The default value
+ * of `offset` is 0.
+ * @opt_param int matchedCountAccuracy Minimum accuracy requirement for
+ * `matchedCount` in search response. If specified, `matchedCount` will be
+ * accurate up to at least that number. For example, when set to 100, any
+ * `matchedCount <= 100` is accurate. This option may add considerable
+ * latency/expense. By default (when it is not specified or set to 0), the
+ * accuracy is the same as `pageSize`.
+ * @opt_param string orderBy Comma-separated list of fields for sorting on the
+ * search result, including fields from `Document`, the built-in fields (`_rank`
+ * and `_score`), and fields defined in `fieldExpressions`. For example:
+ * `orderBy="foo,bar"`. The default sorting order is ascending. To specify
+ * descending order for a field, a suffix `" desc"` should be appended to the
+ * field name. For example: `orderBy="foo desc,bar"`. The default value for text
+ * sort is the empty string, and the default value for numeric sort is 0. If not
+ * specified, the search results are automatically sorted by descending `_rank`.
+ * Sorting by ascending `_rank` is not allowed.
+ * @opt_param string scorer The scoring function to invoke on a search result
+ * for this query. If `scorer` is not set, scoring is disabled and `_score` is 0
+ * for all documents in the search result. To enable document relevancy score
+ * based on term frequency, set `"scorer=generic"`.
+ * @opt_param int scorerSize Maximum number of top retrieved results to score.
+ * It is valid only when `scorer` is set. If not specified, 100 retrieved
+ * results are scored.
+ * @opt_param string returnFields List of fields to return in `SearchResult`
+ * objects. It can be fields from `Document`, the built-in fields `_rank` and
+ * `_score`, and fields defined in `fieldExpressions`. Use `"*"` to return all
+ * fields from `Document`.
+ * @return Google_Service_Cloudsearch_SearchResponse
+ */
+ public function search($projectId, $indexId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'indexId' => $indexId);
+ $params = array_merge($params, $optParams);
+ return $this->call('search', array($params), "Google_Service_Cloudsearch_SearchResponse");
+ }
+}
+
+/**
+ * The "documents" collection of methods.
+ * Typical usage is:
+ *
+ * $cloudsearchService = new Google_Service_Cloudsearch(...);
+ * $documents = $cloudsearchService->documents;
+ *
+ */
+class Google_Service_Cloudsearch_ProjectsIndexesDocuments_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Inserts a document for indexing or updates an indexed document. The returned
+ * document contains only the ID of the new document. When `docId` is absent
+ * from the document, it is provided by the server. (documents.create)
+ *
+ * @param string $projectId The project associated with the index for adding
+ * document. It cannot be the empty string.
+ * @param string $indexId The index to add document to. It cannot be the empty
+ * string.
+ * @param Google_Document $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudsearch_Document
+ */
+ public function create($projectId, $indexId, Google_Service_Cloudsearch_Document $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'indexId' => $indexId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Cloudsearch_Document");
+ }
+
+ /**
+ * Deletes a document from an index. (documents.delete)
+ *
+ * @param string $projectId The project associated with the index for deleting
+ * document. It cannot be the empty string.
+ * @param string $indexId The index from which to delete the document. It cannot
+ * be the empty string.
+ * @param string $docId The document to be deleted. It cannot be the empty
+ * string.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudsearch_Empty
+ */
+ public function delete($projectId, $indexId, $docId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'indexId' => $indexId, 'docId' => $docId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Cloudsearch_Empty");
+ }
+
+ /**
+ * Retrieves a document from an index. (documents.get)
+ *
+ * @param string $projectId The project associated with the index for retrieving
+ * the document. It cannot be the empty string.
+ * @param string $indexId The index from which to retrieve the document. It
+ * cannot be the empty string.
+ * @param string $docId The identifier of the document to retrieve. It cannot be
+ * the empty string.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudsearch_Document
+ */
+ public function get($projectId, $indexId, $docId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'indexId' => $indexId, 'docId' => $docId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Cloudsearch_Document");
+ }
+
+ /**
+ * Lists documents in the specified search index. Intended for batch processing.
+ * (documents.listProjectsIndexesDocuments)
+ *
+ * @param string $projectId The project associated with the index for listing
+ * documents. It cannot be the empty string.
+ * @param string $indexId The index from which to list the documents. It cannot
+ * be the empty string.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize The maximum number of documents to return per page.
+ * If not specified, 100 documents are returned per page.
+ * @opt_param string pageToken A `nextPageToken` returned from previous list
+ * documents call as the starting point for this call. If not specified, list
+ * documents from the beginning.
+ * @opt_param string view Specifies which part of the document resource is
+ * returned in the response. If not specified, `ID_ONLY` is used.
+ * @return Google_Service_Cloudsearch_ListDocumentsResponse
+ */
+ public function listProjectsIndexesDocuments($projectId, $indexId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'indexId' => $indexId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Cloudsearch_ListDocumentsResponse");
+ }
+}
+
+
+
+
+class Google_Service_Cloudsearch_Document extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $docId;
+ protected $fieldsType = 'Google_Service_Cloudsearch_FieldValueList';
+ protected $fieldsDataType = 'map';
+ public $rank;
+
+
+ public function setDocId($docId)
+ {
+ $this->docId = $docId;
+ }
+ public function getDocId()
+ {
+ return $this->docId;
+ }
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setRank($rank)
+ {
+ $this->rank = $rank;
+ }
+ public function getRank()
+ {
+ return $this->rank;
+ }
+}
+
+class Google_Service_Cloudsearch_DocumentFields extends Google_Model
+{
+}
+
+class Google_Service_Cloudsearch_Empty extends Google_Model
+{
+}
+
+class Google_Service_Cloudsearch_FieldNames extends Google_Collection
+{
+ protected $collection_key = 'textFields';
+ protected $internal_gapi_mappings = array(
+ );
+ public $atomFields;
+ public $dateFields;
+ public $geoFields;
+ public $htmlFields;
+ public $numberFields;
+ public $textFields;
+
+
+ public function setAtomFields($atomFields)
+ {
+ $this->atomFields = $atomFields;
+ }
+ public function getAtomFields()
+ {
+ return $this->atomFields;
+ }
+ public function setDateFields($dateFields)
+ {
+ $this->dateFields = $dateFields;
+ }
+ public function getDateFields()
+ {
+ return $this->dateFields;
+ }
+ public function setGeoFields($geoFields)
+ {
+ $this->geoFields = $geoFields;
+ }
+ public function getGeoFields()
+ {
+ return $this->geoFields;
+ }
+ public function setHtmlFields($htmlFields)
+ {
+ $this->htmlFields = $htmlFields;
+ }
+ public function getHtmlFields()
+ {
+ return $this->htmlFields;
+ }
+ public function setNumberFields($numberFields)
+ {
+ $this->numberFields = $numberFields;
+ }
+ public function getNumberFields()
+ {
+ return $this->numberFields;
+ }
+ public function setTextFields($textFields)
+ {
+ $this->textFields = $textFields;
+ }
+ public function getTextFields()
+ {
+ return $this->textFields;
+ }
+}
+
+class Google_Service_Cloudsearch_FieldValue extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $geoValue;
+ public $lang;
+ public $numberValue;
+ public $stringFormat;
+ public $stringValue;
+ public $timestampValue;
+
+
+ public function setGeoValue($geoValue)
+ {
+ $this->geoValue = $geoValue;
+ }
+ public function getGeoValue()
+ {
+ return $this->geoValue;
+ }
+ public function setLang($lang)
+ {
+ $this->lang = $lang;
+ }
+ public function getLang()
+ {
+ return $this->lang;
+ }
+ public function setNumberValue($numberValue)
+ {
+ $this->numberValue = $numberValue;
+ }
+ public function getNumberValue()
+ {
+ return $this->numberValue;
+ }
+ public function setStringFormat($stringFormat)
+ {
+ $this->stringFormat = $stringFormat;
+ }
+ public function getStringFormat()
+ {
+ return $this->stringFormat;
+ }
+ public function setStringValue($stringValue)
+ {
+ $this->stringValue = $stringValue;
+ }
+ public function getStringValue()
+ {
+ return $this->stringValue;
+ }
+ public function setTimestampValue($timestampValue)
+ {
+ $this->timestampValue = $timestampValue;
+ }
+ public function getTimestampValue()
+ {
+ return $this->timestampValue;
+ }
+}
+
+class Google_Service_Cloudsearch_FieldValueList extends Google_Collection
+{
+ protected $collection_key = 'values';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $valuesType = 'Google_Service_Cloudsearch_FieldValue';
+ protected $valuesDataType = 'array';
+
+
+ public function setValues($values)
+ {
+ $this->values = $values;
+ }
+ public function getValues()
+ {
+ return $this->values;
+ }
+}
+
+class Google_Service_Cloudsearch_IndexInfo extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $indexId;
+ protected $indexedFieldType = 'Google_Service_Cloudsearch_FieldNames';
+ protected $indexedFieldDataType = '';
+ public $projectId;
+
+
+ public function setIndexId($indexId)
+ {
+ $this->indexId = $indexId;
+ }
+ public function getIndexId()
+ {
+ return $this->indexId;
+ }
+ public function setIndexedField(Google_Service_Cloudsearch_FieldNames $indexedField)
+ {
+ $this->indexedField = $indexedField;
+ }
+ public function getIndexedField()
+ {
+ return $this->indexedField;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+}
+
+class Google_Service_Cloudsearch_ListDocumentsResponse extends Google_Collection
+{
+ protected $collection_key = 'documents';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $documentsType = 'Google_Service_Cloudsearch_Document';
+ protected $documentsDataType = 'array';
+ public $nextPageToken;
+
+
+ public function setDocuments($documents)
+ {
+ $this->documents = $documents;
+ }
+ public function getDocuments()
+ {
+ return $this->documents;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Cloudsearch_ListIndexesResponse extends Google_Collection
+{
+ protected $collection_key = 'indexes';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $indexesType = 'Google_Service_Cloudsearch_IndexInfo';
+ protected $indexesDataType = 'array';
+ public $nextPageToken;
+
+
+ public function setIndexes($indexes)
+ {
+ $this->indexes = $indexes;
+ }
+ public function getIndexes()
+ {
+ return $this->indexes;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Cloudsearch_SearchResponse extends Google_Collection
+{
+ protected $collection_key = 'results';
+ protected $internal_gapi_mappings = array(
+ );
+ public $matchedCount;
+ protected $resultsType = 'Google_Service_Cloudsearch_SearchResult';
+ protected $resultsDataType = 'array';
+
+
+ public function setMatchedCount($matchedCount)
+ {
+ $this->matchedCount = $matchedCount;
+ }
+ public function getMatchedCount()
+ {
+ return $this->matchedCount;
+ }
+ public function setResults($results)
+ {
+ $this->results = $results;
+ }
+ public function getResults()
+ {
+ return $this->results;
+ }
+}
+
+class Google_Service_Cloudsearch_SearchResult extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $docId;
+ protected $fieldsType = 'Google_Service_Cloudsearch_FieldValueList';
+ protected $fieldsDataType = 'map';
+ public $nextPageToken;
+
+
+ public function setDocId($docId)
+ {
+ $this->docId = $docId;
+ }
+ public function getDocId()
+ {
+ return $this->docId;
+ }
+ public function setFields($fields)
+ {
+ $this->fields = $fields;
+ }
+ public function getFields()
+ {
+ return $this->fields;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Cloudsearch_SearchResultFields extends Google_Model
+{
+}
From 177f9ddacde46e717c1de854f2ae5ed86fc1bc4d Mon Sep 17 00:00:00 2001
From: Silvano Luciani + * For more information about this service, see the API + * Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Logging 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_logEntries; + public $projects_logServices; + public $projects_logServices_indexes; + public $projects_logServices_sinks; + public $projects_logs; + public $projects_logs_entries; + public $projects_logs_sinks; + public $projects_metrics; + + + /** + * Constructs the internal representation of the Logging service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) + { + parent::__construct($client); + $this->servicePath = ''; + $this->version = 'v1beta3'; + $this->serviceName = 'logging'; + + $this->projects_logEntries = new Google_Service_Logging_ProjectsLogEntries_Resource( + $this, + $this->serviceName, + 'logEntries', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/logEntries', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'filter' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'orderBy' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_logServices = new Google_Service_Logging_ProjectsLogServices_Resource( + $this, + $this->serviceName, + 'logServices', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'log' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_logServices_indexes = new Google_Service_Logging_ProjectsLogServicesIndexes_Resource( + $this, + $this->serviceName, + 'indexes', + array( + 'methods' => array( + 'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/indexes', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logServicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'indexPrefix' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'depth' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'log' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_logServices_sinks = new Google_Service_Logging_ProjectsLogServicesSinks_Resource( + $this, + $this->serviceName, + 'sinks', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logServicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logServicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sinksId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logServicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sinksId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logServicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1beta3/projects/{projectsId}/logServices/{logServicesId}/sinks/{sinksId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logServicesId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sinksId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_logs = new Google_Service_Logging_ProjectsLogs_Resource( + $this, + $this->serviceName, + 'logs', + array( + 'methods' => array( + 'delete' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'serviceName' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'serviceIndexPrefix' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + ), + ), + ) + ) + ); + $this->projects_logs_entries = new Google_Service_Logging_ProjectsLogsEntries_Resource( + $this, + $this->serviceName, + 'entries', + array( + 'methods' => array( + 'write' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/entries:write', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_logs_sinks = new Google_Service_Logging_ProjectsLogsSinks_Resource( + $this, + $this->serviceName, + 'sinks', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sinksId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sinksId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'update' => array( + 'path' => 'v1beta3/projects/{projectsId}/logs/{logsId}/sinks/{sinksId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'logsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'sinksId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + $this->projects_metrics = new Google_Service_Logging_ProjectsMetrics_Resource( + $this, + $this->serviceName, + 'metrics', + array( + 'methods' => array( + 'create' => array( + 'path' => 'v1beta3/projects/{projectsId}/metrics', + 'httpMethod' => 'POST', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'delete' => array( + 'path' => 'v1beta3/projects/{projectsId}/metrics/{metricsId}', + 'httpMethod' => 'DELETE', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metricsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'get' => array( + 'path' => 'v1beta3/projects/{projectsId}/metrics/{metricsId}', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metricsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ),'list' => array( + 'path' => 'v1beta3/projects/{projectsId}/metrics', + 'httpMethod' => 'GET', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'pageToken' => array( + 'location' => 'query', + 'type' => 'string', + ), + 'pageSize' => array( + 'location' => 'query', + 'type' => 'integer', + ), + ), + ),'update' => array( + 'path' => 'v1beta3/projects/{projectsId}/metrics/{metricsId}', + 'httpMethod' => 'PUT', + 'parameters' => array( + 'projectsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + 'metricsId' => array( + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ), + ), + ), + ) + ) + ); + } +} + + +/** + * The "projects" collection of methods. + * Typical usage is: + *
+ * $loggingService = new Google_Service_Logging(...);
+ * $projects = $loggingService->projects;
+ *
+ */
+class Google_Service_Logging_Projects_Resource extends Google_Service_Resource
+{
+}
+
+/**
+ * The "logEntries" collection of methods.
+ * Typical usage is:
+ *
+ * $loggingService = new Google_Service_Logging(...);
+ * $logEntries = $loggingService->logEntries;
+ *
+ */
+class Google_Service_Logging_ProjectsLogEntries_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Lists log entries in the specified project.
+ * (logEntries.listProjectsLogEntries)
+ *
+ * @param string $projectsId Part of `projectName`. The project resource from
+ * which to retrieve log entries, for example: "projects/my_project_id".
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Filter specification. Response includes only entries
+ * which are selected by this filter. If empty, response is unfiltered.
+ * @opt_param string orderBy Sort order. The only LogEntry field supported for
+ * sorting is metadata.timestamp and the default order is ascending (from older
+ * to newer). To have entries returned in the opposite (descending) order,
+ * specify order_by="metadata.timestamp desc".
+ * @opt_param int pageSize Maximum number of entries to return per request.
+ * Fewer entries may be returned.
+ * @opt_param string pageToken An opaque token obtained from a prior
+ * ListLogEntries response (in next_page_token). If this is supplied, other
+ * parameters in this request are ignored, in favor of the corresponding
+ * parameters in the original request.
+ * @return Google_Service_Logging_ListLogEntriesResponse
+ */
+ public function listProjectsLogEntries($projectsId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogEntriesResponse");
+ }
+}
+/**
+ * The "logServices" collection of methods.
+ * Typical usage is:
+ *
+ * $loggingService = new Google_Service_Logging(...);
+ * $logServices = $loggingService->logServices;
+ *
+ */
+class Google_Service_Logging_ProjectsLogServices_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Lists log services associated with log entries ingested for a project.
+ * (logServices.listProjectsLogServices)
+ *
+ * @param string $projectsId Part of `projectName`. The project resource for
+ * which to list the services.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string log A log resource like /projects/project_id/logs/log_name
+ * identifying the log for which to list services. When empty, all services will
+ * be listed.
+ * @opt_param int pageSize The maximum number of LogService objects to return.
+ * @opt_param string pageToken An optional next_page_token from a previous
+ * ListLogServicesResult. Other fields are ignored when the page_token is not
+ * empty.
+ * @return Google_Service_Logging_ListLogServicesResponse
+ */
+ public function listProjectsLogServices($projectsId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogServicesResponse");
+ }
+}
+
+/**
+ * The "indexes" collection of methods.
+ * Typical usage is:
+ *
+ * $loggingService = new Google_Service_Logging(...);
+ * $indexes = $loggingService->indexes;
+ *
+ */
+class Google_Service_Logging_ProjectsLogServicesIndexes_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Lists log service indexes associated with a log service.
+ * (indexes.listProjectsLogServicesIndexes)
+ *
+ * @param string $projectsId Part of `serviceName`. A log service resource whose
+ * service indexes to return (e.g.
+ * /projects/myProj/logServices/appengine.googleapis.com).
+ * @param string $logServicesId Part of `serviceName`. See documentation of
+ * `projectsId`.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string indexPrefix A prefix of the log service indexes to be
+ * returned. The prefix is a slash separated list of the label values in order
+ * corresponding to the [LogService
+ * index_keys][google.logging.v1.LogService.index_keys]. For example use
+ * "/myModule/" to retrieve App Engine versions associated with myModule. The
+ * trailing slash terminates the value, while "/myModule" would allow retrieval
+ * of App Engine modules with names beginning with myModule. An prefix component
+ * matches all log service indexes. A non-empty prefix must begin with "/".
+ * @opt_param int depth A limit to the number of levels of the index hierarchy
+ * that will be expanded. If the depth is 0, it will default to the level
+ * specified by the prefix field (the number of slash separators). The default
+ * empty prefix implies a depth of 1. It is an error for depth to be any non-
+ * zero value less than the number of components in index_prefix.
+ * @opt_param string log A log resource like /projects/project_id/logs/log_name
+ * identifying the log for which to list services indexes.
+ * @opt_param int pageSize The maximum number of log service index resources to
+ * return.
+ * @opt_param string pageToken An optional next_page_token from a previous
+ * ListLogServicesIndexesResult. Other fields are ignored when the page_token is
+ * not empty.
+ * @return Google_Service_Logging_ListLogServiceIndexesResponse
+ */
+ public function listProjectsLogServicesIndexes($projectsId, $logServicesId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogServiceIndexesResponse");
+ }
+}
+/**
+ * The "sinks" collection of methods.
+ * Typical usage is:
+ *
+ * $loggingService = new Google_Service_Logging(...);
+ * $sinks = $loggingService->sinks;
+ *
+ */
+class Google_Service_Logging_ProjectsLogServicesSinks_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Create the specified log service sink resource. (sinks.create)
+ *
+ * @param string $projectsId Part of `serviceName`. The service in which to
+ * create a sink.
+ * @param string $logServicesId Part of `serviceName`. See documentation of
+ * `projectsId`.
+ * @param Google_LogSink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function create($projectsId, $logServicesId, Google_Service_Logging_LogSink $postBody, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Logging_LogSink");
+ }
+
+ /**
+ * Deletes the specified log service sink. (sinks.delete)
+ *
+ * @param string $projectsId Part of `sinkName`. The sink to delete.
+ * @param string $logServicesId Part of `sinkName`. See documentation of
+ * `projectsId`.
+ * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_Empty
+ */
+ public function delete($projectsId, $logServicesId, $sinksId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'sinksId' => $sinksId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_Empty");
+ }
+
+ /**
+ * Get the specified log service sink resource. (sinks.get)
+ *
+ * @param string $projectsId Part of `sinkName`. The sink to return.
+ * @param string $logServicesId Part of `sinkName`. See documentation of
+ * `projectsId`.
+ * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function get($projectsId, $logServicesId, $sinksId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'sinksId' => $sinksId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Logging_LogSink");
+ }
+
+ /**
+ * List log service sinks associated with the specified service.
+ * (sinks.listProjectsLogServicesSinks)
+ *
+ * @param string $projectsId Part of `serviceName`. The service for which to
+ * list sinks.
+ * @param string $logServicesId Part of `serviceName`. See documentation of
+ * `projectsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_ListLogServiceSinksResponse
+ */
+ public function listProjectsLogServicesSinks($projectsId, $logServicesId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogServiceSinksResponse");
+ }
+
+ /**
+ * Create or update the specified log service sink resource. (sinks.update)
+ *
+ * @param string $projectsId Part of `sinkName`. The sink to update.
+ * @param string $logServicesId Part of `sinkName`. See documentation of
+ * `projectsId`.
+ * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
+ * @param Google_LogSink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function update($projectsId, $logServicesId, $sinksId, Google_Service_Logging_LogSink $postBody, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logServicesId' => $logServicesId, 'sinksId' => $sinksId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Logging_LogSink");
+ }
+}
+/**
+ * The "logs" collection of methods.
+ * Typical usage is:
+ *
+ * $loggingService = new Google_Service_Logging(...);
+ * $logs = $loggingService->logs;
+ *
+ */
+class Google_Service_Logging_ProjectsLogs_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes the specified log resource and all log entries contained in it.
+ * (logs.delete)
+ *
+ * @param string $projectsId Part of `logName`. The log resource to delete.
+ * @param string $logsId Part of `logName`. See documentation of `projectsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_Empty
+ */
+ public function delete($projectsId, $logsId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logsId' => $logsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_Empty");
+ }
+
+ /**
+ * Lists log resources belonging to the specified project.
+ * (logs.listProjectsLogs)
+ *
+ * @param string $projectsId Part of `projectName`. The project name for which
+ * to list the log resources.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string serviceName A service name for which to list logs. Only
+ * logs containing entries whose metadata included this service name will be
+ * returned. If empty and service_index_prefix is also empty then all log names
+ * are returned. To list all log names (regardless of service) leave both the
+ * service_name and service_index_prefix empty. To list log names containing
+ * entries with a particular service name (or explicitly empty service name) set
+ * service_name to the desired value and service_index_prefix to "/".
+ * @opt_param string serviceIndexPrefix A log service index prefix for which to
+ * list logs. Only logs containing entries whose metadata included these label
+ * values (associated with index keys) will be returned. The prefix is a slash
+ * separated list of values, and need not specify all index labels. An empty
+ * index (or a single slash) matches all log service indexes.
+ * @opt_param int pageSize The maximum number of results to return.
+ * @opt_param string pageToken An optional next_page_token from a previous
+ * ListLogsResponse. Other query parameters are ignored when page_token is not
+ * empty.
+ * @return Google_Service_Logging_ListLogsResponse
+ */
+ public function listProjectsLogs($projectsId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogsResponse");
+ }
+}
+
+/**
+ * The "entries" collection of methods.
+ * Typical usage is:
+ *
+ * $loggingService = new Google_Service_Logging(...);
+ * $entries = $loggingService->entries;
+ *
+ */
+class Google_Service_Logging_ProjectsLogsEntries_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Creates several log entries in a log. (entries.write)
+ *
+ * @param string $projectsId Part of `logName`. The log resource into which to
+ * insert the log entries. If the log resource name contains characters that are
+ * illegal in a URL (for example, "/") they must be URL-encoded (for example, as
+ * "%2F").
+ * @param string $logsId Part of `logName`. See documentation of `projectsId`.
+ * @param Google_WriteLogEntriesRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_WriteLogEntriesResponse
+ */
+ public function write($projectsId, $logsId, Google_Service_Logging_WriteLogEntriesRequest $postBody, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('write', array($params), "Google_Service_Logging_WriteLogEntriesResponse");
+ }
+}
+/**
+ * The "sinks" collection of methods.
+ * Typical usage is:
+ *
+ * $loggingService = new Google_Service_Logging(...);
+ * $sinks = $loggingService->sinks;
+ *
+ */
+class Google_Service_Logging_ProjectsLogsSinks_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Create the specified log sink resource. (sinks.create)
+ *
+ * @param string $projectsId Part of `logName`. The log in which to create a
+ * sink
+ * @param string $logsId Part of `logName`. See documentation of `projectsId`.
+ * @param Google_LogSink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function create($projectsId, $logsId, Google_Service_Logging_LogSink $postBody, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Logging_LogSink");
+ }
+
+ /**
+ * Deletes the specified log sink. (sinks.delete)
+ *
+ * @param string $projectsId Part of `sinkName`. The sink to delete.
+ * @param string $logsId Part of `sinkName`. See documentation of `projectsId`.
+ * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_Empty
+ */
+ public function delete($projectsId, $logsId, $sinksId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_Empty");
+ }
+
+ /**
+ * Get the specified log sink resource. (sinks.get)
+ *
+ * @param string $projectsId Part of `sinkName`. The sink to return.
+ * @param string $logsId Part of `sinkName`. See documentation of `projectsId`.
+ * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function get($projectsId, $logsId, $sinksId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Logging_LogSink");
+ }
+
+ /**
+ * List log sinks associated with the specified log.
+ * (sinks.listProjectsLogsSinks)
+ *
+ * @param string $projectsId Part of `logName`. The log for which to list sinks.
+ * @param string $logsId Part of `logName`. See documentation of `projectsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_ListLogSinksResponse
+ */
+ public function listProjectsLogsSinks($projectsId, $logsId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logsId' => $logsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogSinksResponse");
+ }
+
+ /**
+ * Create or update the specified log sink resource. (sinks.update)
+ *
+ * @param string $projectsId Part of `sinkName`. The sink to update.
+ * @param string $logsId Part of `sinkName`. See documentation of `projectsId`.
+ * @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
+ * @param Google_LogSink $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogSink
+ */
+ public function update($projectsId, $logsId, $sinksId, Google_Service_Logging_LogSink $postBody, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'logsId' => $logsId, 'sinksId' => $sinksId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Logging_LogSink");
+ }
+}
+/**
+ * The "metrics" collection of methods.
+ * Typical usage is:
+ *
+ * $loggingService = new Google_Service_Logging(...);
+ * $metrics = $loggingService->metrics;
+ *
+ */
+class Google_Service_Logging_ProjectsMetrics_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Create the specified log metric resource. (metrics.create)
+ *
+ * @param string $projectsId Part of `projectName`. The project in which to
+ * create a metric.
+ * @param Google_LogMetric $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogMetric
+ */
+ public function create($projectsId, Google_Service_Logging_LogMetric $postBody, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Logging_LogMetric");
+ }
+
+ /**
+ * Deletes the specified log metric. (metrics.delete)
+ *
+ * @param string $projectsId Part of `metricName`. The metric to delete.
+ * @param string $metricsId Part of `metricName`. See documentation of
+ * `projectsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_Empty
+ */
+ public function delete($projectsId, $metricsId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'metricsId' => $metricsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Logging_Empty");
+ }
+
+ /**
+ * Get the specified log metric resource. (metrics.get)
+ *
+ * @param string $projectsId Part of `metricName`. The metric to return.
+ * @param string $metricsId Part of `metricName`. See documentation of
+ * `projectsId`.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogMetric
+ */
+ public function get($projectsId, $metricsId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'metricsId' => $metricsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Logging_LogMetric");
+ }
+
+ /**
+ * List log metrics associated with the specified project.
+ * (metrics.listProjectsMetrics)
+ *
+ * @param string $projectsId Part of `projectName`. The project name for which
+ * to list metrics.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken If non-empty, specifies from where to start
+ * returning results. This page_token is from a previous call to
+ * ListLogsMetrics.
+ * @opt_param int pageSize Maximum number of results to return.
+ * @return Google_Service_Logging_ListLogMetricsResponse
+ */
+ public function listProjectsMetrics($projectsId, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Logging_ListLogMetricsResponse");
+ }
+
+ /**
+ * Create or update the specified log metric resource. (metrics.update)
+ *
+ * @param string $projectsId Part of `metricName`. The metric to update.
+ * @param string $metricsId Part of `metricName`. See documentation of
+ * `projectsId`.
+ * @param Google_LogMetric $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Logging_LogMetric
+ */
+ public function update($projectsId, $metricsId, Google_Service_Logging_LogMetric $postBody, $optParams = array())
+ {
+ $params = array('projectsId' => $projectsId, 'metricsId' => $metricsId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Logging_LogMetric");
+ }
+}
+
+
+
+
+class Google_Service_Logging_Empty extends Google_Model
+{
+}
+
+class Google_Service_Logging_ListLogEntriesResponse extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $entriesType = 'Google_Service_Logging_LogEntry';
+ protected $entriesDataType = 'array';
+ public $nextPageToken;
+
+
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Logging_ListLogMetricsResponse extends Google_Collection
+{
+ protected $collection_key = 'metrics';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $metricsType = 'Google_Service_Logging_LogMetric';
+ protected $metricsDataType = 'array';
+ public $nextPageToken;
+
+
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Logging_ListLogServiceIndexesResponse extends Google_Collection
+{
+ protected $collection_key = 'serviceIndexPrefixes';
+ protected $internal_gapi_mappings = array(
+ );
+ public $nextPageToken;
+ public $serviceIndexPrefixes;
+
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setServiceIndexPrefixes($serviceIndexPrefixes)
+ {
+ $this->serviceIndexPrefixes = $serviceIndexPrefixes;
+ }
+ public function getServiceIndexPrefixes()
+ {
+ return $this->serviceIndexPrefixes;
+ }
+}
+
+class Google_Service_Logging_ListLogServiceSinksResponse extends Google_Collection
+{
+ protected $collection_key = 'sinks';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $sinksType = 'Google_Service_Logging_LogSink';
+ protected $sinksDataType = 'array';
+
+
+ public function setSinks($sinks)
+ {
+ $this->sinks = $sinks;
+ }
+ public function getSinks()
+ {
+ return $this->sinks;
+ }
+}
+
+class Google_Service_Logging_ListLogServicesResponse extends Google_Collection
+{
+ protected $collection_key = 'logServices';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $logServicesType = 'Google_Service_Logging_LogService';
+ protected $logServicesDataType = 'array';
+ public $nextPageToken;
+
+
+ public function setLogServices($logServices)
+ {
+ $this->logServices = $logServices;
+ }
+ public function getLogServices()
+ {
+ return $this->logServices;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Logging_ListLogSinksResponse extends Google_Collection
+{
+ protected $collection_key = 'sinks';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $sinksType = 'Google_Service_Logging_LogSink';
+ protected $sinksDataType = 'array';
+
+
+ public function setSinks($sinks)
+ {
+ $this->sinks = $sinks;
+ }
+ public function getSinks()
+ {
+ return $this->sinks;
+ }
+}
+
+class Google_Service_Logging_ListLogsResponse extends Google_Collection
+{
+ protected $collection_key = 'logs';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $logsType = 'Google_Service_Logging_Log';
+ protected $logsDataType = 'array';
+ public $nextPageToken;
+
+
+ public function setLogs($logs)
+ {
+ $this->logs = $logs;
+ }
+ public function getLogs()
+ {
+ return $this->logs;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Logging_Log extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $displayName;
+ public $name;
+ public $payloadType;
+
+
+ public function setDisplayName($displayName)
+ {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName()
+ {
+ return $this->displayName;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPayloadType($payloadType)
+ {
+ $this->payloadType = $payloadType;
+ }
+ public function getPayloadType()
+ {
+ return $this->payloadType;
+ }
+}
+
+class Google_Service_Logging_LogEntry extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $insertId;
+ public $log;
+ protected $metadataType = 'Google_Service_Logging_LogEntryMetadata';
+ protected $metadataDataType = '';
+ public $protoPayload;
+ public $structPayload;
+ public $textPayload;
+
+
+ public function setInsertId($insertId)
+ {
+ $this->insertId = $insertId;
+ }
+ public function getInsertId()
+ {
+ return $this->insertId;
+ }
+ public function setLog($log)
+ {
+ $this->log = $log;
+ }
+ public function getLog()
+ {
+ return $this->log;
+ }
+ public function setMetadata(Google_Service_Logging_LogEntryMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setProtoPayload($protoPayload)
+ {
+ $this->protoPayload = $protoPayload;
+ }
+ public function getProtoPayload()
+ {
+ return $this->protoPayload;
+ }
+ public function setStructPayload($structPayload)
+ {
+ $this->structPayload = $structPayload;
+ }
+ public function getStructPayload()
+ {
+ return $this->structPayload;
+ }
+ public function setTextPayload($textPayload)
+ {
+ $this->textPayload = $textPayload;
+ }
+ public function getTextPayload()
+ {
+ return $this->textPayload;
+ }
+}
+
+class Google_Service_Logging_LogEntryMetadata extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $labels;
+ public $projectId;
+ public $projectNumber;
+ public $region;
+ public $serviceName;
+ public $severity;
+ public $timeNanos;
+ public $timestamp;
+ public $userId;
+ public $zone;
+
+
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setProjectNumber($projectNumber)
+ {
+ $this->projectNumber = $projectNumber;
+ }
+ public function getProjectNumber()
+ {
+ return $this->projectNumber;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setServiceName($serviceName)
+ {
+ $this->serviceName = $serviceName;
+ }
+ public function getServiceName()
+ {
+ return $this->serviceName;
+ }
+ public function setSeverity($severity)
+ {
+ $this->severity = $severity;
+ }
+ public function getSeverity()
+ {
+ return $this->severity;
+ }
+ public function setTimeNanos($timeNanos)
+ {
+ $this->timeNanos = $timeNanos;
+ }
+ public function getTimeNanos()
+ {
+ return $this->timeNanos;
+ }
+ public function setTimestamp($timestamp)
+ {
+ $this->timestamp = $timestamp;
+ }
+ public function getTimestamp()
+ {
+ return $this->timestamp;
+ }
+ public function setUserId($userId)
+ {
+ $this->userId = $userId;
+ }
+ public function getUserId()
+ {
+ return $this->userId;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
+
+class Google_Service_Logging_LogEntryMetadataLabels extends Google_Model
+{
+}
+
+class Google_Service_Logging_LogEntryProtoPayload extends Google_Model
+{
+}
+
+class Google_Service_Logging_LogEntryStructPayload extends Google_Model
+{
+}
+
+class Google_Service_Logging_LogError extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $resource;
+ protected $statusType = 'Google_Service_Logging_Status';
+ protected $statusDataType = '';
+ public $timeNanos;
+
+
+ public function setResource($resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+ public function setStatus(Google_Service_Logging_Status $status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTimeNanos($timeNanos)
+ {
+ $this->timeNanos = $timeNanos;
+ }
+ public function getTimeNanos()
+ {
+ return $this->timeNanos;
+ }
+}
+
+class Google_Service_Logging_LogMetric extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $description;
+ public $filter;
+ public $name;
+ public $projectId;
+
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFilter($filter)
+ {
+ $this->filter = $filter;
+ }
+ public function getFilter()
+ {
+ return $this->filter;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+}
+
+class Google_Service_Logging_LogService extends Google_Collection
+{
+ protected $collection_key = 'indexKeys';
+ protected $internal_gapi_mappings = array(
+ );
+ public $indexKeys;
+ public $name;
+
+
+ public function setIndexKeys($indexKeys)
+ {
+ $this->indexKeys = $indexKeys;
+ }
+ public function getIndexKeys()
+ {
+ return $this->indexKeys;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
+
+class Google_Service_Logging_LogSink extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $internal_gapi_mappings = array(
+ );
+ public $destination;
+ protected $errorsType = 'Google_Service_Logging_LogError';
+ protected $errorsDataType = 'array';
+ public $name;
+
+
+ public function setDestination($destination)
+ {
+ $this->destination = $destination;
+ }
+ public function getDestination()
+ {
+ return $this->destination;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
+
+class Google_Service_Logging_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ public $details;
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_Logging_StatusDetails extends Google_Model
+{
+}
+
+class Google_Service_Logging_WriteLogEntriesRequest extends Google_Collection
+{
+ protected $collection_key = 'entries';
+ protected $internal_gapi_mappings = array(
+ );
+ public $commonLabels;
+ protected $entriesType = 'Google_Service_Logging_LogEntry';
+ protected $entriesDataType = 'array';
+
+
+ public function setCommonLabels($commonLabels)
+ {
+ $this->commonLabels = $commonLabels;
+ }
+ public function getCommonLabels()
+ {
+ return $this->commonLabels;
+ }
+ public function setEntries($entries)
+ {
+ $this->entries = $entries;
+ }
+ public function getEntries()
+ {
+ return $this->entries;
+ }
+}
+
+class Google_Service_Logging_WriteLogEntriesRequestCommonLabels extends Google_Model
+{
+}
+
+class Google_Service_Logging_WriteLogEntriesResponse extends Google_Model
+{
+}
From e190c5b2ed586eaef431d4d0e5f7d6e72c0deb71 Mon Sep 17 00:00:00 2001
From: Silvano Luciani - * Google Cloud Logging API lets you manage logs, ingest and retrieve log - * entries within a log, and manage log sinks and metrics.
+ * Google Cloud Logging API lets you create logs, ingest log entries, and manage + * log sinks. * *
* For more information about this service, see the API
@@ -35,14 +35,12 @@ class Google_Service_Logging extends Google_Service
const CLOUD_PLATFORM =
"https://www.googleapis.com/auth/cloud-platform";
- public $projects_logEntries;
public $projects_logServices;
public $projects_logServices_indexes;
public $projects_logServices_sinks;
public $projects_logs;
public $projects_logs_entries;
public $projects_logs_sinks;
- public $projects_metrics;
/**
@@ -57,14 +55,14 @@ public function __construct(Google_Client $client)
$this->version = 'v1beta3';
$this->serviceName = 'logging';
- $this->projects_logEntries = new Google_Service_Logging_ProjectsLogEntries_Resource(
+ $this->projects_logServices = new Google_Service_Logging_ProjectsLogServices_Resource(
$this,
$this->serviceName,
- 'logEntries',
+ 'logServices',
array(
'methods' => array(
'list' => array(
- 'path' => 'v1beta3/projects/{projectsId}/logEntries',
+ 'path' => 'v1beta3/projects/{projectsId}/logServices',
'httpMethod' => 'GET',
'parameters' => array(
'projectsId' => array(
@@ -72,42 +70,10 @@ public function __construct(Google_Client $client)
'type' => 'string',
'required' => true,
),
- 'filter' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'orderBy' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pageSize' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
- ),
- ),
- )
- )
- );
- $this->projects_logServices = new Google_Service_Logging_ProjectsLogServices_Resource(
- $this,
- $this->serviceName,
- 'logServices',
- array(
- 'methods' => array(
- 'list' => array(
- 'path' => 'v1beta3/projects/{projectsId}/logServices',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'projectsId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
'log' => array(
'location' => 'query',
'type' => 'string',
@@ -116,10 +82,6 @@ public function __construct(Google_Client $client)
'location' => 'query',
'type' => 'integer',
),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
),
),
)
@@ -145,23 +107,23 @@ public function __construct(Google_Client $client)
'type' => 'string',
'required' => true,
),
- 'indexPrefix' => array(
+ 'log' => array(
'location' => 'query',
'type' => 'string',
),
- 'depth' => array(
+ 'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
- 'log' => array(
+ 'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
- 'pageSize' => array(
+ 'depth' => array(
'location' => 'query',
'type' => 'integer',
),
- 'pageToken' => array(
+ 'indexPrefix' => array(
'location' => 'query',
'type' => 'string',
),
@@ -300,6 +262,10 @@ public function __construct(Google_Client $client)
'type' => 'string',
'required' => true,
),
+ 'pageToken' => array(
+ 'location' => 'query',
+ 'type' => 'string',
+ ),
'serviceName' => array(
'location' => 'query',
'type' => 'string',
@@ -312,10 +278,6 @@ public function __construct(Google_Client $client)
'location' => 'query',
'type' => 'integer',
),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
),
),
)
@@ -446,89 +408,6 @@ public function __construct(Google_Client $client)
)
)
);
- $this->projects_metrics = new Google_Service_Logging_ProjectsMetrics_Resource(
- $this,
- $this->serviceName,
- 'metrics',
- array(
- 'methods' => array(
- 'create' => array(
- 'path' => 'v1beta3/projects/{projectsId}/metrics',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'projectsId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'delete' => array(
- 'path' => 'v1beta3/projects/{projectsId}/metrics/{metricsId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'projectsId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'metricsId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'v1beta3/projects/{projectsId}/metrics/{metricsId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'projectsId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'metricsId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'v1beta3/projects/{projectsId}/metrics',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'projectsId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pageSize' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'update' => array(
- 'path' => 'v1beta3/projects/{projectsId}/metrics/{metricsId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'projectsId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'metricsId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
}
}
@@ -545,46 +424,6 @@ class Google_Service_Logging_Projects_Resource extends Google_Service_Resource
{
}
-/**
- * The "logEntries" collection of methods.
- * Typical usage is:
- *
* Provides reliable, many-to-many, asynchronous messaging between applications.
* For more information about this service, see the API
- * Documentation
+ * Documentation
*
* Manage your DoubleClick Campaign Manager ad campaigns and reports.
* The Google Cloud DNS API provides services for configuring and serving
@@ -55,8 +55,8 @@ class Google_Service_Dns extends Google_Service
public function __construct(Google_Client $client)
{
parent::__construct($client);
- $this->servicePath = 'dns/v1beta1/projects/';
- $this->version = 'v1beta1';
+ $this->servicePath = 'dns/v1/projects/';
+ $this->version = 'v1';
$this->serviceName = 'dns';
$this->changes = new Google_Service_Dns_Changes_Resource(
From ca2e3d5bd6d71860bd089ef148341f15330bda08 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
* Google Dataflow API.
* For more information about this service, see the API
- * Documentation
+ * Documentation
*
+ * For more information about this service, see the API
+ * Documentation
+ *
+ * For more information about this service, see the API
+ * Documentation
+ *
* Provides reliable, many-to-many, asynchronous messaging between applications.
* For more information about this service, see the API
- * Documentation
+ * Documentation
*
+ * For more information about this service, see the API
+ * Documentation
+ *
* The Google Container Engine API is used for building and managing container
@@ -24,7 +24,7 @@
*
*
* For more information about this service, see the API
- * Documentation
+ * Documentation
*
+ * For more information about this service, see the API
+ * Documentation
+ *
+ * For more information about this service, see the API
+ * Documentation
+ *
+ * For more information about this service, see the API
+ * Documentation
+ *
- * $loggingService = new Google_Service_Logging(...);
- * $logEntries = $loggingService->logEntries;
- *
- */
-class Google_Service_Logging_ProjectsLogEntries_Resource extends Google_Service_Resource
-{
-
- /**
- * Lists log entries in the specified project.
- * (logEntries.listProjectsLogEntries)
- *
- * @param string $projectsId Part of `projectName`. The project resource from
- * which to retrieve log entries, for example: "projects/my_project_id".
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Filter specification. Response includes only entries
- * which are selected by this filter. If empty, response is unfiltered.
- * @opt_param string orderBy Sort order. The only LogEntry field supported for
- * sorting is metadata.timestamp and the default order is ascending (from older
- * to newer). To have entries returned in the opposite (descending) order,
- * specify order_by="metadata.timestamp desc".
- * @opt_param int pageSize Maximum number of entries to return per request.
- * Fewer entries may be returned.
- * @opt_param string pageToken An opaque token obtained from a prior
- * ListLogEntries response (in next_page_token). If this is supplied, other
- * parameters in this request are ignored, in favor of the corresponding
- * parameters in the original request.
- * @return Google_Service_Logging_ListLogEntriesResponse
- */
- public function listProjectsLogEntries($projectsId, $optParams = array())
- {
- $params = array('projectsId' => $projectsId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Logging_ListLogEntriesResponse");
- }
-}
/**
* The "logServices" collection of methods.
* Typical usage is:
@@ -600,17 +439,18 @@ class Google_Service_Logging_ProjectsLogServices_Resource extends Google_Service
* Lists log services associated with log entries ingested for a project.
* (logServices.listProjectsLogServices)
*
- * @param string $projectsId Part of `projectName`. The project resource for
- * which to list the services.
+ * @param string $projectsId Part of `projectName`. The project resource whose
+ * services are to be listed.
* @param array $optParams Optional parameters.
*
- * @opt_param string log A log resource like /projects/project_id/logs/log_name
- * identifying the log for which to list services. When empty, all services will
- * be listed.
- * @opt_param int pageSize The maximum number of LogService objects to return.
- * @opt_param string pageToken An optional next_page_token from a previous
- * ListLogServicesResult. Other fields are ignored when the page_token is not
- * empty.
+ * @opt_param string pageToken An opaque token, returned as `nextPageToken` by a
+ * prior `ListLogServices` operation. If `pageToken` is supplied, then the other
+ * fields of this request are ignored, and instead the previous
+ * `ListLogServices` operation is continued.
+ * @opt_param string log The name of the log resource whose services are to be
+ * listed. log for which to list services. When empty, all services are listed.
+ * @opt_param int pageSize The maximum number of `LogService` objects to return
+ * in one operation.
* @return Google_Service_Logging_ListLogServicesResponse
*/
public function listProjectsLogServices($projectsId, $optParams = array())
@@ -636,33 +476,35 @@ class Google_Service_Logging_ProjectsLogServicesIndexes_Resource extends Google_
* Lists log service indexes associated with a log service.
* (indexes.listProjectsLogServicesIndexes)
*
- * @param string $projectsId Part of `serviceName`. A log service resource whose
- * service indexes to return (e.g.
- * /projects/myProj/logServices/appengine.googleapis.com).
+ * @param string $projectsId Part of `serviceName`. A log service resource of
+ * the form `/projects/logServices`. The service indexes of the log service are
+ * returned. Example: `"/projects/myProj/logServices/appengine.googleapis.com"`.
* @param string $logServicesId Part of `serviceName`. See documentation of
* `projectsId`.
* @param array $optParams Optional parameters.
*
- * @opt_param string indexPrefix A prefix of the log service indexes to be
- * returned. The prefix is a slash separated list of the label values in order
- * corresponding to the [LogService
- * index_keys][google.logging.v1.LogService.index_keys]. For example use
- * "/myModule/" to retrieve App Engine versions associated with myModule. The
- * trailing slash terminates the value, while "/myModule" would allow retrieval
- * of App Engine modules with names beginning with myModule. An prefix component
- * matches all log service indexes. A non-empty prefix must begin with "/".
- * @opt_param int depth A limit to the number of levels of the index hierarchy
- * that will be expanded. If the depth is 0, it will default to the level
- * specified by the prefix field (the number of slash separators). The default
- * empty prefix implies a depth of 1. It is an error for depth to be any non-
- * zero value less than the number of components in index_prefix.
- * @opt_param string log A log resource like /projects/project_id/logs/log_name
- * identifying the log for which to list services indexes.
+ * @opt_param string log A log resource like
+ * `/projects/project_id/logs/log_name`, identifying the log for which to list
+ * service indexes.
* @opt_param int pageSize The maximum number of log service index resources to
- * return.
- * @opt_param string pageToken An optional next_page_token from a previous
- * ListLogServicesIndexesResult. Other fields are ignored when the page_token is
- * not empty.
+ * return in one operation.
+ * @opt_param string pageToken An opaque token, returned as `nextPageToken` by a
+ * prior `ListLogServiceIndexes` operation. If `pageToken` is supplied, then the
+ * other fields of this request are ignored, and instead the previous
+ * `ListLogServiceIndexes` operation is continued.
+ * @opt_param int depth A limit to the number of levels of the index hierarchy
+ * that are expanded. If `depth` is 0, it defaults to the level specified by the
+ * prefix field (the number of slash separators). The default empty prefix
+ * implies a `depth` of 1. It is an error for `depth` to be any non-zero value
+ * less than the number of components in `indexPrefix`.
+ * @opt_param string indexPrefix Restricts the indexes returned to be those with
+ * a specified prefix. The prefix has the form `"/label_value/label_value/..."`,
+ * in order corresponding to the [`LogService
+ * indexKeys`][google.logging.v1.LogService.index_keys]. Non-empty prefixes must
+ * begin with `/` . Example prefixes: + `"/myModule/"` retrieves App Engine
+ * versions associated with `myModule`. The trailing slash terminates the value.
+ * + `"/myModule"` retrieves App Engine modules with names beginning with
+ * `myModule`. + `""` retrieves all indexes.
* @return Google_Service_Logging_ListLogServiceIndexesResponse
*/
public function listProjectsLogServicesIndexes($projectsId, $logServicesId, $optParams = array())
@@ -684,10 +526,10 @@ class Google_Service_Logging_ProjectsLogServicesSinks_Resource extends Google_Se
{
/**
- * Create the specified log service sink resource. (sinks.create)
+ * Creates the specified log service sink resource. (sinks.create)
*
- * @param string $projectsId Part of `serviceName`. The service in which to
- * create a sink.
+ * @param string $projectsId Part of `serviceName`. The name of the service in
+ * which to create a sink.
* @param string $logServicesId Part of `serviceName`. See documentation of
* `projectsId`.
* @param Google_LogSink $postBody
@@ -704,7 +546,7 @@ public function create($projectsId, $logServicesId, Google_Service_Logging_LogSi
/**
* Deletes the specified log service sink. (sinks.delete)
*
- * @param string $projectsId Part of `sinkName`. The sink to delete.
+ * @param string $projectsId Part of `sinkName`. The name of the sink to delete.
* @param string $logServicesId Part of `sinkName`. See documentation of
* `projectsId`.
* @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
@@ -719,9 +561,9 @@ public function delete($projectsId, $logServicesId, $sinksId, $optParams = array
}
/**
- * Get the specified log service sink resource. (sinks.get)
+ * Gets the specified log service sink resource. (sinks.get)
*
- * @param string $projectsId Part of `sinkName`. The sink to return.
+ * @param string $projectsId Part of `sinkName`. The name of the sink to return.
* @param string $logServicesId Part of `sinkName`. See documentation of
* `projectsId`.
* @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
@@ -736,11 +578,11 @@ public function get($projectsId, $logServicesId, $sinksId, $optParams = array())
}
/**
- * List log service sinks associated with the specified service.
+ * Lists log service sinks associated with the specified service.
* (sinks.listProjectsLogServicesSinks)
*
- * @param string $projectsId Part of `serviceName`. The service for which to
- * list sinks.
+ * @param string $projectsId Part of `serviceName`. The name of the service for
+ * which to list sinks.
* @param string $logServicesId Part of `serviceName`. See documentation of
* `projectsId`.
* @param array $optParams Optional parameters.
@@ -754,9 +596,9 @@ public function listProjectsLogServicesSinks($projectsId, $logServicesId, $optPa
}
/**
- * Create or update the specified log service sink resource. (sinks.update)
+ * Creates or update the specified log service sink resource. (sinks.update)
*
- * @param string $projectsId Part of `sinkName`. The sink to update.
+ * @param string $projectsId Part of `sinkName`. The name of the sink to update.
* @param string $logServicesId Part of `sinkName`. See documentation of
* `projectsId`.
* @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
@@ -806,22 +648,24 @@ public function delete($projectsId, $logsId, $optParams = array())
* to list the log resources.
* @param array $optParams Optional parameters.
*
+ * @opt_param string pageToken An opaque token, returned as `nextPageToken` by a
+ * prior `ListLogs` operation. If `pageToken` is supplied, then the other fields
+ * of this request are ignored, and instead the previous `ListLogs` operation is
+ * continued.
* @opt_param string serviceName A service name for which to list logs. Only
- * logs containing entries whose metadata included this service name will be
- * returned. If empty and service_index_prefix is also empty then all log names
- * are returned. To list all log names (regardless of service) leave both the
- * service_name and service_index_prefix empty. To list log names containing
- * entries with a particular service name (or explicitly empty service name) set
- * service_name to the desired value and service_index_prefix to "/".
+ * logs containing entries whose metadata includes this service name are
+ * returned. If `serviceName` and `serviceIndexPrefix` are both empty, then all
+ * log names are returned. To list all log names, regardless of service, leave
+ * both the `serviceName` and `serviceIndexPrefix` empty. To list log names
+ * containing entries with a particular service name (or explicitly empty
+ * service name) set `serviceName` to the desired value and `serviceIndexPrefix`
+ * to `"/"`.
* @opt_param string serviceIndexPrefix A log service index prefix for which to
- * list logs. Only logs containing entries whose metadata included these label
- * values (associated with index keys) will be returned. The prefix is a slash
+ * list logs. Only logs containing entries whose metadata that includes these
+ * label values (associated with index keys) are returned. The prefix is a slash
* separated list of values, and need not specify all index labels. An empty
* index (or a single slash) matches all log service indexes.
* @opt_param int pageSize The maximum number of results to return.
- * @opt_param string pageToken An optional next_page_token from a previous
- * ListLogsResponse. Other query parameters are ignored when page_token is not
- * empty.
* @return Google_Service_Logging_ListLogsResponse
*/
public function listProjectsLogs($projectsId, $optParams = array())
@@ -844,12 +688,16 @@ class Google_Service_Logging_ProjectsLogsEntries_Resource extends Google_Service
{
/**
- * Creates several log entries in a log. (entries.write)
+ * Creates one or more log entries in a log. You must supply a list of
+ * `LogEntry` objects, named `entries`. Each `LogEntry` object must contain a
+ * payload object and a `LogEntryMetadata` object that describes the entry. You
+ * must fill in all the fields of the entry, metadata, and payload. You can also
+ * supply a map, `commonLabels`, that supplies default (key, value) data for the
+ * `entries[].metadata.labels` maps, saving you the trouble of creating
+ * identical copies for each entry. (entries.write)
*
- * @param string $projectsId Part of `logName`. The log resource into which to
- * insert the log entries. If the log resource name contains characters that are
- * illegal in a URL (for example, "/") they must be URL-encoded (for example, as
- * "%2F").
+ * @param string $projectsId Part of `logName`. The name of the log resource
+ * into which to insert the log entries.
* @param string $logsId Part of `logName`. See documentation of `projectsId`.
* @param Google_WriteLogEntriesRequest $postBody
* @param array $optParams Optional parameters.
@@ -874,10 +722,10 @@ class Google_Service_Logging_ProjectsLogsSinks_Resource extends Google_Service_R
{
/**
- * Create the specified log sink resource. (sinks.create)
+ * Creates the specified log sink resource. (sinks.create)
*
* @param string $projectsId Part of `logName`. The log in which to create a
- * sink
+ * sink resource.
* @param string $logsId Part of `logName`. See documentation of `projectsId`.
* @param Google_LogSink $postBody
* @param array $optParams Optional parameters.
@@ -891,9 +739,9 @@ public function create($projectsId, $logsId, Google_Service_Logging_LogSink $pos
}
/**
- * Deletes the specified log sink. (sinks.delete)
+ * Deletes the specified log sink resource. (sinks.delete)
*
- * @param string $projectsId Part of `sinkName`. The sink to delete.
+ * @param string $projectsId Part of `sinkName`. The name of the sink to delete.
* @param string $logsId Part of `sinkName`. See documentation of `projectsId`.
* @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
* @param array $optParams Optional parameters.
@@ -907,9 +755,10 @@ public function delete($projectsId, $logsId, $sinksId, $optParams = array())
}
/**
- * Get the specified log sink resource. (sinks.get)
+ * Gets the specified log sink resource. (sinks.get)
*
- * @param string $projectsId Part of `sinkName`. The sink to return.
+ * @param string $projectsId Part of `sinkName`. The name of the sink resource
+ * to return.
* @param string $logsId Part of `sinkName`. See documentation of `projectsId`.
* @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
* @param array $optParams Optional parameters.
@@ -923,7 +772,7 @@ public function get($projectsId, $logsId, $sinksId, $optParams = array())
}
/**
- * List log sinks associated with the specified log.
+ * Lists log sinks associated with the specified log.
* (sinks.listProjectsLogsSinks)
*
* @param string $projectsId Part of `logName`. The log for which to list sinks.
@@ -939,9 +788,9 @@ public function listProjectsLogsSinks($projectsId, $logsId, $optParams = array()
}
/**
- * Create or update the specified log sink resource. (sinks.update)
+ * Creates or updates the specified log sink resource. (sinks.update)
*
- * @param string $projectsId Part of `sinkName`. The sink to update.
+ * @param string $projectsId Part of `sinkName`. The name of the sink to update.
* @param string $logsId Part of `sinkName`. See documentation of `projectsId`.
* @param string $sinksId Part of `sinkName`. See documentation of `projectsId`.
* @param Google_LogSink $postBody
@@ -955,103 +804,6 @@ public function update($projectsId, $logsId, $sinksId, Google_Service_Logging_Lo
return $this->call('update', array($params), "Google_Service_Logging_LogSink");
}
}
-/**
- * The "metrics" collection of methods.
- * Typical usage is:
- *
- * $loggingService = new Google_Service_Logging(...);
- * $metrics = $loggingService->metrics;
- *
- */
-class Google_Service_Logging_ProjectsMetrics_Resource extends Google_Service_Resource
-{
-
- /**
- * Create the specified log metric resource. (metrics.create)
- *
- * @param string $projectsId Part of `projectName`. The project in which to
- * create a metric.
- * @param Google_LogMetric $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Logging_LogMetric
- */
- public function create($projectsId, Google_Service_Logging_LogMetric $postBody, $optParams = array())
- {
- $params = array('projectsId' => $projectsId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('create', array($params), "Google_Service_Logging_LogMetric");
- }
-
- /**
- * Deletes the specified log metric. (metrics.delete)
- *
- * @param string $projectsId Part of `metricName`. The metric to delete.
- * @param string $metricsId Part of `metricName`. See documentation of
- * `projectsId`.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Logging_Empty
- */
- public function delete($projectsId, $metricsId, $optParams = array())
- {
- $params = array('projectsId' => $projectsId, 'metricsId' => $metricsId);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_Logging_Empty");
- }
-
- /**
- * Get the specified log metric resource. (metrics.get)
- *
- * @param string $projectsId Part of `metricName`. The metric to return.
- * @param string $metricsId Part of `metricName`. See documentation of
- * `projectsId`.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Logging_LogMetric
- */
- public function get($projectsId, $metricsId, $optParams = array())
- {
- $params = array('projectsId' => $projectsId, 'metricsId' => $metricsId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Logging_LogMetric");
- }
-
- /**
- * List log metrics associated with the specified project.
- * (metrics.listProjectsMetrics)
- *
- * @param string $projectsId Part of `projectName`. The project name for which
- * to list metrics.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken If non-empty, specifies from where to start
- * returning results. This page_token is from a previous call to
- * ListLogsMetrics.
- * @opt_param int pageSize Maximum number of results to return.
- * @return Google_Service_Logging_ListLogMetricsResponse
- */
- public function listProjectsMetrics($projectsId, $optParams = array())
- {
- $params = array('projectsId' => $projectsId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Logging_ListLogMetricsResponse");
- }
-
- /**
- * Create or update the specified log metric resource. (metrics.update)
- *
- * @param string $projectsId Part of `metricName`. The metric to update.
- * @param string $metricsId Part of `metricName`. See documentation of
- * `projectsId`.
- * @param Google_LogMetric $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Logging_LogMetric
- */
- public function update($projectsId, $metricsId, Google_Service_Logging_LogMetric $postBody, $optParams = array())
- {
- $params = array('projectsId' => $projectsId, 'metricsId' => $metricsId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_Logging_LogMetric");
- }
-}
@@ -1060,62 +812,6 @@ class Google_Service_Logging_Empty extends Google_Model
{
}
-class Google_Service_Logging_ListLogEntriesResponse extends Google_Collection
-{
- protected $collection_key = 'entries';
- protected $internal_gapi_mappings = array(
- );
- protected $entriesType = 'Google_Service_Logging_LogEntry';
- protected $entriesDataType = 'array';
- public $nextPageToken;
-
-
- public function setEntries($entries)
- {
- $this->entries = $entries;
- }
- public function getEntries()
- {
- return $this->entries;
- }
- public function setNextPageToken($nextPageToken)
- {
- $this->nextPageToken = $nextPageToken;
- }
- public function getNextPageToken()
- {
- return $this->nextPageToken;
- }
-}
-
-class Google_Service_Logging_ListLogMetricsResponse extends Google_Collection
-{
- protected $collection_key = 'metrics';
- protected $internal_gapi_mappings = array(
- );
- protected $metricsType = 'Google_Service_Logging_LogMetric';
- protected $metricsDataType = 'array';
- public $nextPageToken;
-
-
- public function setMetrics($metrics)
- {
- $this->metrics = $metrics;
- }
- public function getMetrics()
- {
- return $this->metrics;
- }
- public function setNextPageToken($nextPageToken)
- {
- $this->nextPageToken = $nextPageToken;
- }
- public function getNextPageToken()
- {
- return $this->nextPageToken;
- }
-}
-
class Google_Service_Logging_ListLogServiceIndexesResponse extends Google_Collection
{
protected $collection_key = 'serviceIndexPrefixes';
@@ -1341,11 +1037,9 @@ class Google_Service_Logging_LogEntryMetadata extends Google_Model
);
public $labels;
public $projectId;
- public $projectNumber;
public $region;
public $serviceName;
public $severity;
- public $timeNanos;
public $timestamp;
public $userId;
public $zone;
@@ -1367,14 +1061,6 @@ public function getProjectId()
{
return $this->projectId;
}
- public function setProjectNumber($projectNumber)
- {
- $this->projectNumber = $projectNumber;
- }
- public function getProjectNumber()
- {
- return $this->projectNumber;
- }
public function setRegion($region)
{
$this->region = $region;
@@ -1399,14 +1085,6 @@ public function getSeverity()
{
return $this->severity;
}
- public function setTimeNanos($timeNanos)
- {
- $this->timeNanos = $timeNanos;
- }
- public function getTimeNanos()
- {
- return $this->timeNanos;
- }
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
@@ -1481,50 +1159,6 @@ public function getTimeNanos()
}
}
-class Google_Service_Logging_LogMetric extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $description;
- public $filter;
- public $name;
- public $projectId;
-
-
- public function setDescription($description)
- {
- $this->description = $description;
- }
- public function getDescription()
- {
- return $this->description;
- }
- public function setFilter($filter)
- {
- $this->filter = $filter;
- }
- public function getFilter()
- {
- return $this->filter;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setProjectId($projectId)
- {
- $this->projectId = $projectId;
- }
- public function getProjectId()
- {
- return $this->projectId;
- }
-}
-
class Google_Service_Logging_LogService extends Google_Collection
{
protected $collection_key = 'indexKeys';
From 2803454dd00a6fa999b8ec573ba62be6b04a8b46 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $pubsubService = new Google_Service_Pubsub(...);
+ * $projects = $pubsubService->projects;
+ *
+ */
+class Google_Service_Pubsub_Projects_Resource extends Google_Service_Resource
+{
+}
+
/**
* The "subscriptions" collection of methods.
* Typical usage is:
@@ -195,43 +272,43 @@ public function __construct(Google_Client $client)
* $subscriptions = $pubsubService->subscriptions;
*
*/
-class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource
+class Google_Service_Pubsub_ProjectsSubscriptions_Resource extends Google_Service_Resource
{
/**
- * Acknowledges a particular received message: the Pub/Sub system can remove the
- * given message from the subscription. Acknowledging a message whose Ack
- * deadline has expired may succeed, but the message could have been already
- * redelivered. Acknowledging a message more than once will not result in an
- * error. This is only used for messages received via pull.
- * (subscriptions.acknowledge)
+ * Acknowledges the messages associated with the ack tokens in the
+ * AcknowledgeRequest. The Pub/Sub system can remove the relevant messages from
+ * the subscription. Acknowledging a message whose ack deadline has expired may
+ * succeed, but such a message may be redelivered later. Acknowledging a message
+ * more than once will not result in an error. (subscriptions.acknowledge)
*
+ * @param string $subscription
* @param Google_AcknowledgeRequest $postBody
* @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Empty
*/
- public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array())
+ public function acknowledge($subscription, Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array())
{
- $params = array('postBody' => $postBody);
+ $params = array('subscription' => $subscription, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('acknowledge', array($params));
+ return $this->call('acknowledge', array($params), "Google_Service_Pubsub_Empty");
}
/**
- * Creates a subscription on a given topic for a given subscriber. If the
+ * Creates a subscription to a given topic for a given subscriber. If the
* subscription already exists, returns ALREADY_EXISTS. If the corresponding
- * topic doesn't exist, returns NOT_FOUND.
- *
- * If the name is not provided in the request, the server will assign a random
- * name for this subscription on the same project as the topic.
- * (subscriptions.create)
+ * topic doesn't exist, returns NOT_FOUND. If the name is not provided in the
+ * request, the server will assign a random name for this subscription on the
+ * same project as the topic. (subscriptions.create)
*
+ * @param string $name
* @param Google_Subscription $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Pubsub_Subscription
*/
- public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array())
+ public function create($name, Google_Service_Pubsub_Subscription $postBody, $optParams = array())
{
- $params = array('postBody' => $postBody);
+ $params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Pubsub_Subscription");
}
@@ -239,22 +316,25 @@ public function create(Google_Service_Pubsub_Subscription $postBody, $optParams
/**
* Deletes an existing subscription. All pending messages in the subscription
* are immediately dropped. Calls to Pull after deletion will return NOT_FOUND.
- * (subscriptions.delete)
+ * After a subscription is deleted, a new one may be created with the same name,
+ * but the new one has no association with the old subscription, or its topic
+ * unless the same topic is specified. (subscriptions.delete)
*
- * @param string $subscription The subscription to delete.
+ * @param string $subscription
* @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Empty
*/
public function delete($subscription, $optParams = array())
{
$params = array('subscription' => $subscription);
$params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
+ return $this->call('delete', array($params), "Google_Service_Pubsub_Empty");
}
/**
* Gets the configuration details of a subscription. (subscriptions.get)
*
- * @param string $subscription The name of the subscription to get.
+ * @param string $subscription
* @param array $optParams Optional parameters.
* @return Google_Service_Pubsub_Subscription
*/
@@ -266,90 +346,78 @@ public function get($subscription, $optParams = array())
}
/**
- * Lists matching subscriptions. (subscriptions.listSubscriptions)
+ * Lists matching subscriptions. (subscriptions.listProjectsSubscriptions)
*
+ * @param string $project
* @param array $optParams Optional parameters.
*
- * @opt_param string pageToken The value obtained in the last
- * ListSubscriptionsResponse for continuation.
- * @opt_param int maxResults Maximum number of subscriptions to return.
- * @opt_param string query A valid label query expression.
+ * @opt_param string pageToken
+ * @opt_param int pageSize
* @return Google_Service_Pubsub_ListSubscriptionsResponse
*/
- public function listSubscriptions($optParams = array())
+ public function listProjectsSubscriptions($project, $optParams = array())
{
- $params = array();
+ $params = array('project' => $project);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse");
}
/**
- * Modifies the Ack deadline for a message received from a pull request.
- * (subscriptions.modifyAckDeadline)
+ * Modifies the ack deadline for a specific message. This method is useful to
+ * indicate that more time is needed to process a message by the subscriber, or
+ * to make the message available for redelivery if the processing was
+ * interrupted. (subscriptions.modifyAckDeadline)
*
+ * @param string $subscription
* @param Google_ModifyAckDeadlineRequest $postBody
* @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Empty
*/
- public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array())
+ public function modifyAckDeadline($subscription, Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array())
{
- $params = array('postBody' => $postBody);
+ $params = array('subscription' => $subscription, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('modifyAckDeadline', array($params));
+ return $this->call('modifyAckDeadline', array($params), "Google_Service_Pubsub_Empty");
}
/**
- * Modifies the PushConfig for a specified subscription. This method can be used
- * to suspend the flow of messages to an endpoint by clearing the PushConfig
- * field in the request. Messages will be accumulated for delivery even if no
- * push configuration is defined or while the configuration is modified.
+ * Modifies the PushConfig for a specified subscription. This may be used to
+ * change a push subscription to a pull one (signified by an empty PushConfig)
+ * or vice versa, or change the endpoint URL and other attributes of a push
+ * subscription. Messages will accumulate for delivery continuously through the
+ * call regardless of changes to the PushConfig.
* (subscriptions.modifyPushConfig)
*
+ * @param string $subscription
* @param Google_ModifyPushConfigRequest $postBody
* @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Empty
*/
- public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array())
+ public function modifyPushConfig($subscription, Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array())
{
- $params = array('postBody' => $postBody);
+ $params = array('subscription' => $subscription, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('modifyPushConfig', array($params));
+ return $this->call('modifyPushConfig', array($params), "Google_Service_Pubsub_Empty");
}
/**
- * Pulls a single message from the server. If return_immediately is true, and no
- * messages are available in the subscription, this method returns
- * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no
- * messages are available in a reasonable amount of time (to reduce system
- * load). (subscriptions.pull)
+ * Pulls messages from the server. Returns an empty list if there are no
+ * messages available in the backlog. The server may return UNAVAILABLE if there
+ * are too many concurrent pull requests pending for the given subscription.
+ * (subscriptions.pull)
*
+ * @param string $subscription
* @param Google_PullRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Pubsub_PullResponse
*/
- public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array())
+ public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody, $optParams = array())
{
- $params = array('postBody' => $postBody);
+ $params = array('subscription' => $subscription, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse");
}
-
- /**
- * Pulls messages from the server. Returns an empty list if there are no
- * messages available in the backlog. The system is free to return UNAVAILABLE
- * if there are too many pull requests outstanding for the given subscription.
- * (subscriptions.pullBatch)
- *
- * @param Google_PullBatchRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Pubsub_PullBatchResponse
- */
- public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('pullBatch', array($params), "Google_Service_Pubsub_PullBatchResponse");
- }
}
-
/**
* The "topics" collection of methods.
* Typical usage is:
@@ -358,45 +426,46 @@ public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $opt
* $topics = $pubsubService->topics;
*
*/
-class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource
+class Google_Service_Pubsub_ProjectsTopics_Resource extends Google_Service_Resource
{
/**
* Creates the given topic with the given name. (topics.create)
*
+ * @param string $name
* @param Google_Topic $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Pubsub_Topic
*/
- public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array())
+ public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams = array())
{
- $params = array('postBody' => $postBody);
+ $params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Pubsub_Topic");
}
/**
- * Deletes the topic with the given name. All subscriptions to this topic are
- * also deleted. Returns NOT_FOUND if the topic does not exist. After a topic is
- * deleted, a new topic may be created with the same name. (topics.delete)
+ * Deletes the topic with the given name. Returns NOT_FOUND if the topic does
+ * not exist. After a topic is deleted, a new topic may be created with the same
+ * name; this is an entirely new topic with none of the old configuration or
+ * subscriptions. Existing subscriptions to this topic are not deleted.
+ * (topics.delete)
*
- * @param string $topic Name of the topic to delete.
+ * @param string $topic
* @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_Empty
*/
public function delete($topic, $optParams = array())
{
$params = array('topic' => $topic);
$params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
+ return $this->call('delete', array($params), "Google_Service_Pubsub_Empty");
}
/**
- * Gets the configuration of a topic. Since the topic only has the name
- * attribute, this method is only useful to check the existence of a topic. If
- * other attributes are added in the future, they will be returned here.
- * (topics.get)
+ * Gets the configuration of a topic. (topics.get)
*
- * @param string $topic The name of the topic to get.
+ * @param string $topic
* @param array $optParams Optional parameters.
* @return Google_Service_Pubsub_Topic
*/
@@ -408,50 +477,66 @@ public function get($topic, $optParams = array())
}
/**
- * Lists matching topics. (topics.listTopics)
+ * Lists matching topics. (topics.listProjectsTopics)
*
+ * @param string $project
* @param array $optParams Optional parameters.
*
- * @opt_param string pageToken The value obtained in the last ListTopicsResponse
- * for continuation.
- * @opt_param int maxResults Maximum number of topics to return.
- * @opt_param string query A valid label query expression.
+ * @opt_param string pageToken
+ * @opt_param int pageSize
* @return Google_Service_Pubsub_ListTopicsResponse
*/
- public function listTopics($optParams = array())
+ public function listProjectsTopics($project, $optParams = array())
{
- $params = array();
+ $params = array('project' => $project);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse");
}
/**
- * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist.
- * (topics.publish)
+ * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does
+ * not exist. (topics.publish)
*
+ * @param string $topic
* @param Google_PublishRequest $postBody
* @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_PublishResponse
*/
- public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array())
+ public function publish($topic, Google_Service_Pubsub_PublishRequest $postBody, $optParams = array())
{
- $params = array('postBody' => $postBody);
+ $params = array('topic' => $topic, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('publish', array($params));
+ return $this->call('publish', array($params), "Google_Service_Pubsub_PublishResponse");
}
+}
+
+/**
+ * The "subscriptions" collection of methods.
+ * Typical usage is:
+ *
+ * $pubsubService = new Google_Service_Pubsub(...);
+ * $subscriptions = $pubsubService->subscriptions;
+ *
+ */
+class Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource extends Google_Service_Resource
+{
/**
- * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does
- * not exist. (topics.publishBatch)
+ * Lists the name of the subscriptions for this topic.
+ * (subscriptions.listProjectsTopicsSubscriptions)
*
- * @param Google_PublishBatchRequest $postBody
+ * @param string $topic
* @param array $optParams Optional parameters.
- * @return Google_Service_Pubsub_PublishBatchResponse
+ *
+ * @opt_param string pageToken
+ * @opt_param int pageSize
+ * @return Google_Service_Pubsub_ListTopicSubscriptionsResponse
*/
- public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array())
+ public function listProjectsTopicsSubscriptions($topic, $optParams = array())
{
- $params = array('postBody' => $postBody);
+ $params = array('topic' => $topic);
$params = array_merge($params, $optParams);
- return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse");
+ return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicSubscriptionsResponse");
}
}
@@ -460,74 +545,61 @@ public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody
class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection
{
- protected $collection_key = 'ackId';
+ protected $collection_key = 'ackIds';
protected $internal_gapi_mappings = array(
);
- public $ackId;
- public $subscription;
+ public $ackIds;
- public function setAckId($ackId)
+ public function setAckIds($ackIds)
{
- $this->ackId = $ackId;
+ $this->ackIds = $ackIds;
}
- public function getAckId()
+ public function getAckIds()
{
- return $this->ackId;
- }
- public function setSubscription($subscription)
- {
- $this->subscription = $subscription;
- }
- public function getSubscription()
- {
- return $this->subscription;
+ return $this->ackIds;
}
}
-class Google_Service_Pubsub_Label extends Google_Model
+class Google_Service_Pubsub_Empty extends Google_Model
+{
+}
+
+class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection
{
+ protected $collection_key = 'subscriptions';
protected $internal_gapi_mappings = array(
);
- public $key;
- public $numValue;
- public $strValue;
+ public $nextPageToken;
+ protected $subscriptionsType = 'Google_Service_Pubsub_Subscription';
+ protected $subscriptionsDataType = 'array';
- public function setKey($key)
- {
- $this->key = $key;
- }
- public function getKey()
- {
- return $this->key;
- }
- public function setNumValue($numValue)
+ public function setNextPageToken($nextPageToken)
{
- $this->numValue = $numValue;
+ $this->nextPageToken = $nextPageToken;
}
- public function getNumValue()
+ public function getNextPageToken()
{
- return $this->numValue;
+ return $this->nextPageToken;
}
- public function setStrValue($strValue)
+ public function setSubscriptions($subscriptions)
{
- $this->strValue = $strValue;
+ $this->subscriptions = $subscriptions;
}
- public function getStrValue()
+ public function getSubscriptions()
{
- return $this->strValue;
+ return $this->subscriptions;
}
}
-class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection
+class Google_Service_Pubsub_ListTopicSubscriptionsResponse extends Google_Collection
{
- protected $collection_key = 'subscription';
+ protected $collection_key = 'subscriptions';
protected $internal_gapi_mappings = array(
);
public $nextPageToken;
- protected $subscriptionType = 'Google_Service_Pubsub_Subscription';
- protected $subscriptionDataType = 'array';
+ public $subscriptions;
public function setNextPageToken($nextPageToken)
@@ -538,24 +610,24 @@ public function getNextPageToken()
{
return $this->nextPageToken;
}
- public function setSubscription($subscription)
+ public function setSubscriptions($subscriptions)
{
- $this->subscription = $subscription;
+ $this->subscriptions = $subscriptions;
}
- public function getSubscription()
+ public function getSubscriptions()
{
- return $this->subscription;
+ return $this->subscriptions;
}
}
class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection
{
- protected $collection_key = 'topic';
+ protected $collection_key = 'topics';
protected $internal_gapi_mappings = array(
);
public $nextPageToken;
- protected $topicType = 'Google_Service_Pubsub_Topic';
- protected $topicDataType = 'array';
+ protected $topicsType = 'Google_Service_Pubsub_Topic';
+ protected $topicsDataType = 'array';
public function setNextPageToken($nextPageToken)
@@ -566,13 +638,13 @@ public function getNextPageToken()
{
return $this->nextPageToken;
}
- public function setTopic($topic)
+ public function setTopics($topics)
{
- $this->topic = $topic;
+ $this->topics = $topics;
}
- public function getTopic()
+ public function getTopics()
{
- return $this->topic;
+ return $this->topics;
}
}
@@ -582,7 +654,6 @@ class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model
);
public $ackDeadlineSeconds;
public $ackId;
- public $subscription;
public function setAckDeadlineSeconds($ackDeadlineSeconds)
@@ -601,14 +672,6 @@ public function getAckId()
{
return $this->ackId;
}
- public function setSubscription($subscription)
- {
- $this->subscription = $subscription;
- }
- public function getSubscription()
- {
- return $this->subscription;
- }
}
class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model
@@ -617,7 +680,6 @@ class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model
);
protected $pushConfigType = 'Google_Service_Pubsub_PushConfig';
protected $pushConfigDataType = '';
- public $subscription;
public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig)
@@ -628,24 +690,15 @@ public function getPushConfig()
{
return $this->pushConfig;
}
- public function setSubscription($subscription)
- {
- $this->subscription = $subscription;
- }
- public function getSubscription()
- {
- return $this->subscription;
- }
}
-class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection
+class Google_Service_Pubsub_PublishRequest extends Google_Collection
{
protected $collection_key = 'messages';
protected $internal_gapi_mappings = array(
);
protected $messagesType = 'Google_Service_Pubsub_PubsubMessage';
protected $messagesDataType = 'array';
- public $topic;
public function setMessages($messages)
@@ -656,17 +709,9 @@ public function getMessages()
{
return $this->messages;
}
- public function setTopic($topic)
- {
- $this->topic = $topic;
- }
- public function getTopic()
- {
- return $this->topic;
- }
}
-class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection
+class Google_Service_Pubsub_PublishResponse extends Google_Collection
{
protected $collection_key = 'messageIds';
protected $internal_gapi_mappings = array(
@@ -684,89 +729,23 @@ public function getMessageIds()
}
}
-class Google_Service_Pubsub_PublishRequest extends Google_Model
+class Google_Service_Pubsub_PubsubMessage extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- protected $messageType = 'Google_Service_Pubsub_PubsubMessage';
- protected $messageDataType = '';
- public $topic;
-
-
- public function setMessage(Google_Service_Pubsub_PubsubMessage $message)
- {
- $this->message = $message;
- }
- public function getMessage()
- {
- return $this->message;
- }
- public function setTopic($topic)
- {
- $this->topic = $topic;
- }
- public function getTopic()
- {
- return $this->topic;
- }
-}
-
-class Google_Service_Pubsub_PubsubEvent extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $deleted;
- protected $messageType = 'Google_Service_Pubsub_PubsubMessage';
- protected $messageDataType = '';
- public $subscription;
- public $truncated;
+ public $attributes;
+ public $data;
+ public $messageId;
- public function setDeleted($deleted)
- {
- $this->deleted = $deleted;
- }
- public function getDeleted()
+ public function setAttributes($attributes)
{
- return $this->deleted;
+ $this->attributes = $attributes;
}
- public function setMessage(Google_Service_Pubsub_PubsubMessage $message)
+ public function getAttributes()
{
- $this->message = $message;
+ return $this->attributes;
}
- public function getMessage()
- {
- return $this->message;
- }
- public function setSubscription($subscription)
- {
- $this->subscription = $subscription;
- }
- public function getSubscription()
- {
- return $this->subscription;
- }
- public function setTruncated($truncated)
- {
- $this->truncated = $truncated;
- }
- public function getTruncated()
- {
- return $this->truncated;
- }
-}
-
-class Google_Service_Pubsub_PubsubMessage extends Google_Collection
-{
- protected $collection_key = 'label';
- protected $internal_gapi_mappings = array(
- );
- public $data;
- protected $labelType = 'Google_Service_Pubsub_Label';
- protected $labelDataType = 'array';
- public $messageId;
-
-
public function setData($data)
{
$this->data = $data;
@@ -775,14 +754,6 @@ public function getData()
{
return $this->data;
}
- public function setLabel($label)
- {
- $this->label = $label;
- }
- public function getLabel()
- {
- return $this->label;
- }
public function setMessageId($messageId)
{
$this->messageId = $messageId;
@@ -793,22 +764,25 @@ public function getMessageId()
}
}
-class Google_Service_Pubsub_PullBatchRequest extends Google_Model
+class Google_Service_Pubsub_PubsubMessageAttributes extends Google_Model
+{
+}
+
+class Google_Service_Pubsub_PullRequest extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $maxEvents;
+ public $maxMessages;
public $returnImmediately;
- public $subscription;
- public function setMaxEvents($maxEvents)
+ public function setMaxMessages($maxMessages)
{
- $this->maxEvents = $maxEvents;
+ $this->maxMessages = $maxMessages;
}
- public function getMaxEvents()
+ public function getMaxMessages()
{
- return $this->maxEvents;
+ return $this->maxMessages;
}
public function setReturnImmediately($returnImmediately)
{
@@ -818,68 +792,64 @@ public function getReturnImmediately()
{
return $this->returnImmediately;
}
- public function setSubscription($subscription)
- {
- $this->subscription = $subscription;
- }
- public function getSubscription()
- {
- return $this->subscription;
- }
}
-class Google_Service_Pubsub_PullBatchResponse extends Google_Collection
+class Google_Service_Pubsub_PullResponse extends Google_Collection
{
- protected $collection_key = 'pullResponses';
+ protected $collection_key = 'receivedMessages';
protected $internal_gapi_mappings = array(
);
- protected $pullResponsesType = 'Google_Service_Pubsub_PullResponse';
- protected $pullResponsesDataType = 'array';
+ protected $receivedMessagesType = 'Google_Service_Pubsub_ReceivedMessage';
+ protected $receivedMessagesDataType = 'array';
- public function setPullResponses($pullResponses)
+ public function setReceivedMessages($receivedMessages)
{
- $this->pullResponses = $pullResponses;
+ $this->receivedMessages = $receivedMessages;
}
- public function getPullResponses()
+ public function getReceivedMessages()
{
- return $this->pullResponses;
+ return $this->receivedMessages;
}
}
-class Google_Service_Pubsub_PullRequest extends Google_Model
+class Google_Service_Pubsub_PushConfig extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $returnImmediately;
- public $subscription;
+ public $attributes;
+ public $pushEndpoint;
- public function setReturnImmediately($returnImmediately)
+ public function setAttributes($attributes)
{
- $this->returnImmediately = $returnImmediately;
+ $this->attributes = $attributes;
}
- public function getReturnImmediately()
+ public function getAttributes()
{
- return $this->returnImmediately;
+ return $this->attributes;
}
- public function setSubscription($subscription)
+ public function setPushEndpoint($pushEndpoint)
{
- $this->subscription = $subscription;
+ $this->pushEndpoint = $pushEndpoint;
}
- public function getSubscription()
+ public function getPushEndpoint()
{
- return $this->subscription;
+ return $this->pushEndpoint;
}
}
-class Google_Service_Pubsub_PullResponse extends Google_Model
+class Google_Service_Pubsub_PushConfigAttributes extends Google_Model
+{
+}
+
+class Google_Service_Pubsub_ReceivedMessage extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $ackId;
- protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent';
- protected $pubsubEventDataType = '';
+ protected $messageType = 'Google_Service_Pubsub_PubsubMessage';
+ protected $messageDataType = '';
public function setAckId($ackId)
@@ -890,30 +860,13 @@ public function getAckId()
{
return $this->ackId;
}
- public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent)
- {
- $this->pubsubEvent = $pubsubEvent;
- }
- public function getPubsubEvent()
- {
- return $this->pubsubEvent;
- }
-}
-
-class Google_Service_Pubsub_PushConfig extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $pushEndpoint;
-
-
- public function setPushEndpoint($pushEndpoint)
+ public function setMessage(Google_Service_Pubsub_PubsubMessage $message)
{
- $this->pushEndpoint = $pushEndpoint;
+ $this->message = $message;
}
- public function getPushEndpoint()
+ public function getMessage()
{
- return $this->pushEndpoint;
+ return $this->message;
}
}
From c9235e8e7d28d7f0b45928fbf6251148f288f2a8 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $captions = $youtubeService->captions;
+ *
+ */
+class Google_Service_YouTube_Captions_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes a specified caption track. (captions.delete)
+ *
+ * @param string $id The id parameter identifies the caption track that is being
+ * deleted. The value is a caption track ID as identified by the id property in
+ * a caption resource.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
+ * request is be on behalf of
+ * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter
+ * should be used for mimicking a request for a certain project ID
+ */
+ public function delete($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Downloads a caption track. The caption track is returned in its original
+ * format unless the request specifies a value for the tfmt parameter and in its
+ * original language unless the request specifies a value for the tlang
+ * parameter. (captions.download)
+ *
+ * @param string $id The id parameter identifies the caption track that is being
+ * retrieved. The value is a caption track ID as identified by the id property
+ * in a caption resource.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string tfmt The tfmt parameter specifies that the caption track
+ * should be returned in a specific format. If the parameter is not included in
+ * the request, the track is returned in its original format.
+ * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
+ * request is be on behalf of
+ * @opt_param string tlang The tlang parameter specifies that the API response
+ * should return a translation of the specified caption track. The parameter
+ * value is an ISO 639-1 two-letter language code that identifies the desired
+ * caption language. The translation is generated by using machine translation,
+ * such as Google Translate.
+ * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter
+ * should be used for mimicking a request for a certain project ID
+ */
+ public function download($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('download', array($params));
+ }
+
+ /**
+ * Uploads a caption track. (captions.insert)
+ *
+ * @param string $part The part parameter specifies the caption resource parts
+ * that the API response will include. Set the parameter value to snippet.
+ * @param Google_Caption $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
+ * request is be on behalf of
+ * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter
+ * should be used for mimicking a request for a certain project ID.
+ * @opt_param bool sync The sync parameter indicates whether YouTube should
+ * automatically synchronize the caption file with the audio track of the video.
+ * If you set the value to true, YouTube will disregard any time codes that are
+ * in the uploaded caption file and generate new time codes for the captions.
+ *
+ * You should set the sync parameter to true if you are uploading a transcript,
+ * which has no time codes, or if you suspect the time codes in your file are
+ * incorrect and want YouTube to try to fix them.
+ * @return Google_Service_YouTube_Caption
+ */
+ public function insert($part, Google_Service_YouTube_Caption $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_Caption");
+ }
+
+ /**
+ * Returns a list of caption tracks that are associated with a specified video.
+ * Note that the API response does not contain the actual captions and that the
+ * captions.download method provides the ability to retrieve a caption track.
+ * (captions.listCaptions)
+ *
+ * @param string $part The part parameter specifies the caption resource parts
+ * that the API response will include.
+ * @param string $videoId The videoId parameter specifies the YouTube video ID
+ * of the video for which the API should return caption tracks.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
+ * request is on behalf of.
+ * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter
+ * should be used for mimicking a request for a certain project ID.
+ * @opt_param string id The id parameter specifies a comma-separated list of IDs
+ * that identify the caption resources that should be retrieved. Each ID must
+ * identify a caption track associated with the specified video.
+ * @return Google_Service_YouTube_CaptionListResponse
+ */
+ public function listCaptions($part, $videoId, $optParams = array())
+ {
+ $params = array('part' => $part, 'videoId' => $videoId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_CaptionListResponse");
+ }
+
+ /**
+ * Updates a caption track. When updating a caption track, you can change the
+ * track's draft status, upload a new caption file for the track, or both.
+ * (captions.update)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include. Set the property value to
+ * snippet if you are updating the track's draft status. Otherwise, set the
+ * property value to id.
+ * @param Google_Caption $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the
+ * request is be on behalf of
+ * @opt_param string debugProjectIdOverride The debugProjectIdOverride parameter
+ * should be used for mimicking a request for a certain project ID.
+ * @opt_param bool sync Note: The API server only processes the parameter value
+ * if the request contains an updated caption file.
+ *
+ * The sync parameter indicates whether YouTube should automatically synchronize
+ * the caption file with the audio track of the video. If you set the value to
+ * true, YouTube will automatically synchronize the caption track with the audio
+ * track.
+ * @return Google_Service_YouTube_Caption
+ */
+ public function update($part, Google_Service_YouTube_Caption $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_Caption");
+ }
+}
+
/**
* The "channelBanners" collection of methods.
* Typical usage is:
@@ -1589,12 +1884,19 @@ public function insert($part, Google_Service_YouTube_ChannelSection $postBody, $
* owner.
* @opt_param string channelId The channelId parameter specifies a YouTube
* channel ID. The API will only return that channel's channelSections.
+ * @opt_param bool mine Set this parameter's value to true to retrieve a feed of
+ * the authenticated user's channelSections.
+ * @opt_param string hl The hl parameter indicates that the snippet.localized
+ * property values in the returned channelSection resources should be in the
+ * specified language if localized values for that language are available. For
+ * example, if the API request specifies hl=de, the snippet.localized properties
+ * in the API response will contain German titles if German titles are
+ * available. Channel owners can provide localized channel section titles using
+ * either the channelSections.insert or channelSections.update method.
* @opt_param string id The id parameter specifies a comma-separated list of the
* YouTube channelSection ID(s) for the resource(s) that are being retrieved. In
* a channelSection resource, the id property specifies the YouTube
* channelSection ID.
- * @opt_param bool mine Set this parameter's value to true to retrieve a feed of
- * the authenticated user's channelSections.
* @return Google_Service_YouTube_ChannelSectionListResponse
*/
public function listChannelSections($part, $optParams = array())
@@ -1693,6 +1995,9 @@ class Google_Service_YouTube_Channels_Resource extends Google_Service_Resource
* retrieved.
* @opt_param bool mySubscribers Set this parameter's value to true to retrieve
* a list of channels that subscribed to the authenticated user's channel.
+ * @opt_param string hl The hl parameter should be used for filter out the
+ * properties that are not in the given language. Used for the brandingSettings
+ * part.
* @opt_param string categoryId The categoryId parameter specifies a YouTube
* guide category, thereby requesting YouTube channels associated with that
* category.
@@ -2804,6 +3109,8 @@ public function insert($part, Google_Service_YouTube_Playlist $postBody, $optPar
* page in the result set that should be returned. In an API response, the
* nextPageToken and prevPageToken properties identify other pages that could be
* retrieved.
+ * @opt_param string hl The hl parameter should be used for filter out the
+ * properties that are not in the given language. Used for the snippet part.
* @opt_param string id The id parameter specifies a comma-separated list of the
* YouTube playlist ID(s) for the resource(s) that are being retrieved. In a
* playlist resource, the id property specifies the playlist's YouTube playlist
@@ -2894,6 +3201,12 @@ class Google_Service_YouTube_Search_Resource extends Google_Service_Resource
* broadcast events.
* @opt_param string channelId The channelId parameter indicates that the API
* response should only contain resources created by the channel
+ * @opt_param bool forDeveloper The forDeveloper parameter restricts the search
+ * to only retrieve videos uploaded via the developer's application or website.
+ * The API server uses the request's authorization credentials to identify the
+ * developer. Therefore, a developer can restrict results to videos uploaded
+ * through the developer's own app or website but not to videos uploaded through
+ * other apps or sites.
* @opt_param string videoSyndicated The videoSyndicated parameter lets you to
* restrict a search to only videos that can be played outside youtube.com.
* @opt_param string channelType The channelType parameter lets you restrict a
@@ -4281,6 +4594,231 @@ public function getType()
}
}
+class Google_Service_YouTube_Caption extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_CaptionSnippet';
+ protected $snippetDataType = '';
+
+
+ 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 setSnippet(Google_Service_YouTube_CaptionSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
+
+class Google_Service_YouTube_CaptionListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_Caption';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $visitorId;
+
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ 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 setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
+
+class Google_Service_YouTube_CaptionSnippet extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $audioTrackType;
+ public $failureReason;
+ public $isAutoSynced;
+ public $isCC;
+ public $isDraft;
+ public $isEasyReader;
+ public $isLarge;
+ public $language;
+ public $lastUpdated;
+ public $name;
+ public $status;
+ public $trackKind;
+ public $videoId;
+
+
+ public function setAudioTrackType($audioTrackType)
+ {
+ $this->audioTrackType = $audioTrackType;
+ }
+ public function getAudioTrackType()
+ {
+ return $this->audioTrackType;
+ }
+ public function setFailureReason($failureReason)
+ {
+ $this->failureReason = $failureReason;
+ }
+ public function getFailureReason()
+ {
+ return $this->failureReason;
+ }
+ public function setIsAutoSynced($isAutoSynced)
+ {
+ $this->isAutoSynced = $isAutoSynced;
+ }
+ public function getIsAutoSynced()
+ {
+ return $this->isAutoSynced;
+ }
+ public function setIsCC($isCC)
+ {
+ $this->isCC = $isCC;
+ }
+ public function getIsCC()
+ {
+ return $this->isCC;
+ }
+ public function setIsDraft($isDraft)
+ {
+ $this->isDraft = $isDraft;
+ }
+ public function getIsDraft()
+ {
+ return $this->isDraft;
+ }
+ public function setIsEasyReader($isEasyReader)
+ {
+ $this->isEasyReader = $isEasyReader;
+ }
+ public function getIsEasyReader()
+ {
+ return $this->isEasyReader;
+ }
+ public function setIsLarge($isLarge)
+ {
+ $this->isLarge = $isLarge;
+ }
+ public function getIsLarge()
+ {
+ return $this->isLarge;
+ }
+ public function setLanguage($language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setLastUpdated($lastUpdated)
+ {
+ $this->lastUpdated = $lastUpdated;
+ }
+ public function getLastUpdated()
+ {
+ return $this->lastUpdated;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
+ public function setTrackKind($trackKind)
+ {
+ $this->trackKind = $trackKind;
+ }
+ public function getTrackKind()
+ {
+ return $this->trackKind;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
+
class Google_Service_YouTube_CdnSettings extends Google_Model
{
protected $internal_gapi_mappings = array(
From d03954e7c6540f5abc5e53183eed20024c7adf6e Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $inventoryItems = $dfareportingService->inventoryItems;
+ *
+ */
+class Google_Service_Dfareporting_InventoryItems_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Gets one inventory item by ID. (inventoryItems.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $projectId Project ID for order documents.
+ * @param string $id Inventory item ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_InventoryItem
+ */
+ public function get($profileId, $projectId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_InventoryItem");
+ }
+
+ /**
+ * Retrieves a list of inventory items, possibly filtered.
+ * (inventoryItems.listInventoryItems)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $projectId Project ID for order documents.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string orderId Select only inventory items that belong to
+ * specified orders.
+ * @opt_param string ids Select only inventory items with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string siteId Select only inventory items that are associated with
+ * these sites.
+ * @opt_param bool inPlan Select only inventory items that are in plan.
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_InventoryItemsListResponse
+ */
+ public function listInventoryItems($profileId, $projectId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_InventoryItemsListResponse");
+ }
+}
+
/**
* The "landingPages" collection of methods.
* Typical usage is:
@@ -6389,6 +7128,21 @@ public function listMetros($profileId, $optParams = array())
class Google_Service_Dfareporting_MobileCarriers_Resource extends Google_Service_Resource
{
+ /**
+ * Gets one mobile carrier by ID. (mobileCarriers.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Mobile carrier ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_MobileCarrier
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_MobileCarrier");
+ }
+
/**
* Retrieves a list of mobile carriers. (mobileCarriers.listMobileCarriers)
*
@@ -6415,6 +7169,21 @@ public function listMobileCarriers($profileId, $optParams = array())
class Google_Service_Dfareporting_OperatingSystemVersions_Resource extends Google_Service_Resource
{
+ /**
+ * Gets one operating system version by ID. (operatingSystemVersions.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Operating system version ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_OperatingSystemVersion
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystemVersion");
+ }
+
/**
* Retrieves a list of operating system versions.
* (operatingSystemVersions.listOperatingSystemVersions)
@@ -6442,6 +7211,21 @@ public function listOperatingSystemVersions($profileId, $optParams = array())
class Google_Service_Dfareporting_OperatingSystems_Resource extends Google_Service_Resource
{
+ /**
+ * Gets one operating system by DART ID. (operatingSystems.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $dartId Operating system DART ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_OperatingSystem
+ */
+ public function get($profileId, $dartId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'dartId' => $dartId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_OperatingSystem");
+ }
+
/**
* Retrieves a list of operating systems.
* (operatingSystems.listOperatingSystems)
@@ -6458,6 +7242,128 @@ public function listOperatingSystems($profileId, $optParams = array())
}
}
+/**
+ * The "orderDocuments" collection of methods.
+ * Typical usage is:
+ *
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $orderDocuments = $dfareportingService->orderDocuments;
+ *
+ */
+class Google_Service_Dfareporting_OrderDocuments_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Gets one order document by ID. (orderDocuments.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $projectId Project ID for order documents.
+ * @param string $id Order document ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_OrderDocument
+ */
+ public function get($profileId, $projectId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_OrderDocument");
+ }
+
+ /**
+ * Retrieves a list of order documents, possibly filtered.
+ * (orderDocuments.listOrderDocuments)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $projectId Project ID for order documents.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string orderId Select only order documents for specified orders.
+ * @opt_param string searchString Allows searching for order documents by name
+ * or ID. Wildcards (*) are allowed. For example, "orderdocument*2015" will
+ * return order documents with names like "orderdocument June 2015",
+ * "orderdocument April 2015", or simply "orderdocument 2015". Most of the
+ * searches also add wildcards implicitly at the start and the end of the search
+ * string. For example, a search string of "orderdocument" will match order
+ * documents with name "my orderdocument", "orderdocument 2015", or simply
+ * "orderdocument".
+ * @opt_param string ids Select only order documents with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string siteId Select only order documents that are associated with
+ * these sites.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param bool approved Select only order documents that have been approved
+ * by at least one user.
+ * @return Google_Service_Dfareporting_OrderDocumentsListResponse
+ */
+ public function listOrderDocuments($profileId, $projectId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_OrderDocumentsListResponse");
+ }
+}
+
+/**
+ * The "orders" collection of methods.
+ * Typical usage is:
+ *
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $orders = $dfareportingService->orders;
+ *
+ */
+class Google_Service_Dfareporting_Orders_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Gets one order by ID. (orders.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $projectId Project ID for orders.
+ * @param string $id Order ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Order
+ */
+ public function get($profileId, $projectId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'projectId' => $projectId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Order");
+ }
+
+ /**
+ * Retrieves a list of orders, possibly filtered. (orders.listOrders)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $projectId Project ID for orders.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string searchString Allows searching for orders by name or ID.
+ * Wildcards (*) are allowed. For example, "order*2015" will return orders with
+ * names like "order June 2015", "order April 2015", or simply "order 2015".
+ * Most of the searches also add wildcards implicitly at the start and the end
+ * of the search string. For example, a search string of "order" will match
+ * orders with name "my order", "order 2015", or simply "order".
+ * @opt_param string ids Select only orders with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string siteId Select only orders that are associated with these
+ * site IDs.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param string sortField Field by which to sort the list.
+ * @return Google_Service_Dfareporting_OrdersListResponse
+ */
+ public function listOrders($profileId, $projectId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_OrdersListResponse");
+ }
+}
+
/**
* The "placementGroups" collection of methods.
* Typical usage is:
@@ -6862,6 +7768,21 @@ public function update($profileId, Google_Service_Dfareporting_Placement $postBo
class Google_Service_Dfareporting_PlatformTypes_Resource extends Google_Service_Resource
{
+ /**
+ * Gets one platform type by ID. (platformTypes.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Platform type ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PlatformType
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_PlatformType");
+ }
+
/**
* Retrieves a list of platform types. (platformTypes.listPlatformTypes)
*
@@ -6888,6 +7809,21 @@ public function listPlatformTypes($profileId, $optParams = array())
class Google_Service_Dfareporting_PostalCodes_Resource extends Google_Service_Resource
{
+ /**
+ * Gets one postal code by ID. (postalCodes.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $code Postal code ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_PostalCode
+ */
+ public function get($profileId, $code, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'code' => $code);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_PostalCode");
+ }
+
/**
* Retrieves a list of postal codes. (postalCodes.listPostalCodes)
*
@@ -6903,6 +7839,62 @@ public function listPostalCodes($profileId, $optParams = array())
}
}
+/**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ *
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $projects = $dfareportingService->projects;
+ *
+ */
+class Google_Service_Dfareporting_Projects_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Gets one project by ID. (projects.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Project ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Project
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Project");
+ }
+
+ /**
+ * Retrieves a list of projects, possibly filtered. (projects.listProjects)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string searchString Allows searching for projects by name or ID.
+ * Wildcards (*) are allowed. For example, "project*2015" will return projects
+ * with names like "project June 2015", "project April 2015", or simply "project
+ * 2015". Most of the searches also add wildcards implicitly at the start and
+ * the end of the search string. For example, a search string of "project" will
+ * match projects with name "my project", "project 2015", or simply "project".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param string advertiserIds Select only projects with these advertiser
+ * IDs.
+ * @opt_param string ids Select only projects with these IDs.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @return Google_Service_Dfareporting_ProjectsListResponse
+ */
+ public function listProjects($profileId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_ProjectsListResponse");
+ }
+}
+
/**
* The "regions" collection of methods.
* Typical usage is:
@@ -6930,61 +7922,228 @@ public function listRegions($profileId, $optParams = array())
}
/**
- * The "reports" collection of methods.
+ * The "remarketingListShares" collection of methods.
* Typical usage is:
*
* $dfareportingService = new Google_Service_Dfareporting(...);
- * $reports = $dfareportingService->reports;
+ * $remarketingListShares = $dfareportingService->remarketingListShares;
*
*/
-class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resource
+class Google_Service_Dfareporting_RemarketingListShares_Resource extends Google_Service_Resource
{
/**
- * Deletes a report by its ID. (reports.delete)
+ * Gets one remarketing list share by remarketing list ID.
+ * (remarketingListShares.get)
*
- * @param string $profileId The DFA user profile ID.
- * @param string $reportId The ID of the report.
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $remarketingListId Remarketing list ID.
* @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RemarketingListShare
*/
- public function delete($profileId, $reportId, $optParams = array())
+ public function get($profileId, $remarketingListId, $optParams = array())
{
- $params = array('profileId' => $profileId, 'reportId' => $reportId);
+ $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId);
$params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
+ return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingListShare");
}
/**
- * Retrieves a report by its ID. (reports.get)
+ * Updates an existing remarketing list share. This method supports patch
+ * semantics. (remarketingListShares.patch)
*
- * @param string $profileId The DFA user profile ID.
- * @param string $reportId The ID of the report.
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $remarketingListId Remarketing list ID.
+ * @param Google_RemarketingListShare $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_Dfareporting_Report
+ * @return Google_Service_Dfareporting_RemarketingListShare
*/
- public function get($profileId, $reportId, $optParams = array())
+ public function patch($profileId, $remarketingListId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array())
{
- $params = array('profileId' => $profileId, 'reportId' => $reportId);
+ $params = array('profileId' => $profileId, 'remarketingListId' => $remarketingListId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Dfareporting_Report");
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingListShare");
}
/**
- * Creates a report. (reports.insert)
+ * Updates an existing remarketing list share. (remarketingListShares.update)
*
- * @param string $profileId The DFA user profile ID.
- * @param Google_Report $postBody
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_RemarketingListShare $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_Dfareporting_Report
+ * @return Google_Service_Dfareporting_RemarketingListShare
*/
- public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array())
+ public function update($profileId, Google_Service_Dfareporting_RemarketingListShare $postBody, $optParams = array())
{
$params = array('profileId' => $profileId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_Dfareporting_Report");
+ return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingListShare");
}
+}
- /**
+/**
+ * The "remarketingLists" collection of methods.
+ * Typical usage is:
+ *
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $remarketingLists = $dfareportingService->remarketingLists;
+ *
+ */
+class Google_Service_Dfareporting_RemarketingLists_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Gets one remarketing list by ID. (remarketingLists.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Remarketing list ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RemarketingList
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_RemarketingList");
+ }
+
+ /**
+ * Inserts a new remarketing list. (remarketingLists.insert)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_RemarketingList $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RemarketingList
+ */
+ public function insert($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_RemarketingList");
+ }
+
+ /**
+ * Retrieves a list of remarketing lists, possibly filtered.
+ * (remarketingLists.listRemarketingLists)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $advertiserId Select only remarketing lists owned by this
+ * advertiser.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string name Allows searching for objects by name or ID. Wildcards
+ * (*) are allowed. For example, "remarketing list*2015" will return objects
+ * with names like "remarketing list June 2015", "remarketing list April 2015",
+ * or simply "remarketing list 2015". Most of the searches also add wildcards
+ * implicitly at the start and the end of the search string. For example, a
+ * search string of "remarketing list" will match objects with name "my
+ * remarketing list", "remarketing list 2015", or simply "remarketing list".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param bool active Select only active or only inactive remarketing lists.
+ * @opt_param string floodlightActivityId Select only remarketing lists that
+ * have this floodlight activity ID.
+ * @return Google_Service_Dfareporting_RemarketingListsListResponse
+ */
+ public function listRemarketingLists($profileId, $advertiserId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_RemarketingListsListResponse");
+ }
+
+ /**
+ * Updates an existing remarketing list. This method supports patch semantics.
+ * (remarketingLists.patch)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Remarketing list ID.
+ * @param Google_RemarketingList $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RemarketingList
+ */
+ public function patch($profileId, $id, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dfareporting_RemarketingList");
+ }
+
+ /**
+ * Updates an existing remarketing list. (remarketingLists.update)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param Google_RemarketingList $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_RemarketingList
+ */
+ public function update($profileId, Google_Service_Dfareporting_RemarketingList $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dfareporting_RemarketingList");
+ }
+}
+
+/**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ *
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $reports = $dfareportingService->reports;
+ *
+ */
+class Google_Service_Dfareporting_Reports_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes a report by its ID. (reports.delete)
+ *
+ * @param string $profileId The DFA user profile ID.
+ * @param string $reportId The ID of the report.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($profileId, $reportId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'reportId' => $reportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Retrieves a report by its ID. (reports.get)
+ *
+ * @param string $profileId The DFA user profile ID.
+ * @param string $reportId The ID of the report.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Report
+ */
+ public function get($profileId, $reportId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'reportId' => $reportId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_Report");
+ }
+
+ /**
+ * Creates a report. (reports.insert)
+ *
+ * @param string $profileId The DFA user profile ID.
+ * @param Google_Report $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_Report
+ */
+ public function insert($profileId, Google_Service_Dfareporting_Report $postBody, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Dfareporting_Report");
+ }
+
+ /**
* Retrieves list of reports. (reports.listReports)
*
* @param string $profileId The DFA user profile ID.
@@ -7411,6 +8570,65 @@ public function update($profileId, Google_Service_Dfareporting_Subaccount $postB
}
}
+/**
+ * The "targetableRemarketingLists" collection of methods.
+ * Typical usage is:
+ *
+ * $dfareportingService = new Google_Service_Dfareporting(...);
+ * $targetableRemarketingLists = $dfareportingService->targetableRemarketingLists;
+ *
+ */
+class Google_Service_Dfareporting_TargetableRemarketingLists_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Gets one remarketing list by ID. (targetableRemarketingLists.get)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $id Remarketing list ID.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_TargetableRemarketingList
+ */
+ public function get($profileId, $id, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dfareporting_TargetableRemarketingList");
+ }
+
+ /**
+ * Retrieves a list of targetable remarketing lists, possibly filtered.
+ * (targetableRemarketingLists.listTargetableRemarketingLists)
+ *
+ * @param string $profileId User profile ID associated with this request.
+ * @param string $advertiserId Select only targetable remarketing lists
+ * targetable by these advertisers.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string name Allows searching for objects by name or ID. Wildcards
+ * (*) are allowed. For example, "remarketing list*2015" will return objects
+ * with names like "remarketing list June 2015", "remarketing list April 2015",
+ * or simply "remarketing list 2015". Most of the searches also add wildcards
+ * implicitly at the start and the end of the search string. For example, a
+ * search string of "remarketing list" will match objects with name "my
+ * remarketing list", "remarketing list 2015", or simply "remarketing list".
+ * @opt_param string sortField Field by which to sort the list.
+ * @opt_param int maxResults Maximum number of results to return.
+ * @opt_param string pageToken Value of the nextPageToken from the previous
+ * result page.
+ * @opt_param string sortOrder Order of sorted results, default is ASCENDING.
+ * @opt_param bool active Select only active or only inactive targetable
+ * remarketing lists.
+ * @return Google_Service_Dfareporting_TargetableRemarketingListsListResponse
+ */
+ public function listTargetableRemarketingLists($profileId, $advertiserId, $optParams = array())
+ {
+ $params = array('profileId' => $profileId, 'advertiserId' => $advertiserId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dfareporting_TargetableRemarketingListsListResponse");
+ }
+}
+
/**
* The "userProfiles" collection of methods.
* Typical usage is:
@@ -8676,6 +9894,86 @@ public function getType()
}
}
+class Google_Service_Dfareporting_AdSlot extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $comment;
+ public $compatibility;
+ public $height;
+ public $linkedPlacementId;
+ public $name;
+ public $paymentSourceType;
+ public $primary;
+ public $width;
+
+
+ public function setComment($comment)
+ {
+ $this->comment = $comment;
+ }
+ public function getComment()
+ {
+ return $this->comment;
+ }
+ public function setCompatibility($compatibility)
+ {
+ $this->compatibility = $compatibility;
+ }
+ public function getCompatibility()
+ {
+ return $this->compatibility;
+ }
+ public function setHeight($height)
+ {
+ $this->height = $height;
+ }
+ public function getHeight()
+ {
+ return $this->height;
+ }
+ public function setLinkedPlacementId($linkedPlacementId)
+ {
+ $this->linkedPlacementId = $linkedPlacementId;
+ }
+ public function getLinkedPlacementId()
+ {
+ return $this->linkedPlacementId;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPaymentSourceType($paymentSourceType)
+ {
+ $this->paymentSourceType = $paymentSourceType;
+ }
+ public function getPaymentSourceType()
+ {
+ return $this->paymentSourceType;
+ }
+ public function setPrimary($primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setWidth($width)
+ {
+ $this->width = $width;
+ }
+ public function getWidth()
+ {
+ return $this->width;
+ }
+}
+
class Google_Service_Dfareporting_AdsListResponse extends Google_Collection
{
protected $collection_key = 'ads';
@@ -8730,6 +10028,7 @@ class Google_Service_Dfareporting_Advertiser extends Google_Model
protected $idDimensionValueDataType = '';
public $kind;
public $name;
+ public $originalFloodlightConfigurationId;
public $status;
public $subaccountId;
@@ -8822,6 +10121,14 @@ public function getName()
{
return $this->name;
}
+ public function setOriginalFloodlightConfigurationId($originalFloodlightConfigurationId)
+ {
+ $this->originalFloodlightConfigurationId = $originalFloodlightConfigurationId;
+ }
+ public function getOriginalFloodlightConfigurationId()
+ {
+ return $this->originalFloodlightConfigurationId;
+ }
public function setStatus($status)
{
$this->status = $status;
@@ -10075,7 +11382,6 @@ class Google_Service_Dfareporting_ContentCategory extends Google_Model
protected $internal_gapi_mappings = array(
);
public $accountId;
- public $description;
public $id;
public $kind;
public $name;
@@ -10089,14 +11395,6 @@ public function getAccountId()
{
return $this->accountId;
}
- public function setDescription($description)
- {
- $this->description = $description;
- }
- public function getDescription()
- {
- return $this->description;
- }
public function setId($id)
{
$this->id = $id;
@@ -10231,6 +11529,7 @@ class Google_Service_Dfareporting_Creative extends Google_Collection
public $commercialId;
public $companionCreatives;
public $compatibility;
+ public $convertFlashToHtml5;
protected $counterCustomEventsType = 'Google_Service_Dfareporting_CreativeCustomEvent';
protected $counterCustomEventsDataType = 'array';
protected $creativeAssetsType = 'Google_Service_Dfareporting_CreativeAsset';
@@ -10432,6 +11731,14 @@ public function getCompatibility()
{
return $this->compatibility;
}
+ public function setConvertFlashToHtml5($convertFlashToHtml5)
+ {
+ $this->convertFlashToHtml5 = $convertFlashToHtml5;
+ }
+ public function getConvertFlashToHtml5()
+ {
+ return $this->convertFlashToHtml5;
+ }
public function setCounterCustomEvents($counterCustomEvents)
{
$this->counterCustomEvents = $counterCustomEvents;
@@ -12718,15 +14025,26 @@ class Google_Service_Dfareporting_DirectorySiteContact extends Google_Model
{
protected $internal_gapi_mappings = array(
);
+ public $address;
public $email;
public $firstName;
public $id;
public $kind;
public $lastName;
+ public $phone;
public $role;
+ public $title;
public $type;
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
public function setEmail($email)
{
$this->email = $email;
@@ -12767,6 +14085,14 @@ public function getLastName()
{
return $this->lastName;
}
+ public function setPhone($phone)
+ {
+ $this->phone = $phone;
+ }
+ public function getPhone()
+ {
+ return $this->phone;
+ }
public function setRole($role)
{
$this->role = $role;
@@ -12775,7 +14101,15 @@ public function getRole()
{
return $this->role;
}
- public function setType($type)
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+ public function setType($type)
{
$this->type = $type;
}
@@ -13223,6 +14557,50 @@ public function getNextPageToken()
}
}
+class Google_Service_Dfareporting_Flight extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $endDate;
+ public $rateOrCost;
+ public $startDate;
+ public $units;
+
+
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setRateOrCost($rateOrCost)
+ {
+ $this->rateOrCost = $rateOrCost;
+ }
+ public function getRateOrCost()
+ {
+ return $this->rateOrCost;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setUnits($units)
+ {
+ $this->units = $units;
+ }
+ public function getUnits()
+ {
+ return $this->units;
+ }
+}
+
class Google_Service_Dfareporting_FloodlightActivitiesGenerateTagResponse extends Google_Model
{
protected $internal_gapi_mappings = array(
@@ -14198,6 +15576,226 @@ public function getRegions()
}
}
+class Google_Service_Dfareporting_InventoryItem extends Google_Collection
+{
+ protected $collection_key = 'adSlots';
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountId;
+ protected $adSlotsType = 'Google_Service_Dfareporting_AdSlot';
+ protected $adSlotsDataType = 'array';
+ public $advertiserId;
+ public $contentCategoryId;
+ public $estimatedClickThroughRate;
+ public $estimatedConversionRate;
+ public $id;
+ public $inPlan;
+ public $kind;
+ protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $lastModifiedInfoDataType = '';
+ public $name;
+ public $negotiationChannelId;
+ public $orderId;
+ public $placementStrategyId;
+ protected $pricingType = 'Google_Service_Dfareporting_Pricing';
+ protected $pricingDataType = '';
+ public $projectId;
+ public $rfpId;
+ public $siteId;
+ public $subaccountId;
+
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdSlots($adSlots)
+ {
+ $this->adSlots = $adSlots;
+ }
+ public function getAdSlots()
+ {
+ return $this->adSlots;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setContentCategoryId($contentCategoryId)
+ {
+ $this->contentCategoryId = $contentCategoryId;
+ }
+ public function getContentCategoryId()
+ {
+ return $this->contentCategoryId;
+ }
+ public function setEstimatedClickThroughRate($estimatedClickThroughRate)
+ {
+ $this->estimatedClickThroughRate = $estimatedClickThroughRate;
+ }
+ public function getEstimatedClickThroughRate()
+ {
+ return $this->estimatedClickThroughRate;
+ }
+ public function setEstimatedConversionRate($estimatedConversionRate)
+ {
+ $this->estimatedConversionRate = $estimatedConversionRate;
+ }
+ public function getEstimatedConversionRate()
+ {
+ return $this->estimatedConversionRate;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInPlan($inPlan)
+ {
+ $this->inPlan = $inPlan;
+ }
+ public function getInPlan()
+ {
+ return $this->inPlan;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
+ {
+ $this->lastModifiedInfo = $lastModifiedInfo;
+ }
+ public function getLastModifiedInfo()
+ {
+ return $this->lastModifiedInfo;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setNegotiationChannelId($negotiationChannelId)
+ {
+ $this->negotiationChannelId = $negotiationChannelId;
+ }
+ public function getNegotiationChannelId()
+ {
+ return $this->negotiationChannelId;
+ }
+ public function setOrderId($orderId)
+ {
+ $this->orderId = $orderId;
+ }
+ public function getOrderId()
+ {
+ return $this->orderId;
+ }
+ public function setPlacementStrategyId($placementStrategyId)
+ {
+ $this->placementStrategyId = $placementStrategyId;
+ }
+ public function getPlacementStrategyId()
+ {
+ return $this->placementStrategyId;
+ }
+ public function setPricing(Google_Service_Dfareporting_Pricing $pricing)
+ {
+ $this->pricing = $pricing;
+ }
+ public function getPricing()
+ {
+ return $this->pricing;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setRfpId($rfpId)
+ {
+ $this->rfpId = $rfpId;
+ }
+ public function getRfpId()
+ {
+ return $this->rfpId;
+ }
+ public function setSiteId($siteId)
+ {
+ $this->siteId = $siteId;
+ }
+ public function getSiteId()
+ {
+ return $this->siteId;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+}
+
+class Google_Service_Dfareporting_InventoryItemsListResponse extends Google_Collection
+{
+ protected $collection_key = 'inventoryItems';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $inventoryItemsType = 'Google_Service_Dfareporting_InventoryItem';
+ protected $inventoryItemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+
+
+ public function setInventoryItems($inventoryItems)
+ {
+ $this->inventoryItems = $inventoryItems;
+ }
+ public function getInventoryItems()
+ {
+ return $this->inventoryItems;
+ }
+ 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_Dfareporting_KeyValueTargetingExpression extends Google_Model
{
protected $internal_gapi_mappings = array(
@@ -14313,81 +15911,217 @@ public function getTime()
}
}
-class Google_Service_Dfareporting_ListTargetingExpression extends Google_Model
+class Google_Service_Dfareporting_ListPopulationClause extends Google_Collection
{
+ protected $collection_key = 'terms';
protected $internal_gapi_mappings = array(
);
- public $expression;
+ protected $termsType = 'Google_Service_Dfareporting_ListPopulationTerm';
+ protected $termsDataType = 'array';
- public function setExpression($expression)
+ public function setTerms($terms)
{
- $this->expression = $expression;
+ $this->terms = $terms;
}
- public function getExpression()
+ public function getTerms()
{
- return $this->expression;
+ return $this->terms;
}
}
-class Google_Service_Dfareporting_LookbackConfiguration extends Google_Model
+class Google_Service_Dfareporting_ListPopulationRule extends Google_Collection
{
+ protected $collection_key = 'listPopulationClauses';
protected $internal_gapi_mappings = array(
);
- public $clickDuration;
- public $postImpressionActivitiesDuration;
+ public $floodlightActivityId;
+ public $floodlightActivityName;
+ protected $listPopulationClausesType = 'Google_Service_Dfareporting_ListPopulationClause';
+ protected $listPopulationClausesDataType = 'array';
- public function setClickDuration($clickDuration)
+ public function setFloodlightActivityId($floodlightActivityId)
{
- $this->clickDuration = $clickDuration;
+ $this->floodlightActivityId = $floodlightActivityId;
}
- public function getClickDuration()
+ public function getFloodlightActivityId()
{
- return $this->clickDuration;
+ return $this->floodlightActivityId;
}
- public function setPostImpressionActivitiesDuration($postImpressionActivitiesDuration)
+ public function setFloodlightActivityName($floodlightActivityName)
{
- $this->postImpressionActivitiesDuration = $postImpressionActivitiesDuration;
+ $this->floodlightActivityName = $floodlightActivityName;
}
- public function getPostImpressionActivitiesDuration()
+ public function getFloodlightActivityName()
{
- return $this->postImpressionActivitiesDuration;
+ return $this->floodlightActivityName;
+ }
+ public function setListPopulationClauses($listPopulationClauses)
+ {
+ $this->listPopulationClauses = $listPopulationClauses;
+ }
+ public function getListPopulationClauses()
+ {
+ return $this->listPopulationClauses;
}
}
-class Google_Service_Dfareporting_Metric extends Google_Model
+class Google_Service_Dfareporting_ListPopulationTerm extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $kind;
- public $name;
+ public $contains;
+ public $negation;
+ public $operator;
+ public $remarketingListId;
+ public $type;
+ public $value;
+ public $variableFriendlyName;
+ public $variableName;
- public function setKind($kind)
+ public function setContains($contains)
{
- $this->kind = $kind;
+ $this->contains = $contains;
}
- public function getKind()
+ public function getContains()
{
- return $this->kind;
+ return $this->contains;
}
- public function setName($name)
+ public function setNegation($negation)
{
- $this->name = $name;
+ $this->negation = $negation;
}
- public function getName()
+ public function getNegation()
{
- return $this->name;
+ return $this->negation;
}
-}
-
-class Google_Service_Dfareporting_Metro extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $countryCode;
- public $countryDartId;
+ public function setOperator($operator)
+ {
+ $this->operator = $operator;
+ }
+ public function getOperator()
+ {
+ return $this->operator;
+ }
+ public function setRemarketingListId($remarketingListId)
+ {
+ $this->remarketingListId = $remarketingListId;
+ }
+ public function getRemarketingListId()
+ {
+ return $this->remarketingListId;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+ public function setVariableFriendlyName($variableFriendlyName)
+ {
+ $this->variableFriendlyName = $variableFriendlyName;
+ }
+ public function getVariableFriendlyName()
+ {
+ return $this->variableFriendlyName;
+ }
+ public function setVariableName($variableName)
+ {
+ $this->variableName = $variableName;
+ }
+ public function getVariableName()
+ {
+ return $this->variableName;
+ }
+}
+
+class Google_Service_Dfareporting_ListTargetingExpression extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $expression;
+
+
+ public function setExpression($expression)
+ {
+ $this->expression = $expression;
+ }
+ public function getExpression()
+ {
+ return $this->expression;
+ }
+}
+
+class Google_Service_Dfareporting_LookbackConfiguration extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $clickDuration;
+ public $postImpressionActivitiesDuration;
+
+
+ public function setClickDuration($clickDuration)
+ {
+ $this->clickDuration = $clickDuration;
+ }
+ public function getClickDuration()
+ {
+ return $this->clickDuration;
+ }
+ public function setPostImpressionActivitiesDuration($postImpressionActivitiesDuration)
+ {
+ $this->postImpressionActivitiesDuration = $postImpressionActivitiesDuration;
+ }
+ public function getPostImpressionActivitiesDuration()
+ {
+ return $this->postImpressionActivitiesDuration;
+ }
+}
+
+class Google_Service_Dfareporting_Metric extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ public $name;
+
+
+ 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;
+ }
+}
+
+class Google_Service_Dfareporting_Metro extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $countryCode;
+ public $countryDartId;
public $dartId;
public $dmaId;
public $kind;
@@ -14858,118 +16592,33 @@ public function getWeight()
}
}
-class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection
-{
- protected $collection_key = 'perInteractionDimensions';
- protected $internal_gapi_mappings = array(
- );
- protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension';
- protected $conversionDimensionsDataType = 'array';
- protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension';
- protected $customFloodlightVariablesDataType = 'array';
- public $kind;
- protected $metricsType = 'Google_Service_Dfareporting_Metric';
- protected $metricsDataType = 'array';
- protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension';
- protected $perInteractionDimensionsDataType = 'array';
-
-
- public function setConversionDimensions($conversionDimensions)
- {
- $this->conversionDimensions = $conversionDimensions;
- }
- public function getConversionDimensions()
- {
- return $this->conversionDimensions;
- }
- public function setCustomFloodlightVariables($customFloodlightVariables)
- {
- $this->customFloodlightVariables = $customFloodlightVariables;
- }
- public function getCustomFloodlightVariables()
- {
- return $this->customFloodlightVariables;
- }
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- public function getKind()
- {
- return $this->kind;
- }
- public function setMetrics($metrics)
- {
- $this->metrics = $metrics;
- }
- public function getMetrics()
- {
- return $this->metrics;
- }
- public function setPerInteractionDimensions($perInteractionDimensions)
- {
- $this->perInteractionDimensions = $perInteractionDimensions;
- }
- public function getPerInteractionDimensions()
- {
- return $this->perInteractionDimensions;
- }
-}
-
-class Google_Service_Dfareporting_Placement extends Google_Collection
+class Google_Service_Dfareporting_Order extends Google_Collection
{
- protected $collection_key = 'tagFormats';
+ protected $collection_key = 'siteNames';
protected $internal_gapi_mappings = array(
);
public $accountId;
public $advertiserId;
- protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
- protected $advertiserIdDimensionValueDataType = '';
- public $archived;
- public $campaignId;
- protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
- protected $campaignIdDimensionValueDataType = '';
- public $comment;
- public $compatibility;
- public $contentCategoryId;
- protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
- protected $createInfoDataType = '';
- public $directorySiteId;
- protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
- protected $directorySiteIdDimensionValueDataType = '';
- public $externalId;
+ public $approverUserProfileIds;
+ public $buyerInvoiceId;
+ public $buyerOrganizationName;
+ public $comments;
+ protected $contactsType = 'Google_Service_Dfareporting_OrderContact';
+ protected $contactsDataType = 'array';
public $id;
- protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
- protected $idDimensionValueDataType = '';
- public $keyName;
public $kind;
protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
protected $lastModifiedInfoDataType = '';
- protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration';
- protected $lookbackConfigurationDataType = '';
public $name;
- public $paymentApproved;
- public $paymentSource;
- public $placementGroupId;
- protected $placementGroupIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
- protected $placementGroupIdDimensionValueDataType = '';
- public $placementStrategyId;
- protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule';
- protected $pricingScheduleDataType = '';
- public $primary;
- protected $publisherUpdateInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
- protected $publisherUpdateInfoDataType = '';
+ public $notes;
+ public $planningTermId;
+ public $projectId;
+ public $sellerOrderId;
+ public $sellerOrganizationName;
public $siteId;
- protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
- protected $siteIdDimensionValueDataType = '';
- protected $sizeType = 'Google_Service_Dfareporting_Size';
- protected $sizeDataType = '';
- public $sslRequired;
- public $status;
+ public $siteNames;
public $subaccountId;
- public $tagFormats;
- protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting';
- protected $tagSettingDataType = '';
+ public $termsAndConditions;
public function setAccountId($accountId)
@@ -14988,253 +16637,323 @@ public function getAdvertiserId()
{
return $this->advertiserId;
}
- public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ public function setApproverUserProfileIds($approverUserProfileIds)
{
- $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ $this->approverUserProfileIds = $approverUserProfileIds;
}
- public function getAdvertiserIdDimensionValue()
+ public function getApproverUserProfileIds()
{
- return $this->advertiserIdDimensionValue;
+ return $this->approverUserProfileIds;
}
- public function setArchived($archived)
+ public function setBuyerInvoiceId($buyerInvoiceId)
{
- $this->archived = $archived;
+ $this->buyerInvoiceId = $buyerInvoiceId;
}
- public function getArchived()
+ public function getBuyerInvoiceId()
{
- return $this->archived;
+ return $this->buyerInvoiceId;
}
- public function setCampaignId($campaignId)
+ public function setBuyerOrganizationName($buyerOrganizationName)
{
- $this->campaignId = $campaignId;
+ $this->buyerOrganizationName = $buyerOrganizationName;
}
- public function getCampaignId()
+ public function getBuyerOrganizationName()
{
- return $this->campaignId;
+ return $this->buyerOrganizationName;
}
- public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue)
+ public function setComments($comments)
{
- $this->campaignIdDimensionValue = $campaignIdDimensionValue;
+ $this->comments = $comments;
}
- public function getCampaignIdDimensionValue()
+ public function getComments()
{
- return $this->campaignIdDimensionValue;
+ return $this->comments;
}
- public function setComment($comment)
+ public function setContacts($contacts)
{
- $this->comment = $comment;
+ $this->contacts = $contacts;
}
- public function getComment()
+ public function getContacts()
{
- return $this->comment;
+ return $this->contacts;
}
- public function setCompatibility($compatibility)
+ public function setId($id)
{
- $this->compatibility = $compatibility;
+ $this->id = $id;
}
- public function getCompatibility()
+ public function getId()
{
- return $this->compatibility;
+ return $this->id;
}
- public function setContentCategoryId($contentCategoryId)
+ public function setKind($kind)
{
- $this->contentCategoryId = $contentCategoryId;
+ $this->kind = $kind;
}
- public function getContentCategoryId()
+ public function getKind()
{
- return $this->contentCategoryId;
+ return $this->kind;
}
- public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo)
+ public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
{
- $this->createInfo = $createInfo;
+ $this->lastModifiedInfo = $lastModifiedInfo;
}
- public function getCreateInfo()
+ public function getLastModifiedInfo()
{
- return $this->createInfo;
+ return $this->lastModifiedInfo;
}
- public function setDirectorySiteId($directorySiteId)
+ public function setName($name)
{
- $this->directorySiteId = $directorySiteId;
+ $this->name = $name;
}
- public function getDirectorySiteId()
+ public function getName()
{
- return $this->directorySiteId;
+ return $this->name;
}
- public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue)
+ public function setNotes($notes)
{
- $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue;
+ $this->notes = $notes;
}
- public function getDirectorySiteIdDimensionValue()
+ public function getNotes()
{
- return $this->directorySiteIdDimensionValue;
+ return $this->notes;
}
- public function setExternalId($externalId)
+ public function setPlanningTermId($planningTermId)
{
- $this->externalId = $externalId;
+ $this->planningTermId = $planningTermId;
}
- public function getExternalId()
+ public function getPlanningTermId()
{
- return $this->externalId;
+ return $this->planningTermId;
}
- public function setId($id)
+ public function setProjectId($projectId)
{
- $this->id = $id;
+ $this->projectId = $projectId;
}
- public function getId()
+ public function getProjectId()
{
- return $this->id;
+ return $this->projectId;
}
- public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ public function setSellerOrderId($sellerOrderId)
{
- $this->idDimensionValue = $idDimensionValue;
+ $this->sellerOrderId = $sellerOrderId;
}
- public function getIdDimensionValue()
+ public function getSellerOrderId()
{
- return $this->idDimensionValue;
+ return $this->sellerOrderId;
}
- public function setKeyName($keyName)
+ public function setSellerOrganizationName($sellerOrganizationName)
{
- $this->keyName = $keyName;
+ $this->sellerOrganizationName = $sellerOrganizationName;
}
- public function getKeyName()
+ public function getSellerOrganizationName()
{
- return $this->keyName;
+ return $this->sellerOrganizationName;
}
- public function setKind($kind)
+ public function setSiteId($siteId)
{
- $this->kind = $kind;
+ $this->siteId = $siteId;
}
- public function getKind()
+ public function getSiteId()
{
- return $this->kind;
+ return $this->siteId;
}
- public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
+ public function setSiteNames($siteNames)
{
- $this->lastModifiedInfo = $lastModifiedInfo;
+ $this->siteNames = $siteNames;
}
- public function getLastModifiedInfo()
+ public function getSiteNames()
{
- return $this->lastModifiedInfo;
+ return $this->siteNames;
}
- public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration)
+ public function setSubaccountId($subaccountId)
{
- $this->lookbackConfiguration = $lookbackConfiguration;
+ $this->subaccountId = $subaccountId;
}
- public function getLookbackConfiguration()
+ public function getSubaccountId()
{
- return $this->lookbackConfiguration;
+ return $this->subaccountId;
}
- public function setName($name)
+ public function setTermsAndConditions($termsAndConditions)
{
- $this->name = $name;
+ $this->termsAndConditions = $termsAndConditions;
}
- public function getName()
+ public function getTermsAndConditions()
{
- return $this->name;
+ return $this->termsAndConditions;
}
- public function setPaymentApproved($paymentApproved)
+}
+
+class Google_Service_Dfareporting_OrderContact extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $contactInfo;
+ public $contactName;
+ public $contactTitle;
+ public $contactType;
+ public $signatureUserProfileId;
+
+
+ public function setContactInfo($contactInfo)
{
- $this->paymentApproved = $paymentApproved;
+ $this->contactInfo = $contactInfo;
}
- public function getPaymentApproved()
+ public function getContactInfo()
{
- return $this->paymentApproved;
+ return $this->contactInfo;
}
- public function setPaymentSource($paymentSource)
+ public function setContactName($contactName)
{
- $this->paymentSource = $paymentSource;
+ $this->contactName = $contactName;
}
- public function getPaymentSource()
+ public function getContactName()
{
- return $this->paymentSource;
+ return $this->contactName;
}
- public function setPlacementGroupId($placementGroupId)
+ public function setContactTitle($contactTitle)
{
- $this->placementGroupId = $placementGroupId;
+ $this->contactTitle = $contactTitle;
}
- public function getPlacementGroupId()
+ public function getContactTitle()
{
- return $this->placementGroupId;
+ return $this->contactTitle;
}
- public function setPlacementGroupIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementGroupIdDimensionValue)
+ public function setContactType($contactType)
{
- $this->placementGroupIdDimensionValue = $placementGroupIdDimensionValue;
+ $this->contactType = $contactType;
}
- public function getPlacementGroupIdDimensionValue()
+ public function getContactType()
{
- return $this->placementGroupIdDimensionValue;
+ return $this->contactType;
}
- public function setPlacementStrategyId($placementStrategyId)
+ public function setSignatureUserProfileId($signatureUserProfileId)
{
- $this->placementStrategyId = $placementStrategyId;
+ $this->signatureUserProfileId = $signatureUserProfileId;
}
- public function getPlacementStrategyId()
+ public function getSignatureUserProfileId()
{
- return $this->placementStrategyId;
+ return $this->signatureUserProfileId;
}
- public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule)
+}
+
+class Google_Service_Dfareporting_OrderDocument extends Google_Collection
+{
+ protected $collection_key = 'approvedByUserProfileIds';
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountId;
+ public $advertiserId;
+ public $amendedOrderDocumentId;
+ public $approvedByUserProfileIds;
+ public $cancelled;
+ protected $createdInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $createdInfoDataType = '';
+ public $effectiveDate;
+ public $id;
+ public $kind;
+ public $orderId;
+ public $projectId;
+ public $signed;
+ public $subaccountId;
+ public $title;
+ public $type;
+
+
+ public function setAccountId($accountId)
{
- $this->pricingSchedule = $pricingSchedule;
+ $this->accountId = $accountId;
}
- public function getPricingSchedule()
+ public function getAccountId()
{
- return $this->pricingSchedule;
+ return $this->accountId;
}
- public function setPrimary($primary)
+ public function setAdvertiserId($advertiserId)
{
- $this->primary = $primary;
+ $this->advertiserId = $advertiserId;
}
- public function getPrimary()
+ public function getAdvertiserId()
{
- return $this->primary;
+ return $this->advertiserId;
}
- public function setPublisherUpdateInfo(Google_Service_Dfareporting_LastModifiedInfo $publisherUpdateInfo)
+ public function setAmendedOrderDocumentId($amendedOrderDocumentId)
{
- $this->publisherUpdateInfo = $publisherUpdateInfo;
+ $this->amendedOrderDocumentId = $amendedOrderDocumentId;
}
- public function getPublisherUpdateInfo()
+ public function getAmendedOrderDocumentId()
{
- return $this->publisherUpdateInfo;
+ return $this->amendedOrderDocumentId;
}
- public function setSiteId($siteId)
+ public function setApprovedByUserProfileIds($approvedByUserProfileIds)
{
- $this->siteId = $siteId;
+ $this->approvedByUserProfileIds = $approvedByUserProfileIds;
}
- public function getSiteId()
+ public function getApprovedByUserProfileIds()
{
- return $this->siteId;
+ return $this->approvedByUserProfileIds;
}
- public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue)
+ public function setCancelled($cancelled)
{
- $this->siteIdDimensionValue = $siteIdDimensionValue;
+ $this->cancelled = $cancelled;
}
- public function getSiteIdDimensionValue()
+ public function getCancelled()
{
- return $this->siteIdDimensionValue;
+ return $this->cancelled;
}
- public function setSize(Google_Service_Dfareporting_Size $size)
+ public function setCreatedInfo(Google_Service_Dfareporting_LastModifiedInfo $createdInfo)
{
- $this->size = $size;
+ $this->createdInfo = $createdInfo;
}
- public function getSize()
+ public function getCreatedInfo()
{
- return $this->size;
+ return $this->createdInfo;
}
- public function setSslRequired($sslRequired)
+ public function setEffectiveDate($effectiveDate)
{
- $this->sslRequired = $sslRequired;
+ $this->effectiveDate = $effectiveDate;
}
- public function getSslRequired()
+ public function getEffectiveDate()
{
- return $this->sslRequired;
+ return $this->effectiveDate;
}
- public function setStatus($status)
+ public function setId($id)
{
- $this->status = $status;
+ $this->id = $id;
}
- public function getStatus()
+ public function getId()
{
- return $this->status;
+ return $this->id;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setOrderId($orderId)
+ {
+ $this->orderId = $orderId;
+ }
+ public function getOrderId()
+ {
+ return $this->orderId;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setSigned($signed)
+ {
+ $this->signed = $signed;
+ }
+ public function getSigned()
+ {
+ return $this->signed;
}
public function setSubaccountId($subaccountId)
{
@@ -15244,84 +16963,171 @@ public function getSubaccountId()
{
return $this->subaccountId;
}
- public function setTagFormats($tagFormats)
+ public function setTitle($title)
{
- $this->tagFormats = $tagFormats;
+ $this->title = $title;
}
- public function getTagFormats()
+ public function getTitle()
{
- return $this->tagFormats;
+ return $this->title;
}
- public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting)
+ public function setType($type)
{
- $this->tagSetting = $tagSetting;
+ $this->type = $type;
}
- public function getTagSetting()
+ public function getType()
{
- return $this->tagSetting;
+ return $this->type;
}
}
-class Google_Service_Dfareporting_PlacementAssignment extends Google_Model
+class Google_Service_Dfareporting_OrderDocumentsListResponse extends Google_Collection
{
+ protected $collection_key = 'orderDocuments';
protected $internal_gapi_mappings = array(
);
- public $active;
- public $placementId;
- protected $placementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
- protected $placementIdDimensionValueDataType = '';
- public $sslRequired;
+ public $kind;
+ public $nextPageToken;
+ protected $orderDocumentsType = 'Google_Service_Dfareporting_OrderDocument';
+ protected $orderDocumentsDataType = 'array';
- public function setActive($active)
+ public function setKind($kind)
{
- $this->active = $active;
+ $this->kind = $kind;
}
- public function getActive()
+ public function getKind()
{
- return $this->active;
+ return $this->kind;
}
- public function setPlacementId($placementId)
+ public function setNextPageToken($nextPageToken)
{
- $this->placementId = $placementId;
+ $this->nextPageToken = $nextPageToken;
}
- public function getPlacementId()
+ public function getNextPageToken()
{
- return $this->placementId;
+ return $this->nextPageToken;
}
- public function setPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementIdDimensionValue)
+ public function setOrderDocuments($orderDocuments)
{
- $this->placementIdDimensionValue = $placementIdDimensionValue;
+ $this->orderDocuments = $orderDocuments;
}
- public function getPlacementIdDimensionValue()
+ public function getOrderDocuments()
{
- return $this->placementIdDimensionValue;
+ return $this->orderDocuments;
}
- public function setSslRequired($sslRequired)
+}
+
+class Google_Service_Dfareporting_OrdersListResponse extends Google_Collection
+{
+ protected $collection_key = 'orders';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ public $nextPageToken;
+ protected $ordersType = 'Google_Service_Dfareporting_Order';
+ protected $ordersDataType = 'array';
+
+
+ public function setKind($kind)
{
- $this->sslRequired = $sslRequired;
+ $this->kind = $kind;
}
- public function getSslRequired()
+ public function getKind()
{
- return $this->sslRequired;
+ return $this->kind;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOrders($orders)
+ {
+ $this->orders = $orders;
+ }
+ public function getOrders()
+ {
+ return $this->orders;
}
}
-class Google_Service_Dfareporting_PlacementGroup extends Google_Collection
+class Google_Service_Dfareporting_PathToConversionReportCompatibleFields extends Google_Collection
{
- protected $collection_key = 'childPlacementIds';
+ protected $collection_key = 'perInteractionDimensions';
protected $internal_gapi_mappings = array(
);
- public $accountId;
- public $advertiserId;
- protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
- protected $advertiserIdDimensionValueDataType = '';
- public $archived;
- public $campaignId;
- protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
- protected $campaignIdDimensionValueDataType = '';
- public $childPlacementIds;
- public $comment;
+ protected $conversionDimensionsType = 'Google_Service_Dfareporting_Dimension';
+ protected $conversionDimensionsDataType = 'array';
+ protected $customFloodlightVariablesType = 'Google_Service_Dfareporting_Dimension';
+ protected $customFloodlightVariablesDataType = 'array';
+ public $kind;
+ protected $metricsType = 'Google_Service_Dfareporting_Metric';
+ protected $metricsDataType = 'array';
+ protected $perInteractionDimensionsType = 'Google_Service_Dfareporting_Dimension';
+ protected $perInteractionDimensionsDataType = 'array';
+
+
+ public function setConversionDimensions($conversionDimensions)
+ {
+ $this->conversionDimensions = $conversionDimensions;
+ }
+ public function getConversionDimensions()
+ {
+ return $this->conversionDimensions;
+ }
+ public function setCustomFloodlightVariables($customFloodlightVariables)
+ {
+ $this->customFloodlightVariables = $customFloodlightVariables;
+ }
+ public function getCustomFloodlightVariables()
+ {
+ return $this->customFloodlightVariables;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+ public function setPerInteractionDimensions($perInteractionDimensions)
+ {
+ $this->perInteractionDimensions = $perInteractionDimensions;
+ }
+ public function getPerInteractionDimensions()
+ {
+ return $this->perInteractionDimensions;
+ }
+}
+
+class Google_Service_Dfareporting_Placement extends Google_Collection
+{
+ protected $collection_key = 'tagFormats';
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountId;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $archived;
+ public $campaignId;
+ protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $campaignIdDimensionValueDataType = '';
+ public $comment;
+ public $compatibility;
public $contentCategoryId;
protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
protected $createInfoDataType = '';
@@ -15332,23 +17138,35 @@ class Google_Service_Dfareporting_PlacementGroup extends Google_Collection
public $id;
protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
protected $idDimensionValueDataType = '';
+ public $keyName;
public $kind;
protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
protected $lastModifiedInfoDataType = '';
+ protected $lookbackConfigurationType = 'Google_Service_Dfareporting_LookbackConfiguration';
+ protected $lookbackConfigurationDataType = '';
public $name;
- public $placementGroupType;
+ public $paymentApproved;
+ public $paymentSource;
+ public $placementGroupId;
+ protected $placementGroupIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $placementGroupIdDimensionValueDataType = '';
public $placementStrategyId;
protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule';
protected $pricingScheduleDataType = '';
- public $primaryPlacementId;
- protected $primaryPlacementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
- protected $primaryPlacementIdDimensionValueDataType = '';
- protected $programmaticSettingType = 'Google_Service_Dfareporting_ProgrammaticSetting';
- protected $programmaticSettingDataType = '';
+ public $primary;
+ protected $publisherUpdateInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $publisherUpdateInfoDataType = '';
public $siteId;
protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
protected $siteIdDimensionValueDataType = '';
+ protected $sizeType = 'Google_Service_Dfareporting_Size';
+ protected $sizeDataType = '';
+ public $sslRequired;
+ public $status;
public $subaccountId;
+ public $tagFormats;
+ protected $tagSettingType = 'Google_Service_Dfareporting_TagSetting';
+ protected $tagSettingDataType = '';
public function setAccountId($accountId)
@@ -15399,14 +17217,6 @@ public function getCampaignIdDimensionValue()
{
return $this->campaignIdDimensionValue;
}
- public function setChildPlacementIds($childPlacementIds)
- {
- $this->childPlacementIds = $childPlacementIds;
- }
- public function getChildPlacementIds()
- {
- return $this->childPlacementIds;
- }
public function setComment($comment)
{
$this->comment = $comment;
@@ -15415,6 +17225,14 @@ public function getComment()
{
return $this->comment;
}
+ public function setCompatibility($compatibility)
+ {
+ $this->compatibility = $compatibility;
+ }
+ public function getCompatibility()
+ {
+ return $this->compatibility;
+ }
public function setContentCategoryId($contentCategoryId)
{
$this->contentCategoryId = $contentCategoryId;
@@ -15471,6 +17289,14 @@ public function getIdDimensionValue()
{
return $this->idDimensionValue;
}
+ public function setKeyName($keyName)
+ {
+ $this->keyName = $keyName;
+ }
+ public function getKeyName()
+ {
+ return $this->keyName;
+ }
public function setKind($kind)
{
$this->kind = $kind;
@@ -15487,6 +17313,14 @@ public function getLastModifiedInfo()
{
return $this->lastModifiedInfo;
}
+ public function setLookbackConfiguration(Google_Service_Dfareporting_LookbackConfiguration $lookbackConfiguration)
+ {
+ $this->lookbackConfiguration = $lookbackConfiguration;
+ }
+ public function getLookbackConfiguration()
+ {
+ return $this->lookbackConfiguration;
+ }
public function setName($name)
{
$this->name = $name;
@@ -15495,13 +17329,37 @@ public function getName()
{
return $this->name;
}
- public function setPlacementGroupType($placementGroupType)
+ public function setPaymentApproved($paymentApproved)
{
- $this->placementGroupType = $placementGroupType;
+ $this->paymentApproved = $paymentApproved;
}
- public function getPlacementGroupType()
+ public function getPaymentApproved()
{
- return $this->placementGroupType;
+ return $this->paymentApproved;
+ }
+ public function setPaymentSource($paymentSource)
+ {
+ $this->paymentSource = $paymentSource;
+ }
+ public function getPaymentSource()
+ {
+ return $this->paymentSource;
+ }
+ public function setPlacementGroupId($placementGroupId)
+ {
+ $this->placementGroupId = $placementGroupId;
+ }
+ public function getPlacementGroupId()
+ {
+ return $this->placementGroupId;
+ }
+ public function setPlacementGroupIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementGroupIdDimensionValue)
+ {
+ $this->placementGroupIdDimensionValue = $placementGroupIdDimensionValue;
+ }
+ public function getPlacementGroupIdDimensionValue()
+ {
+ return $this->placementGroupIdDimensionValue;
}
public function setPlacementStrategyId($placementStrategyId)
{
@@ -15519,29 +17377,21 @@ public function getPricingSchedule()
{
return $this->pricingSchedule;
}
- public function setPrimaryPlacementId($primaryPlacementId)
- {
- $this->primaryPlacementId = $primaryPlacementId;
- }
- public function getPrimaryPlacementId()
- {
- return $this->primaryPlacementId;
- }
- public function setPrimaryPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $primaryPlacementIdDimensionValue)
+ public function setPrimary($primary)
{
- $this->primaryPlacementIdDimensionValue = $primaryPlacementIdDimensionValue;
+ $this->primary = $primary;
}
- public function getPrimaryPlacementIdDimensionValue()
+ public function getPrimary()
{
- return $this->primaryPlacementIdDimensionValue;
+ return $this->primary;
}
- public function setProgrammaticSetting(Google_Service_Dfareporting_ProgrammaticSetting $programmaticSetting)
+ public function setPublisherUpdateInfo(Google_Service_Dfareporting_LastModifiedInfo $publisherUpdateInfo)
{
- $this->programmaticSetting = $programmaticSetting;
+ $this->publisherUpdateInfo = $publisherUpdateInfo;
}
- public function getProgrammaticSetting()
+ public function getPublisherUpdateInfo()
{
- return $this->programmaticSetting;
+ return $this->publisherUpdateInfo;
}
public function setSiteId($siteId)
{
@@ -15559,6 +17409,30 @@ public function getSiteIdDimensionValue()
{
return $this->siteIdDimensionValue;
}
+ public function setSize(Google_Service_Dfareporting_Size $size)
+ {
+ $this->size = $size;
+ }
+ public function getSize()
+ {
+ return $this->size;
+ }
+ public function setSslRequired($sslRequired)
+ {
+ $this->sslRequired = $sslRequired;
+ }
+ public function getSslRequired()
+ {
+ return $this->sslRequired;
+ }
+ public function setStatus($status)
+ {
+ $this->status = $status;
+ }
+ public function getStatus()
+ {
+ return $this->status;
+ }
public function setSubaccountId($subaccountId)
{
$this->subaccountId = $subaccountId;
@@ -15567,54 +17441,757 @@ public function getSubaccountId()
{
return $this->subaccountId;
}
+ public function setTagFormats($tagFormats)
+ {
+ $this->tagFormats = $tagFormats;
+ }
+ public function getTagFormats()
+ {
+ return $this->tagFormats;
+ }
+ public function setTagSetting(Google_Service_Dfareporting_TagSetting $tagSetting)
+ {
+ $this->tagSetting = $tagSetting;
+ }
+ public function getTagSetting()
+ {
+ return $this->tagSetting;
+ }
}
-class Google_Service_Dfareporting_PlacementGroupsListResponse extends Google_Collection
+class Google_Service_Dfareporting_PlacementAssignment extends Google_Model
{
- protected $collection_key = 'placementGroups';
protected $internal_gapi_mappings = array(
);
- public $kind;
- public $nextPageToken;
- protected $placementGroupsType = 'Google_Service_Dfareporting_PlacementGroup';
- protected $placementGroupsDataType = 'array';
+ public $active;
+ public $placementId;
+ protected $placementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $placementIdDimensionValueDataType = '';
+ public $sslRequired;
- public function setKind($kind)
+ public function setActive($active)
{
- $this->kind = $kind;
+ $this->active = $active;
}
- public function getKind()
+ public function getActive()
{
- return $this->kind;
+ return $this->active;
}
- public function setNextPageToken($nextPageToken)
+ public function setPlacementId($placementId)
{
- $this->nextPageToken = $nextPageToken;
+ $this->placementId = $placementId;
}
- public function getNextPageToken()
+ public function getPlacementId()
{
- return $this->nextPageToken;
+ return $this->placementId;
}
- public function setPlacementGroups($placementGroups)
+ public function setPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $placementIdDimensionValue)
{
- $this->placementGroups = $placementGroups;
+ $this->placementIdDimensionValue = $placementIdDimensionValue;
}
- public function getPlacementGroups()
+ public function getPlacementIdDimensionValue()
{
- return $this->placementGroups;
+ return $this->placementIdDimensionValue;
+ }
+ public function setSslRequired($sslRequired)
+ {
+ $this->sslRequired = $sslRequired;
+ }
+ public function getSslRequired()
+ {
+ return $this->sslRequired;
+ }
+}
+
+class Google_Service_Dfareporting_PlacementGroup extends Google_Collection
+{
+ protected $collection_key = 'childPlacementIds';
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountId;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $archived;
+ public $campaignId;
+ protected $campaignIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $campaignIdDimensionValueDataType = '';
+ public $childPlacementIds;
+ public $comment;
+ public $contentCategoryId;
+ protected $createInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $createInfoDataType = '';
+ public $directorySiteId;
+ protected $directorySiteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $directorySiteIdDimensionValueDataType = '';
+ public $externalId;
+ public $id;
+ protected $idDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $idDimensionValueDataType = '';
+ public $kind;
+ protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $lastModifiedInfoDataType = '';
+ public $name;
+ public $placementGroupType;
+ public $placementStrategyId;
+ protected $pricingScheduleType = 'Google_Service_Dfareporting_PricingSchedule';
+ protected $pricingScheduleDataType = '';
+ public $primaryPlacementId;
+ protected $primaryPlacementIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $primaryPlacementIdDimensionValueDataType = '';
+ protected $programmaticSettingType = 'Google_Service_Dfareporting_ProgrammaticSetting';
+ protected $programmaticSettingDataType = '';
+ public $siteId;
+ protected $siteIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $siteIdDimensionValueDataType = '';
+ public $subaccountId;
+
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setArchived($archived)
+ {
+ $this->archived = $archived;
+ }
+ public function getArchived()
+ {
+ return $this->archived;
+ }
+ public function setCampaignId($campaignId)
+ {
+ $this->campaignId = $campaignId;
+ }
+ public function getCampaignId()
+ {
+ return $this->campaignId;
+ }
+ public function setCampaignIdDimensionValue(Google_Service_Dfareporting_DimensionValue $campaignIdDimensionValue)
+ {
+ $this->campaignIdDimensionValue = $campaignIdDimensionValue;
+ }
+ public function getCampaignIdDimensionValue()
+ {
+ return $this->campaignIdDimensionValue;
+ }
+ public function setChildPlacementIds($childPlacementIds)
+ {
+ $this->childPlacementIds = $childPlacementIds;
+ }
+ public function getChildPlacementIds()
+ {
+ return $this->childPlacementIds;
+ }
+ public function setComment($comment)
+ {
+ $this->comment = $comment;
+ }
+ public function getComment()
+ {
+ return $this->comment;
+ }
+ public function setContentCategoryId($contentCategoryId)
+ {
+ $this->contentCategoryId = $contentCategoryId;
+ }
+ public function getContentCategoryId()
+ {
+ return $this->contentCategoryId;
+ }
+ public function setCreateInfo(Google_Service_Dfareporting_LastModifiedInfo $createInfo)
+ {
+ $this->createInfo = $createInfo;
+ }
+ public function getCreateInfo()
+ {
+ return $this->createInfo;
+ }
+ public function setDirectorySiteId($directorySiteId)
+ {
+ $this->directorySiteId = $directorySiteId;
+ }
+ public function getDirectorySiteId()
+ {
+ return $this->directorySiteId;
+ }
+ public function setDirectorySiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $directorySiteIdDimensionValue)
+ {
+ $this->directorySiteIdDimensionValue = $directorySiteIdDimensionValue;
+ }
+ public function getDirectorySiteIdDimensionValue()
+ {
+ return $this->directorySiteIdDimensionValue;
+ }
+ public function setExternalId($externalId)
+ {
+ $this->externalId = $externalId;
+ }
+ public function getExternalId()
+ {
+ return $this->externalId;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setIdDimensionValue(Google_Service_Dfareporting_DimensionValue $idDimensionValue)
+ {
+ $this->idDimensionValue = $idDimensionValue;
+ }
+ public function getIdDimensionValue()
+ {
+ return $this->idDimensionValue;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
+ {
+ $this->lastModifiedInfo = $lastModifiedInfo;
+ }
+ public function getLastModifiedInfo()
+ {
+ return $this->lastModifiedInfo;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setPlacementGroupType($placementGroupType)
+ {
+ $this->placementGroupType = $placementGroupType;
+ }
+ public function getPlacementGroupType()
+ {
+ return $this->placementGroupType;
+ }
+ public function setPlacementStrategyId($placementStrategyId)
+ {
+ $this->placementStrategyId = $placementStrategyId;
+ }
+ public function getPlacementStrategyId()
+ {
+ return $this->placementStrategyId;
+ }
+ public function setPricingSchedule(Google_Service_Dfareporting_PricingSchedule $pricingSchedule)
+ {
+ $this->pricingSchedule = $pricingSchedule;
+ }
+ public function getPricingSchedule()
+ {
+ return $this->pricingSchedule;
+ }
+ public function setPrimaryPlacementId($primaryPlacementId)
+ {
+ $this->primaryPlacementId = $primaryPlacementId;
+ }
+ public function getPrimaryPlacementId()
+ {
+ return $this->primaryPlacementId;
+ }
+ public function setPrimaryPlacementIdDimensionValue(Google_Service_Dfareporting_DimensionValue $primaryPlacementIdDimensionValue)
+ {
+ $this->primaryPlacementIdDimensionValue = $primaryPlacementIdDimensionValue;
+ }
+ public function getPrimaryPlacementIdDimensionValue()
+ {
+ return $this->primaryPlacementIdDimensionValue;
+ }
+ public function setProgrammaticSetting(Google_Service_Dfareporting_ProgrammaticSetting $programmaticSetting)
+ {
+ $this->programmaticSetting = $programmaticSetting;
+ }
+ public function getProgrammaticSetting()
+ {
+ return $this->programmaticSetting;
+ }
+ public function setSiteId($siteId)
+ {
+ $this->siteId = $siteId;
+ }
+ public function getSiteId()
+ {
+ return $this->siteId;
+ }
+ public function setSiteIdDimensionValue(Google_Service_Dfareporting_DimensionValue $siteIdDimensionValue)
+ {
+ $this->siteIdDimensionValue = $siteIdDimensionValue;
+ }
+ public function getSiteIdDimensionValue()
+ {
+ return $this->siteIdDimensionValue;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+}
+
+class Google_Service_Dfareporting_PlacementGroupsListResponse extends Google_Collection
+{
+ protected $collection_key = 'placementGroups';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ public $nextPageToken;
+ protected $placementGroupsType = 'Google_Service_Dfareporting_PlacementGroup';
+ protected $placementGroupsDataType = '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 setPlacementGroups($placementGroups)
+ {
+ $this->placementGroups = $placementGroups;
+ }
+ public function getPlacementGroups()
+ {
+ return $this->placementGroups;
+ }
+}
+
+class Google_Service_Dfareporting_PlacementStrategiesListResponse extends Google_Collection
+{
+ protected $collection_key = 'placementStrategies';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ public $nextPageToken;
+ protected $placementStrategiesType = 'Google_Service_Dfareporting_PlacementStrategy';
+ protected $placementStrategiesDataType = '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 setPlacementStrategies($placementStrategies)
+ {
+ $this->placementStrategies = $placementStrategies;
+ }
+ public function getPlacementStrategies()
+ {
+ return $this->placementStrategies;
+ }
+}
+
+class Google_Service_Dfareporting_PlacementStrategy extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountId;
+ public $id;
+ public $kind;
+ public $name;
+
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ 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;
+ }
+}
+
+class Google_Service_Dfareporting_PlacementTag extends Google_Collection
+{
+ protected $collection_key = 'tagDatas';
+ protected $internal_gapi_mappings = array(
+ );
+ public $placementId;
+ protected $tagDatasType = 'Google_Service_Dfareporting_TagData';
+ protected $tagDatasDataType = 'array';
+
+
+ public function setPlacementId($placementId)
+ {
+ $this->placementId = $placementId;
+ }
+ public function getPlacementId()
+ {
+ return $this->placementId;
+ }
+ public function setTagDatas($tagDatas)
+ {
+ $this->tagDatas = $tagDatas;
+ }
+ public function getTagDatas()
+ {
+ return $this->tagDatas;
+ }
+}
+
+class Google_Service_Dfareporting_PlacementsGenerateTagsResponse extends Google_Collection
+{
+ protected $collection_key = 'placementTags';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ protected $placementTagsType = 'Google_Service_Dfareporting_PlacementTag';
+ protected $placementTagsDataType = 'array';
+
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlacementTags($placementTags)
+ {
+ $this->placementTags = $placementTags;
+ }
+ public function getPlacementTags()
+ {
+ return $this->placementTags;
+ }
+}
+
+class Google_Service_Dfareporting_PlacementsListResponse extends Google_Collection
+{
+ protected $collection_key = 'placements';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ public $nextPageToken;
+ protected $placementsType = 'Google_Service_Dfareporting_Placement';
+ protected $placementsDataType = '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 setPlacements($placements)
+ {
+ $this->placements = $placements;
+ }
+ public function getPlacements()
+ {
+ return $this->placements;
+ }
+}
+
+class Google_Service_Dfareporting_PlatformType extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ public $kind;
+ public $name;
+
+
+ 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;
+ }
+}
+
+class Google_Service_Dfareporting_PlatformTypesListResponse extends Google_Collection
+{
+ protected $collection_key = 'platformTypes';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType';
+ protected $platformTypesDataType = 'array';
+
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setPlatformTypes($platformTypes)
+ {
+ $this->platformTypes = $platformTypes;
+ }
+ public function getPlatformTypes()
+ {
+ return $this->platformTypes;
+ }
+}
+
+class Google_Service_Dfareporting_PopupWindowProperties extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $dimensionType = 'Google_Service_Dfareporting_Size';
+ protected $dimensionDataType = '';
+ protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition';
+ protected $offsetDataType = '';
+ public $positionType;
+ public $showAddressBar;
+ public $showMenuBar;
+ public $showScrollBar;
+ public $showStatusBar;
+ public $showToolBar;
+ public $title;
+
+
+ public function setDimension(Google_Service_Dfareporting_Size $dimension)
+ {
+ $this->dimension = $dimension;
+ }
+ public function getDimension()
+ {
+ return $this->dimension;
+ }
+ public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset)
+ {
+ $this->offset = $offset;
+ }
+ public function getOffset()
+ {
+ return $this->offset;
+ }
+ public function setPositionType($positionType)
+ {
+ $this->positionType = $positionType;
+ }
+ public function getPositionType()
+ {
+ return $this->positionType;
+ }
+ public function setShowAddressBar($showAddressBar)
+ {
+ $this->showAddressBar = $showAddressBar;
+ }
+ public function getShowAddressBar()
+ {
+ return $this->showAddressBar;
+ }
+ public function setShowMenuBar($showMenuBar)
+ {
+ $this->showMenuBar = $showMenuBar;
+ }
+ public function getShowMenuBar()
+ {
+ return $this->showMenuBar;
+ }
+ public function setShowScrollBar($showScrollBar)
+ {
+ $this->showScrollBar = $showScrollBar;
+ }
+ public function getShowScrollBar()
+ {
+ return $this->showScrollBar;
+ }
+ public function setShowStatusBar($showStatusBar)
+ {
+ $this->showStatusBar = $showStatusBar;
+ }
+ public function getShowStatusBar()
+ {
+ return $this->showStatusBar;
+ }
+ public function setShowToolBar($showToolBar)
+ {
+ $this->showToolBar = $showToolBar;
+ }
+ public function getShowToolBar()
+ {
+ return $this->showToolBar;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
+}
+
+class Google_Service_Dfareporting_PostalCode extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ public $countryCode;
+ public $countryDartId;
+ public $id;
+ public $kind;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setCountryCode($countryCode)
+ {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode()
+ {
+ return $this->countryCode;
+ }
+ public function setCountryDartId($countryDartId)
+ {
+ $this->countryDartId = $countryDartId;
+ }
+ public function getCountryDartId()
+ {
+ return $this->countryDartId;
+ }
+ 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;
}
}
-class Google_Service_Dfareporting_PlacementStrategiesListResponse extends Google_Collection
+class Google_Service_Dfareporting_PostalCodesListResponse extends Google_Collection
{
- protected $collection_key = 'placementStrategies';
+ protected $collection_key = 'postalCodes';
protected $internal_gapi_mappings = array(
);
public $kind;
- public $nextPageToken;
- protected $placementStrategiesType = 'Google_Service_Dfareporting_PlacementStrategy';
- protected $placementStrategiesDataType = 'array';
+ protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode';
+ protected $postalCodesDataType = 'array';
public function setKind($kind)
@@ -15625,367 +18202,494 @@ public function getKind()
{
return $this->kind;
}
- public function setNextPageToken($nextPageToken)
+ public function setPostalCodes($postalCodes)
{
- $this->nextPageToken = $nextPageToken;
+ $this->postalCodes = $postalCodes;
}
- public function getNextPageToken()
+ public function getPostalCodes()
{
- return $this->nextPageToken;
+ return $this->postalCodes;
}
- public function setPlacementStrategies($placementStrategies)
+}
+
+class Google_Service_Dfareporting_Pricing extends Google_Collection
+{
+ protected $collection_key = 'flights';
+ protected $internal_gapi_mappings = array(
+ );
+ public $capCostType;
+ public $endDate;
+ protected $flightsType = 'Google_Service_Dfareporting_Flight';
+ protected $flightsDataType = 'array';
+ public $groupType;
+ public $pricingType;
+ public $startDate;
+
+
+ public function setCapCostType($capCostType)
{
- $this->placementStrategies = $placementStrategies;
+ $this->capCostType = $capCostType;
}
- public function getPlacementStrategies()
+ public function getCapCostType()
{
- return $this->placementStrategies;
+ return $this->capCostType;
+ }
+ public function setEndDate($endDate)
+ {
+ $this->endDate = $endDate;
+ }
+ public function getEndDate()
+ {
+ return $this->endDate;
+ }
+ public function setFlights($flights)
+ {
+ $this->flights = $flights;
+ }
+ public function getFlights()
+ {
+ return $this->flights;
+ }
+ public function setGroupType($groupType)
+ {
+ $this->groupType = $groupType;
+ }
+ public function getGroupType()
+ {
+ return $this->groupType;
+ }
+ public function setPricingType($pricingType)
+ {
+ $this->pricingType = $pricingType;
+ }
+ public function getPricingType()
+ {
+ return $this->pricingType;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
}
}
-class Google_Service_Dfareporting_PlacementStrategy extends Google_Model
+class Google_Service_Dfareporting_PricingSchedule extends Google_Collection
{
+ protected $collection_key = 'pricingPeriods';
protected $internal_gapi_mappings = array(
);
- public $accountId;
- public $id;
- public $kind;
- public $name;
+ public $capCostOption;
+ public $disregardOverdelivery;
+ public $endDate;
+ public $flighted;
+ public $floodlightActivityId;
+ protected $pricingPeriodsType = 'Google_Service_Dfareporting_PricingSchedulePricingPeriod';
+ protected $pricingPeriodsDataType = 'array';
+ public $pricingType;
+ public $startDate;
+ public $testingStartDate;
- public function setAccountId($accountId)
+ public function setCapCostOption($capCostOption)
{
- $this->accountId = $accountId;
+ $this->capCostOption = $capCostOption;
}
- public function getAccountId()
+ public function getCapCostOption()
{
- return $this->accountId;
+ return $this->capCostOption;
}
- public function setId($id)
+ public function setDisregardOverdelivery($disregardOverdelivery)
{
- $this->id = $id;
+ $this->disregardOverdelivery = $disregardOverdelivery;
}
- public function getId()
+ public function getDisregardOverdelivery()
{
- return $this->id;
+ return $this->disregardOverdelivery;
}
- public function setKind($kind)
+ public function setEndDate($endDate)
{
- $this->kind = $kind;
+ $this->endDate = $endDate;
}
- public function getKind()
+ public function getEndDate()
{
- return $this->kind;
+ return $this->endDate;
}
- public function setName($name)
+ public function setFlighted($flighted)
{
- $this->name = $name;
+ $this->flighted = $flighted;
}
- public function getName()
+ public function getFlighted()
{
- return $this->name;
+ return $this->flighted;
+ }
+ public function setFloodlightActivityId($floodlightActivityId)
+ {
+ $this->floodlightActivityId = $floodlightActivityId;
+ }
+ public function getFloodlightActivityId()
+ {
+ return $this->floodlightActivityId;
+ }
+ public function setPricingPeriods($pricingPeriods)
+ {
+ $this->pricingPeriods = $pricingPeriods;
+ }
+ public function getPricingPeriods()
+ {
+ return $this->pricingPeriods;
+ }
+ public function setPricingType($pricingType)
+ {
+ $this->pricingType = $pricingType;
+ }
+ public function getPricingType()
+ {
+ return $this->pricingType;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setTestingStartDate($testingStartDate)
+ {
+ $this->testingStartDate = $testingStartDate;
+ }
+ public function getTestingStartDate()
+ {
+ return $this->testingStartDate;
}
}
-class Google_Service_Dfareporting_PlacementTag extends Google_Collection
+class Google_Service_Dfareporting_PricingSchedulePricingPeriod extends Google_Model
{
- protected $collection_key = 'tagDatas';
protected $internal_gapi_mappings = array(
);
- public $placementId;
- protected $tagDatasType = 'Google_Service_Dfareporting_TagData';
- protected $tagDatasDataType = 'array';
+ public $endDate;
+ public $pricingComment;
+ public $rateOrCostNanos;
+ public $startDate;
+ public $units;
- public function setPlacementId($placementId)
+ public function setEndDate($endDate)
{
- $this->placementId = $placementId;
+ $this->endDate = $endDate;
}
- public function getPlacementId()
+ public function getEndDate()
{
- return $this->placementId;
+ return $this->endDate;
}
- public function setTagDatas($tagDatas)
+ public function setPricingComment($pricingComment)
{
- $this->tagDatas = $tagDatas;
+ $this->pricingComment = $pricingComment;
}
- public function getTagDatas()
+ public function getPricingComment()
+ {
+ return $this->pricingComment;
+ }
+ public function setRateOrCostNanos($rateOrCostNanos)
+ {
+ $this->rateOrCostNanos = $rateOrCostNanos;
+ }
+ public function getRateOrCostNanos()
+ {
+ return $this->rateOrCostNanos;
+ }
+ public function setStartDate($startDate)
+ {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate()
+ {
+ return $this->startDate;
+ }
+ public function setUnits($units)
+ {
+ $this->units = $units;
+ }
+ public function getUnits()
+ {
+ return $this->units;
+ }
+}
+
+class Google_Service_Dfareporting_ProgrammaticSetting extends Google_Collection
+{
+ protected $collection_key = 'traffickerEmails';
+ protected $internal_gapi_mappings = array(
+ );
+ public $adxDealIds;
+ public $insertionOrderId;
+ public $insertionOrderIdStatus;
+ public $mediaCostNanos;
+ public $programmatic;
+ public $traffickerEmails;
+
+
+ public function setAdxDealIds($adxDealIds)
+ {
+ $this->adxDealIds = $adxDealIds;
+ }
+ public function getAdxDealIds()
+ {
+ return $this->adxDealIds;
+ }
+ public function setInsertionOrderId($insertionOrderId)
+ {
+ $this->insertionOrderId = $insertionOrderId;
+ }
+ public function getInsertionOrderId()
+ {
+ return $this->insertionOrderId;
+ }
+ public function setInsertionOrderIdStatus($insertionOrderIdStatus)
+ {
+ $this->insertionOrderIdStatus = $insertionOrderIdStatus;
+ }
+ public function getInsertionOrderIdStatus()
+ {
+ return $this->insertionOrderIdStatus;
+ }
+ public function setMediaCostNanos($mediaCostNanos)
+ {
+ $this->mediaCostNanos = $mediaCostNanos;
+ }
+ public function getMediaCostNanos()
{
- return $this->tagDatas;
+ return $this->mediaCostNanos;
}
-}
-
-class Google_Service_Dfareporting_PlacementsGenerateTagsResponse extends Google_Collection
-{
- protected $collection_key = 'placementTags';
- protected $internal_gapi_mappings = array(
- );
- public $kind;
- protected $placementTagsType = 'Google_Service_Dfareporting_PlacementTag';
- protected $placementTagsDataType = 'array';
-
-
- public function setKind($kind)
+ public function setProgrammatic($programmatic)
{
- $this->kind = $kind;
+ $this->programmatic = $programmatic;
}
- public function getKind()
+ public function getProgrammatic()
{
- return $this->kind;
+ return $this->programmatic;
}
- public function setPlacementTags($placementTags)
+ public function setTraffickerEmails($traffickerEmails)
{
- $this->placementTags = $placementTags;
+ $this->traffickerEmails = $traffickerEmails;
}
- public function getPlacementTags()
+ public function getTraffickerEmails()
{
- return $this->placementTags;
+ return $this->traffickerEmails;
}
}
-class Google_Service_Dfareporting_PlacementsListResponse extends Google_Collection
+class Google_Service_Dfareporting_Project extends Google_Model
{
- protected $collection_key = 'placements';
protected $internal_gapi_mappings = array(
);
+ public $accountId;
+ public $advertiserId;
+ public $audienceAgeGroup;
+ public $audienceGender;
+ public $budget;
+ public $clientBillingCode;
+ public $clientName;
+ public $endDate;
+ public $id;
public $kind;
- public $nextPageToken;
- protected $placementsType = 'Google_Service_Dfareporting_Placement';
- protected $placementsDataType = 'array';
+ protected $lastModifiedInfoType = 'Google_Service_Dfareporting_LastModifiedInfo';
+ protected $lastModifiedInfoDataType = '';
+ public $name;
+ public $overview;
+ public $startDate;
+ public $subaccountId;
+ public $targetClicks;
+ public $targetConversions;
+ public $targetCpaNanos;
+ public $targetCpcNanos;
+ public $targetCpmNanos;
+ public $targetImpressions;
- public function setKind($kind)
+ public function setAccountId($accountId)
{
- $this->kind = $kind;
+ $this->accountId = $accountId;
}
- public function getKind()
+ public function getAccountId()
{
- return $this->kind;
+ return $this->accountId;
}
- public function setNextPageToken($nextPageToken)
+ public function setAdvertiserId($advertiserId)
{
- $this->nextPageToken = $nextPageToken;
+ $this->advertiserId = $advertiserId;
}
- public function getNextPageToken()
+ public function getAdvertiserId()
{
- return $this->nextPageToken;
+ return $this->advertiserId;
}
- public function setPlacements($placements)
+ public function setAudienceAgeGroup($audienceAgeGroup)
{
- $this->placements = $placements;
+ $this->audienceAgeGroup = $audienceAgeGroup;
}
- public function getPlacements()
+ public function getAudienceAgeGroup()
{
- return $this->placements;
+ return $this->audienceAgeGroup;
}
-}
-
-class Google_Service_Dfareporting_PlatformType extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $id;
- public $kind;
- public $name;
-
-
- public function setId($id)
+ public function setAudienceGender($audienceGender)
{
- $this->id = $id;
+ $this->audienceGender = $audienceGender;
}
- public function getId()
+ public function getAudienceGender()
{
- return $this->id;
+ return $this->audienceGender;
}
- public function setKind($kind)
+ public function setBudget($budget)
{
- $this->kind = $kind;
+ $this->budget = $budget;
}
- public function getKind()
+ public function getBudget()
{
- return $this->kind;
+ return $this->budget;
}
- public function setName($name)
+ public function setClientBillingCode($clientBillingCode)
{
- $this->name = $name;
+ $this->clientBillingCode = $clientBillingCode;
}
- public function getName()
+ public function getClientBillingCode()
{
- return $this->name;
+ return $this->clientBillingCode;
}
-}
-
-class Google_Service_Dfareporting_PlatformTypesListResponse extends Google_Collection
-{
- protected $collection_key = 'platformTypes';
- protected $internal_gapi_mappings = array(
- );
- public $kind;
- protected $platformTypesType = 'Google_Service_Dfareporting_PlatformType';
- protected $platformTypesDataType = 'array';
-
-
- public function setKind($kind)
+ public function setClientName($clientName)
{
- $this->kind = $kind;
+ $this->clientName = $clientName;
}
- public function getKind()
+ public function getClientName()
{
- return $this->kind;
+ return $this->clientName;
}
- public function setPlatformTypes($platformTypes)
+ public function setEndDate($endDate)
{
- $this->platformTypes = $platformTypes;
+ $this->endDate = $endDate;
}
- public function getPlatformTypes()
+ public function getEndDate()
{
- return $this->platformTypes;
+ return $this->endDate;
}
-}
-
-class Google_Service_Dfareporting_PopupWindowProperties extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- protected $dimensionType = 'Google_Service_Dfareporting_Size';
- protected $dimensionDataType = '';
- protected $offsetType = 'Google_Service_Dfareporting_OffsetPosition';
- protected $offsetDataType = '';
- public $positionType;
- public $showAddressBar;
- public $showMenuBar;
- public $showScrollBar;
- public $showStatusBar;
- public $showToolBar;
- public $title;
-
-
- public function setDimension(Google_Service_Dfareporting_Size $dimension)
+ public function setId($id)
{
- $this->dimension = $dimension;
+ $this->id = $id;
}
- public function getDimension()
+ public function getId()
{
- return $this->dimension;
+ return $this->id;
}
- public function setOffset(Google_Service_Dfareporting_OffsetPosition $offset)
+ public function setKind($kind)
{
- $this->offset = $offset;
+ $this->kind = $kind;
}
- public function getOffset()
+ public function getKind()
{
- return $this->offset;
+ return $this->kind;
}
- public function setPositionType($positionType)
+ public function setLastModifiedInfo(Google_Service_Dfareporting_LastModifiedInfo $lastModifiedInfo)
{
- $this->positionType = $positionType;
+ $this->lastModifiedInfo = $lastModifiedInfo;
}
- public function getPositionType()
+ public function getLastModifiedInfo()
{
- return $this->positionType;
+ return $this->lastModifiedInfo;
}
- public function setShowAddressBar($showAddressBar)
+ public function setName($name)
{
- $this->showAddressBar = $showAddressBar;
+ $this->name = $name;
}
- public function getShowAddressBar()
+ public function getName()
{
- return $this->showAddressBar;
+ return $this->name;
}
- public function setShowMenuBar($showMenuBar)
+ public function setOverview($overview)
{
- $this->showMenuBar = $showMenuBar;
+ $this->overview = $overview;
}
- public function getShowMenuBar()
+ public function getOverview()
{
- return $this->showMenuBar;
+ return $this->overview;
}
- public function setShowScrollBar($showScrollBar)
+ public function setStartDate($startDate)
{
- $this->showScrollBar = $showScrollBar;
+ $this->startDate = $startDate;
}
- public function getShowScrollBar()
+ public function getStartDate()
{
- return $this->showScrollBar;
+ return $this->startDate;
}
- public function setShowStatusBar($showStatusBar)
+ public function setSubaccountId($subaccountId)
{
- $this->showStatusBar = $showStatusBar;
+ $this->subaccountId = $subaccountId;
}
- public function getShowStatusBar()
+ public function getSubaccountId()
{
- return $this->showStatusBar;
+ return $this->subaccountId;
}
- public function setShowToolBar($showToolBar)
+ public function setTargetClicks($targetClicks)
{
- $this->showToolBar = $showToolBar;
+ $this->targetClicks = $targetClicks;
}
- public function getShowToolBar()
+ public function getTargetClicks()
{
- return $this->showToolBar;
+ return $this->targetClicks;
}
- public function setTitle($title)
+ public function setTargetConversions($targetConversions)
{
- $this->title = $title;
+ $this->targetConversions = $targetConversions;
}
- public function getTitle()
+ public function getTargetConversions()
{
- return $this->title;
+ return $this->targetConversions;
}
-}
-
-class Google_Service_Dfareporting_PostalCode extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $countryCode;
- public $countryDartId;
- public $id;
- public $kind;
-
-
- public function setCountryCode($countryCode)
+ public function setTargetCpaNanos($targetCpaNanos)
{
- $this->countryCode = $countryCode;
+ $this->targetCpaNanos = $targetCpaNanos;
}
- public function getCountryCode()
+ public function getTargetCpaNanos()
{
- return $this->countryCode;
+ return $this->targetCpaNanos;
}
- public function setCountryDartId($countryDartId)
+ public function setTargetCpcNanos($targetCpcNanos)
{
- $this->countryDartId = $countryDartId;
+ $this->targetCpcNanos = $targetCpcNanos;
}
- public function getCountryDartId()
+ public function getTargetCpcNanos()
{
- return $this->countryDartId;
+ return $this->targetCpcNanos;
}
- public function setId($id)
+ public function setTargetCpmNanos($targetCpmNanos)
{
- $this->id = $id;
+ $this->targetCpmNanos = $targetCpmNanos;
}
- public function getId()
+ public function getTargetCpmNanos()
{
- return $this->id;
+ return $this->targetCpmNanos;
}
- public function setKind($kind)
+ public function setTargetImpressions($targetImpressions)
{
- $this->kind = $kind;
+ $this->targetImpressions = $targetImpressions;
}
- public function getKind()
+ public function getTargetImpressions()
{
- return $this->kind;
+ return $this->targetImpressions;
}
}
-class Google_Service_Dfareporting_PostalCodesListResponse extends Google_Collection
+class Google_Service_Dfareporting_ProjectsListResponse extends Google_Collection
{
- protected $collection_key = 'postalCodes';
+ protected $collection_key = 'projects';
protected $internal_gapi_mappings = array(
);
public $kind;
- protected $postalCodesType = 'Google_Service_Dfareporting_PostalCode';
- protected $postalCodesDataType = 'array';
+ public $nextPageToken;
+ protected $projectsType = 'Google_Service_Dfareporting_Project';
+ protected $projectsDataType = 'array';
public function setKind($kind)
@@ -15996,256 +18700,285 @@ public function getKind()
{
return $this->kind;
}
- public function setPostalCodes($postalCodes)
+ public function setNextPageToken($nextPageToken)
{
- $this->postalCodes = $postalCodes;
+ $this->nextPageToken = $nextPageToken;
}
- public function getPostalCodes()
+ public function getNextPageToken()
{
- return $this->postalCodes;
+ return $this->nextPageToken;
+ }
+ public function setProjects($projects)
+ {
+ $this->projects = $projects;
+ }
+ public function getProjects()
+ {
+ return $this->projects;
}
}
-class Google_Service_Dfareporting_PricingSchedule extends Google_Collection
+class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection
{
- protected $collection_key = 'pricingPeriods';
+ protected $collection_key = 'reachByFrequencyMetrics';
protected $internal_gapi_mappings = array(
);
- public $capCostOption;
- public $disregardOverdelivery;
- public $endDate;
- public $flighted;
- public $floodlightActivityId;
- protected $pricingPeriodsType = 'Google_Service_Dfareporting_PricingSchedulePricingPeriod';
- protected $pricingPeriodsDataType = 'array';
- public $pricingType;
- public $startDate;
- public $testingStartDate;
+ protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension';
+ protected $dimensionFiltersDataType = 'array';
+ protected $dimensionsType = 'Google_Service_Dfareporting_Dimension';
+ protected $dimensionsDataType = 'array';
+ public $kind;
+ protected $metricsType = 'Google_Service_Dfareporting_Metric';
+ protected $metricsDataType = 'array';
+ protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric';
+ protected $pivotedActivityMetricsDataType = 'array';
+ protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric';
+ protected $reachByFrequencyMetricsDataType = 'array';
- public function setCapCostOption($capCostOption)
+ public function setDimensionFilters($dimensionFilters)
{
- $this->capCostOption = $capCostOption;
+ $this->dimensionFilters = $dimensionFilters;
}
- public function getCapCostOption()
+ public function getDimensionFilters()
{
- return $this->capCostOption;
+ return $this->dimensionFilters;
}
- public function setDisregardOverdelivery($disregardOverdelivery)
+ public function setDimensions($dimensions)
{
- $this->disregardOverdelivery = $disregardOverdelivery;
+ $this->dimensions = $dimensions;
}
- public function getDisregardOverdelivery()
+ public function getDimensions()
{
- return $this->disregardOverdelivery;
+ return $this->dimensions;
}
- public function setEndDate($endDate)
+ public function setKind($kind)
{
- $this->endDate = $endDate;
+ $this->kind = $kind;
}
- public function getEndDate()
+ public function getKind()
{
- return $this->endDate;
+ return $this->kind;
}
- public function setFlighted($flighted)
+ public function setMetrics($metrics)
{
- $this->flighted = $flighted;
+ $this->metrics = $metrics;
}
- public function getFlighted()
+ public function getMetrics()
{
- return $this->flighted;
+ return $this->metrics;
}
- public function setFloodlightActivityId($floodlightActivityId)
+ public function setPivotedActivityMetrics($pivotedActivityMetrics)
{
- $this->floodlightActivityId = $floodlightActivityId;
+ $this->pivotedActivityMetrics = $pivotedActivityMetrics;
}
- public function getFloodlightActivityId()
+ public function getPivotedActivityMetrics()
{
- return $this->floodlightActivityId;
+ return $this->pivotedActivityMetrics;
}
- public function setPricingPeriods($pricingPeriods)
+ public function setReachByFrequencyMetrics($reachByFrequencyMetrics)
{
- $this->pricingPeriods = $pricingPeriods;
+ $this->reachByFrequencyMetrics = $reachByFrequencyMetrics;
}
- public function getPricingPeriods()
+ public function getReachByFrequencyMetrics()
{
- return $this->pricingPeriods;
+ return $this->reachByFrequencyMetrics;
}
- public function setPricingType($pricingType)
+}
+
+class Google_Service_Dfareporting_Recipient extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $deliveryType;
+ public $email;
+ public $kind;
+
+
+ public function setDeliveryType($deliveryType)
{
- $this->pricingType = $pricingType;
+ $this->deliveryType = $deliveryType;
}
- public function getPricingType()
+ public function getDeliveryType()
{
- return $this->pricingType;
+ return $this->deliveryType;
}
- public function setStartDate($startDate)
+ public function setEmail($email)
{
- $this->startDate = $startDate;
+ $this->email = $email;
}
- public function getStartDate()
+ public function getEmail()
{
- return $this->startDate;
+ return $this->email;
}
- public function setTestingStartDate($testingStartDate)
+ public function setKind($kind)
{
- $this->testingStartDate = $testingStartDate;
+ $this->kind = $kind;
}
- public function getTestingStartDate()
+ public function getKind()
{
- return $this->testingStartDate;
+ return $this->kind;
}
}
-class Google_Service_Dfareporting_PricingSchedulePricingPeriod extends Google_Model
+class Google_Service_Dfareporting_Region extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $endDate;
- public $pricingComment;
- public $rateOrCostNanos;
- public $startDate;
- public $units;
+ public $countryCode;
+ public $countryDartId;
+ public $dartId;
+ public $kind;
+ public $name;
+ public $regionCode;
- public function setEndDate($endDate)
+ public function setCountryCode($countryCode)
{
- $this->endDate = $endDate;
+ $this->countryCode = $countryCode;
}
- public function getEndDate()
+ public function getCountryCode()
{
- return $this->endDate;
+ return $this->countryCode;
}
- public function setPricingComment($pricingComment)
+ public function setCountryDartId($countryDartId)
{
- $this->pricingComment = $pricingComment;
+ $this->countryDartId = $countryDartId;
}
- public function getPricingComment()
+ public function getCountryDartId()
{
- return $this->pricingComment;
+ return $this->countryDartId;
}
- public function setRateOrCostNanos($rateOrCostNanos)
+ public function setDartId($dartId)
{
- $this->rateOrCostNanos = $rateOrCostNanos;
+ $this->dartId = $dartId;
}
- public function getRateOrCostNanos()
+ public function getDartId()
{
- return $this->rateOrCostNanos;
+ return $this->dartId;
}
- public function setStartDate($startDate)
+ public function setKind($kind)
{
- $this->startDate = $startDate;
+ $this->kind = $kind;
}
- public function getStartDate()
+ public function getKind()
{
- return $this->startDate;
+ return $this->kind;
}
- public function setUnits($units)
+ public function setName($name)
{
- $this->units = $units;
+ $this->name = $name;
}
- public function getUnits()
+ public function getName()
{
- return $this->units;
+ return $this->name;
+ }
+ public function setRegionCode($regionCode)
+ {
+ $this->regionCode = $regionCode;
+ }
+ public function getRegionCode()
+ {
+ return $this->regionCode;
}
}
-class Google_Service_Dfareporting_ProgrammaticSetting extends Google_Collection
+class Google_Service_Dfareporting_RegionsListResponse extends Google_Collection
{
- protected $collection_key = 'traffickerEmails';
+ protected $collection_key = 'regions';
protected $internal_gapi_mappings = array(
);
- public $adxDealIds;
- public $insertionOrderId;
- public $insertionOrderIdStatus;
- public $mediaCostNanos;
- public $programmatic;
- public $traffickerEmails;
+ public $kind;
+ protected $regionsType = 'Google_Service_Dfareporting_Region';
+ protected $regionsDataType = 'array';
- public function setAdxDealIds($adxDealIds)
+ public function setKind($kind)
{
- $this->adxDealIds = $adxDealIds;
+ $this->kind = $kind;
}
- public function getAdxDealIds()
+ public function getKind()
{
- return $this->adxDealIds;
+ return $this->kind;
}
- public function setInsertionOrderId($insertionOrderId)
+ public function setRegions($regions)
{
- $this->insertionOrderId = $insertionOrderId;
+ $this->regions = $regions;
}
- public function getInsertionOrderId()
+ public function getRegions()
{
- return $this->insertionOrderId;
+ return $this->regions;
}
- public function setInsertionOrderIdStatus($insertionOrderIdStatus)
+}
+
+class Google_Service_Dfareporting_RemarketingList extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountId;
+ public $active;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $description;
+ public $id;
+ public $kind;
+ public $lifeSpan;
+ protected $listPopulationRuleType = 'Google_Service_Dfareporting_ListPopulationRule';
+ protected $listPopulationRuleDataType = '';
+ public $listSize;
+ public $listSource;
+ public $name;
+ public $subaccountId;
+
+
+ public function setAccountId($accountId)
{
- $this->insertionOrderIdStatus = $insertionOrderIdStatus;
+ $this->accountId = $accountId;
}
- public function getInsertionOrderIdStatus()
+ public function getAccountId()
{
- return $this->insertionOrderIdStatus;
+ return $this->accountId;
}
- public function setMediaCostNanos($mediaCostNanos)
+ public function setActive($active)
{
- $this->mediaCostNanos = $mediaCostNanos;
+ $this->active = $active;
}
- public function getMediaCostNanos()
+ public function getActive()
{
- return $this->mediaCostNanos;
+ return $this->active;
}
- public function setProgrammatic($programmatic)
+ public function setAdvertiserId($advertiserId)
{
- $this->programmatic = $programmatic;
+ $this->advertiserId = $advertiserId;
}
- public function getProgrammatic()
+ public function getAdvertiserId()
{
- return $this->programmatic;
+ return $this->advertiserId;
}
- public function setTraffickerEmails($traffickerEmails)
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
{
- $this->traffickerEmails = $traffickerEmails;
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
}
- public function getTraffickerEmails()
+ public function getAdvertiserIdDimensionValue()
{
- return $this->traffickerEmails;
+ return $this->advertiserIdDimensionValue;
}
-}
-
-class Google_Service_Dfareporting_ReachReportCompatibleFields extends Google_Collection
-{
- protected $collection_key = 'reachByFrequencyMetrics';
- protected $internal_gapi_mappings = array(
- );
- protected $dimensionFiltersType = 'Google_Service_Dfareporting_Dimension';
- protected $dimensionFiltersDataType = 'array';
- protected $dimensionsType = 'Google_Service_Dfareporting_Dimension';
- protected $dimensionsDataType = 'array';
- public $kind;
- protected $metricsType = 'Google_Service_Dfareporting_Metric';
- protected $metricsDataType = 'array';
- protected $pivotedActivityMetricsType = 'Google_Service_Dfareporting_Metric';
- protected $pivotedActivityMetricsDataType = 'array';
- protected $reachByFrequencyMetricsType = 'Google_Service_Dfareporting_Metric';
- protected $reachByFrequencyMetricsDataType = 'array';
-
-
- public function setDimensionFilters($dimensionFilters)
+ public function setDescription($description)
{
- $this->dimensionFilters = $dimensionFilters;
+ $this->description = $description;
}
- public function getDimensionFilters()
+ public function getDescription()
{
- return $this->dimensionFilters;
+ return $this->description;
}
- public function setDimensions($dimensions)
+ public function setId($id)
{
- $this->dimensions = $dimensions;
+ $this->id = $id;
}
- public function getDimensions()
+ public function getId()
{
- return $this->dimensions;
+ return $this->id;
}
public function setKind($kind)
{
@@ -16255,103 +18988,67 @@ public function getKind()
{
return $this->kind;
}
- public function setMetrics($metrics)
+ public function setLifeSpan($lifeSpan)
{
- $this->metrics = $metrics;
+ $this->lifeSpan = $lifeSpan;
}
- public function getMetrics()
+ public function getLifeSpan()
{
- return $this->metrics;
+ return $this->lifeSpan;
}
- public function setPivotedActivityMetrics($pivotedActivityMetrics)
+ public function setListPopulationRule(Google_Service_Dfareporting_ListPopulationRule $listPopulationRule)
{
- $this->pivotedActivityMetrics = $pivotedActivityMetrics;
+ $this->listPopulationRule = $listPopulationRule;
}
- public function getPivotedActivityMetrics()
+ public function getListPopulationRule()
{
- return $this->pivotedActivityMetrics;
+ return $this->listPopulationRule;
}
- public function setReachByFrequencyMetrics($reachByFrequencyMetrics)
+ public function setListSize($listSize)
{
- $this->reachByFrequencyMetrics = $reachByFrequencyMetrics;
+ $this->listSize = $listSize;
}
- public function getReachByFrequencyMetrics()
+ public function getListSize()
{
- return $this->reachByFrequencyMetrics;
+ return $this->listSize;
}
-}
-
-class Google_Service_Dfareporting_Recipient extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $deliveryType;
- public $email;
- public $kind;
-
-
- public function setDeliveryType($deliveryType)
+ public function setListSource($listSource)
{
- $this->deliveryType = $deliveryType;
+ $this->listSource = $listSource;
}
- public function getDeliveryType()
+ public function getListSource()
{
- return $this->deliveryType;
+ return $this->listSource;
}
- public function setEmail($email)
+ public function setName($name)
{
- $this->email = $email;
+ $this->name = $name;
}
- public function getEmail()
+ public function getName()
{
- return $this->email;
+ return $this->name;
}
- public function setKind($kind)
+ public function setSubaccountId($subaccountId)
{
- $this->kind = $kind;
+ $this->subaccountId = $subaccountId;
}
- public function getKind()
+ public function getSubaccountId()
{
- return $this->kind;
+ return $this->subaccountId;
}
}
-class Google_Service_Dfareporting_Region extends Google_Model
+class Google_Service_Dfareporting_RemarketingListShare extends Google_Collection
{
+ protected $collection_key = 'sharedAdvertiserIds';
protected $internal_gapi_mappings = array(
);
- public $countryCode;
- public $countryDartId;
- public $dartId;
public $kind;
- public $name;
- public $regionCode;
+ public $remarketingListId;
+ public $sharedAccountIds;
+ public $sharedAdvertiserIds;
- public function setCountryCode($countryCode)
- {
- $this->countryCode = $countryCode;
- }
- public function getCountryCode()
- {
- return $this->countryCode;
- }
- public function setCountryDartId($countryDartId)
- {
- $this->countryDartId = $countryDartId;
- }
- public function getCountryDartId()
- {
- return $this->countryDartId;
- }
- public function setDartId($dartId)
- {
- $this->dartId = $dartId;
- }
- public function getDartId()
- {
- return $this->dartId;
- }
public function setKind($kind)
{
$this->kind = $kind;
@@ -16360,32 +19057,41 @@ public function getKind()
{
return $this->kind;
}
- public function setName($name)
+ public function setRemarketingListId($remarketingListId)
{
- $this->name = $name;
+ $this->remarketingListId = $remarketingListId;
}
- public function getName()
+ public function getRemarketingListId()
{
- return $this->name;
+ return $this->remarketingListId;
}
- public function setRegionCode($regionCode)
+ public function setSharedAccountIds($sharedAccountIds)
{
- $this->regionCode = $regionCode;
+ $this->sharedAccountIds = $sharedAccountIds;
}
- public function getRegionCode()
+ public function getSharedAccountIds()
{
- return $this->regionCode;
+ return $this->sharedAccountIds;
+ }
+ public function setSharedAdvertiserIds($sharedAdvertiserIds)
+ {
+ $this->sharedAdvertiserIds = $sharedAdvertiserIds;
+ }
+ public function getSharedAdvertiserIds()
+ {
+ return $this->sharedAdvertiserIds;
}
}
-class Google_Service_Dfareporting_RegionsListResponse extends Google_Collection
+class Google_Service_Dfareporting_RemarketingListsListResponse extends Google_Collection
{
- protected $collection_key = 'regions';
+ protected $collection_key = 'remarketingLists';
protected $internal_gapi_mappings = array(
);
public $kind;
- protected $regionsType = 'Google_Service_Dfareporting_Region';
- protected $regionsDataType = 'array';
+ public $nextPageToken;
+ protected $remarketingListsType = 'Google_Service_Dfareporting_RemarketingList';
+ protected $remarketingListsDataType = 'array';
public function setKind($kind)
@@ -16396,13 +19102,21 @@ public function getKind()
{
return $this->kind;
}
- public function setRegions($regions)
+ public function setNextPageToken($nextPageToken)
{
- $this->regions = $regions;
+ $this->nextPageToken = $nextPageToken;
}
- public function getRegions()
+ public function getNextPageToken()
{
- return $this->regions;
+ return $this->nextPageToken;
+ }
+ public function setRemarketingLists($remarketingLists)
+ {
+ $this->remarketingLists = $remarketingLists;
+ }
+ public function getRemarketingLists()
+ {
+ return $this->remarketingLists;
}
}
@@ -17530,13 +20244,24 @@ class Google_Service_Dfareporting_SiteContact extends Google_Model
{
protected $internal_gapi_mappings = array(
);
+ public $address;
public $contactType;
public $email;
public $firstName;
public $id;
public $lastName;
+ public $phone;
+ public $title;
+ public function setAddress($address)
+ {
+ $this->address = $address;
+ }
+ public function getAddress()
+ {
+ return $this->address;
+ }
public function setContactType($contactType)
{
$this->contactType = $contactType;
@@ -17577,6 +20302,22 @@ public function getLastName()
{
return $this->lastName;
}
+ public function setPhone($phone)
+ {
+ $this->phone = $phone;
+ }
+ public function getPhone()
+ {
+ return $this->phone;
+ }
+ public function setTitle($title)
+ {
+ $this->title = $title;
+ }
+ public function getTitle()
+ {
+ return $this->title;
+ }
}
class Google_Service_Dfareporting_SiteSettings extends Google_Model
@@ -18037,6 +20778,160 @@ public function getTargetWindowOption()
}
}
+class Google_Service_Dfareporting_TargetableRemarketingList extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $accountId;
+ public $active;
+ public $advertiserId;
+ protected $advertiserIdDimensionValueType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $advertiserIdDimensionValueDataType = '';
+ public $description;
+ public $id;
+ public $kind;
+ public $lifeSpan;
+ public $listSize;
+ public $listSource;
+ public $name;
+ public $subaccountId;
+
+
+ public function setAccountId($accountId)
+ {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId()
+ {
+ return $this->accountId;
+ }
+ public function setActive($active)
+ {
+ $this->active = $active;
+ }
+ public function getActive()
+ {
+ return $this->active;
+ }
+ public function setAdvertiserId($advertiserId)
+ {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId()
+ {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserIdDimensionValue(Google_Service_Dfareporting_DimensionValue $advertiserIdDimensionValue)
+ {
+ $this->advertiserIdDimensionValue = $advertiserIdDimensionValue;
+ }
+ public function getAdvertiserIdDimensionValue()
+ {
+ return $this->advertiserIdDimensionValue;
+ }
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ 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 setLifeSpan($lifeSpan)
+ {
+ $this->lifeSpan = $lifeSpan;
+ }
+ public function getLifeSpan()
+ {
+ return $this->lifeSpan;
+ }
+ public function setListSize($listSize)
+ {
+ $this->listSize = $listSize;
+ }
+ public function getListSize()
+ {
+ return $this->listSize;
+ }
+ public function setListSource($listSource)
+ {
+ $this->listSource = $listSource;
+ }
+ public function getListSource()
+ {
+ return $this->listSource;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSubaccountId($subaccountId)
+ {
+ $this->subaccountId = $subaccountId;
+ }
+ public function getSubaccountId()
+ {
+ return $this->subaccountId;
+ }
+}
+
+class Google_Service_Dfareporting_TargetableRemarketingListsListResponse extends Google_Collection
+{
+ protected $collection_key = 'targetableRemarketingLists';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ public $nextPageToken;
+ protected $targetableRemarketingListsType = 'Google_Service_Dfareporting_TargetableRemarketingList';
+ protected $targetableRemarketingListsDataType = '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 setTargetableRemarketingLists($targetableRemarketingLists)
+ {
+ $this->targetableRemarketingLists = $targetableRemarketingLists;
+ }
+ public function getTargetableRemarketingLists()
+ {
+ return $this->targetableRemarketingLists;
+ }
+}
+
class Google_Service_Dfareporting_TechnologyTargeting extends Google_Collection
{
protected $collection_key = 'platformTypes';
From 8a316b7c6ed12be7b292e00e8efecb4ab40a1bd2 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $containerService = new Google_Service_Container(...);
+ * $tokens = $containerService->tokens;
+ *
+ */
+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");
+ }
+}
@@ -875,3 +944,29 @@ 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;
+ }
+}
From d2e026bd778f93a38d0bbe440c74f9fd4a018c89 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
- * $genomicsService = new Google_Service_Genomics(...);
- * $streamingVariantStore = $genomicsService->streamingVariantStore;
- *
- */
-class Google_Service_Genomics_StreamingVariantStore_Resource extends Google_Service_Resource
-{
-
- /**
- * Returns a stream of all the variants matching the search request, ordered by
- * reference name, position, and ID. (streamingVariantStore.streamvariants)
- *
- * @param Google_StreamVariantsRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Genomics_Variant
- */
- public function streamvariants(Google_Service_Genomics_StreamVariantsRequest $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('streamvariants', array($params), "Google_Service_Genomics_Variant");
- }
-}
-
/**
* The "variants" collection of methods.
* Typical usage is:
@@ -5040,60 +4998,6 @@ public function getVariants()
}
}
-class Google_Service_Genomics_StreamVariantsRequest extends Google_Collection
-{
- protected $collection_key = 'variantSetIds';
- protected $internal_gapi_mappings = array(
- );
- public $callSetIds;
- public $end;
- public $referenceName;
- public $start;
- public $variantSetIds;
-
-
- public function setCallSetIds($callSetIds)
- {
- $this->callSetIds = $callSetIds;
- }
- public function getCallSetIds()
- {
- return $this->callSetIds;
- }
- public function setEnd($end)
- {
- $this->end = $end;
- }
- public function getEnd()
- {
- return $this->end;
- }
- public function setReferenceName($referenceName)
- {
- $this->referenceName = $referenceName;
- }
- public function getReferenceName()
- {
- return $this->referenceName;
- }
- public function setStart($start)
- {
- $this->start = $start;
- }
- public function getStart()
- {
- return $this->start;
- }
- public function setVariantSetIds($variantSetIds)
- {
- $this->variantSetIds = $variantSetIds;
- }
- public function getVariantSetIds()
- {
- return $this->variantSetIds;
- }
-}
-
class Google_Service_Genomics_Transcript extends Google_Collection
{
protected $collection_key = 'exons';
From af453b5244e0ebb4d5b2c5ffaa156c7a674aa94d Mon Sep 17 00:00:00 2001
From: Silvano Luciani
* $youtubeService = new Google_Service_YouTube(...);
- * $guideCategories = $youtubeService->guideCategories;
+ * $commentThreads = $youtubeService->commentThreads;
*
*/
-class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Resource
+class Google_Service_YouTube_CommentThreads_Resource extends Google_Service_Resource
{
/**
- * Returns a list of categories that can be associated with YouTube channels.
- * (guideCategories.listGuideCategories)
+ * Creates a new comment thread and top level comment. (commentThreads.insert)
*
- * @param string $part The part parameter specifies a comma-separated list of
- * one or more guideCategory resource properties that the API response will
- * include. The part names that you can include in the parameter value are id
- * and snippet.
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
*
- * If the parameter identifies a property that contains child properties, the
- * child properties will be included in the response. For example, in a
- * guideCategory resource, the snippet property contains other properties, such
- * as the category's title. If you set part=snippet, the API response will also
- * contain all of those nested properties.
+ * The part names that you can include in the parameter value are id and
+ * snippet. However only snippet contains properties that can be set.
+ * @param Google_CommentThread $postBody
* @param array $optParams Optional parameters.
*
- * @opt_param string regionCode The regionCode parameter instructs the API to
- * return the list of guide categories available in the specified country. The
- * parameter value is an ISO 3166-1 alpha-2 country code.
- * @opt_param string id The id parameter specifies a comma-separated list of the
- * YouTube channel category ID(s) for the resource(s) that are being retrieved.
- * In a guideCategory resource, the id property specifies the YouTube channel
- * category ID.
- * @opt_param string hl The hl parameter specifies the language that will be
- * used for text values in the API response.
- * @return Google_Service_YouTube_GuideCategoryListResponse
+ * @opt_param bool shareOnGooglePlus The shareOnGooglePlus determines whether
+ * this thread should also be posted on Google+.
+ * @return Google_Service_YouTube_CommentThread
*/
- public function listGuideCategories($part, $optParams = array())
+ public function insert($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array())
{
- $params = array('part' => $part);
+ $params = array('part' => $part, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse");
+ return $this->call('insert', array($params), "Google_Service_YouTube_CommentThread");
}
-}
-
-/**
- * The "i18nLanguages" collection of methods.
- * Typical usage is:
- *
- * $youtubeService = new Google_Service_YouTube(...);
- * $i18nLanguages = $youtubeService->i18nLanguages;
- *
- */
-class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resource
-{
/**
- * Returns a list of supported languages. (i18nLanguages.listI18nLanguages)
+ * Returns a list of comment threads that match the API request parameters.
+ * (commentThreads.listCommentThreads)
*
- * @param string $part The part parameter specifies a comma-separated list of
- * one or more i18nLanguage resource properties that the API response will
- * include. The part names that you can include in the parameter value are id
- * and snippet.
+ * @param string $part The part parameter specifies the commentThread resource
+ * parts that the API response will include. Supported values are id, snippet
+ * and replies.
* @param array $optParams Optional parameters.
*
- * @opt_param string hl The hl parameter specifies the language that should be
- * used for text values in the API response.
- * @return Google_Service_YouTube_I18nLanguageListResponse
+ * @opt_param string searchTerms The searchTerms parameter instructs the API to
+ * limit the returned comments to those which contain the specified search
+ * terms.
+ *
+ * Note: This parameter is not supported for use in conjunction with the id
+ * parameter.
+ * @opt_param string allThreadsRelatedToChannelId The
+ * allThreadsRelatedToChannelId parameter instructs the API to return the
+ * comment threads of all videos of the channel and the channel comments as
+ * well.
+ * @opt_param string channelId The channelId parameter instructs the API to
+ * return the comment threads for all the channel comments (not including
+ * comments left on videos).
+ * @opt_param string videoId The videoId parameter instructs the API to return
+ * the comment threads for the video specified by the video id.
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ *
+ * Note: This parameter is not supported for use in conjunction with the id
+ * parameter.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken property identifies the next page of the result that can be
+ * retrieved.
+ *
+ * Note: This parameter is not supported for use in conjunction with the id
+ * parameter.
+ * @opt_param string moderationStatus Set this parameter to limit the returned
+ * comment threads to a particular moderation state.
+ *
+ * Note: This parameter is not supported for use in conjunction with the id
+ * parameter.
+ * @opt_param string textFormat Set this parameter's value to html or plainText
+ * to instruct the API to return the comments left by users in html formatted or
+ * in plain text.
+ * @opt_param string id The id parameter specifies a comma-separated list of
+ * comment thread IDs for the resources that should be retrieved.
+ * @return Google_Service_YouTube_CommentThreadListResponse
*/
- public function listI18nLanguages($part, $optParams = array())
+ public function listCommentThreads($part, $optParams = array())
{
$params = array('part' => $part);
$params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse");
+ return $this->call('list', array($params), "Google_Service_YouTube_CommentThreadListResponse");
+ }
+
+ /**
+ * Modifies an existing comment. (commentThreads.update)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * The part names that you can include in the parameter value are id, snippet
+ * and replies. However only snippet contains properties that can be updated.
+ * @param Google_CommentThread $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_CommentThread
+ */
+ public function update($part, Google_Service_YouTube_CommentThread $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_CommentThread");
}
}
/**
- * The "i18nRegions" collection of methods.
+ * The "comments" collection of methods.
* Typical usage is:
*
* $youtubeService = new Google_Service_YouTube(...);
- * $i18nRegions = $youtubeService->i18nRegions;
+ * $comments = $youtubeService->comments;
*
*/
-class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resource
+class Google_Service_YouTube_Comments_Resource extends Google_Service_Resource
{
/**
- * Returns a list of supported regions. (i18nRegions.listI18nRegions)
+ * Deletes a comment. (comments.delete)
*
- * @param string $part The part parameter specifies a comma-separated list of
- * one or more i18nRegion resource properties that the API response will
- * include. The part names that you can include in the parameter value are id
- * and snippet.
+ * @param string $id The id parameter specifies the comment ID for the resource
+ * that should be deleted.
* @param array $optParams Optional parameters.
- *
- * @opt_param string hl The hl parameter specifies the language that should be
- * used for text values in the API response.
- * @return Google_Service_YouTube_I18nRegionListResponse
*/
- public function listI18nRegions($part, $optParams = array())
+ public function delete($id, $optParams = array())
{
- $params = array('part' => $part);
+ $params = array('id' => $id);
$params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse");
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Creates a new comment.
+ *
+ * Note: to create a top level comment it is also necessary to create a comment
+ * thread. Both are accomplished through the commentThreads resource.
+ * (comments.insert)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * The part names that you can include in the parameter value are id and
+ * snippet. However only snippet contains properties that can be set.
+ * @param Google_Comment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_Comment
+ */
+ public function insert($part, Google_Service_YouTube_Comment $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_YouTube_Comment");
+ }
+
+ /**
+ * Returns a list of comments that match the API request parameters.
+ * (comments.listComments)
+ *
+ * @param string $part The part parameter specifies the comment resource parts
+ * that the API response will include. Supported values are id and snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maxResults parameter specifies the maximum
+ * number of items that should be returned in the result set.
+ *
+ * Note: This parameter is not supported for use in conjunction with the id
+ * parameter.
+ * @opt_param string pageToken The pageToken parameter identifies a specific
+ * page in the result set that should be returned. In an API response, the
+ * nextPageToken property identifies the next page of the result that can be
+ * retrieved.
+ *
+ * Note: This parameter is not supported for use in conjunction with the id
+ * parameter.
+ * @opt_param string parentId The parentId parameter specifies the ID of the
+ * comment for which replies should be retrieved.
+ *
+ * Note: Currently YouTube features only one level of replies (ie replies to top
+ * level comments). However replies to replies may be supported in the future.
+ * @opt_param string textFormat Set this parameter's value to html or plainText
+ * to instruct the API to return the comments left by users formatted as HTML or
+ * as plain text.
+ * @opt_param string id The id parameter specifies a comma-separated list of
+ * comment IDs for the resources that should be retrieved.
+ * @return Google_Service_YouTube_CommentListResponse
+ */
+ public function listComments($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_CommentListResponse");
+ }
+
+ /**
+ * Expresses the caller's opinion that a comment is spam. (comments.markAsSpam)
+ *
+ * @param string $id The id parameter specifies a comma-separated list of IDs of
+ * comments which should get flagged as spam.
+ * @param array $optParams Optional parameters.
+ */
+ public function markAsSpam($id, $optParams = array())
+ {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ return $this->call('markAsSpam', array($params));
+ }
+
+ /**
+ * Sets the moderation status of one or more comments.
+ * (comments.setModerationStatus)
+ *
+ * @param string $id The id parameter specifies a comma-separated list of IDs of
+ * comments whose moderation status should be updated.
+ * @param string $moderationStatus Determines the new moderation status of the
+ * specified comments.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool banAuthor The banAuthor paramter, if set to true, adds the
+ * author of the comment to the ban list. This means all future comments of the
+ * author will autmomatically be rejected.
+ *
+ * Note: This parameter is only valid in combination with moderationStatus
+ * 'rejected'.
+ */
+ public function setModerationStatus($id, $moderationStatus, $optParams = array())
+ {
+ $params = array('id' => $id, 'moderationStatus' => $moderationStatus);
+ $params = array_merge($params, $optParams);
+ return $this->call('setModerationStatus', array($params));
+ }
+
+ /**
+ * Modifies an existing comment. (comments.update)
+ *
+ * @param string $part The part parameter serves two purposes in this operation.
+ * It identifies the properties that the write operation will set as well as the
+ * properties that the API response will include.
+ *
+ * The part names that you can include in the parameter value are id and
+ * snippet. However only snippet contains properties that can be updated.
+ * @param Google_Comment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_Comment
+ */
+ public function update($part, Google_Service_YouTube_Comment $postBody, $optParams = array())
+ {
+ $params = array('part' => $part, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_YouTube_Comment");
+ }
+}
+
+/**
+ * The "guideCategories" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $guideCategories = $youtubeService->guideCategories;
+ *
+ */
+class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Returns a list of categories that can be associated with YouTube channels.
+ * (guideCategories.listGuideCategories)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more guideCategory resource properties that the API response will
+ * include. The part names that you can include in the parameter value are id
+ * and snippet.
+ *
+ * If the parameter identifies a property that contains child properties, the
+ * child properties will be included in the response. For example, in a
+ * guideCategory resource, the snippet property contains other properties, such
+ * as the category's title. If you set part=snippet, the API response will also
+ * contain all of those nested properties.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string regionCode The regionCode parameter instructs the API to
+ * return the list of guide categories available in the specified country. The
+ * parameter value is an ISO 3166-1 alpha-2 country code.
+ * @opt_param string id The id parameter specifies a comma-separated list of the
+ * YouTube channel category ID(s) for the resource(s) that are being retrieved.
+ * In a guideCategory resource, the id property specifies the YouTube channel
+ * category ID.
+ * @opt_param string hl The hl parameter specifies the language that will be
+ * used for text values in the API response.
+ * @return Google_Service_YouTube_GuideCategoryListResponse
+ */
+ public function listGuideCategories($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_GuideCategoryListResponse");
+ }
+}
+
+/**
+ * The "i18nLanguages" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $i18nLanguages = $youtubeService->i18nLanguages;
+ *
+ */
+class Google_Service_YouTube_I18nLanguages_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Returns a list of supported languages. (i18nLanguages.listI18nLanguages)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more i18nLanguage resource properties that the API response will
+ * include. The part names that you can include in the parameter value are id
+ * and snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl The hl parameter specifies the language that should be
+ * used for text values in the API response.
+ * @return Google_Service_YouTube_I18nLanguageListResponse
+ */
+ public function listI18nLanguages($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_I18nLanguageListResponse");
+ }
+}
+
+/**
+ * The "i18nRegions" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $i18nRegions = $youtubeService->i18nRegions;
+ *
+ */
+class Google_Service_YouTube_I18nRegions_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Returns a list of supported regions. (i18nRegions.listI18nRegions)
+ *
+ * @param string $part The part parameter specifies a comma-separated list of
+ * one or more i18nRegion resource properties that the API response will
+ * include. The part names that you can include in the parameter value are id
+ * and snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl The hl parameter specifies the language that should be
+ * used for text values in the API response.
+ * @return Google_Service_YouTube_I18nRegionListResponse
+ */
+ public function listI18nRegions($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_I18nRegionListResponse");
}
}
@@ -5279,6 +5718,23 @@ public function getPings()
}
}
+class Google_Service_YouTube_ChannelId extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $value;
+
+
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
class Google_Service_YouTube_ChannelListResponse extends Google_Collection
{
protected $collection_key = 'items';
@@ -5938,6 +6394,509 @@ public function getTopicIds()
}
}
+class Google_Service_YouTube_Comment extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_CommentSnippet';
+ protected $snippetDataType = '';
+
+
+ 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 setSnippet(Google_Service_YouTube_CommentSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
+
+class Google_Service_YouTube_CommentListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_Comment';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ 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;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
+
+class Google_Service_YouTube_CommentSnippet extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $authorChannelIdType = 'Google_Service_YouTube_ChannelId';
+ protected $authorChannelIdDataType = '';
+ public $authorChannelUrl;
+ public $authorDisplayName;
+ public $authorGoogleplusProfileUrl;
+ public $authorProfileImageUrl;
+ public $canRate;
+ public $channelId;
+ public $likeCount;
+ public $moderationStatus;
+ public $parentId;
+ public $publishedAt;
+ public $textDisplay;
+ public $textOriginal;
+ public $updatedAt;
+ public $videoId;
+ public $viewerRating;
+
+
+ public function setAuthorChannelId(Google_Service_YouTube_ChannelId $authorChannelId)
+ {
+ $this->authorChannelId = $authorChannelId;
+ }
+ public function getAuthorChannelId()
+ {
+ return $this->authorChannelId;
+ }
+ public function setAuthorChannelUrl($authorChannelUrl)
+ {
+ $this->authorChannelUrl = $authorChannelUrl;
+ }
+ public function getAuthorChannelUrl()
+ {
+ return $this->authorChannelUrl;
+ }
+ public function setAuthorDisplayName($authorDisplayName)
+ {
+ $this->authorDisplayName = $authorDisplayName;
+ }
+ public function getAuthorDisplayName()
+ {
+ return $this->authorDisplayName;
+ }
+ public function setAuthorGoogleplusProfileUrl($authorGoogleplusProfileUrl)
+ {
+ $this->authorGoogleplusProfileUrl = $authorGoogleplusProfileUrl;
+ }
+ public function getAuthorGoogleplusProfileUrl()
+ {
+ return $this->authorGoogleplusProfileUrl;
+ }
+ public function setAuthorProfileImageUrl($authorProfileImageUrl)
+ {
+ $this->authorProfileImageUrl = $authorProfileImageUrl;
+ }
+ public function getAuthorProfileImageUrl()
+ {
+ return $this->authorProfileImageUrl;
+ }
+ public function setCanRate($canRate)
+ {
+ $this->canRate = $canRate;
+ }
+ public function getCanRate()
+ {
+ return $this->canRate;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setLikeCount($likeCount)
+ {
+ $this->likeCount = $likeCount;
+ }
+ public function getLikeCount()
+ {
+ return $this->likeCount;
+ }
+ public function setModerationStatus($moderationStatus)
+ {
+ $this->moderationStatus = $moderationStatus;
+ }
+ public function getModerationStatus()
+ {
+ return $this->moderationStatus;
+ }
+ public function setParentId($parentId)
+ {
+ $this->parentId = $parentId;
+ }
+ public function getParentId()
+ {
+ return $this->parentId;
+ }
+ public function setPublishedAt($publishedAt)
+ {
+ $this->publishedAt = $publishedAt;
+ }
+ public function getPublishedAt()
+ {
+ return $this->publishedAt;
+ }
+ public function setTextDisplay($textDisplay)
+ {
+ $this->textDisplay = $textDisplay;
+ }
+ public function getTextDisplay()
+ {
+ return $this->textDisplay;
+ }
+ public function setTextOriginal($textOriginal)
+ {
+ $this->textOriginal = $textOriginal;
+ }
+ public function getTextOriginal()
+ {
+ return $this->textOriginal;
+ }
+ public function setUpdatedAt($updatedAt)
+ {
+ $this->updatedAt = $updatedAt;
+ }
+ public function getUpdatedAt()
+ {
+ return $this->updatedAt;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+ public function setViewerRating($viewerRating)
+ {
+ $this->viewerRating = $viewerRating;
+ }
+ public function getViewerRating()
+ {
+ return $this->viewerRating;
+ }
+}
+
+class Google_Service_YouTube_CommentThread extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ public $id;
+ public $kind;
+ protected $repliesType = 'Google_Service_YouTube_CommentThreadReplies';
+ protected $repliesDataType = '';
+ protected $snippetType = 'Google_Service_YouTube_CommentThreadSnippet';
+ protected $snippetDataType = '';
+
+
+ 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 setReplies(Google_Service_YouTube_CommentThreadReplies $replies)
+ {
+ $this->replies = $replies;
+ }
+ public function getReplies()
+ {
+ return $this->replies;
+ }
+ public function setSnippet(Google_Service_YouTube_CommentThreadSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
+
+class Google_Service_YouTube_CommentThreadListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_CommentThread';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ protected $pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $pageInfoDataType = '';
+ protected $tokenPaginationType = 'Google_Service_YouTube_TokenPagination';
+ protected $tokenPaginationDataType = '';
+ public $visitorId;
+
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ 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;
+ }
+ public function setPageInfo(Google_Service_YouTube_PageInfo $pageInfo)
+ {
+ $this->pageInfo = $pageInfo;
+ }
+ public function getPageInfo()
+ {
+ return $this->pageInfo;
+ }
+ public function setTokenPagination(Google_Service_YouTube_TokenPagination $tokenPagination)
+ {
+ $this->tokenPagination = $tokenPagination;
+ }
+ public function getTokenPagination()
+ {
+ return $this->tokenPagination;
+ }
+ public function setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
+
+class Google_Service_YouTube_CommentThreadReplies extends Google_Collection
+{
+ protected $collection_key = 'comments';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $commentsType = 'Google_Service_YouTube_Comment';
+ protected $commentsDataType = 'array';
+
+
+ public function setComments($comments)
+ {
+ $this->comments = $comments;
+ }
+ public function getComments()
+ {
+ return $this->comments;
+ }
+}
+
+class Google_Service_YouTube_CommentThreadSnippet extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $canReply;
+ public $channelId;
+ public $isPublic;
+ protected $topLevelCommentType = 'Google_Service_YouTube_Comment';
+ protected $topLevelCommentDataType = '';
+ public $totalReplyCount;
+ public $videoId;
+
+
+ public function setCanReply($canReply)
+ {
+ $this->canReply = $canReply;
+ }
+ public function getCanReply()
+ {
+ return $this->canReply;
+ }
+ public function setChannelId($channelId)
+ {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId()
+ {
+ return $this->channelId;
+ }
+ public function setIsPublic($isPublic)
+ {
+ $this->isPublic = $isPublic;
+ }
+ public function getIsPublic()
+ {
+ return $this->isPublic;
+ }
+ public function setTopLevelComment(Google_Service_YouTube_Comment $topLevelComment)
+ {
+ $this->topLevelComment = $topLevelComment;
+ }
+ public function getTopLevelComment()
+ {
+ return $this->topLevelComment;
+ }
+ public function setTotalReplyCount($totalReplyCount)
+ {
+ $this->totalReplyCount = $totalReplyCount;
+ }
+ public function getTotalReplyCount()
+ {
+ return $this->totalReplyCount;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
+
class Google_Service_YouTube_ContentRating extends Google_Collection
{
protected $collection_key = 'djctqRatingReasons';
From 9fd172612036f8282289ce0e6d3e18a4ece5dbea Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $genomicsService = new Google_Service_Genomics(...);
+ * $streamingReadstore = $genomicsService->streamingReadstore;
+ *
+ */
+class Google_Service_Genomics_StreamingReadstore_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Gets a stream of reads for one or more read group sets. Reads search operates
+ * over a genomic coordinate space of reference sequence & position defined over
+ * the reference sequences to which the requested read group sets are aligned.
+ *
+ * If a target positional range is specified, all reads whose alignment to the
+ * reference genome overlap the range are returned.
+ *
+ * All reads returned are ordered by genomic coordinate (reference sequence &
+ * position). Reads with equivalent genomic coordinates are returned in a
+ * deterministic order. (streamingReadstore.streamreads)
+ *
+ * @param Google_StreamReadsRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Genomics_StreamReadsResponse
+ */
+ public function streamreads(Google_Service_Genomics_StreamReadsRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('streamreads', array($params), "Google_Service_Genomics_StreamReadsResponse");
+ }
+}
+
/**
* The "variants" collection of methods.
* Typical usage is:
@@ -4998,6 +5048,70 @@ public function getVariants()
}
}
+class Google_Service_Genomics_StreamReadsRequest extends Google_Collection
+{
+ protected $collection_key = 'readGroupSetIds';
+ protected $internal_gapi_mappings = array(
+ );
+ public $end;
+ public $readGroupSetIds;
+ public $referenceName;
+ public $start;
+
+
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setReadGroupSetIds($readGroupSetIds)
+ {
+ $this->readGroupSetIds = $readGroupSetIds;
+ }
+ public function getReadGroupSetIds()
+ {
+ return $this->readGroupSetIds;
+ }
+ public function setReferenceName($referenceName)
+ {
+ $this->referenceName = $referenceName;
+ }
+ public function getReferenceName()
+ {
+ return $this->referenceName;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
+
+class Google_Service_Genomics_StreamReadsResponse extends Google_Collection
+{
+ protected $collection_key = 'alignments';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $alignmentsType = 'Google_Service_Genomics_Read';
+ protected $alignmentsDataType = 'array';
+
+
+ public function setAlignments($alignments)
+ {
+ $this->alignments = $alignments;
+ }
+ public function getAlignments()
+ {
+ return $this->alignments;
+ }
+}
+
class Google_Service_Genomics_Transcript extends Google_Collection
{
protected $collection_key = 'exons';
From 6c120db2b95f75dc4eae8d141407c762d698f3c0 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $youtubeService = new Google_Service_YouTube(...);
+ * $videoAbuseReportReasons = $youtubeService->videoAbuseReportReasons;
+ *
+ */
+class Google_Service_YouTube_VideoAbuseReportReasons_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Returns a list of abuse reasons that can be used for reporting abusive
+ * videos. (videoAbuseReportReasons.listVideoAbuseReportReasons)
+ *
+ * @param string $part The part parameter specifies the videoCategory resource
+ * parts that the API response will include. Supported values are id and
+ * snippet.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl The hl parameter specifies the language that should be
+ * used for text values in the API response.
+ * @return Google_Service_YouTube_VideoAbuseReportReasonListResponse
+ */
+ public function listVideoAbuseReportReasons($part, $optParams = array())
+ {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_YouTube_VideoAbuseReportReasonListResponse");
+ }
+}
+
/**
* The "videoCategories" collection of methods.
* Typical usage is:
@@ -4193,6 +4259,32 @@ public function rate($id, $rating, $optParams = array())
return $this->call('rate', array($params));
}
+ /**
+ * Report abuse for a video. (videos.reportAbuse)
+ *
+ * @param Google_VideoAbuseReport $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string onBehalfOfContentOwner Note: This parameter is intended
+ * exclusively for YouTube content partners.
+ *
+ * The onBehalfOfContentOwner parameter indicates that the request's
+ * authorization credentials identify a YouTube CMS user who is acting on behalf
+ * of the content owner specified in the parameter value. This parameter is
+ * intended for YouTube content partners that own and manage many different
+ * YouTube channels. It allows content owners to authenticate once and get
+ * access to all their video and channel data, without having to provide
+ * authentication credentials for each individual channel. The CMS account that
+ * the user authenticates with must be linked to the specified YouTube content
+ * owner.
+ */
+ public function reportAbuse(Google_Service_YouTube_VideoAbuseReport $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('reportAbuse', array($params));
+ }
+
/**
* Updates a video's metadata. (videos.update)
*
@@ -5871,6 +5963,8 @@ class Google_Service_YouTube_ChannelSection extends Google_Model
protected $localizationsDataType = 'map';
protected $snippetType = 'Google_Service_YouTube_ChannelSectionSnippet';
protected $snippetDataType = '';
+ protected $targetingType = 'Google_Service_YouTube_ChannelSectionTargeting';
+ protected $targetingDataType = '';
public function setContentDetails(Google_Service_YouTube_ChannelSectionContentDetails $contentDetails)
@@ -5921,6 +6015,14 @@ public function getSnippet()
{
return $this->snippet;
}
+ public function setTargeting(Google_Service_YouTube_ChannelSectionTargeting $targeting)
+ {
+ $this->targeting = $targeting;
+ }
+ public function getTargeting()
+ {
+ return $this->targeting;
+ }
}
class Google_Service_YouTube_ChannelSectionContentDetails extends Google_Collection
@@ -6098,6 +6200,42 @@ public function getType()
}
}
+class Google_Service_YouTube_ChannelSectionTargeting extends Google_Collection
+{
+ protected $collection_key = 'regions';
+ protected $internal_gapi_mappings = array(
+ );
+ public $countrys;
+ public $languages;
+ public $regions;
+
+
+ public function setCountrys($countrys)
+ {
+ $this->countrys = $countrys;
+ }
+ public function getCountrys()
+ {
+ return $this->countrys;
+ }
+ public function setLanguages($languages)
+ {
+ $this->languages = $languages;
+ }
+ public function getLanguages()
+ {
+ return $this->languages;
+ }
+ public function setRegions($regions)
+ {
+ $this->regions = $regions;
+ }
+ public function getRegions()
+ {
+ return $this->regions;
+ }
+}
+
class Google_Service_YouTube_ChannelSettings extends Google_Collection
{
protected $collection_key = 'featuredChannelsUrls';
@@ -10803,6 +10941,234 @@ public function getTopicDetails()
}
}
+class Google_Service_YouTube_VideoAbuseReport extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $comments;
+ protected $languageType = 'Google_Service_YouTube_LanguageTag';
+ protected $languageDataType = '';
+ protected $reasonIdType = 'Google_Service_YouTube_VideoAbuseReportReasonId';
+ protected $reasonIdDataType = '';
+ protected $secondaryReasonIdType = 'Google_Service_YouTube_VideoAbuseReportReasonId';
+ protected $secondaryReasonIdDataType = '';
+ public $videoId;
+
+
+ public function setComments($comments)
+ {
+ $this->comments = $comments;
+ }
+ public function getComments()
+ {
+ return $this->comments;
+ }
+ public function setLanguage(Google_Service_YouTube_LanguageTag $language)
+ {
+ $this->language = $language;
+ }
+ public function getLanguage()
+ {
+ return $this->language;
+ }
+ public function setReasonId(Google_Service_YouTube_VideoAbuseReportReasonId $reasonId)
+ {
+ $this->reasonId = $reasonId;
+ }
+ public function getReasonId()
+ {
+ return $this->reasonId;
+ }
+ public function setSecondaryReasonId(Google_Service_YouTube_VideoAbuseReportReasonId $secondaryReasonId)
+ {
+ $this->secondaryReasonId = $secondaryReasonId;
+ }
+ public function getSecondaryReasonId()
+ {
+ return $this->secondaryReasonId;
+ }
+ public function setVideoId($videoId)
+ {
+ $this->videoId = $videoId;
+ }
+ public function getVideoId()
+ {
+ return $this->videoId;
+ }
+}
+
+class Google_Service_YouTube_VideoAbuseReportReason extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ public $id;
+ public $kind;
+ protected $snippetType = 'Google_Service_YouTube_VideoAbuseReportReasonSnippet';
+ protected $snippetDataType = '';
+
+
+ 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 setSnippet(Google_Service_YouTube_VideoAbuseReportReasonSnippet $snippet)
+ {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet()
+ {
+ return $this->snippet;
+ }
+}
+
+class Google_Service_YouTube_VideoAbuseReportReasonId extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $value;
+
+
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
+class Google_Service_YouTube_VideoAbuseReportReasonListResponse extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $etag;
+ public $eventId;
+ protected $itemsType = 'Google_Service_YouTube_VideoAbuseReportReason';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $visitorId;
+
+
+ public function setEtag($etag)
+ {
+ $this->etag = $etag;
+ }
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+ public function setEventId($eventId)
+ {
+ $this->eventId = $eventId;
+ }
+ public function getEventId()
+ {
+ return $this->eventId;
+ }
+ 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 setVisitorId($visitorId)
+ {
+ $this->visitorId = $visitorId;
+ }
+ public function getVisitorId()
+ {
+ return $this->visitorId;
+ }
+}
+
+class Google_Service_YouTube_VideoAbuseReportReasonSnippet extends Google_Collection
+{
+ protected $collection_key = 'secondaryReasons';
+ protected $internal_gapi_mappings = array(
+ );
+ public $label;
+ protected $secondaryReasonsType = 'Google_Service_YouTube_VideoAbuseReportSecondaryReason';
+ protected $secondaryReasonsDataType = 'array';
+
+
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+ public function setSecondaryReasons($secondaryReasons)
+ {
+ $this->secondaryReasons = $secondaryReasons;
+ }
+ public function getSecondaryReasons()
+ {
+ return $this->secondaryReasons;
+ }
+}
+
+class Google_Service_YouTube_VideoAbuseReportSecondaryReason extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $idType = 'Google_Service_YouTube_VideoAbuseReportReasonId';
+ protected $idDataType = '';
+ public $label;
+
+
+ public function setId(Google_Service_YouTube_VideoAbuseReportReasonId $id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
+}
+
class Google_Service_YouTube_VideoAgeGating extends Google_Model
{
protected $internal_gapi_mappings = array(
From 13ab4fa8d3d2f2cab8e0d96085e5ec4c058966b9 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
- * $cloudsearchService = new Google_Service_Cloudsearch(...);
- * $projects = $cloudsearchService->projects;
- *
- */
-class Google_Service_Cloudsearch_Projects_Resource extends Google_Service_Resource
-{
-}
-
-/**
- * The "indexes" collection of methods.
- * Typical usage is:
- *
- * $cloudsearchService = new Google_Service_Cloudsearch(...);
- * $indexes = $cloudsearchService->indexes;
- *
- */
-class Google_Service_Cloudsearch_ProjectsIndexes_Resource extends Google_Service_Resource
-{
-
- /**
- * Lists search indexes belonging to the specified project.
- * (indexes.listProjectsIndexes)
- *
- * @param string $projectId The project from which to retrieve indexes. It
- * cannot be the empty string.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string indexNamePrefix The prefix of the index name. It is used to
- * list all indexes with names that have this prefix.
- * @opt_param int pageSize The maximum number of indexes to return per page. If
- * not specified, 100 indexes are returned per page.
- * @opt_param string pageToken A `nextPageToken` returned from previous list
- * indexes call as the starting point for this call. If not specified, list
- * indexes from the beginning.
- * @opt_param string view Specifies which parts of the IndexInfo resource is
- * returned in the response. If not specified, `ID_ONLY` is used.
- * @return Google_Service_Cloudsearch_ListIndexesResponse
- */
- public function listProjectsIndexes($projectId, $optParams = array())
- {
- $params = array('projectId' => $projectId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Cloudsearch_ListIndexesResponse");
- }
-
- /**
- * Lists the documents in the named index that match the query. (indexes.search)
- *
- * @param string $projectId The project associated with the index for searching
- * document. It cannot be the empty string.
- * @param string $indexId The index to search. It cannot be the empty string.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string query The query string in search query syntax. If the query
- * is missing or empty, all documents are returned.
- * @opt_param string fieldExpressions Customized expressions used in `orderBy`
- * or `returnFields`. The expression can contain fields in `Document`, the
- * built-in fields ( `_rank`, the document rank, and `_score` if scoring is
- * enabled) and fields defined in `fieldExpressions`. Each field expression is
- * represented in a json object with the following fields: * `name`: the name of
- * the field expression in string. * `expression`: the expression to be
- * computed. It can be a combination of supported functions encoded in string.
- * Expressions involving number fields can use the arithmetical operators (`+`,
- * `-`, `*`, `/`) and the built-in numeric functions (`max`, `min`, `pow`,
- * `count`, `log`, `abs`). Expressions involving geopoint fields can use the
- * `geopoint` and `distance` functions. Expressions for text and html fields can
- * use the `snippet` function. For example: ``` fieldExpressions={name:
- * "TotalPrice", expression: "(Price+Tax)"} ``` ``` fieldExpressions={name:
- * "snippet", expression: "snippet('good times', content)"} ``` The field
- * expression names can be used in `orderBy` and `returnFields` after they are
- * defined in `fieldExpressions`.
- * @opt_param int pageSize The maximum number of search results to return per
- * page. Searches perform best when the `pageSize` is kept as small as possible.
- * If not specified, 10 results are returned per page.
- * @opt_param string pageToken A `nextPageToken` returned from previous Search
- * call as the starting point for this call. Pagination tokens provide better
- * performance and consistency than offsets, and they cannot be used in
- * combination with offsets.
- * @opt_param int offset Offset is used to move to an arbitrary result,
- * independent of the previous results. Offsets are inefficient when compared to
- * `pageToken`. `pageToken` and `offset` cannot be both set. The default value
- * of `offset` is 0.
- * @opt_param int matchedCountAccuracy Minimum accuracy requirement for
- * `matchedCount` in search response. If specified, `matchedCount` will be
- * accurate up to at least that number. For example, when set to 100, any
- * `matchedCount <= 100` is accurate. This option may add considerable
- * latency/expense. By default (when it is not specified or set to 0), the
- * accuracy is the same as `pageSize`.
- * @opt_param string orderBy Comma-separated list of fields for sorting on the
- * search result, including fields from `Document`, the built-in fields (`_rank`
- * and `_score`), and fields defined in `fieldExpressions`. For example:
- * `orderBy="foo,bar"`. The default sorting order is ascending. To specify
- * descending order for a field, a suffix `" desc"` should be appended to the
- * field name. For example: `orderBy="foo desc,bar"`. The default value for text
- * sort is the empty string, and the default value for numeric sort is 0. If not
- * specified, the search results are automatically sorted by descending `_rank`.
- * Sorting by ascending `_rank` is not allowed.
- * @opt_param string scorer The scoring function to invoke on a search result
- * for this query. If `scorer` is not set, scoring is disabled and `_score` is 0
- * for all documents in the search result. To enable document relevancy score
- * based on term frequency, set `"scorer=generic"`.
- * @opt_param int scorerSize Maximum number of top retrieved results to score.
- * It is valid only when `scorer` is set. If not specified, 100 retrieved
- * results are scored.
- * @opt_param string returnFields List of fields to return in `SearchResult`
- * objects. It can be fields from `Document`, the built-in fields `_rank` and
- * `_score`, and fields defined in `fieldExpressions`. Use `"*"` to return all
- * fields from `Document`.
- * @return Google_Service_Cloudsearch_SearchResponse
- */
- public function search($projectId, $indexId, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'indexId' => $indexId);
- $params = array_merge($params, $optParams);
- return $this->call('search', array($params), "Google_Service_Cloudsearch_SearchResponse");
- }
-}
-
-/**
- * The "documents" collection of methods.
- * Typical usage is:
- *
- * $cloudsearchService = new Google_Service_Cloudsearch(...);
- * $documents = $cloudsearchService->documents;
- *
- */
-class Google_Service_Cloudsearch_ProjectsIndexesDocuments_Resource extends Google_Service_Resource
-{
-
- /**
- * Inserts a document for indexing or updates an indexed document. The returned
- * document contains only the ID of the new document. When `docId` is absent
- * from the document, it is provided by the server. (documents.create)
- *
- * @param string $projectId The project associated with the index for adding
- * document. It cannot be the empty string.
- * @param string $indexId The index to add document to. It cannot be the empty
- * string.
- * @param Google_Document $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Cloudsearch_Document
- */
- public function create($projectId, $indexId, Google_Service_Cloudsearch_Document $postBody, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'indexId' => $indexId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('create', array($params), "Google_Service_Cloudsearch_Document");
- }
-
- /**
- * Deletes a document from an index. (documents.delete)
- *
- * @param string $projectId The project associated with the index for deleting
- * document. It cannot be the empty string.
- * @param string $indexId The index from which to delete the document. It cannot
- * be the empty string.
- * @param string $docId The document to be deleted. It cannot be the empty
- * string.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Cloudsearch_Empty
- */
- public function delete($projectId, $indexId, $docId, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'indexId' => $indexId, 'docId' => $docId);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_Cloudsearch_Empty");
- }
-
- /**
- * Retrieves a document from an index. (documents.get)
- *
- * @param string $projectId The project associated with the index for retrieving
- * the document. It cannot be the empty string.
- * @param string $indexId The index from which to retrieve the document. It
- * cannot be the empty string.
- * @param string $docId The identifier of the document to retrieve. It cannot be
- * the empty string.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Cloudsearch_Document
- */
- public function get($projectId, $indexId, $docId, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'indexId' => $indexId, 'docId' => $docId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Cloudsearch_Document");
- }
-
- /**
- * Lists documents in the specified search index. Intended for batch processing.
- * (documents.listProjectsIndexesDocuments)
- *
- * @param string $projectId The project associated with the index for listing
- * documents. It cannot be the empty string.
- * @param string $indexId The index from which to list the documents. It cannot
- * be the empty string.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int pageSize The maximum number of documents to return per page.
- * If not specified, 100 documents are returned per page.
- * @opt_param string pageToken A `nextPageToken` returned from previous list
- * documents call as the starting point for this call. If not specified, list
- * documents from the beginning.
- * @opt_param string view Specifies which part of the document resource is
- * returned in the response. If not specified, `ID_ONLY` is used.
- * @return Google_Service_Cloudsearch_ListDocumentsResponse
- */
- public function listProjectsIndexesDocuments($projectId, $indexId, $optParams = array())
- {
- $params = array('projectId' => $projectId, 'indexId' => $indexId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Cloudsearch_ListDocumentsResponse");
- }
-}
-
-
-
-
-class Google_Service_Cloudsearch_Document extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $docId;
- protected $fieldsType = 'Google_Service_Cloudsearch_FieldValueList';
- protected $fieldsDataType = 'map';
- public $rank;
-
-
- public function setDocId($docId)
- {
- $this->docId = $docId;
- }
- public function getDocId()
- {
- return $this->docId;
- }
- public function setFields($fields)
- {
- $this->fields = $fields;
- }
- public function getFields()
- {
- return $this->fields;
- }
- public function setRank($rank)
- {
- $this->rank = $rank;
- }
- public function getRank()
- {
- return $this->rank;
- }
-}
-
-class Google_Service_Cloudsearch_DocumentFields extends Google_Model
-{
-}
-
-class Google_Service_Cloudsearch_Empty extends Google_Model
-{
-}
-
-class Google_Service_Cloudsearch_FieldNames extends Google_Collection
-{
- protected $collection_key = 'textFields';
- protected $internal_gapi_mappings = array(
- );
- public $atomFields;
- public $dateFields;
- public $geoFields;
- public $htmlFields;
- public $numberFields;
- public $textFields;
-
-
- public function setAtomFields($atomFields)
- {
- $this->atomFields = $atomFields;
- }
- public function getAtomFields()
- {
- return $this->atomFields;
- }
- public function setDateFields($dateFields)
- {
- $this->dateFields = $dateFields;
- }
- public function getDateFields()
- {
- return $this->dateFields;
- }
- public function setGeoFields($geoFields)
- {
- $this->geoFields = $geoFields;
- }
- public function getGeoFields()
- {
- return $this->geoFields;
- }
- public function setHtmlFields($htmlFields)
- {
- $this->htmlFields = $htmlFields;
- }
- public function getHtmlFields()
- {
- return $this->htmlFields;
- }
- public function setNumberFields($numberFields)
- {
- $this->numberFields = $numberFields;
- }
- public function getNumberFields()
- {
- return $this->numberFields;
- }
- public function setTextFields($textFields)
- {
- $this->textFields = $textFields;
- }
- public function getTextFields()
- {
- return $this->textFields;
- }
-}
-
-class Google_Service_Cloudsearch_FieldValue extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $geoValue;
- public $lang;
- public $numberValue;
- public $stringFormat;
- public $stringValue;
- public $timestampValue;
-
-
- public function setGeoValue($geoValue)
- {
- $this->geoValue = $geoValue;
- }
- public function getGeoValue()
- {
- return $this->geoValue;
- }
- public function setLang($lang)
- {
- $this->lang = $lang;
- }
- public function getLang()
- {
- return $this->lang;
- }
- public function setNumberValue($numberValue)
- {
- $this->numberValue = $numberValue;
- }
- public function getNumberValue()
- {
- return $this->numberValue;
- }
- public function setStringFormat($stringFormat)
- {
- $this->stringFormat = $stringFormat;
- }
- public function getStringFormat()
- {
- return $this->stringFormat;
- }
- public function setStringValue($stringValue)
- {
- $this->stringValue = $stringValue;
- }
- public function getStringValue()
- {
- return $this->stringValue;
- }
- public function setTimestampValue($timestampValue)
- {
- $this->timestampValue = $timestampValue;
- }
- public function getTimestampValue()
- {
- return $this->timestampValue;
- }
-}
-
-class Google_Service_Cloudsearch_FieldValueList extends Google_Collection
-{
- protected $collection_key = 'values';
- protected $internal_gapi_mappings = array(
- );
- protected $valuesType = 'Google_Service_Cloudsearch_FieldValue';
- protected $valuesDataType = 'array';
-
-
- public function setValues($values)
- {
- $this->values = $values;
- }
- public function getValues()
- {
- return $this->values;
}
}
-class Google_Service_Cloudsearch_IndexInfo extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $indexId;
- protected $indexedFieldType = 'Google_Service_Cloudsearch_FieldNames';
- protected $indexedFieldDataType = '';
- public $projectId;
-
-
- public function setIndexId($indexId)
- {
- $this->indexId = $indexId;
- }
- public function getIndexId()
- {
- return $this->indexId;
- }
- public function setIndexedField(Google_Service_Cloudsearch_FieldNames $indexedField)
- {
- $this->indexedField = $indexedField;
- }
- public function getIndexedField()
- {
- return $this->indexedField;
- }
- public function setProjectId($projectId)
- {
- $this->projectId = $projectId;
- }
- public function getProjectId()
- {
- return $this->projectId;
- }
-}
-class Google_Service_Cloudsearch_ListDocumentsResponse extends Google_Collection
-{
- protected $collection_key = 'documents';
- protected $internal_gapi_mappings = array(
- );
- protected $documentsType = 'Google_Service_Cloudsearch_Document';
- protected $documentsDataType = 'array';
- public $nextPageToken;
- public function setDocuments($documents)
- {
- $this->documents = $documents;
- }
- public function getDocuments()
- {
- return $this->documents;
- }
- public function setNextPageToken($nextPageToken)
- {
- $this->nextPageToken = $nextPageToken;
- }
- public function getNextPageToken()
- {
- return $this->nextPageToken;
- }
-}
-
-class Google_Service_Cloudsearch_ListIndexesResponse extends Google_Collection
-{
- protected $collection_key = 'indexes';
- protected $internal_gapi_mappings = array(
- );
- protected $indexesType = 'Google_Service_Cloudsearch_IndexInfo';
- protected $indexesDataType = 'array';
- public $nextPageToken;
-
-
- public function setIndexes($indexes)
- {
- $this->indexes = $indexes;
- }
- public function getIndexes()
- {
- return $this->indexes;
- }
- public function setNextPageToken($nextPageToken)
- {
- $this->nextPageToken = $nextPageToken;
- }
- public function getNextPageToken()
- {
- return $this->nextPageToken;
- }
-}
-
-class Google_Service_Cloudsearch_SearchResponse extends Google_Collection
-{
- protected $collection_key = 'results';
- protected $internal_gapi_mappings = array(
- );
- public $matchedCount;
- protected $resultsType = 'Google_Service_Cloudsearch_SearchResult';
- protected $resultsDataType = 'array';
-
-
- public function setMatchedCount($matchedCount)
- {
- $this->matchedCount = $matchedCount;
- }
- public function getMatchedCount()
- {
- return $this->matchedCount;
- }
- public function setResults($results)
- {
- $this->results = $results;
- }
- public function getResults()
- {
- return $this->results;
- }
-}
-
-class Google_Service_Cloudsearch_SearchResult extends Google_Model
-{
- protected $internal_gapi_mappings = array(
- );
- public $docId;
- protected $fieldsType = 'Google_Service_Cloudsearch_FieldValueList';
- protected $fieldsDataType = 'map';
- public $nextPageToken;
-
-
- public function setDocId($docId)
- {
- $this->docId = $docId;
- }
- public function getDocId()
- {
- return $this->docId;
- }
- public function setFields($fields)
- {
- $this->fields = $fields;
- }
- public function getFields()
- {
- return $this->fields;
- }
- public function setNextPageToken($nextPageToken)
- {
- $this->nextPageToken = $nextPageToken;
- }
- public function getNextPageToken()
- {
- return $this->nextPageToken;
- }
-}
-
-class Google_Service_Cloudsearch_SearchResultFields extends Google_Model
-{
-}
From 14077a8a9ff0c93c52d59960b0426343904b4027 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $projects = $dataflowService->projects;
+ *
+ */
+class Google_Service_Dataflow_Projects_Resource extends Google_Service_Resource
+{
+}
+
+/**
+ * The "jobs" collection of methods.
+ * Typical usage is:
+ *
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $jobs = $dataflowService->jobs;
+ *
+ */
+class Google_Service_Dataflow_ProjectsJobs_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Creates a dataflow job. (jobs.create)
+ *
+ * @param string $projectId
+ * @param Google_Job $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string view
+ * @return Google_Service_Dataflow_Job
+ */
+ public function create($projectId, Google_Service_Dataflow_Job $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Dataflow_Job");
+ }
+
+ /**
+ * Gets the state of the specified dataflow job. (jobs.get)
+ *
+ * @param string $projectId
+ * @param string $jobId
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string view
+ * @return Google_Service_Dataflow_Job
+ */
+ public function get($projectId, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Dataflow_Job");
+ }
+
+ /**
+ * Request the job status. (jobs.getMetrics)
+ *
+ * @param string $projectId
+ * @param string $jobId
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string startTime
+ * @return Google_Service_Dataflow_JobMetrics
+ */
+ public function getMetrics($projectId, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('getMetrics', array($params), "Google_Service_Dataflow_JobMetrics");
+ }
+
+ /**
+ * List the jobs of a project (jobs.listProjectsJobs)
+ *
+ * @param string $projectId
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken
+ * @opt_param string view
+ * @opt_param int pageSize
+ * @return Google_Service_Dataflow_ListJobsResponse
+ */
+ public function listProjectsJobs($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dataflow_ListJobsResponse");
+ }
+
+ /**
+ * Updates the state of an existing dataflow job. This method supports patch
+ * semantics. (jobs.patch)
+ *
+ * @param string $projectId
+ * @param string $jobId
+ * @param Google_Job $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_Job
+ */
+ public function patch($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_Dataflow_Job");
+ }
+
+ /**
+ * Updates the state of an existing dataflow job. (jobs.update)
+ *
+ * @param string $projectId
+ * @param string $jobId
+ * @param Google_Job $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_Job
+ */
+ public function update($projectId, $jobId, Google_Service_Dataflow_Job $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Dataflow_Job");
+ }
+}
+
+/**
+ * The "messages" collection of methods.
+ * Typical usage is:
+ *
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $messages = $dataflowService->messages;
+ *
+ */
+class Google_Service_Dataflow_ProjectsJobsMessages_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Request the job status. (messages.listProjectsJobsMessages)
+ *
+ * @param string $projectId
+ * @param string $jobId
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int pageSize
+ * @opt_param string pageToken
+ * @opt_param string startTime
+ * @opt_param string endTime
+ * @opt_param string minimumImportance
+ * @return Google_Service_Dataflow_ListJobMessagesResponse
+ */
+ public function listProjectsJobsMessages($projectId, $jobId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Dataflow_ListJobMessagesResponse");
+ }
+}
+/**
+ * The "workItems" collection of methods.
+ * Typical usage is:
+ *
+ * $dataflowService = new Google_Service_Dataflow(...);
+ * $workItems = $dataflowService->workItems;
+ *
+ */
+class Google_Service_Dataflow_ProjectsJobsWorkItems_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Leases a dataflow WorkItem to run. (workItems.lease)
+ *
+ * @param string $projectId
+ * @param string $jobId
+ * @param Google_LeaseWorkItemRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_LeaseWorkItemResponse
+ */
+ public function lease($projectId, $jobId, Google_Service_Dataflow_LeaseWorkItemRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('lease', array($params), "Google_Service_Dataflow_LeaseWorkItemResponse");
+ }
+
+ /**
+ * Reports the status of dataflow WorkItems leased by a worker.
+ * (workItems.reportStatus)
+ *
+ * @param string $projectId
+ * @param string $jobId
+ * @param Google_ReportWorkItemStatusRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dataflow_ReportWorkItemStatusResponse
+ */
+ public function reportStatus($projectId, $jobId, Google_Service_Dataflow_ReportWorkItemStatusRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('reportStatus', array($params), "Google_Service_Dataflow_ReportWorkItemStatusResponse");
+ }
+}
+
+
+
+
+class Google_Service_Dataflow_ApproximateProgress extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $percentComplete;
+ protected $positionType = 'Google_Service_Dataflow_Position';
+ protected $positionDataType = '';
+ public $remainingTime;
+
+
+ public function setPercentComplete($percentComplete)
+ {
+ $this->percentComplete = $percentComplete;
+ }
+ public function getPercentComplete()
+ {
+ return $this->percentComplete;
+ }
+ public function setPosition(Google_Service_Dataflow_Position $position)
+ {
+ $this->position = $position;
+ }
+ public function getPosition()
+ {
+ return $this->position;
+ }
+ public function setRemainingTime($remainingTime)
+ {
+ $this->remainingTime = $remainingTime;
+ }
+ public function getRemainingTime()
+ {
+ return $this->remainingTime;
+ }
+}
+
+class Google_Service_Dataflow_AutoscalingSettings extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $algorithm;
+ public $maxNumWorkers;
+
+
+ public function setAlgorithm($algorithm)
+ {
+ $this->algorithm = $algorithm;
+ }
+ public function getAlgorithm()
+ {
+ return $this->algorithm;
+ }
+ public function setMaxNumWorkers($maxNumWorkers)
+ {
+ $this->maxNumWorkers = $maxNumWorkers;
+ }
+ public function getMaxNumWorkers()
+ {
+ return $this->maxNumWorkers;
+ }
+}
+
+class Google_Service_Dataflow_ComputationTopology extends Google_Collection
+{
+ protected $collection_key = 'outputs';
+ protected $internal_gapi_mappings = array(
+ );
+ public $computationId;
+ protected $inputsType = 'Google_Service_Dataflow_StreamLocation';
+ protected $inputsDataType = 'array';
+ protected $keyRangesType = 'Google_Service_Dataflow_KeyRangeLocation';
+ protected $keyRangesDataType = 'array';
+ protected $outputsType = 'Google_Service_Dataflow_StreamLocation';
+ protected $outputsDataType = 'array';
+
+
+ public function setComputationId($computationId)
+ {
+ $this->computationId = $computationId;
+ }
+ public function getComputationId()
+ {
+ return $this->computationId;
+ }
+ public function setInputs($inputs)
+ {
+ $this->inputs = $inputs;
+ }
+ public function getInputs()
+ {
+ return $this->inputs;
+ }
+ public function setKeyRanges($keyRanges)
+ {
+ $this->keyRanges = $keyRanges;
+ }
+ public function getKeyRanges()
+ {
+ return $this->keyRanges;
+ }
+ public function setOutputs($outputs)
+ {
+ $this->outputs = $outputs;
+ }
+ public function getOutputs()
+ {
+ return $this->outputs;
+ }
+}
+
+class Google_Service_Dataflow_DataDiskAssignment extends Google_Collection
+{
+ protected $collection_key = 'dataDisks';
+ protected $internal_gapi_mappings = array(
+ );
+ public $dataDisks;
+ public $vmInstance;
+
+
+ public function setDataDisks($dataDisks)
+ {
+ $this->dataDisks = $dataDisks;
+ }
+ public function getDataDisks()
+ {
+ return $this->dataDisks;
+ }
+ public function setVmInstance($vmInstance)
+ {
+ $this->vmInstance = $vmInstance;
+ }
+ public function getVmInstance()
+ {
+ return $this->vmInstance;
+ }
+}
+
+class Google_Service_Dataflow_DerivedSource extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $derivationMode;
+ protected $sourceType = 'Google_Service_Dataflow_Source';
+ protected $sourceDataType = '';
+
+
+ public function setDerivationMode($derivationMode)
+ {
+ $this->derivationMode = $derivationMode;
+ }
+ public function getDerivationMode()
+ {
+ return $this->derivationMode;
+ }
+ public function setSource(Google_Service_Dataflow_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
+
+class Google_Service_Dataflow_Disk extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $diskType;
+ public $mountPoint;
+ public $sizeGb;
+
+
+ public function setDiskType($diskType)
+ {
+ $this->diskType = $diskType;
+ }
+ public function getDiskType()
+ {
+ return $this->diskType;
+ }
+ public function setMountPoint($mountPoint)
+ {
+ $this->mountPoint = $mountPoint;
+ }
+ public function getMountPoint()
+ {
+ return $this->mountPoint;
+ }
+ public function setSizeGb($sizeGb)
+ {
+ $this->sizeGb = $sizeGb;
+ }
+ public function getSizeGb()
+ {
+ return $this->sizeGb;
+ }
+}
+
+class Google_Service_Dataflow_DynamicSourceSplit extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $primaryType = 'Google_Service_Dataflow_DerivedSource';
+ protected $primaryDataType = '';
+ protected $residualType = 'Google_Service_Dataflow_DerivedSource';
+ protected $residualDataType = '';
+
+
+ public function setPrimary(Google_Service_Dataflow_DerivedSource $primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setResidual(Google_Service_Dataflow_DerivedSource $residual)
+ {
+ $this->residual = $residual;
+ }
+ public function getResidual()
+ {
+ return $this->residual;
+ }
+}
+
+class Google_Service_Dataflow_Environment extends Google_Collection
+{
+ protected $collection_key = 'workerPools';
+ protected $internal_gapi_mappings = array(
+ );
+ public $clusterManagerApiService;
+ public $dataset;
+ public $experiments;
+ public $sdkPipelineOptions;
+ public $tempStoragePrefix;
+ public $userAgent;
+ public $version;
+ protected $workerPoolsType = 'Google_Service_Dataflow_WorkerPool';
+ protected $workerPoolsDataType = 'array';
+
+
+ public function setClusterManagerApiService($clusterManagerApiService)
+ {
+ $this->clusterManagerApiService = $clusterManagerApiService;
+ }
+ public function getClusterManagerApiService()
+ {
+ return $this->clusterManagerApiService;
+ }
+ public function setDataset($dataset)
+ {
+ $this->dataset = $dataset;
+ }
+ public function getDataset()
+ {
+ return $this->dataset;
+ }
+ public function setExperiments($experiments)
+ {
+ $this->experiments = $experiments;
+ }
+ public function getExperiments()
+ {
+ return $this->experiments;
+ }
+ public function setSdkPipelineOptions($sdkPipelineOptions)
+ {
+ $this->sdkPipelineOptions = $sdkPipelineOptions;
+ }
+ public function getSdkPipelineOptions()
+ {
+ return $this->sdkPipelineOptions;
+ }
+ public function setTempStoragePrefix($tempStoragePrefix)
+ {
+ $this->tempStoragePrefix = $tempStoragePrefix;
+ }
+ public function getTempStoragePrefix()
+ {
+ return $this->tempStoragePrefix;
+ }
+ public function setUserAgent($userAgent)
+ {
+ $this->userAgent = $userAgent;
+ }
+ public function getUserAgent()
+ {
+ return $this->userAgent;
+ }
+ public function setVersion($version)
+ {
+ $this->version = $version;
+ }
+ public function getVersion()
+ {
+ return $this->version;
+ }
+ public function setWorkerPools($workerPools)
+ {
+ $this->workerPools = $workerPools;
+ }
+ public function getWorkerPools()
+ {
+ return $this->workerPools;
+ }
+}
+
+class Google_Service_Dataflow_EnvironmentSdkPipelineOptions extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_EnvironmentUserAgent extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_EnvironmentVersion extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_FlattenInstruction extends Google_Collection
+{
+ protected $collection_key = 'inputs';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $inputsType = 'Google_Service_Dataflow_InstructionInput';
+ protected $inputsDataType = 'array';
+
+
+ public function setInputs($inputs)
+ {
+ $this->inputs = $inputs;
+ }
+ public function getInputs()
+ {
+ return $this->inputs;
}
}
+class Google_Service_Dataflow_InstructionInput extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $outputNum;
+ public $producerInstructionIndex;
+ public function setOutputNum($outputNum)
+ {
+ $this->outputNum = $outputNum;
+ }
+ public function getOutputNum()
+ {
+ return $this->outputNum;
+ }
+ public function setProducerInstructionIndex($producerInstructionIndex)
+ {
+ $this->producerInstructionIndex = $producerInstructionIndex;
+ }
+ public function getProducerInstructionIndex()
+ {
+ return $this->producerInstructionIndex;
+ }
+}
+class Google_Service_Dataflow_InstructionOutput extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $codec;
+ public $name;
+
+
+ public function setCodec($codec)
+ {
+ $this->codec = $codec;
+ }
+ public function getCodec()
+ {
+ return $this->codec;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
+
+class Google_Service_Dataflow_InstructionOutputCodec extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_Job extends Google_Collection
+{
+ protected $collection_key = 'steps';
+ protected $internal_gapi_mappings = array(
+ );
+ public $createTime;
+ public $currentState;
+ public $currentStateTime;
+ protected $environmentType = 'Google_Service_Dataflow_Environment';
+ protected $environmentDataType = '';
+ protected $executionInfoType = 'Google_Service_Dataflow_JobExecutionInfo';
+ protected $executionInfoDataType = '';
+ public $id;
+ public $name;
+ public $projectId;
+ public $requestedState;
+ protected $stepsType = 'Google_Service_Dataflow_Step';
+ protected $stepsDataType = 'array';
+ public $type;
+
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setCurrentState($currentState)
+ {
+ $this->currentState = $currentState;
+ }
+ public function getCurrentState()
+ {
+ return $this->currentState;
+ }
+ public function setCurrentStateTime($currentStateTime)
+ {
+ $this->currentStateTime = $currentStateTime;
+ }
+ public function getCurrentStateTime()
+ {
+ return $this->currentStateTime;
+ }
+ public function setEnvironment(Google_Service_Dataflow_Environment $environment)
+ {
+ $this->environment = $environment;
+ }
+ public function getEnvironment()
+ {
+ return $this->environment;
+ }
+ public function setExecutionInfo(Google_Service_Dataflow_JobExecutionInfo $executionInfo)
+ {
+ $this->executionInfo = $executionInfo;
+ }
+ public function getExecutionInfo()
+ {
+ return $this->executionInfo;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setRequestedState($requestedState)
+ {
+ $this->requestedState = $requestedState;
+ }
+ public function getRequestedState()
+ {
+ return $this->requestedState;
+ }
+ public function setSteps($steps)
+ {
+ $this->steps = $steps;
+ }
+ public function getSteps()
+ {
+ return $this->steps;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
+
+class Google_Service_Dataflow_JobExecutionInfo extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $stagesType = 'Google_Service_Dataflow_JobExecutionStageInfo';
+ protected $stagesDataType = 'map';
+
+
+ public function setStages($stages)
+ {
+ $this->stages = $stages;
+ }
+ public function getStages()
+ {
+ return $this->stages;
+ }
+}
+
+class Google_Service_Dataflow_JobExecutionInfoStages extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_JobExecutionStageInfo extends Google_Collection
+{
+ protected $collection_key = 'stepName';
+ protected $internal_gapi_mappings = array(
+ );
+ public $stepName;
+
+
+ public function setStepName($stepName)
+ {
+ $this->stepName = $stepName;
+ }
+ public function getStepName()
+ {
+ return $this->stepName;
+ }
+}
+
+class Google_Service_Dataflow_JobMessage extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ public $messageImportance;
+ public $messageText;
+ public $time;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setMessageImportance($messageImportance)
+ {
+ $this->messageImportance = $messageImportance;
+ }
+ public function getMessageImportance()
+ {
+ return $this->messageImportance;
+ }
+ public function setMessageText($messageText)
+ {
+ $this->messageText = $messageText;
+ }
+ public function getMessageText()
+ {
+ return $this->messageText;
+ }
+ public function setTime($time)
+ {
+ $this->time = $time;
+ }
+ public function getTime()
+ {
+ return $this->time;
+ }
+}
+
+class Google_Service_Dataflow_JobMetrics extends Google_Collection
+{
+ protected $collection_key = 'metrics';
+ protected $internal_gapi_mappings = array(
+ );
+ public $metricTime;
+ protected $metricsType = 'Google_Service_Dataflow_MetricUpdate';
+ protected $metricsDataType = 'array';
+
+
+ public function setMetricTime($metricTime)
+ {
+ $this->metricTime = $metricTime;
+ }
+ public function getMetricTime()
+ {
+ return $this->metricTime;
+ }
+ public function setMetrics($metrics)
+ {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics()
+ {
+ return $this->metrics;
+ }
+}
+
+class Google_Service_Dataflow_KeyRangeDataDiskAssignment extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $dataDisk;
+ public $end;
+ public $start;
+
+
+ public function setDataDisk($dataDisk)
+ {
+ $this->dataDisk = $dataDisk;
+ }
+ public function getDataDisk()
+ {
+ return $this->dataDisk;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
+
+class Google_Service_Dataflow_KeyRangeLocation extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $dataDisk;
+ public $deliveryEndpoint;
+ public $end;
+ public $persistentDirectory;
+ public $start;
+
+
+ public function setDataDisk($dataDisk)
+ {
+ $this->dataDisk = $dataDisk;
+ }
+ public function getDataDisk()
+ {
+ return $this->dataDisk;
+ }
+ public function setDeliveryEndpoint($deliveryEndpoint)
+ {
+ $this->deliveryEndpoint = $deliveryEndpoint;
+ }
+ public function getDeliveryEndpoint()
+ {
+ return $this->deliveryEndpoint;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setPersistentDirectory($persistentDirectory)
+ {
+ $this->persistentDirectory = $persistentDirectory;
+ }
+ public function getPersistentDirectory()
+ {
+ return $this->persistentDirectory;
+ }
+ public function setStart($start)
+ {
+ $this->start = $start;
+ }
+ public function getStart()
+ {
+ return $this->start;
+ }
+}
+
+class Google_Service_Dataflow_LeaseWorkItemRequest extends Google_Collection
+{
+ protected $collection_key = 'workerCapabilities';
+ protected $internal_gapi_mappings = array(
+ );
+ public $currentWorkerTime;
+ public $requestedLeaseDuration;
+ public $workItemTypes;
+ public $workerCapabilities;
+ public $workerId;
+
+
+ public function setCurrentWorkerTime($currentWorkerTime)
+ {
+ $this->currentWorkerTime = $currentWorkerTime;
+ }
+ public function getCurrentWorkerTime()
+ {
+ return $this->currentWorkerTime;
+ }
+ public function setRequestedLeaseDuration($requestedLeaseDuration)
+ {
+ $this->requestedLeaseDuration = $requestedLeaseDuration;
+ }
+ public function getRequestedLeaseDuration()
+ {
+ return $this->requestedLeaseDuration;
+ }
+ public function setWorkItemTypes($workItemTypes)
+ {
+ $this->workItemTypes = $workItemTypes;
+ }
+ public function getWorkItemTypes()
+ {
+ return $this->workItemTypes;
+ }
+ public function setWorkerCapabilities($workerCapabilities)
+ {
+ $this->workerCapabilities = $workerCapabilities;
+ }
+ public function getWorkerCapabilities()
+ {
+ return $this->workerCapabilities;
+ }
+ public function setWorkerId($workerId)
+ {
+ $this->workerId = $workerId;
+ }
+ public function getWorkerId()
+ {
+ return $this->workerId;
+ }
+}
+
+class Google_Service_Dataflow_LeaseWorkItemResponse extends Google_Collection
+{
+ protected $collection_key = 'workItems';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $workItemsType = 'Google_Service_Dataflow_WorkItem';
+ protected $workItemsDataType = 'array';
+
+
+ public function setWorkItems($workItems)
+ {
+ $this->workItems = $workItems;
+ }
+ public function getWorkItems()
+ {
+ return $this->workItems;
+ }
+}
+
+class Google_Service_Dataflow_ListJobMessagesResponse extends Google_Collection
+{
+ protected $collection_key = 'jobMessages';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $jobMessagesType = 'Google_Service_Dataflow_JobMessage';
+ protected $jobMessagesDataType = 'array';
+ public $nextPageToken;
+
+
+ public function setJobMessages($jobMessages)
+ {
+ $this->jobMessages = $jobMessages;
+ }
+ public function getJobMessages()
+ {
+ return $this->jobMessages;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Dataflow_ListJobsResponse extends Google_Collection
+{
+ protected $collection_key = 'jobs';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $jobsType = 'Google_Service_Dataflow_Job';
+ protected $jobsDataType = 'array';
+ public $nextPageToken;
+
+
+ public function setJobs($jobs)
+ {
+ $this->jobs = $jobs;
+ }
+ public function getJobs()
+ {
+ return $this->jobs;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Dataflow_MapTask extends Google_Collection
+{
+ protected $collection_key = 'instructions';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $instructionsType = 'Google_Service_Dataflow_ParallelInstruction';
+ protected $instructionsDataType = 'array';
+ public $stageName;
+ public $systemName;
+
+
+ public function setInstructions($instructions)
+ {
+ $this->instructions = $instructions;
+ }
+ public function getInstructions()
+ {
+ return $this->instructions;
+ }
+ public function setStageName($stageName)
+ {
+ $this->stageName = $stageName;
+ }
+ public function getStageName()
+ {
+ return $this->stageName;
+ }
+ public function setSystemName($systemName)
+ {
+ $this->systemName = $systemName;
+ }
+ public function getSystemName()
+ {
+ return $this->systemName;
+ }
+}
+
+class Google_Service_Dataflow_MetricStructuredName extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $context;
+ public $name;
+ public $origin;
+
+
+ public function setContext($context)
+ {
+ $this->context = $context;
+ }
+ public function getContext()
+ {
+ return $this->context;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOrigin($origin)
+ {
+ $this->origin = $origin;
+ }
+ public function getOrigin()
+ {
+ return $this->origin;
+ }
+}
+
+class Google_Service_Dataflow_MetricStructuredNameContext extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_MetricUpdate extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $cumulative;
+ public $internal;
+ public $kind;
+ public $meanCount;
+ public $meanSum;
+ protected $nameType = 'Google_Service_Dataflow_MetricStructuredName';
+ protected $nameDataType = '';
+ public $scalar;
+ public $set;
+ public $updateTime;
+
+
+ public function setCumulative($cumulative)
+ {
+ $this->cumulative = $cumulative;
+ }
+ public function getCumulative()
+ {
+ return $this->cumulative;
+ }
+ public function setInternal($internal)
+ {
+ $this->internal = $internal;
+ }
+ public function getInternal()
+ {
+ return $this->internal;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMeanCount($meanCount)
+ {
+ $this->meanCount = $meanCount;
+ }
+ public function getMeanCount()
+ {
+ return $this->meanCount;
+ }
+ public function setMeanSum($meanSum)
+ {
+ $this->meanSum = $meanSum;
+ }
+ public function getMeanSum()
+ {
+ return $this->meanSum;
+ }
+ public function setName(Google_Service_Dataflow_MetricStructuredName $name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setScalar($scalar)
+ {
+ $this->scalar = $scalar;
+ }
+ public function getScalar()
+ {
+ return $this->scalar;
+ }
+ public function setSet($set)
+ {
+ $this->set = $set;
+ }
+ public function getSet()
+ {
+ return $this->set;
+ }
+ public function setUpdateTime($updateTime)
+ {
+ $this->updateTime = $updateTime;
+ }
+ public function getUpdateTime()
+ {
+ return $this->updateTime;
+ }
+}
+
+class Google_Service_Dataflow_MountedDataDisk extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $dataDisk;
+
+
+ public function setDataDisk($dataDisk)
+ {
+ $this->dataDisk = $dataDisk;
+ }
+ public function getDataDisk()
+ {
+ return $this->dataDisk;
+ }
+}
+
+class Google_Service_Dataflow_MultiOutputInfo extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $tag;
+
+
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
+
+class Google_Service_Dataflow_Package extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $location;
+ public $name;
+
+
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
+
+class Google_Service_Dataflow_ParDoInstruction extends Google_Collection
+{
+ protected $collection_key = 'sideInputs';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $inputType = 'Google_Service_Dataflow_InstructionInput';
+ protected $inputDataType = '';
+ protected $multiOutputInfosType = 'Google_Service_Dataflow_MultiOutputInfo';
+ protected $multiOutputInfosDataType = 'array';
+ public $numOutputs;
+ protected $sideInputsType = 'Google_Service_Dataflow_SideInputInfo';
+ protected $sideInputsDataType = 'array';
+ public $userFn;
+
+
+ public function setInput(Google_Service_Dataflow_InstructionInput $input)
+ {
+ $this->input = $input;
+ }
+ public function getInput()
+ {
+ return $this->input;
+ }
+ public function setMultiOutputInfos($multiOutputInfos)
+ {
+ $this->multiOutputInfos = $multiOutputInfos;
+ }
+ public function getMultiOutputInfos()
+ {
+ return $this->multiOutputInfos;
+ }
+ public function setNumOutputs($numOutputs)
+ {
+ $this->numOutputs = $numOutputs;
+ }
+ public function getNumOutputs()
+ {
+ return $this->numOutputs;
+ }
+ public function setSideInputs($sideInputs)
+ {
+ $this->sideInputs = $sideInputs;
+ }
+ public function getSideInputs()
+ {
+ return $this->sideInputs;
+ }
+ public function setUserFn($userFn)
+ {
+ $this->userFn = $userFn;
+ }
+ public function getUserFn()
+ {
+ return $this->userFn;
+ }
+}
+
+class Google_Service_Dataflow_ParDoInstructionUserFn extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_ParallelInstruction extends Google_Collection
+{
+ protected $collection_key = 'outputs';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $flattenType = 'Google_Service_Dataflow_FlattenInstruction';
+ protected $flattenDataType = '';
+ public $name;
+ protected $outputsType = 'Google_Service_Dataflow_InstructionOutput';
+ protected $outputsDataType = 'array';
+ protected $parDoType = 'Google_Service_Dataflow_ParDoInstruction';
+ protected $parDoDataType = '';
+ protected $partialGroupByKeyType = 'Google_Service_Dataflow_PartialGroupByKeyInstruction';
+ protected $partialGroupByKeyDataType = '';
+ protected $readType = 'Google_Service_Dataflow_ReadInstruction';
+ protected $readDataType = '';
+ public $systemName;
+ protected $writeType = 'Google_Service_Dataflow_WriteInstruction';
+ protected $writeDataType = '';
+
+
+ public function setFlatten(Google_Service_Dataflow_FlattenInstruction $flatten)
+ {
+ $this->flatten = $flatten;
+ }
+ public function getFlatten()
+ {
+ return $this->flatten;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOutputs($outputs)
+ {
+ $this->outputs = $outputs;
+ }
+ public function getOutputs()
+ {
+ return $this->outputs;
+ }
+ public function setParDo(Google_Service_Dataflow_ParDoInstruction $parDo)
+ {
+ $this->parDo = $parDo;
+ }
+ public function getParDo()
+ {
+ return $this->parDo;
+ }
+ public function setPartialGroupByKey(Google_Service_Dataflow_PartialGroupByKeyInstruction $partialGroupByKey)
+ {
+ $this->partialGroupByKey = $partialGroupByKey;
+ }
+ public function getPartialGroupByKey()
+ {
+ return $this->partialGroupByKey;
+ }
+ public function setRead(Google_Service_Dataflow_ReadInstruction $read)
+ {
+ $this->read = $read;
+ }
+ public function getRead()
+ {
+ return $this->read;
+ }
+ public function setSystemName($systemName)
+ {
+ $this->systemName = $systemName;
+ }
+ public function getSystemName()
+ {
+ return $this->systemName;
+ }
+ public function setWrite(Google_Service_Dataflow_WriteInstruction $write)
+ {
+ $this->write = $write;
+ }
+ public function getWrite()
+ {
+ return $this->write;
+ }
+}
+
+class Google_Service_Dataflow_PartialGroupByKeyInstruction extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $inputType = 'Google_Service_Dataflow_InstructionInput';
+ protected $inputDataType = '';
+ public $inputElementCodec;
+ public $valueCombiningFn;
+
+
+ public function setInput(Google_Service_Dataflow_InstructionInput $input)
+ {
+ $this->input = $input;
+ }
+ public function getInput()
+ {
+ return $this->input;
+ }
+ public function setInputElementCodec($inputElementCodec)
+ {
+ $this->inputElementCodec = $inputElementCodec;
+ }
+ public function getInputElementCodec()
+ {
+ return $this->inputElementCodec;
+ }
+ public function setValueCombiningFn($valueCombiningFn)
+ {
+ $this->valueCombiningFn = $valueCombiningFn;
+ }
+ public function getValueCombiningFn()
+ {
+ return $this->valueCombiningFn;
+ }
+}
+
+class Google_Service_Dataflow_PartialGroupByKeyInstructionInputElementCodec extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_PartialGroupByKeyInstructionValueCombiningFn extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_Position extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $byteOffset;
+ public $end;
+ public $key;
+ public $recordIndex;
+ public $shufflePosition;
+
+
+ public function setByteOffset($byteOffset)
+ {
+ $this->byteOffset = $byteOffset;
+ }
+ public function getByteOffset()
+ {
+ return $this->byteOffset;
+ }
+ public function setEnd($end)
+ {
+ $this->end = $end;
+ }
+ public function getEnd()
+ {
+ return $this->end;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setRecordIndex($recordIndex)
+ {
+ $this->recordIndex = $recordIndex;
+ }
+ public function getRecordIndex()
+ {
+ return $this->recordIndex;
+ }
+ public function setShufflePosition($shufflePosition)
+ {
+ $this->shufflePosition = $shufflePosition;
+ }
+ public function getShufflePosition()
+ {
+ return $this->shufflePosition;
+ }
+}
+
+class Google_Service_Dataflow_PubsubLocation extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $dropLateData;
+ public $idLabel;
+ public $subscription;
+ public $timestampLabel;
+ public $topic;
+ public $trackingSubscription;
+
+
+ public function setDropLateData($dropLateData)
+ {
+ $this->dropLateData = $dropLateData;
+ }
+ public function getDropLateData()
+ {
+ return $this->dropLateData;
+ }
+ public function setIdLabel($idLabel)
+ {
+ $this->idLabel = $idLabel;
+ }
+ public function getIdLabel()
+ {
+ return $this->idLabel;
+ }
+ public function setSubscription($subscription)
+ {
+ $this->subscription = $subscription;
+ }
+ public function getSubscription()
+ {
+ return $this->subscription;
+ }
+ public function setTimestampLabel($timestampLabel)
+ {
+ $this->timestampLabel = $timestampLabel;
+ }
+ public function getTimestampLabel()
+ {
+ return $this->timestampLabel;
+ }
+ public function setTopic($topic)
+ {
+ $this->topic = $topic;
+ }
+ public function getTopic()
+ {
+ return $this->topic;
+ }
+ public function setTrackingSubscription($trackingSubscription)
+ {
+ $this->trackingSubscription = $trackingSubscription;
+ }
+ public function getTrackingSubscription()
+ {
+ return $this->trackingSubscription;
+ }
+}
+
+class Google_Service_Dataflow_ReadInstruction extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $sourceType = 'Google_Service_Dataflow_Source';
+ protected $sourceDataType = '';
+
+
+ public function setSource(Google_Service_Dataflow_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
+
+class Google_Service_Dataflow_ReportWorkItemStatusRequest extends Google_Collection
+{
+ protected $collection_key = 'workItemStatuses';
+ protected $internal_gapi_mappings = array(
+ );
+ public $currentWorkerTime;
+ protected $workItemStatusesType = 'Google_Service_Dataflow_WorkItemStatus';
+ protected $workItemStatusesDataType = 'array';
+ public $workerId;
+
+
+ public function setCurrentWorkerTime($currentWorkerTime)
+ {
+ $this->currentWorkerTime = $currentWorkerTime;
+ }
+ public function getCurrentWorkerTime()
+ {
+ return $this->currentWorkerTime;
+ }
+ public function setWorkItemStatuses($workItemStatuses)
+ {
+ $this->workItemStatuses = $workItemStatuses;
+ }
+ public function getWorkItemStatuses()
+ {
+ return $this->workItemStatuses;
+ }
+ public function setWorkerId($workerId)
+ {
+ $this->workerId = $workerId;
+ }
+ public function getWorkerId()
+ {
+ return $this->workerId;
+ }
+}
+
+class Google_Service_Dataflow_ReportWorkItemStatusResponse extends Google_Collection
+{
+ protected $collection_key = 'workItemServiceStates';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $workItemServiceStatesType = 'Google_Service_Dataflow_WorkItemServiceState';
+ protected $workItemServiceStatesDataType = 'array';
+
+
+ public function setWorkItemServiceStates($workItemServiceStates)
+ {
+ $this->workItemServiceStates = $workItemServiceStates;
+ }
+ public function getWorkItemServiceStates()
+ {
+ return $this->workItemServiceStates;
+ }
+}
+
+class Google_Service_Dataflow_SeqMapTask extends Google_Collection
+{
+ protected $collection_key = 'outputInfos';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $inputsType = 'Google_Service_Dataflow_SideInputInfo';
+ protected $inputsDataType = 'array';
+ public $name;
+ protected $outputInfosType = 'Google_Service_Dataflow_SeqMapTaskOutputInfo';
+ protected $outputInfosDataType = 'array';
+ public $stageName;
+ public $systemName;
+ public $userFn;
+
+
+ public function setInputs($inputs)
+ {
+ $this->inputs = $inputs;
+ }
+ public function getInputs()
+ {
+ return $this->inputs;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setOutputInfos($outputInfos)
+ {
+ $this->outputInfos = $outputInfos;
+ }
+ public function getOutputInfos()
+ {
+ return $this->outputInfos;
+ }
+ public function setStageName($stageName)
+ {
+ $this->stageName = $stageName;
+ }
+ public function getStageName()
+ {
+ return $this->stageName;
+ }
+ public function setSystemName($systemName)
+ {
+ $this->systemName = $systemName;
+ }
+ public function getSystemName()
+ {
+ return $this->systemName;
+ }
+ public function setUserFn($userFn)
+ {
+ $this->userFn = $userFn;
+ }
+ public function getUserFn()
+ {
+ return $this->userFn;
+ }
+}
+
+class Google_Service_Dataflow_SeqMapTaskOutputInfo extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $sinkType = 'Google_Service_Dataflow_Sink';
+ protected $sinkDataType = '';
+ public $tag;
+
+
+ public function setSink(Google_Service_Dataflow_Sink $sink)
+ {
+ $this->sink = $sink;
+ }
+ public function getSink()
+ {
+ return $this->sink;
+ }
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
+
+class Google_Service_Dataflow_SeqMapTaskUserFn extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_ShellTask extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $command;
+ public $exitCode;
+
+
+ public function setCommand($command)
+ {
+ $this->command = $command;
+ }
+ public function getCommand()
+ {
+ return $this->command;
+ }
+ public function setExitCode($exitCode)
+ {
+ $this->exitCode = $exitCode;
+ }
+ public function getExitCode()
+ {
+ return $this->exitCode;
+ }
+}
+
+class Google_Service_Dataflow_SideInputInfo extends Google_Collection
+{
+ protected $collection_key = 'sources';
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ protected $sourcesType = 'Google_Service_Dataflow_Source';
+ protected $sourcesDataType = 'array';
+ public $tag;
+
+
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setSources($sources)
+ {
+ $this->sources = $sources;
+ }
+ public function getSources()
+ {
+ return $this->sources;
+ }
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
+
+class Google_Service_Dataflow_SideInputInfoKind extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_Sink extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $codec;
+ public $spec;
+
+
+ public function setCodec($codec)
+ {
+ $this->codec = $codec;
+ }
+ public function getCodec()
+ {
+ return $this->codec;
+ }
+ public function setSpec($spec)
+ {
+ $this->spec = $spec;
+ }
+ public function getSpec()
+ {
+ return $this->spec;
+ }
+}
+
+class Google_Service_Dataflow_SinkCodec extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_SinkSpec extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_Source extends Google_Collection
+{
+ protected $collection_key = 'baseSpecs';
+ protected $internal_gapi_mappings = array(
+ );
+ public $baseSpecs;
+ public $codec;
+ public $doesNotNeedSplitting;
+ protected $metadataType = 'Google_Service_Dataflow_SourceMetadata';
+ protected $metadataDataType = '';
+ public $spec;
+
+
+ public function setBaseSpecs($baseSpecs)
+ {
+ $this->baseSpecs = $baseSpecs;
+ }
+ public function getBaseSpecs()
+ {
+ return $this->baseSpecs;
+ }
+ public function setCodec($codec)
+ {
+ $this->codec = $codec;
+ }
+ public function getCodec()
+ {
+ return $this->codec;
+ }
+ public function setDoesNotNeedSplitting($doesNotNeedSplitting)
+ {
+ $this->doesNotNeedSplitting = $doesNotNeedSplitting;
+ }
+ public function getDoesNotNeedSplitting()
+ {
+ return $this->doesNotNeedSplitting;
+ }
+ public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setSpec($spec)
+ {
+ $this->spec = $spec;
+ }
+ public function getSpec()
+ {
+ return $this->spec;
+ }
+}
+
+class Google_Service_Dataflow_SourceBaseSpecs extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_SourceCodec extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_SourceFork extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $primaryType = 'Google_Service_Dataflow_SourceSplitShard';
+ protected $primaryDataType = '';
+ protected $primarySourceType = 'Google_Service_Dataflow_DerivedSource';
+ protected $primarySourceDataType = '';
+ protected $residualType = 'Google_Service_Dataflow_SourceSplitShard';
+ protected $residualDataType = '';
+ protected $residualSourceType = 'Google_Service_Dataflow_DerivedSource';
+ protected $residualSourceDataType = '';
+
+
+ public function setPrimary(Google_Service_Dataflow_SourceSplitShard $primary)
+ {
+ $this->primary = $primary;
+ }
+ public function getPrimary()
+ {
+ return $this->primary;
+ }
+ public function setPrimarySource(Google_Service_Dataflow_DerivedSource $primarySource)
+ {
+ $this->primarySource = $primarySource;
+ }
+ public function getPrimarySource()
+ {
+ return $this->primarySource;
+ }
+ public function setResidual(Google_Service_Dataflow_SourceSplitShard $residual)
+ {
+ $this->residual = $residual;
+ }
+ public function getResidual()
+ {
+ return $this->residual;
+ }
+ public function setResidualSource(Google_Service_Dataflow_DerivedSource $residualSource)
+ {
+ $this->residualSource = $residualSource;
+ }
+ public function getResidualSource()
+ {
+ return $this->residualSource;
+ }
+}
+
+class Google_Service_Dataflow_SourceGetMetadataRequest extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $sourceType = 'Google_Service_Dataflow_Source';
+ protected $sourceDataType = '';
+
+
+ public function setSource(Google_Service_Dataflow_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
+
+class Google_Service_Dataflow_SourceGetMetadataResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $metadataType = 'Google_Service_Dataflow_SourceMetadata';
+ protected $metadataDataType = '';
+
+
+ public function setMetadata(Google_Service_Dataflow_SourceMetadata $metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+}
+
+class Google_Service_Dataflow_SourceMetadata extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $estimatedSizeBytes;
+ public $infinite;
+ public $producesSortedKeys;
+
+
+ public function setEstimatedSizeBytes($estimatedSizeBytes)
+ {
+ $this->estimatedSizeBytes = $estimatedSizeBytes;
+ }
+ public function getEstimatedSizeBytes()
+ {
+ return $this->estimatedSizeBytes;
+ }
+ public function setInfinite($infinite)
+ {
+ $this->infinite = $infinite;
+ }
+ public function getInfinite()
+ {
+ return $this->infinite;
+ }
+ public function setProducesSortedKeys($producesSortedKeys)
+ {
+ $this->producesSortedKeys = $producesSortedKeys;
+ }
+ public function getProducesSortedKeys()
+ {
+ return $this->producesSortedKeys;
+ }
+}
+
+class Google_Service_Dataflow_SourceOperationRequest extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataRequest';
+ protected $getMetadataDataType = '';
+ protected $splitType = 'Google_Service_Dataflow_SourceSplitRequest';
+ protected $splitDataType = '';
+
+
+ public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataRequest $getMetadata)
+ {
+ $this->getMetadata = $getMetadata;
+ }
+ public function getGetMetadata()
+ {
+ return $this->getMetadata;
+ }
+ public function setSplit(Google_Service_Dataflow_SourceSplitRequest $split)
+ {
+ $this->split = $split;
+ }
+ public function getSplit()
+ {
+ return $this->split;
+ }
+}
+
+class Google_Service_Dataflow_SourceOperationResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $getMetadataType = 'Google_Service_Dataflow_SourceGetMetadataResponse';
+ protected $getMetadataDataType = '';
+ protected $splitType = 'Google_Service_Dataflow_SourceSplitResponse';
+ protected $splitDataType = '';
+
+
+ public function setGetMetadata(Google_Service_Dataflow_SourceGetMetadataResponse $getMetadata)
+ {
+ $this->getMetadata = $getMetadata;
+ }
+ public function getGetMetadata()
+ {
+ return $this->getMetadata;
+ }
+ public function setSplit(Google_Service_Dataflow_SourceSplitResponse $split)
+ {
+ $this->split = $split;
+ }
+ public function getSplit()
+ {
+ return $this->split;
+ }
+}
+
+class Google_Service_Dataflow_SourceSpec extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_SourceSplitOptions extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $desiredBundleSizeBytes;
+ public $desiredShardSizeBytes;
+
+
+ public function setDesiredBundleSizeBytes($desiredBundleSizeBytes)
+ {
+ $this->desiredBundleSizeBytes = $desiredBundleSizeBytes;
+ }
+ public function getDesiredBundleSizeBytes()
+ {
+ return $this->desiredBundleSizeBytes;
+ }
+ public function setDesiredShardSizeBytes($desiredShardSizeBytes)
+ {
+ $this->desiredShardSizeBytes = $desiredShardSizeBytes;
+ }
+ public function getDesiredShardSizeBytes()
+ {
+ return $this->desiredShardSizeBytes;
+ }
+}
+
+class Google_Service_Dataflow_SourceSplitRequest extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $optionsType = 'Google_Service_Dataflow_SourceSplitOptions';
+ protected $optionsDataType = '';
+ protected $sourceType = 'Google_Service_Dataflow_Source';
+ protected $sourceDataType = '';
+
+
+ public function setOptions(Google_Service_Dataflow_SourceSplitOptions $options)
+ {
+ $this->options = $options;
+ }
+ public function getOptions()
+ {
+ return $this->options;
+ }
+ public function setSource(Google_Service_Dataflow_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
+
+class Google_Service_Dataflow_SourceSplitResponse extends Google_Collection
+{
+ protected $collection_key = 'shards';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $bundlesType = 'Google_Service_Dataflow_DerivedSource';
+ protected $bundlesDataType = 'array';
+ public $outcome;
+ protected $shardsType = 'Google_Service_Dataflow_SourceSplitShard';
+ protected $shardsDataType = 'array';
+
+
+ public function setBundles($bundles)
+ {
+ $this->bundles = $bundles;
+ }
+ public function getBundles()
+ {
+ return $this->bundles;
+ }
+ public function setOutcome($outcome)
+ {
+ $this->outcome = $outcome;
+ }
+ public function getOutcome()
+ {
+ return $this->outcome;
+ }
+ public function setShards($shards)
+ {
+ $this->shards = $shards;
+ }
+ public function getShards()
+ {
+ return $this->shards;
+ }
+}
+
+class Google_Service_Dataflow_SourceSplitShard extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $derivationMode;
+ protected $sourceType = 'Google_Service_Dataflow_Source';
+ protected $sourceDataType = '';
+
+
+ public function setDerivationMode($derivationMode)
+ {
+ $this->derivationMode = $derivationMode;
+ }
+ public function getDerivationMode()
+ {
+ return $this->derivationMode;
+ }
+ public function setSource(Google_Service_Dataflow_Source $source)
+ {
+ $this->source = $source;
+ }
+ public function getSource()
+ {
+ return $this->source;
+ }
+}
+
+class Google_Service_Dataflow_Status extends Google_Collection
+{
+ protected $collection_key = 'details';
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ public $details;
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setDetails($details)
+ {
+ $this->details = $details;
+ }
+ public function getDetails()
+ {
+ return $this->details;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_Dataflow_StatusDetails extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_Step extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $kind;
+ public $name;
+ public $properties;
+
+
+ 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 setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+}
+
+class Google_Service_Dataflow_StepProperties extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_StreamLocation extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $pubsubLocationType = 'Google_Service_Dataflow_PubsubLocation';
+ protected $pubsubLocationDataType = '';
+ protected $sideInputLocationType = 'Google_Service_Dataflow_StreamingSideInputLocation';
+ protected $sideInputLocationDataType = '';
+ protected $streamingStageLocationType = 'Google_Service_Dataflow_StreamingStageLocation';
+ protected $streamingStageLocationDataType = '';
+
+
+ public function setPubsubLocation(Google_Service_Dataflow_PubsubLocation $pubsubLocation)
+ {
+ $this->pubsubLocation = $pubsubLocation;
+ }
+ public function getPubsubLocation()
+ {
+ return $this->pubsubLocation;
+ }
+ public function setSideInputLocation(Google_Service_Dataflow_StreamingSideInputLocation $sideInputLocation)
+ {
+ $this->sideInputLocation = $sideInputLocation;
+ }
+ public function getSideInputLocation()
+ {
+ return $this->sideInputLocation;
+ }
+ public function setStreamingStageLocation(Google_Service_Dataflow_StreamingStageLocation $streamingStageLocation)
+ {
+ $this->streamingStageLocation = $streamingStageLocation;
+ }
+ public function getStreamingStageLocation()
+ {
+ return $this->streamingStageLocation;
+ }
+}
+
+class Google_Service_Dataflow_StreamingComputationRanges extends Google_Collection
+{
+ protected $collection_key = 'rangeAssignments';
+ protected $internal_gapi_mappings = array(
+ );
+ public $computationId;
+ protected $rangeAssignmentsType = 'Google_Service_Dataflow_KeyRangeDataDiskAssignment';
+ protected $rangeAssignmentsDataType = 'array';
+
+
+ public function setComputationId($computationId)
+ {
+ $this->computationId = $computationId;
+ }
+ public function getComputationId()
+ {
+ return $this->computationId;
+ }
+ public function setRangeAssignments($rangeAssignments)
+ {
+ $this->rangeAssignments = $rangeAssignments;
+ }
+ public function getRangeAssignments()
+ {
+ return $this->rangeAssignments;
+ }
+}
+
+class Google_Service_Dataflow_StreamingComputationTask extends Google_Collection
+{
+ protected $collection_key = 'dataDisks';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $computationRangesType = 'Google_Service_Dataflow_StreamingComputationRanges';
+ protected $computationRangesDataType = 'array';
+ protected $dataDisksType = 'Google_Service_Dataflow_MountedDataDisk';
+ protected $dataDisksDataType = 'array';
+ public $taskType;
+
+
+ public function setComputationRanges($computationRanges)
+ {
+ $this->computationRanges = $computationRanges;
+ }
+ public function getComputationRanges()
+ {
+ return $this->computationRanges;
+ }
+ public function setDataDisks($dataDisks)
+ {
+ $this->dataDisks = $dataDisks;
+ }
+ public function getDataDisks()
+ {
+ return $this->dataDisks;
+ }
+ public function setTaskType($taskType)
+ {
+ $this->taskType = $taskType;
+ }
+ public function getTaskType()
+ {
+ return $this->taskType;
+ }
+}
+
+class Google_Service_Dataflow_StreamingSetupTask extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $receiveWorkPort;
+ protected $streamingComputationTopologyType = 'Google_Service_Dataflow_TopologyConfig';
+ protected $streamingComputationTopologyDataType = '';
+ public $workerHarnessPort;
+
+
+ public function setReceiveWorkPort($receiveWorkPort)
+ {
+ $this->receiveWorkPort = $receiveWorkPort;
+ }
+ public function getReceiveWorkPort()
+ {
+ return $this->receiveWorkPort;
+ }
+ public function setStreamingComputationTopology(Google_Service_Dataflow_TopologyConfig $streamingComputationTopology)
+ {
+ $this->streamingComputationTopology = $streamingComputationTopology;
+ }
+ public function getStreamingComputationTopology()
+ {
+ return $this->streamingComputationTopology;
+ }
+ public function setWorkerHarnessPort($workerHarnessPort)
+ {
+ $this->workerHarnessPort = $workerHarnessPort;
+ }
+ public function getWorkerHarnessPort()
+ {
+ return $this->workerHarnessPort;
+ }
+}
+
+class Google_Service_Dataflow_StreamingSideInputLocation extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $tag;
+
+
+ public function setTag($tag)
+ {
+ $this->tag = $tag;
+ }
+ public function getTag()
+ {
+ return $this->tag;
+ }
+}
+
+class Google_Service_Dataflow_StreamingStageLocation extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $streamId;
+
+
+ public function setStreamId($streamId)
+ {
+ $this->streamId = $streamId;
+ }
+ public function getStreamId()
+ {
+ return $this->streamId;
+ }
+}
+
+class Google_Service_Dataflow_TaskRunnerSettings extends Google_Collection
+{
+ protected $collection_key = 'oauthScopes';
+ protected $internal_gapi_mappings = array(
+ );
+ public $alsologtostderr;
+ public $baseTaskDir;
+ public $baseUrl;
+ public $commandlinesFileName;
+ public $continueOnException;
+ public $dataflowApiVersion;
+ public $harnessCommand;
+ public $languageHint;
+ public $logDir;
+ public $logToSerialconsole;
+ public $logUploadLocation;
+ public $oauthScopes;
+ protected $parallelWorkerSettingsType = 'Google_Service_Dataflow_WorkerSettings';
+ protected $parallelWorkerSettingsDataType = '';
+ public $streamingWorkerMainClass;
+ public $taskGroup;
+ public $taskUser;
+ public $tempStoragePrefix;
+ public $vmId;
+ public $workflowFileName;
+
+
+ public function setAlsologtostderr($alsologtostderr)
+ {
+ $this->alsologtostderr = $alsologtostderr;
+ }
+ public function getAlsologtostderr()
+ {
+ return $this->alsologtostderr;
+ }
+ public function setBaseTaskDir($baseTaskDir)
+ {
+ $this->baseTaskDir = $baseTaskDir;
+ }
+ public function getBaseTaskDir()
+ {
+ return $this->baseTaskDir;
+ }
+ public function setBaseUrl($baseUrl)
+ {
+ $this->baseUrl = $baseUrl;
+ }
+ public function getBaseUrl()
+ {
+ return $this->baseUrl;
+ }
+ public function setCommandlinesFileName($commandlinesFileName)
+ {
+ $this->commandlinesFileName = $commandlinesFileName;
+ }
+ public function getCommandlinesFileName()
+ {
+ return $this->commandlinesFileName;
+ }
+ public function setContinueOnException($continueOnException)
+ {
+ $this->continueOnException = $continueOnException;
+ }
+ public function getContinueOnException()
+ {
+ return $this->continueOnException;
+ }
+ public function setDataflowApiVersion($dataflowApiVersion)
+ {
+ $this->dataflowApiVersion = $dataflowApiVersion;
+ }
+ public function getDataflowApiVersion()
+ {
+ return $this->dataflowApiVersion;
+ }
+ public function setHarnessCommand($harnessCommand)
+ {
+ $this->harnessCommand = $harnessCommand;
+ }
+ public function getHarnessCommand()
+ {
+ return $this->harnessCommand;
+ }
+ public function setLanguageHint($languageHint)
+ {
+ $this->languageHint = $languageHint;
+ }
+ public function getLanguageHint()
+ {
+ return $this->languageHint;
+ }
+ public function setLogDir($logDir)
+ {
+ $this->logDir = $logDir;
+ }
+ public function getLogDir()
+ {
+ return $this->logDir;
+ }
+ public function setLogToSerialconsole($logToSerialconsole)
+ {
+ $this->logToSerialconsole = $logToSerialconsole;
+ }
+ public function getLogToSerialconsole()
+ {
+ return $this->logToSerialconsole;
+ }
+ public function setLogUploadLocation($logUploadLocation)
+ {
+ $this->logUploadLocation = $logUploadLocation;
+ }
+ public function getLogUploadLocation()
+ {
+ return $this->logUploadLocation;
+ }
+ public function setOauthScopes($oauthScopes)
+ {
+ $this->oauthScopes = $oauthScopes;
+ }
+ public function getOauthScopes()
+ {
+ return $this->oauthScopes;
+ }
+ public function setParallelWorkerSettings(Google_Service_Dataflow_WorkerSettings $parallelWorkerSettings)
+ {
+ $this->parallelWorkerSettings = $parallelWorkerSettings;
+ }
+ public function getParallelWorkerSettings()
+ {
+ return $this->parallelWorkerSettings;
+ }
+ public function setStreamingWorkerMainClass($streamingWorkerMainClass)
+ {
+ $this->streamingWorkerMainClass = $streamingWorkerMainClass;
+ }
+ public function getStreamingWorkerMainClass()
+ {
+ return $this->streamingWorkerMainClass;
+ }
+ public function setTaskGroup($taskGroup)
+ {
+ $this->taskGroup = $taskGroup;
+ }
+ public function getTaskGroup()
+ {
+ return $this->taskGroup;
+ }
+ public function setTaskUser($taskUser)
+ {
+ $this->taskUser = $taskUser;
+ }
+ public function getTaskUser()
+ {
+ return $this->taskUser;
+ }
+ public function setTempStoragePrefix($tempStoragePrefix)
+ {
+ $this->tempStoragePrefix = $tempStoragePrefix;
+ }
+ public function getTempStoragePrefix()
+ {
+ return $this->tempStoragePrefix;
+ }
+ public function setVmId($vmId)
+ {
+ $this->vmId = $vmId;
+ }
+ public function getVmId()
+ {
+ return $this->vmId;
+ }
+ public function setWorkflowFileName($workflowFileName)
+ {
+ $this->workflowFileName = $workflowFileName;
+ }
+ public function getWorkflowFileName()
+ {
+ return $this->workflowFileName;
+ }
+}
+
+class Google_Service_Dataflow_TopologyConfig extends Google_Collection
+{
+ protected $collection_key = 'dataDiskAssignments';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $computationsType = 'Google_Service_Dataflow_ComputationTopology';
+ protected $computationsDataType = 'array';
+ protected $dataDiskAssignmentsType = 'Google_Service_Dataflow_DataDiskAssignment';
+ protected $dataDiskAssignmentsDataType = 'array';
+
+
+ public function setComputations($computations)
+ {
+ $this->computations = $computations;
+ }
+ public function getComputations()
+ {
+ return $this->computations;
+ }
+ public function setDataDiskAssignments($dataDiskAssignments)
+ {
+ $this->dataDiskAssignments = $dataDiskAssignments;
+ }
+ public function getDataDiskAssignments()
+ {
+ return $this->dataDiskAssignments;
+ }
+}
+
+class Google_Service_Dataflow_WorkItem extends Google_Collection
+{
+ protected $collection_key = 'packages';
+ protected $internal_gapi_mappings = array(
+ );
+ public $configuration;
+ public $id;
+ public $initialReportIndex;
+ public $jobId;
+ public $leaseExpireTime;
+ protected $mapTaskType = 'Google_Service_Dataflow_MapTask';
+ protected $mapTaskDataType = '';
+ protected $packagesType = 'Google_Service_Dataflow_Package';
+ protected $packagesDataType = 'array';
+ public $projectId;
+ public $reportStatusInterval;
+ protected $seqMapTaskType = 'Google_Service_Dataflow_SeqMapTask';
+ protected $seqMapTaskDataType = '';
+ protected $shellTaskType = 'Google_Service_Dataflow_ShellTask';
+ protected $shellTaskDataType = '';
+ protected $sourceOperationTaskType = 'Google_Service_Dataflow_SourceOperationRequest';
+ protected $sourceOperationTaskDataType = '';
+ protected $streamingComputationTaskType = 'Google_Service_Dataflow_StreamingComputationTask';
+ protected $streamingComputationTaskDataType = '';
+ protected $streamingSetupTaskType = 'Google_Service_Dataflow_StreamingSetupTask';
+ protected $streamingSetupTaskDataType = '';
+
+
+ public function setConfiguration($configuration)
+ {
+ $this->configuration = $configuration;
+ }
+ public function getConfiguration()
+ {
+ return $this->configuration;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInitialReportIndex($initialReportIndex)
+ {
+ $this->initialReportIndex = $initialReportIndex;
+ }
+ public function getInitialReportIndex()
+ {
+ return $this->initialReportIndex;
+ }
+ public function setJobId($jobId)
+ {
+ $this->jobId = $jobId;
+ }
+ public function getJobId()
+ {
+ return $this->jobId;
+ }
+ public function setLeaseExpireTime($leaseExpireTime)
+ {
+ $this->leaseExpireTime = $leaseExpireTime;
+ }
+ public function getLeaseExpireTime()
+ {
+ return $this->leaseExpireTime;
+ }
+ public function setMapTask(Google_Service_Dataflow_MapTask $mapTask)
+ {
+ $this->mapTask = $mapTask;
+ }
+ public function getMapTask()
+ {
+ return $this->mapTask;
+ }
+ public function setPackages($packages)
+ {
+ $this->packages = $packages;
+ }
+ public function getPackages()
+ {
+ return $this->packages;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setReportStatusInterval($reportStatusInterval)
+ {
+ $this->reportStatusInterval = $reportStatusInterval;
+ }
+ public function getReportStatusInterval()
+ {
+ return $this->reportStatusInterval;
+ }
+ public function setSeqMapTask(Google_Service_Dataflow_SeqMapTask $seqMapTask)
+ {
+ $this->seqMapTask = $seqMapTask;
+ }
+ public function getSeqMapTask()
+ {
+ return $this->seqMapTask;
+ }
+ public function setShellTask(Google_Service_Dataflow_ShellTask $shellTask)
+ {
+ $this->shellTask = $shellTask;
+ }
+ public function getShellTask()
+ {
+ return $this->shellTask;
+ }
+ public function setSourceOperationTask(Google_Service_Dataflow_SourceOperationRequest $sourceOperationTask)
+ {
+ $this->sourceOperationTask = $sourceOperationTask;
+ }
+ public function getSourceOperationTask()
+ {
+ return $this->sourceOperationTask;
+ }
+ public function setStreamingComputationTask(Google_Service_Dataflow_StreamingComputationTask $streamingComputationTask)
+ {
+ $this->streamingComputationTask = $streamingComputationTask;
+ }
+ public function getStreamingComputationTask()
+ {
+ return $this->streamingComputationTask;
+ }
+ public function setStreamingSetupTask(Google_Service_Dataflow_StreamingSetupTask $streamingSetupTask)
+ {
+ $this->streamingSetupTask = $streamingSetupTask;
+ }
+ public function getStreamingSetupTask()
+ {
+ return $this->streamingSetupTask;
+ }
+}
+
+class Google_Service_Dataflow_WorkItemServiceState extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $harnessData;
+ public $leaseExpireTime;
+ public $nextReportIndex;
+ public $reportStatusInterval;
+ protected $suggestedStopPointType = 'Google_Service_Dataflow_ApproximateProgress';
+ protected $suggestedStopPointDataType = '';
+ protected $suggestedStopPositionType = 'Google_Service_Dataflow_Position';
+ protected $suggestedStopPositionDataType = '';
+
+
+ public function setHarnessData($harnessData)
+ {
+ $this->harnessData = $harnessData;
+ }
+ public function getHarnessData()
+ {
+ return $this->harnessData;
+ }
+ public function setLeaseExpireTime($leaseExpireTime)
+ {
+ $this->leaseExpireTime = $leaseExpireTime;
+ }
+ public function getLeaseExpireTime()
+ {
+ return $this->leaseExpireTime;
+ }
+ public function setNextReportIndex($nextReportIndex)
+ {
+ $this->nextReportIndex = $nextReportIndex;
+ }
+ public function getNextReportIndex()
+ {
+ return $this->nextReportIndex;
+ }
+ public function setReportStatusInterval($reportStatusInterval)
+ {
+ $this->reportStatusInterval = $reportStatusInterval;
+ }
+ public function getReportStatusInterval()
+ {
+ return $this->reportStatusInterval;
+ }
+ public function setSuggestedStopPoint(Google_Service_Dataflow_ApproximateProgress $suggestedStopPoint)
+ {
+ $this->suggestedStopPoint = $suggestedStopPoint;
+ }
+ public function getSuggestedStopPoint()
+ {
+ return $this->suggestedStopPoint;
+ }
+ public function setSuggestedStopPosition(Google_Service_Dataflow_Position $suggestedStopPosition)
+ {
+ $this->suggestedStopPosition = $suggestedStopPosition;
+ }
+ public function getSuggestedStopPosition()
+ {
+ return $this->suggestedStopPosition;
+ }
+}
+
+class Google_Service_Dataflow_WorkItemServiceStateHarnessData extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_WorkItemStatus extends Google_Collection
+{
+ protected $collection_key = 'metricUpdates';
+ protected $internal_gapi_mappings = array(
+ );
+ public $completed;
+ protected $dynamicSourceSplitType = 'Google_Service_Dataflow_DynamicSourceSplit';
+ protected $dynamicSourceSplitDataType = '';
+ protected $errorsType = 'Google_Service_Dataflow_Status';
+ protected $errorsDataType = 'array';
+ protected $metricUpdatesType = 'Google_Service_Dataflow_MetricUpdate';
+ protected $metricUpdatesDataType = 'array';
+ protected $progressType = 'Google_Service_Dataflow_ApproximateProgress';
+ protected $progressDataType = '';
+ public $reportIndex;
+ public $requestedLeaseDuration;
+ protected $sourceForkType = 'Google_Service_Dataflow_SourceFork';
+ protected $sourceForkDataType = '';
+ protected $sourceOperationResponseType = 'Google_Service_Dataflow_SourceOperationResponse';
+ protected $sourceOperationResponseDataType = '';
+ protected $stopPositionType = 'Google_Service_Dataflow_Position';
+ protected $stopPositionDataType = '';
+ public $workItemId;
+
+
+ public function setCompleted($completed)
+ {
+ $this->completed = $completed;
+ }
+ public function getCompleted()
+ {
+ return $this->completed;
+ }
+ public function setDynamicSourceSplit(Google_Service_Dataflow_DynamicSourceSplit $dynamicSourceSplit)
+ {
+ $this->dynamicSourceSplit = $dynamicSourceSplit;
+ }
+ public function getDynamicSourceSplit()
+ {
+ return $this->dynamicSourceSplit;
+ }
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setMetricUpdates($metricUpdates)
+ {
+ $this->metricUpdates = $metricUpdates;
+ }
+ public function getMetricUpdates()
+ {
+ return $this->metricUpdates;
+ }
+ public function setProgress(Google_Service_Dataflow_ApproximateProgress $progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setReportIndex($reportIndex)
+ {
+ $this->reportIndex = $reportIndex;
+ }
+ public function getReportIndex()
+ {
+ return $this->reportIndex;
+ }
+ public function setRequestedLeaseDuration($requestedLeaseDuration)
+ {
+ $this->requestedLeaseDuration = $requestedLeaseDuration;
+ }
+ public function getRequestedLeaseDuration()
+ {
+ return $this->requestedLeaseDuration;
+ }
+ public function setSourceFork(Google_Service_Dataflow_SourceFork $sourceFork)
+ {
+ $this->sourceFork = $sourceFork;
+ }
+ public function getSourceFork()
+ {
+ return $this->sourceFork;
+ }
+ public function setSourceOperationResponse(Google_Service_Dataflow_SourceOperationResponse $sourceOperationResponse)
+ {
+ $this->sourceOperationResponse = $sourceOperationResponse;
+ }
+ public function getSourceOperationResponse()
+ {
+ return $this->sourceOperationResponse;
+ }
+ public function setStopPosition(Google_Service_Dataflow_Position $stopPosition)
+ {
+ $this->stopPosition = $stopPosition;
+ }
+ public function getStopPosition()
+ {
+ return $this->stopPosition;
+ }
+ public function setWorkItemId($workItemId)
+ {
+ $this->workItemId = $workItemId;
+ }
+ public function getWorkItemId()
+ {
+ return $this->workItemId;
+ }
+}
+
+class Google_Service_Dataflow_WorkerPool extends Google_Collection
+{
+ protected $collection_key = 'packages';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $autoscalingSettingsType = 'Google_Service_Dataflow_AutoscalingSettings';
+ protected $autoscalingSettingsDataType = '';
+ protected $dataDisksType = 'Google_Service_Dataflow_Disk';
+ protected $dataDisksDataType = 'array';
+ public $defaultPackageSet;
+ public $diskSizeGb;
+ public $diskSourceImage;
+ public $kind;
+ public $machineType;
+ public $metadata;
+ public $numWorkers;
+ public $onHostMaintenance;
+ protected $packagesType = 'Google_Service_Dataflow_Package';
+ protected $packagesDataType = 'array';
+ public $poolArgs;
+ protected $taskrunnerSettingsType = 'Google_Service_Dataflow_TaskRunnerSettings';
+ protected $taskrunnerSettingsDataType = '';
+ public $teardownPolicy;
+ public $zone;
+
+
+ public function setAutoscalingSettings(Google_Service_Dataflow_AutoscalingSettings $autoscalingSettings)
+ {
+ $this->autoscalingSettings = $autoscalingSettings;
+ }
+ public function getAutoscalingSettings()
+ {
+ return $this->autoscalingSettings;
+ }
+ public function setDataDisks($dataDisks)
+ {
+ $this->dataDisks = $dataDisks;
+ }
+ public function getDataDisks()
+ {
+ return $this->dataDisks;
+ }
+ public function setDefaultPackageSet($defaultPackageSet)
+ {
+ $this->defaultPackageSet = $defaultPackageSet;
+ }
+ public function getDefaultPackageSet()
+ {
+ return $this->defaultPackageSet;
+ }
+ public function setDiskSizeGb($diskSizeGb)
+ {
+ $this->diskSizeGb = $diskSizeGb;
+ }
+ public function getDiskSizeGb()
+ {
+ return $this->diskSizeGb;
+ }
+ public function setDiskSourceImage($diskSourceImage)
+ {
+ $this->diskSourceImage = $diskSourceImage;
+ }
+ public function getDiskSourceImage()
+ {
+ return $this->diskSourceImage;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setMachineType($machineType)
+ {
+ $this->machineType = $machineType;
+ }
+ public function getMachineType()
+ {
+ return $this->machineType;
+ }
+ public function setMetadata($metadata)
+ {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata()
+ {
+ return $this->metadata;
+ }
+ public function setNumWorkers($numWorkers)
+ {
+ $this->numWorkers = $numWorkers;
+ }
+ public function getNumWorkers()
+ {
+ return $this->numWorkers;
+ }
+ public function setOnHostMaintenance($onHostMaintenance)
+ {
+ $this->onHostMaintenance = $onHostMaintenance;
+ }
+ public function getOnHostMaintenance()
+ {
+ return $this->onHostMaintenance;
+ }
+ public function setPackages($packages)
+ {
+ $this->packages = $packages;
+ }
+ public function getPackages()
+ {
+ return $this->packages;
+ }
+ public function setPoolArgs($poolArgs)
+ {
+ $this->poolArgs = $poolArgs;
+ }
+ public function getPoolArgs()
+ {
+ return $this->poolArgs;
+ }
+ public function setTaskrunnerSettings(Google_Service_Dataflow_TaskRunnerSettings $taskrunnerSettings)
+ {
+ $this->taskrunnerSettings = $taskrunnerSettings;
+ }
+ public function getTaskrunnerSettings()
+ {
+ return $this->taskrunnerSettings;
+ }
+ public function setTeardownPolicy($teardownPolicy)
+ {
+ $this->teardownPolicy = $teardownPolicy;
+ }
+ public function getTeardownPolicy()
+ {
+ return $this->teardownPolicy;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
+
+class Google_Service_Dataflow_WorkerPoolMetadata extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_WorkerPoolPoolArgs extends Google_Model
+{
+}
+
+class Google_Service_Dataflow_WorkerSettings extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $baseUrl;
+ public $reportingEnabled;
+ public $servicePath;
+ public $shuffleServicePath;
+ public $tempStoragePrefix;
+ public $workerId;
+
+
+ public function setBaseUrl($baseUrl)
+ {
+ $this->baseUrl = $baseUrl;
+ }
+ public function getBaseUrl()
+ {
+ return $this->baseUrl;
+ }
+ public function setReportingEnabled($reportingEnabled)
+ {
+ $this->reportingEnabled = $reportingEnabled;
+ }
+ public function getReportingEnabled()
+ {
+ return $this->reportingEnabled;
+ }
+ public function setServicePath($servicePath)
+ {
+ $this->servicePath = $servicePath;
+ }
+ public function getServicePath()
+ {
+ return $this->servicePath;
+ }
+ public function setShuffleServicePath($shuffleServicePath)
+ {
+ $this->shuffleServicePath = $shuffleServicePath;
+ }
+ public function getShuffleServicePath()
+ {
+ return $this->shuffleServicePath;
+ }
+ public function setTempStoragePrefix($tempStoragePrefix)
+ {
+ $this->tempStoragePrefix = $tempStoragePrefix;
+ }
+ public function getTempStoragePrefix()
+ {
+ return $this->tempStoragePrefix;
+ }
+ public function setWorkerId($workerId)
+ {
+ $this->workerId = $workerId;
+ }
+ public function getWorkerId()
+ {
+ return $this->workerId;
+ }
+}
+
+class Google_Service_Dataflow_WriteInstruction extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $inputType = 'Google_Service_Dataflow_InstructionInput';
+ protected $inputDataType = '';
+ protected $sinkType = 'Google_Service_Dataflow_Sink';
+ protected $sinkDataType = '';
+
+
+ public function setInput(Google_Service_Dataflow_InstructionInput $input)
+ {
+ $this->input = $input;
+ }
+ public function getInput()
+ {
+ return $this->input;
+ }
+ public function setSink(Google_Service_Dataflow_Sink $sink)
+ {
+ $this->sink = $sink;
+ }
+ public function getSink()
+ {
+ return $this->sink;
+ }
+}
From bd93ed4f58712f67a6019fb0f17b6e1d5ce471e0 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $computeaccountsService = new Google_Service_Computeaccounts(...);
+ * $globalAccountsOperations = $computeaccountsService->globalAccountsOperations;
+ *
+ */
+class Google_Service_Computeaccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes the specified operation resource. (globalAccountsOperations.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $operation Name of the operation resource to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Retrieves the specified operation resource. (globalAccountsOperations.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $operation Name of the operation resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Computeaccounts_Operation
+ */
+ public function get($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Computeaccounts_Operation");
+ }
+
+ /**
+ * Retrieves the list of operation resources contained within the specified
+ * project. (globalAccountsOperations.listGlobalAccountsOperations)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @return Google_Service_Computeaccounts_OperationList
+ */
+ public function listGlobalAccountsOperations($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Computeaccounts_OperationList");
+ }
+}
+
+/**
+ * The "groups" collection of methods.
+ * Typical usage is:
+ *
+ * $computeaccountsService = new Google_Service_Computeaccounts(...);
+ * $groups = $computeaccountsService->groups;
+ *
+ */
+class Google_Service_Computeaccounts_Groups_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Adds users to the specified group. (groups.addMember)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the group for this request.
+ * @param Google_GroupsAddMemberRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Computeaccounts_Operation
+ */
+ public function addMember($project, $groupName, Google_Service_Computeaccounts_GroupsAddMemberRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addMember', array($params), "Google_Service_Computeaccounts_Operation");
+ }
+
+ /**
+ * Deletes the specified group resource. (groups.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the group resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Computeaccounts_Operation
+ */
+ public function delete($project, $groupName, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Computeaccounts_Operation");
+ }
+
+ /**
+ * Returns the specified group resource. (groups.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the group resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Computeaccounts_Group
+ */
+ public function get($project, $groupName, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Computeaccounts_Group");
+ }
+
+ /**
+ * Creates a group resource in the specified project using the data included in
+ * the request. (groups.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Group $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Computeaccounts_Operation
+ */
+ public function insert($project, Google_Service_Computeaccounts_Group $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Computeaccounts_Operation");
+ }
+
+ /**
+ * Retrieves the list of groups contained within the specified project.
+ * (groups.listGroups)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @return Google_Service_Computeaccounts_GroupList
+ */
+ public function listGroups($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Computeaccounts_GroupList");
+ }
+
+ /**
+ * Removes users from the specified group. (groups.removeMember)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the group for this request.
+ * @param Google_GroupsRemoveMemberRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Computeaccounts_Operation
+ */
+ public function removeMember($project, $groupName, Google_Service_Computeaccounts_GroupsRemoveMemberRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('removeMember', array($params), "Google_Service_Computeaccounts_Operation");
+ }
+}
+
+/**
+ * The "linux" collection of methods.
+ * Typical usage is:
+ *
+ * $computeaccountsService = new Google_Service_Computeaccounts(...);
+ * $linux = $computeaccountsService->linux;
+ *
+ */
+class Google_Service_Computeaccounts_Linux_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Returns the AuthorizedKeysView of the specified user.
+ * (linux.getAuthorizedKeysView)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $user Username of the AuthorizedKeysView to return.
+ * @param string $instance The fully-qualified URL of the instance requesting
+ * the view.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse
+ */
+ public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAuthorizedKeysView', array($params), "Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse");
+ }
+
+ /**
+ * Retrieves the Linux views for an instance contained within the specified
+ * project. (linux.getLinuxAccountViews)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $instance The fully-qualified URL of the instance requesting
+ * the views.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string user If provided, the user whose login is triggering an
+ * immediate refresh of the views.
+ * @return Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse
+ */
+ public function getLinuxAccountViews($project, $zone, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('getLinuxAccountViews', array($params), "Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse");
+ }
+}
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ *
+ * $computeaccountsService = new Google_Service_Computeaccounts(...);
+ * $users = $computeaccountsService->users;
+ *
+ */
+class Google_Service_Computeaccounts_Users_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Adds a public key to the specified user using the data included in the
+ * request. (users.addPublicKey)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user for this request.
+ * @param Google_PublicKey $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Computeaccounts_Operation
+ */
+ public function addPublicKey($project, $user, Google_Service_Computeaccounts_PublicKey $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addPublicKey', array($params), "Google_Service_Computeaccounts_Operation");
+ }
+
+ /**
+ * Deletes the specified user resource. (users.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Computeaccounts_Operation
+ */
+ public function delete($project, $user, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Computeaccounts_Operation");
+ }
+
+ /**
+ * Returns the specified user resource. (users.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Computeaccounts_User
+ */
+ public function get($project, $user, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Computeaccounts_User");
+ }
+
+ /**
+ * Creates a user resource in the specified project using the data included in
+ * the request. (users.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Computeaccounts_Operation
+ */
+ public function insert($project, Google_Service_Computeaccounts_User $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_Computeaccounts_Operation");
+ }
+
+ /**
+ * Retrieves the list of users contained within the specified project.
+ * (users.listUsers)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed
+ * resources.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request
+ * truncated by maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Optional. Maximum count of results to be
+ * returned. Maximum value is 500 and default value is 500.
+ * @return Google_Service_Computeaccounts_UserList
+ */
+ public function listUsers($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Computeaccounts_UserList");
+ }
+
+ /**
+ * Removes the specified public key from the user. (users.removePublicKey)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user for this request.
+ * @param string $fingerprint The fingerprint of the public key to delete.
+ * Public keys are identified by their fingerprint, which is defined by RFC4716
+ * to be the MD5 digest of the public key.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Computeaccounts_Operation
+ */
+ public function removePublicKey($project, $user, $fingerprint, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint);
+ $params = array_merge($params, $optParams);
+ return $this->call('removePublicKey', array($params), "Google_Service_Computeaccounts_Operation");
+ }
+}
+
+
+
+
+class Google_Service_Computeaccounts_AuthorizedKeysView extends Google_Collection
+{
+ protected $collection_key = 'keys';
+ protected $internal_gapi_mappings = array(
+ );
+ public $keys;
+
+
+ public function setKeys($keys)
+ {
+ $this->keys = $keys;
+ }
+ public function getKeys()
+ {
+ return $this->keys;
+ }
+}
+
+class Google_Service_Computeaccounts_Group extends Google_Collection
+{
+ protected $collection_key = 'members';
+ protected $internal_gapi_mappings = array(
+ );
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $members;
+ public $name;
+ public $selfLink;
+
+
+ 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 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 setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Computeaccounts_GroupList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ protected $itemsType = 'Google_Service_Computeaccounts_Group';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ 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;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Computeaccounts_GroupsAddMemberRequest extends Google_Collection
+{
+ protected $collection_key = 'users';
+ protected $internal_gapi_mappings = array(
+ );
+ public $users;
+
+
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
+
+class Google_Service_Computeaccounts_GroupsRemoveMemberRequest extends Google_Collection
+{
+ protected $collection_key = 'users';
+ protected $internal_gapi_mappings = array(
+ );
+ public $users;
+
+
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
+
+class Google_Service_Computeaccounts_LinuxAccountViews extends Google_Collection
+{
+ protected $collection_key = 'userViews';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $groupViewsType = 'Google_Service_Computeaccounts_LinuxGroupView';
+ protected $groupViewsDataType = 'array';
+ public $kind;
+ protected $userViewsType = 'Google_Service_Computeaccounts_LinuxUserView';
+ protected $userViewsDataType = 'array';
+
+
+ public function setGroupViews($groupViews)
+ {
+ $this->groupViews = $groupViews;
+ }
+ public function getGroupViews()
+ {
+ return $this->groupViews;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUserViews($userViews)
+ {
+ $this->userViews = $userViews;
+ }
+ public function getUserViews()
+ {
+ return $this->userViews;
+ }
+}
+
+class Google_Service_Computeaccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $resourceType = 'Google_Service_Computeaccounts_AuthorizedKeysView';
+ protected $resourceDataType = '';
+
+
+ public function setResource(Google_Service_Computeaccounts_AuthorizedKeysView $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
+
+class Google_Service_Computeaccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $resourceType = 'Google_Service_Computeaccounts_LinuxAccountViews';
+ protected $resourceDataType = '';
+
+
+ public function setResource(Google_Service_Computeaccounts_LinuxAccountViews $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
+
+class Google_Service_Computeaccounts_LinuxGroupView extends Google_Collection
+{
+ protected $collection_key = 'members';
+ protected $internal_gapi_mappings = array(
+ );
+ public $gid;
+ public $groupName;
+ public $members;
+
+
+ public function setGid($gid)
+ {
+ $this->gid = $gid;
+ }
+ public function getGid()
+ {
+ return $this->gid;
+ }
+ public function setGroupName($groupName)
+ {
+ $this->groupName = $groupName;
+ }
+ public function getGroupName()
+ {
+ return $this->groupName;
+ }
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+}
+
+class Google_Service_Computeaccounts_LinuxUserView extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $gecos;
+ public $gid;
+ public $homeDirectory;
+ public $shell;
+ public $uid;
+ public $username;
+
+
+ public function setGecos($gecos)
+ {
+ $this->gecos = $gecos;
+ }
+ public function getGecos()
+ {
+ return $this->gecos;
+ }
+ public function setGid($gid)
+ {
+ $this->gid = $gid;
+ }
+ public function getGid()
+ {
+ return $this->gid;
+ }
+ public function setHomeDirectory($homeDirectory)
+ {
+ $this->homeDirectory = $homeDirectory;
+ }
+ public function getHomeDirectory()
+ {
+ return $this->homeDirectory;
+ }
+ public function setShell($shell)
+ {
+ $this->shell = $shell;
+ }
+ public function getShell()
+ {
+ return $this->shell;
+ }
+ public function setUid($uid)
+ {
+ $this->uid = $uid;
+ }
+ public function getUid()
+ {
+ return $this->uid;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
+
+class Google_Service_Computeaccounts_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ protected $internal_gapi_mappings = array(
+ );
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $endTime;
+ protected $errorType = 'Google_Service_Computeaccounts_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_Computeaccounts_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_Computeaccounts_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ 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 setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ 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;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
+
+class Google_Service_Computeaccounts_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $errorsType = 'Google_Service_Computeaccounts_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
+
+class Google_Service_Computeaccounts_OperationErrorErrors extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ public $location;
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_Computeaccounts_OperationList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ protected $itemsType = 'Google_Service_Computeaccounts_Operation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ 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;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Computeaccounts_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ protected $dataType = 'Google_Service_Computeaccounts_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_Computeaccounts_OperationWarningsData extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $key;
+ public $value;
+
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
+class Google_Service_Computeaccounts_PublicKey extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $creationTimestamp;
+ public $description;
+ public $expirationTimestamp;
+ public $fingerprint;
+ public $key;
+
+
+ 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 setExpirationTimestamp($expirationTimestamp)
+ {
+ $this->expirationTimestamp = $expirationTimestamp;
+ }
+ public function getExpirationTimestamp()
+ {
+ return $this->expirationTimestamp;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+}
+
+class Google_Service_Computeaccounts_User extends Google_Collection
+{
+ protected $collection_key = 'publicKeys';
+ protected $internal_gapi_mappings = array(
+ );
+ public $creationTimestamp;
+ public $description;
+ public $groups;
+ public $id;
+ public $kind;
+ public $name;
+ public $owner;
+ protected $publicKeysType = 'Google_Service_Computeaccounts_PublicKey';
+ protected $publicKeysDataType = 'array';
+ public $selfLink;
+
+
+ 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 setGroups($groups)
+ {
+ $this->groups = $groups;
+ }
+ public function getGroups()
+ {
+ return $this->groups;
+ }
+ 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 setOwner($owner)
+ {
+ $this->owner = $owner;
+ }
+ public function getOwner()
+ {
+ return $this->owner;
+ }
+ public function setPublicKeys($publicKeys)
+ {
+ $this->publicKeys = $publicKeys;
+ }
+ public function getPublicKeys()
+ {
+ return $this->publicKeys;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Computeaccounts_UserList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ protected $itemsType = 'Google_Service_Computeaccounts_User';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ 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;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
From a73b5b2d4e71890ed6ada2881fefb0c3405ff648 Mon Sep 17 00:00:00 2001
From: Tim Smith
+ * $computeaccountsService = new Google_Service_ComputeAccounts(...);
+ * $globalAccountsOperations = $computeaccountsService->globalAccountsOperations;
+ *
+ */
+class Google_Service_ComputeAccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes the specified operation resource. (globalAccountsOperations.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $operation Name of the Operations resource to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Retrieves the specified operation resource. (globalAccountsOperations.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $operation Name of the Operations resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ComputeAccounts_Operation
+ */
+ public function get($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ComputeAccounts_Operation");
+ }
+
+ /**
+ * Retrieves the list of operation resources contained within the specified
+ * project. (globalAccountsOperations.listGlobalAccountsOperations)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must contain
+ * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME:
+ * The name of the field you want to compare. The field name must be valid for
+ * the type of resource being filtered. Only atomic field types are supported
+ * (string, number, boolean). Array and object fields are not currently
+ * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or
+ * ne (not equals). - LITERAL_STRING: The literal string value to filter to.
+ * The literal value must be valid for the type of field (string, number,
+ * boolean). For string fields, the literal value is interpreted as a regular
+ * expression using RE2 syntax. The literal value must match the entire field.
+ * For example, you can filter by the name of a resource: filter=name ne
+ * example-instance The above filter returns only results whose name field does
+ * not equal example-instance. You can also enclose your literal string in
+ * single, double, or no quotes.
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @opt_param string pageToken Specifies a page token to use. Use this parameter
+ * if you want to list the next page of results. Set pageToken to the
+ * nextPageToken returned by a previous list request.
+ * @return Google_Service_ComputeAccounts_OperationList
+ */
+ public function listGlobalAccountsOperations($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ComputeAccounts_OperationList");
+ }
+}
+
+/**
+ * The "groups" collection of methods.
+ * Typical usage is:
+ *
+ * $computeaccountsService = new Google_Service_ComputeAccounts(...);
+ * $groups = $computeaccountsService->groups;
+ *
+ */
+class Google_Service_ComputeAccounts_Groups_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Adds users to the specified group. (groups.addMember)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the group for this request.
+ * @param Google_GroupsAddMemberRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ComputeAccounts_Operation
+ */
+ public function addMember($project, $groupName, Google_Service_ComputeAccounts_GroupsAddMemberRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addMember', array($params), "Google_Service_ComputeAccounts_Operation");
+ }
+
+ /**
+ * Deletes the specified Group resource. (groups.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the Group resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ComputeAccounts_Operation
+ */
+ public function delete($project, $groupName, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_ComputeAccounts_Operation");
+ }
+
+ /**
+ * Returns the specified Group resource. (groups.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the Group resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ComputeAccounts_Group
+ */
+ public function get($project, $groupName, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ComputeAccounts_Group");
+ }
+
+ /**
+ * Creates a Group resource in the specified project using the data included in
+ * the request. (groups.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Group $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ComputeAccounts_Operation
+ */
+ public function insert($project, Google_Service_ComputeAccounts_Group $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_ComputeAccounts_Operation");
+ }
+
+ /**
+ * Retrieves the list of groups contained within the specified project.
+ * (groups.listGroups)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must contain
+ * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME:
+ * The name of the field you want to compare. The field name must be valid for
+ * the type of resource being filtered. Only atomic field types are supported
+ * (string, number, boolean). Array and object fields are not currently
+ * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or
+ * ne (not equals). - LITERAL_STRING: The literal string value to filter to.
+ * The literal value must be valid for the type of field (string, number,
+ * boolean). For string fields, the literal value is interpreted as a regular
+ * expression using RE2 syntax. The literal value must match the entire field.
+ * For example, you can filter by the name of a resource: filter=name ne
+ * example-instance The above filter returns only results whose name field does
+ * not equal example-instance. You can also enclose your literal string in
+ * single, double, or no quotes.
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @opt_param string pageToken Specifies a page token to use. Use this parameter
+ * if you want to list the next page of results. Set pageToken to the
+ * nextPageToken returned by a previous list request.
+ * @return Google_Service_ComputeAccounts_GroupList
+ */
+ public function listGroups($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ComputeAccounts_GroupList");
+ }
+
+ /**
+ * Removes users from the specified group. (groups.removeMember)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the group for this request.
+ * @param Google_GroupsRemoveMemberRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ComputeAccounts_Operation
+ */
+ public function removeMember($project, $groupName, Google_Service_ComputeAccounts_GroupsRemoveMemberRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('removeMember', array($params), "Google_Service_ComputeAccounts_Operation");
+ }
+}
+
+/**
+ * The "linux" collection of methods.
+ * Typical usage is:
+ *
+ * $computeaccountsService = new Google_Service_ComputeAccounts(...);
+ * $linux = $computeaccountsService->linux;
+ *
+ */
+class Google_Service_ComputeAccounts_Linux_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Returns a list of authorized public keys for a specific user account.
+ * (linux.getAuthorizedKeysView)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $user The user account for which you want to get a list of
+ * authorized public keys.
+ * @param string $instance The fully-qualified URL of the virtual machine
+ * requesting the view.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ComputeAccounts_LinuxGetAuthorizedKeysViewResponse
+ */
+ public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAuthorizedKeysView', array($params), "Google_Service_ComputeAccounts_LinuxGetAuthorizedKeysViewResponse");
+ }
+
+ /**
+ * Retrieves a list of user accounts for an instance within a specific project.
+ * (linux.getLinuxAccountViews)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $instance The fully-qualified URL of the virtual machine
+ * requesting the views.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Use this parameter
+ * if you want to list the next page of results. Set pageToken to the
+ * nextPageToken returned by a previous list request.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must contain
+ * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME:
+ * The name of the field you want to compare. The field name must be valid for
+ * the type of resource being filtered. Only atomic field types are supported
+ * (string, number, boolean). Array and object fields are not currently
+ * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or
+ * ne (not equals). - LITERAL_STRING: The literal string value to filter to.
+ * The literal value must be valid for the type of field (string, number,
+ * boolean). For string fields, the literal value is interpreted as a regular
+ * expression using RE2 syntax. The literal value must match the entire field.
+ * For example, you can filter by the name of a resource: filter=name ne
+ * example-instance The above filter returns only results whose name field does
+ * not equal example-instance. You can also enclose your literal string in
+ * single, double, or no quotes.
+ * @opt_param string user If provided, the user requesting the views. If left
+ * blank, the system is requesting the views, instead of a particular user.
+ * @return Google_Service_ComputeAccounts_LinuxGetLinuxAccountViewsResponse
+ */
+ public function getLinuxAccountViews($project, $zone, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('getLinuxAccountViews', array($params), "Google_Service_ComputeAccounts_LinuxGetLinuxAccountViewsResponse");
+ }
+}
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ *
+ * $computeaccountsService = new Google_Service_ComputeAccounts(...);
+ * $users = $computeaccountsService->users;
+ *
+ */
+class Google_Service_ComputeAccounts_Users_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Adds a public key to the specified User resource with the data included in
+ * the request. (users.addPublicKey)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user for this request.
+ * @param Google_PublicKey $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ComputeAccounts_Operation
+ */
+ public function addPublicKey($project, $user, Google_Service_ComputeAccounts_PublicKey $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addPublicKey', array($params), "Google_Service_ComputeAccounts_Operation");
+ }
+
+ /**
+ * Deletes the specified User resource. (users.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ComputeAccounts_Operation
+ */
+ public function delete($project, $user, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_ComputeAccounts_Operation");
+ }
+
+ /**
+ * Returns the specified User resource. (users.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ComputeAccounts_User
+ */
+ public function get($project, $user, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_ComputeAccounts_User");
+ }
+
+ /**
+ * Creates a User resource in the specified project using the data included in
+ * the request. (users.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ComputeAccounts_Operation
+ */
+ public function insert($project, Google_Service_ComputeAccounts_User $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_ComputeAccounts_Operation");
+ }
+
+ /**
+ * Retrieves a list of users contained within the specified project.
+ * (users.listUsers)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must contain
+ * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME:
+ * The name of the field you want to compare. The field name must be valid for
+ * the type of resource being filtered. Only atomic field types are supported
+ * (string, number, boolean). Array and object fields are not currently
+ * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or
+ * ne (not equals). - LITERAL_STRING: The literal string value to filter to.
+ * The literal value must be valid for the type of field (string, number,
+ * boolean). For string fields, the literal value is interpreted as a regular
+ * expression using RE2 syntax. The literal value must match the entire field.
+ * For example, you can filter by the name of a resource: filter=name ne
+ * example-instance The above filter returns only results whose name field does
+ * not equal example-instance. You can also enclose your literal string in
+ * single, double, or no quotes.
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @opt_param string pageToken Specifies a page token to use. Use this parameter
+ * if you want to list the next page of results. Set pageToken to the
+ * nextPageToken returned by a previous list request.
+ * @return Google_Service_ComputeAccounts_UserList
+ */
+ public function listUsers($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_ComputeAccounts_UserList");
+ }
+
+ /**
+ * Removes the specified public key from the user. (users.removePublicKey)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user for this request.
+ * @param string $fingerprint The fingerprint of the public key to delete.
+ * Public keys are identified by their fingerprint, which is defined by RFC4716
+ * to be the MD5 digest of the public key.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_ComputeAccounts_Operation
+ */
+ public function removePublicKey($project, $user, $fingerprint, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint);
+ $params = array_merge($params, $optParams);
+ return $this->call('removePublicKey', array($params), "Google_Service_ComputeAccounts_Operation");
+ }
+}
+
+
+
+
+class Google_Service_ComputeAccounts_AuthorizedKeysView extends Google_Collection
+{
+ protected $collection_key = 'keys';
+ protected $internal_gapi_mappings = array(
+ );
+ public $keys;
+
+
+ public function setKeys($keys)
+ {
+ $this->keys = $keys;
+ }
+ public function getKeys()
+ {
+ return $this->keys;
+ }
+}
+
+class Google_Service_ComputeAccounts_Group extends Google_Collection
+{
+ protected $collection_key = 'members';
+ protected $internal_gapi_mappings = array(
+ );
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $members;
+ public $name;
+ public $selfLink;
+
+
+ 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 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 setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_ComputeAccounts_GroupList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ protected $itemsType = 'Google_Service_ComputeAccounts_Group';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ 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;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_ComputeAccounts_GroupsAddMemberRequest extends Google_Collection
+{
+ protected $collection_key = 'users';
+ protected $internal_gapi_mappings = array(
+ );
+ public $users;
+
+
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
+
+class Google_Service_ComputeAccounts_GroupsRemoveMemberRequest extends Google_Collection
+{
+ protected $collection_key = 'users';
+ protected $internal_gapi_mappings = array(
+ );
+ public $users;
+
+
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
+
+class Google_Service_ComputeAccounts_LinuxAccountViews extends Google_Collection
+{
+ protected $collection_key = 'userViews';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $groupViewsType = 'Google_Service_ComputeAccounts_LinuxGroupView';
+ protected $groupViewsDataType = 'array';
+ public $kind;
+ protected $userViewsType = 'Google_Service_ComputeAccounts_LinuxUserView';
+ protected $userViewsDataType = 'array';
+
+
+ public function setGroupViews($groupViews)
+ {
+ $this->groupViews = $groupViews;
+ }
+ public function getGroupViews()
+ {
+ return $this->groupViews;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUserViews($userViews)
+ {
+ $this->userViews = $userViews;
+ }
+ public function getUserViews()
+ {
+ return $this->userViews;
+ }
+}
+
+class Google_Service_ComputeAccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $resourceType = 'Google_Service_ComputeAccounts_AuthorizedKeysView';
+ protected $resourceDataType = '';
+
+
+ public function setResource(Google_Service_ComputeAccounts_AuthorizedKeysView $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
+
+class Google_Service_ComputeAccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $resourceType = 'Google_Service_ComputeAccounts_LinuxAccountViews';
+ protected $resourceDataType = '';
+
+
+ public function setResource(Google_Service_ComputeAccounts_LinuxAccountViews $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
+
+class Google_Service_ComputeAccounts_LinuxGroupView extends Google_Collection
+{
+ protected $collection_key = 'members';
+ protected $internal_gapi_mappings = array(
+ );
+ public $gid;
+ public $groupName;
+ public $members;
+
+
+ public function setGid($gid)
+ {
+ $this->gid = $gid;
+ }
+ public function getGid()
+ {
+ return $this->gid;
+ }
+ public function setGroupName($groupName)
+ {
+ $this->groupName = $groupName;
+ }
+ public function getGroupName()
+ {
+ return $this->groupName;
+ }
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+}
+
+class Google_Service_ComputeAccounts_LinuxUserView extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $gecos;
+ public $gid;
+ public $homeDirectory;
+ public $shell;
+ public $uid;
+ public $username;
+
+
+ public function setGecos($gecos)
+ {
+ $this->gecos = $gecos;
+ }
+ public function getGecos()
+ {
+ return $this->gecos;
+ }
+ public function setGid($gid)
+ {
+ $this->gid = $gid;
+ }
+ public function getGid()
+ {
+ return $this->gid;
+ }
+ public function setHomeDirectory($homeDirectory)
+ {
+ $this->homeDirectory = $homeDirectory;
+ }
+ public function getHomeDirectory()
+ {
+ return $this->homeDirectory;
+ }
+ public function setShell($shell)
+ {
+ $this->shell = $shell;
+ }
+ public function getShell()
+ {
+ return $this->shell;
+ }
+ public function setUid($uid)
+ {
+ $this->uid = $uid;
+ }
+ public function getUid()
+ {
+ return $this->uid;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
+
+class Google_Service_ComputeAccounts_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ protected $internal_gapi_mappings = array(
+ );
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $endTime;
+ protected $errorType = 'Google_Service_ComputeAccounts_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_ComputeAccounts_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_ComputeAccounts_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ 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 setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ 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;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
+
+class Google_Service_ComputeAccounts_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $errorsType = 'Google_Service_ComputeAccounts_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
+
+class Google_Service_ComputeAccounts_OperationErrorErrors extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ public $location;
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_ComputeAccounts_OperationList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ protected $itemsType = 'Google_Service_ComputeAccounts_Operation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ 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;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_ComputeAccounts_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ protected $dataType = 'Google_Service_ComputeAccounts_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_ComputeAccounts_OperationWarningsData extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $key;
+ public $value;
+
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
+class Google_Service_ComputeAccounts_PublicKey extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $creationTimestamp;
+ public $description;
+ public $expirationTimestamp;
+ public $fingerprint;
+ public $key;
+
+
+ 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 setExpirationTimestamp($expirationTimestamp)
+ {
+ $this->expirationTimestamp = $expirationTimestamp;
+ }
+ public function getExpirationTimestamp()
+ {
+ return $this->expirationTimestamp;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+}
+
+class Google_Service_ComputeAccounts_User extends Google_Collection
+{
+ protected $collection_key = 'publicKeys';
+ protected $internal_gapi_mappings = array(
+ );
+ public $creationTimestamp;
+ public $description;
+ public $groups;
+ public $id;
+ public $kind;
+ public $name;
+ public $owner;
+ protected $publicKeysType = 'Google_Service_ComputeAccounts_PublicKey';
+ protected $publicKeysDataType = 'array';
+ public $selfLink;
+
+
+ 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 setGroups($groups)
+ {
+ $this->groups = $groups;
+ }
+ public function getGroups()
+ {
+ return $this->groups;
+ }
+ 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 setOwner($owner)
+ {
+ $this->owner = $owner;
+ }
+ public function getOwner()
+ {
+ return $this->owner;
+ }
+ public function setPublicKeys($publicKeys)
+ {
+ $this->publicKeys = $publicKeys;
+ }
+ public function getPublicKeys()
+ {
+ return $this->publicKeys;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_ComputeAccounts_UserList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ protected $itemsType = 'Google_Service_ComputeAccounts_User';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ 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;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
From ae45e02ae9152e72b1756594bfe7f556543fe369 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $fitnessService = new Google_Service_Fitness(...);
+ * $dataset = $fitnessService->dataset;
+ *
+ */
+class Google_Service_Fitness_UsersDataset_Resource extends Google_Service_Resource
+{
+
+ /**
+ * (dataset.aggregate)
+ *
+ * @param string $userId
+ * @param Google_AggregateRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Fitness_AggregateResponse
+ */
+ public function aggregate($userId, Google_Service_Fitness_AggregateRequest $postBody, $optParams = array())
+ {
+ $params = array('userId' => $userId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('aggregate', array($params), "Google_Service_Fitness_AggregateResponse");
+ }
+}
/**
* The "sessions" collection of methods.
* Typical usage is:
@@ -660,6 +708,211 @@ public function update($userId, $sessionId, Google_Service_Fitness_Session $post
+class Google_Service_Fitness_AggregateBucket extends Google_Collection
+{
+ protected $collection_key = 'dataset';
+ protected $internal_gapi_mappings = array(
+ );
+ public $activity;
+ protected $datasetType = 'Google_Service_Fitness_Dataset';
+ protected $datasetDataType = 'array';
+ public $endTimeMillis;
+ protected $sessionType = 'Google_Service_Fitness_Session';
+ protected $sessionDataType = '';
+ public $startTimeMillis;
+ public $type;
+
+
+ public function setActivity($activity)
+ {
+ $this->activity = $activity;
+ }
+ public function getActivity()
+ {
+ return $this->activity;
+ }
+ public function setDataset($dataset)
+ {
+ $this->dataset = $dataset;
+ }
+ public function getDataset()
+ {
+ return $this->dataset;
+ }
+ public function setEndTimeMillis($endTimeMillis)
+ {
+ $this->endTimeMillis = $endTimeMillis;
+ }
+ public function getEndTimeMillis()
+ {
+ return $this->endTimeMillis;
+ }
+ public function setSession(Google_Service_Fitness_Session $session)
+ {
+ $this->session = $session;
+ }
+ public function getSession()
+ {
+ return $this->session;
+ }
+ public function setStartTimeMillis($startTimeMillis)
+ {
+ $this->startTimeMillis = $startTimeMillis;
+ }
+ public function getStartTimeMillis()
+ {
+ return $this->startTimeMillis;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+}
+
+class Google_Service_Fitness_AggregateBy extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $dataSourceId;
+ public $dataTypeName;
+ public $outputDataSourceId;
+ public $outputDataTypeName;
+
+
+ public function setDataSourceId($dataSourceId)
+ {
+ $this->dataSourceId = $dataSourceId;
+ }
+ public function getDataSourceId()
+ {
+ return $this->dataSourceId;
+ }
+ public function setDataTypeName($dataTypeName)
+ {
+ $this->dataTypeName = $dataTypeName;
+ }
+ public function getDataTypeName()
+ {
+ return $this->dataTypeName;
+ }
+ public function setOutputDataSourceId($outputDataSourceId)
+ {
+ $this->outputDataSourceId = $outputDataSourceId;
+ }
+ public function getOutputDataSourceId()
+ {
+ return $this->outputDataSourceId;
+ }
+ public function setOutputDataTypeName($outputDataTypeName)
+ {
+ $this->outputDataTypeName = $outputDataTypeName;
+ }
+ public function getOutputDataTypeName()
+ {
+ return $this->outputDataTypeName;
+ }
+}
+
+class Google_Service_Fitness_AggregateRequest extends Google_Collection
+{
+ protected $collection_key = 'aggregateBy';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $aggregateByType = 'Google_Service_Fitness_AggregateBy';
+ protected $aggregateByDataType = 'array';
+ protected $bucketByActivitySegmentType = 'Google_Service_Fitness_BucketByActivity';
+ protected $bucketByActivitySegmentDataType = '';
+ protected $bucketByActivityTypeType = 'Google_Service_Fitness_BucketByActivity';
+ protected $bucketByActivityTypeDataType = '';
+ protected $bucketBySessionType = 'Google_Service_Fitness_BucketBySession';
+ protected $bucketBySessionDataType = '';
+ protected $bucketByTimeType = 'Google_Service_Fitness_BucketByTime';
+ protected $bucketByTimeDataType = '';
+ public $endTimeMillis;
+ public $startTimeMillis;
+
+
+ public function setAggregateBy($aggregateBy)
+ {
+ $this->aggregateBy = $aggregateBy;
+ }
+ public function getAggregateBy()
+ {
+ return $this->aggregateBy;
+ }
+ public function setBucketByActivitySegment(Google_Service_Fitness_BucketByActivity $bucketByActivitySegment)
+ {
+ $this->bucketByActivitySegment = $bucketByActivitySegment;
+ }
+ public function getBucketByActivitySegment()
+ {
+ return $this->bucketByActivitySegment;
+ }
+ public function setBucketByActivityType(Google_Service_Fitness_BucketByActivity $bucketByActivityType)
+ {
+ $this->bucketByActivityType = $bucketByActivityType;
+ }
+ public function getBucketByActivityType()
+ {
+ return $this->bucketByActivityType;
+ }
+ public function setBucketBySession(Google_Service_Fitness_BucketBySession $bucketBySession)
+ {
+ $this->bucketBySession = $bucketBySession;
+ }
+ public function getBucketBySession()
+ {
+ return $this->bucketBySession;
+ }
+ public function setBucketByTime(Google_Service_Fitness_BucketByTime $bucketByTime)
+ {
+ $this->bucketByTime = $bucketByTime;
+ }
+ public function getBucketByTime()
+ {
+ return $this->bucketByTime;
+ }
+ public function setEndTimeMillis($endTimeMillis)
+ {
+ $this->endTimeMillis = $endTimeMillis;
+ }
+ public function getEndTimeMillis()
+ {
+ return $this->endTimeMillis;
+ }
+ public function setStartTimeMillis($startTimeMillis)
+ {
+ $this->startTimeMillis = $startTimeMillis;
+ }
+ public function getStartTimeMillis()
+ {
+ return $this->startTimeMillis;
+ }
+}
+
+class Google_Service_Fitness_AggregateResponse extends Google_Collection
+{
+ protected $collection_key = 'bucket';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $bucketType = 'Google_Service_Fitness_AggregateBucket';
+ protected $bucketDataType = 'array';
+
+
+ public function setBucket($bucket)
+ {
+ $this->bucket = $bucket;
+ }
+ public function getBucket()
+ {
+ return $this->bucket;
+ }
+}
+
class Google_Service_Fitness_Application extends Google_Model
{
protected $internal_gapi_mappings = array(
@@ -704,6 +957,66 @@ public function getVersion()
}
}
+class Google_Service_Fitness_BucketByActivity extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $activityDataSourceId;
+ public $minDurationMillis;
+
+
+ public function setActivityDataSourceId($activityDataSourceId)
+ {
+ $this->activityDataSourceId = $activityDataSourceId;
+ }
+ public function getActivityDataSourceId()
+ {
+ return $this->activityDataSourceId;
+ }
+ public function setMinDurationMillis($minDurationMillis)
+ {
+ $this->minDurationMillis = $minDurationMillis;
+ }
+ public function getMinDurationMillis()
+ {
+ return $this->minDurationMillis;
+ }
+}
+
+class Google_Service_Fitness_BucketBySession extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $minDurationMillis;
+
+
+ public function setMinDurationMillis($minDurationMillis)
+ {
+ $this->minDurationMillis = $minDurationMillis;
+ }
+ public function getMinDurationMillis()
+ {
+ return $this->minDurationMillis;
+ }
+}
+
+class Google_Service_Fitness_BucketByTime extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $durationMillis;
+
+
+ public function setDurationMillis($durationMillis)
+ {
+ $this->durationMillis = $durationMillis;
+ }
+ public function getDurationMillis()
+ {
+ return $this->durationMillis;
+ }
+}
+
class Google_Service_Fitness_DataPoint extends Google_Collection
{
protected $collection_key = 'value';
From 9ba0437c90243593ec628042a2e61339351b0cd1 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
- * $pubsubService = new Google_Service_Pubsub(...);
- * $projects = $pubsubService->projects;
- *
- */
-class Google_Service_Pubsub_Projects_Resource extends Google_Service_Resource
-{
-}
-
/**
* The "subscriptions" collection of methods.
* Typical usage is:
@@ -272,43 +196,43 @@ class Google_Service_Pubsub_Projects_Resource extends Google_Service_Resource
* $subscriptions = $pubsubService->subscriptions;
*
*/
-class Google_Service_Pubsub_ProjectsSubscriptions_Resource extends Google_Service_Resource
+class Google_Service_Pubsub_Subscriptions_Resource extends Google_Service_Resource
{
/**
- * Acknowledges the messages associated with the ack tokens in the
- * AcknowledgeRequest. The Pub/Sub system can remove the relevant messages from
- * the subscription. Acknowledging a message whose ack deadline has expired may
- * succeed, but such a message may be redelivered later. Acknowledging a message
- * more than once will not result in an error. (subscriptions.acknowledge)
+ * Acknowledges a particular received message: the Pub/Sub system can remove the
+ * given message from the subscription. Acknowledging a message whose Ack
+ * deadline has expired may succeed, but the message could have been already
+ * redelivered. Acknowledging a message more than once will not result in an
+ * error. This is only used for messages received via pull.
+ * (subscriptions.acknowledge)
*
- * @param string $subscription
* @param Google_AcknowledgeRequest $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_Pubsub_Empty
*/
- public function acknowledge($subscription, Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array())
+ public function acknowledge(Google_Service_Pubsub_AcknowledgeRequest $postBody, $optParams = array())
{
- $params = array('subscription' => $subscription, 'postBody' => $postBody);
+ $params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('acknowledge', array($params), "Google_Service_Pubsub_Empty");
+ return $this->call('acknowledge', array($params));
}
/**
- * Creates a subscription to a given topic for a given subscriber. If the
+ * Creates a subscription on a given topic for a given subscriber. If the
* subscription already exists, returns ALREADY_EXISTS. If the corresponding
- * topic doesn't exist, returns NOT_FOUND. If the name is not provided in the
- * request, the server will assign a random name for this subscription on the
- * same project as the topic. (subscriptions.create)
+ * topic doesn't exist, returns NOT_FOUND.
+ *
+ * If the name is not provided in the request, the server will assign a random
+ * name for this subscription on the same project as the topic.
+ * (subscriptions.create)
*
- * @param string $name
* @param Google_Subscription $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Pubsub_Subscription
*/
- public function create($name, Google_Service_Pubsub_Subscription $postBody, $optParams = array())
+ public function create(Google_Service_Pubsub_Subscription $postBody, $optParams = array())
{
- $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Pubsub_Subscription");
}
@@ -316,25 +240,22 @@ public function create($name, Google_Service_Pubsub_Subscription $postBody, $opt
/**
* Deletes an existing subscription. All pending messages in the subscription
* are immediately dropped. Calls to Pull after deletion will return NOT_FOUND.
- * After a subscription is deleted, a new one may be created with the same name,
- * but the new one has no association with the old subscription, or its topic
- * unless the same topic is specified. (subscriptions.delete)
+ * (subscriptions.delete)
*
- * @param string $subscription
+ * @param string $subscription The subscription to delete.
* @param array $optParams Optional parameters.
- * @return Google_Service_Pubsub_Empty
*/
public function delete($subscription, $optParams = array())
{
$params = array('subscription' => $subscription);
$params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_Pubsub_Empty");
+ return $this->call('delete', array($params));
}
/**
* Gets the configuration details of a subscription. (subscriptions.get)
*
- * @param string $subscription
+ * @param string $subscription The name of the subscription to get.
* @param array $optParams Optional parameters.
* @return Google_Service_Pubsub_Subscription
*/
@@ -346,78 +267,90 @@ public function get($subscription, $optParams = array())
}
/**
- * Lists matching subscriptions. (subscriptions.listProjectsSubscriptions)
+ * Lists matching subscriptions. (subscriptions.listSubscriptions)
*
- * @param string $project
* @param array $optParams Optional parameters.
*
- * @opt_param string pageToken
- * @opt_param int pageSize
+ * @opt_param string pageToken The value obtained in the last
+ * ListSubscriptionsResponse for continuation.
+ * @opt_param int maxResults Maximum number of subscriptions to return.
+ * @opt_param string query A valid label query expression.
* @return Google_Service_Pubsub_ListSubscriptionsResponse
*/
- public function listProjectsSubscriptions($project, $optParams = array())
+ public function listSubscriptions($optParams = array())
{
- $params = array('project' => $project);
+ $params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Pubsub_ListSubscriptionsResponse");
}
/**
- * Modifies the ack deadline for a specific message. This method is useful to
- * indicate that more time is needed to process a message by the subscriber, or
- * to make the message available for redelivery if the processing was
- * interrupted. (subscriptions.modifyAckDeadline)
+ * Modifies the Ack deadline for a message received from a pull request.
+ * (subscriptions.modifyAckDeadline)
*
- * @param string $subscription
* @param Google_ModifyAckDeadlineRequest $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_Pubsub_Empty
*/
- public function modifyAckDeadline($subscription, Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array())
+ public function modifyAckDeadline(Google_Service_Pubsub_ModifyAckDeadlineRequest $postBody, $optParams = array())
{
- $params = array('subscription' => $subscription, 'postBody' => $postBody);
+ $params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('modifyAckDeadline', array($params), "Google_Service_Pubsub_Empty");
+ return $this->call('modifyAckDeadline', array($params));
}
/**
- * Modifies the PushConfig for a specified subscription. This may be used to
- * change a push subscription to a pull one (signified by an empty PushConfig)
- * or vice versa, or change the endpoint URL and other attributes of a push
- * subscription. Messages will accumulate for delivery continuously through the
- * call regardless of changes to the PushConfig.
+ * Modifies the PushConfig for a specified subscription. This method can be used
+ * to suspend the flow of messages to an endpoint by clearing the PushConfig
+ * field in the request. Messages will be accumulated for delivery even if no
+ * push configuration is defined or while the configuration is modified.
* (subscriptions.modifyPushConfig)
*
- * @param string $subscription
* @param Google_ModifyPushConfigRequest $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_Pubsub_Empty
*/
- public function modifyPushConfig($subscription, Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array())
+ public function modifyPushConfig(Google_Service_Pubsub_ModifyPushConfigRequest $postBody, $optParams = array())
{
- $params = array('subscription' => $subscription, 'postBody' => $postBody);
+ $params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('modifyPushConfig', array($params), "Google_Service_Pubsub_Empty");
+ return $this->call('modifyPushConfig', array($params));
}
/**
- * Pulls messages from the server. Returns an empty list if there are no
- * messages available in the backlog. The server may return UNAVAILABLE if there
- * are too many concurrent pull requests pending for the given subscription.
- * (subscriptions.pull)
+ * Pulls a single message from the server. If return_immediately is true, and no
+ * messages are available in the subscription, this method returns
+ * FAILED_PRECONDITION. The system is free to return an UNAVAILABLE error if no
+ * messages are available in a reasonable amount of time (to reduce system
+ * load). (subscriptions.pull)
*
- * @param string $subscription
* @param Google_PullRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Pubsub_PullResponse
*/
- public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody, $optParams = array())
+ public function pull(Google_Service_Pubsub_PullRequest $postBody, $optParams = array())
{
- $params = array('subscription' => $subscription, 'postBody' => $postBody);
+ $params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('pull', array($params), "Google_Service_Pubsub_PullResponse");
}
+
+ /**
+ * Pulls messages from the server. Returns an empty list if there are no
+ * messages available in the backlog. The system is free to return UNAVAILABLE
+ * if there are too many pull requests outstanding for the given subscription.
+ * (subscriptions.pullBatch)
+ *
+ * @param Google_PullBatchRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Pubsub_PullBatchResponse
+ */
+ public function pullBatch(Google_Service_Pubsub_PullBatchRequest $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('pullBatch', array($params), "Google_Service_Pubsub_PullBatchResponse");
+ }
}
+
/**
* The "topics" collection of methods.
* Typical usage is:
@@ -426,20 +359,19 @@ public function pull($subscription, Google_Service_Pubsub_PullRequest $postBody,
* $topics = $pubsubService->topics;
*
*/
-class Google_Service_Pubsub_ProjectsTopics_Resource extends Google_Service_Resource
+class Google_Service_Pubsub_Topics_Resource extends Google_Service_Resource
{
/**
* Creates the given topic with the given name. (topics.create)
*
- * @param string $name
* @param Google_Topic $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Pubsub_Topic
*/
- public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams = array())
+ public function create(Google_Service_Pubsub_Topic $postBody, $optParams = array())
{
- $params = array('name' => $name, 'postBody' => $postBody);
+ $params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Pubsub_Topic");
}
@@ -447,25 +379,25 @@ public function create($name, Google_Service_Pubsub_Topic $postBody, $optParams
/**
* Deletes the topic with the given name. Returns NOT_FOUND if the topic does
* not exist. After a topic is deleted, a new topic may be created with the same
- * name; this is an entirely new topic with none of the old configuration or
- * subscriptions. Existing subscriptions to this topic are not deleted.
- * (topics.delete)
+ * name. (topics.delete)
*
- * @param string $topic
+ * @param string $topic Name of the topic to delete.
* @param array $optParams Optional parameters.
- * @return Google_Service_Pubsub_Empty
*/
public function delete($topic, $optParams = array())
{
$params = array('topic' => $topic);
$params = array_merge($params, $optParams);
- return $this->call('delete', array($params), "Google_Service_Pubsub_Empty");
+ return $this->call('delete', array($params));
}
/**
- * Gets the configuration of a topic. (topics.get)
+ * Gets the configuration of a topic. Since the topic only has the name
+ * attribute, this method is only useful to check the existence of a topic. If
+ * other attributes are added in the future, they will be returned here.
+ * (topics.get)
*
- * @param string $topic
+ * @param string $topic The name of the topic to get.
* @param array $optParams Optional parameters.
* @return Google_Service_Pubsub_Topic
*/
@@ -477,66 +409,50 @@ public function get($topic, $optParams = array())
}
/**
- * Lists matching topics. (topics.listProjectsTopics)
+ * Lists matching topics. (topics.listTopics)
*
- * @param string $project
* @param array $optParams Optional parameters.
*
- * @opt_param string pageToken
- * @opt_param int pageSize
+ * @opt_param string pageToken The value obtained in the last ListTopicsResponse
+ * for continuation.
+ * @opt_param int maxResults Maximum number of topics to return.
+ * @opt_param string query A valid label query expression.
* @return Google_Service_Pubsub_ListTopicsResponse
*/
- public function listProjectsTopics($project, $optParams = array())
+ public function listTopics($optParams = array())
{
- $params = array('project' => $project);
+ $params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse");
}
/**
- * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does
- * not exist. (topics.publish)
+ * Adds a message to the topic. Returns NOT_FOUND if the topic does not exist.
+ * (topics.publish)
*
- * @param string $topic
* @param Google_PublishRequest $postBody
* @param array $optParams Optional parameters.
- * @return Google_Service_Pubsub_PublishResponse
*/
- public function publish($topic, Google_Service_Pubsub_PublishRequest $postBody, $optParams = array())
+ public function publish(Google_Service_Pubsub_PublishRequest $postBody, $optParams = array())
{
- $params = array('topic' => $topic, 'postBody' => $postBody);
+ $params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('publish', array($params), "Google_Service_Pubsub_PublishResponse");
+ return $this->call('publish', array($params));
}
-}
-
-/**
- * The "subscriptions" collection of methods.
- * Typical usage is:
- *
- * $pubsubService = new Google_Service_Pubsub(...);
- * $subscriptions = $pubsubService->subscriptions;
- *
- */
-class Google_Service_Pubsub_ProjectsTopicsSubscriptions_Resource extends Google_Service_Resource
-{
/**
- * Lists the name of the subscriptions for this topic.
- * (subscriptions.listProjectsTopicsSubscriptions)
+ * Adds one or more messages to the topic. Returns NOT_FOUND if the topic does
+ * not exist. (topics.publishBatch)
*
- * @param string $topic
+ * @param Google_PublishBatchRequest $postBody
* @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken
- * @opt_param int pageSize
- * @return Google_Service_Pubsub_ListTopicSubscriptionsResponse
+ * @return Google_Service_Pubsub_PublishBatchResponse
*/
- public function listProjectsTopicsSubscriptions($topic, $optParams = array())
+ public function publishBatch(Google_Service_Pubsub_PublishBatchRequest $postBody, $optParams = array())
{
- $params = array('topic' => $topic);
+ $params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicSubscriptionsResponse");
+ return $this->call('publishBatch', array($params), "Google_Service_Pubsub_PublishBatchResponse");
}
}
@@ -545,61 +461,74 @@ public function listProjectsTopicsSubscriptions($topic, $optParams = array())
class Google_Service_Pubsub_AcknowledgeRequest extends Google_Collection
{
- protected $collection_key = 'ackIds';
+ protected $collection_key = 'ackId';
protected $internal_gapi_mappings = array(
);
- public $ackIds;
+ public $ackId;
+ public $subscription;
- public function setAckIds($ackIds)
+ public function setAckId($ackId)
{
- $this->ackIds = $ackIds;
+ $this->ackId = $ackId;
}
- public function getAckIds()
+ public function getAckId()
{
- return $this->ackIds;
+ return $this->ackId;
+ }
+ public function setSubscription($subscription)
+ {
+ $this->subscription = $subscription;
+ }
+ public function getSubscription()
+ {
+ return $this->subscription;
}
}
-class Google_Service_Pubsub_Empty extends Google_Model
-{
-}
-
-class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection
+class Google_Service_Pubsub_Label extends Google_Model
{
- protected $collection_key = 'subscriptions';
protected $internal_gapi_mappings = array(
);
- public $nextPageToken;
- protected $subscriptionsType = 'Google_Service_Pubsub_Subscription';
- protected $subscriptionsDataType = 'array';
+ public $key;
+ public $numValue;
+ public $strValue;
- public function setNextPageToken($nextPageToken)
+ public function setKey($key)
{
- $this->nextPageToken = $nextPageToken;
+ $this->key = $key;
}
- public function getNextPageToken()
+ public function getKey()
{
- return $this->nextPageToken;
+ return $this->key;
+ }
+ public function setNumValue($numValue)
+ {
+ $this->numValue = $numValue;
}
- public function setSubscriptions($subscriptions)
+ public function getNumValue()
{
- $this->subscriptions = $subscriptions;
+ return $this->numValue;
}
- public function getSubscriptions()
+ public function setStrValue($strValue)
{
- return $this->subscriptions;
+ $this->strValue = $strValue;
+ }
+ public function getStrValue()
+ {
+ return $this->strValue;
}
}
-class Google_Service_Pubsub_ListTopicSubscriptionsResponse extends Google_Collection
+class Google_Service_Pubsub_ListSubscriptionsResponse extends Google_Collection
{
- protected $collection_key = 'subscriptions';
+ protected $collection_key = 'subscription';
protected $internal_gapi_mappings = array(
);
public $nextPageToken;
- public $subscriptions;
+ protected $subscriptionType = 'Google_Service_Pubsub_Subscription';
+ protected $subscriptionDataType = 'array';
public function setNextPageToken($nextPageToken)
@@ -610,24 +539,24 @@ public function getNextPageToken()
{
return $this->nextPageToken;
}
- public function setSubscriptions($subscriptions)
+ public function setSubscription($subscription)
{
- $this->subscriptions = $subscriptions;
+ $this->subscription = $subscription;
}
- public function getSubscriptions()
+ public function getSubscription()
{
- return $this->subscriptions;
+ return $this->subscription;
}
}
class Google_Service_Pubsub_ListTopicsResponse extends Google_Collection
{
- protected $collection_key = 'topics';
+ protected $collection_key = 'topic';
protected $internal_gapi_mappings = array(
);
public $nextPageToken;
- protected $topicsType = 'Google_Service_Pubsub_Topic';
- protected $topicsDataType = 'array';
+ protected $topicType = 'Google_Service_Pubsub_Topic';
+ protected $topicDataType = 'array';
public function setNextPageToken($nextPageToken)
@@ -638,22 +567,25 @@ public function getNextPageToken()
{
return $this->nextPageToken;
}
- public function setTopics($topics)
+ public function setTopic($topic)
{
- $this->topics = $topics;
+ $this->topic = $topic;
}
- public function getTopics()
+ public function getTopic()
{
- return $this->topics;
+ return $this->topic;
}
}
-class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Model
+class Google_Service_Pubsub_ModifyAckDeadlineRequest extends Google_Collection
{
+ protected $collection_key = 'ackIds';
protected $internal_gapi_mappings = array(
);
public $ackDeadlineSeconds;
public $ackId;
+ public $ackIds;
+ public $subscription;
public function setAckDeadlineSeconds($ackDeadlineSeconds)
@@ -672,6 +604,22 @@ public function getAckId()
{
return $this->ackId;
}
+ public function setAckIds($ackIds)
+ {
+ $this->ackIds = $ackIds;
+ }
+ public function getAckIds()
+ {
+ return $this->ackIds;
+ }
+ public function setSubscription($subscription)
+ {
+ $this->subscription = $subscription;
+ }
+ public function getSubscription()
+ {
+ return $this->subscription;
+ }
}
class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model
@@ -680,6 +628,7 @@ class Google_Service_Pubsub_ModifyPushConfigRequest extends Google_Model
);
protected $pushConfigType = 'Google_Service_Pubsub_PushConfig';
protected $pushConfigDataType = '';
+ public $subscription;
public function setPushConfig(Google_Service_Pubsub_PushConfig $pushConfig)
@@ -690,15 +639,24 @@ public function getPushConfig()
{
return $this->pushConfig;
}
+ public function setSubscription($subscription)
+ {
+ $this->subscription = $subscription;
+ }
+ public function getSubscription()
+ {
+ return $this->subscription;
+ }
}
-class Google_Service_Pubsub_PublishRequest extends Google_Collection
+class Google_Service_Pubsub_PublishBatchRequest extends Google_Collection
{
protected $collection_key = 'messages';
protected $internal_gapi_mappings = array(
);
protected $messagesType = 'Google_Service_Pubsub_PubsubMessage';
protected $messagesDataType = 'array';
+ public $topic;
public function setMessages($messages)
@@ -709,9 +667,17 @@ public function getMessages()
{
return $this->messages;
}
+ public function setTopic($topic)
+ {
+ $this->topic = $topic;
+ }
+ public function getTopic()
+ {
+ return $this->topic;
+ }
}
-class Google_Service_Pubsub_PublishResponse extends Google_Collection
+class Google_Service_Pubsub_PublishBatchResponse extends Google_Collection
{
protected $collection_key = 'messageIds';
protected $internal_gapi_mappings = array(
@@ -729,23 +695,89 @@ public function getMessageIds()
}
}
-class Google_Service_Pubsub_PubsubMessage extends Google_Model
+class Google_Service_Pubsub_PublishRequest extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $attributes;
- public $data;
- public $messageId;
+ protected $messageType = 'Google_Service_Pubsub_PubsubMessage';
+ protected $messageDataType = '';
+ public $topic;
+
+
+ public function setMessage(Google_Service_Pubsub_PubsubMessage $message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setTopic($topic)
+ {
+ $this->topic = $topic;
+ }
+ public function getTopic()
+ {
+ return $this->topic;
+ }
+}
+class Google_Service_Pubsub_PubsubEvent extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $deleted;
+ protected $messageType = 'Google_Service_Pubsub_PubsubMessage';
+ protected $messageDataType = '';
+ public $subscription;
+ public $truncated;
- public function setAttributes($attributes)
+
+ public function setDeleted($deleted)
{
- $this->attributes = $attributes;
+ $this->deleted = $deleted;
}
- public function getAttributes()
+ public function getDeleted()
{
- return $this->attributes;
+ return $this->deleted;
}
+ public function setMessage(Google_Service_Pubsub_PubsubMessage $message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+ public function setSubscription($subscription)
+ {
+ $this->subscription = $subscription;
+ }
+ public function getSubscription()
+ {
+ return $this->subscription;
+ }
+ public function setTruncated($truncated)
+ {
+ $this->truncated = $truncated;
+ }
+ public function getTruncated()
+ {
+ return $this->truncated;
+ }
+}
+
+class Google_Service_Pubsub_PubsubMessage extends Google_Collection
+{
+ protected $collection_key = 'label';
+ protected $internal_gapi_mappings = array(
+ );
+ public $data;
+ protected $labelType = 'Google_Service_Pubsub_Label';
+ protected $labelDataType = 'array';
+ public $messageId;
+
+
public function setData($data)
{
$this->data = $data;
@@ -754,6 +786,14 @@ public function getData()
{
return $this->data;
}
+ public function setLabel($label)
+ {
+ $this->label = $label;
+ }
+ public function getLabel()
+ {
+ return $this->label;
+ }
public function setMessageId($messageId)
{
$this->messageId = $messageId;
@@ -764,25 +804,22 @@ public function getMessageId()
}
}
-class Google_Service_Pubsub_PubsubMessageAttributes extends Google_Model
-{
-}
-
-class Google_Service_Pubsub_PullRequest extends Google_Model
+class Google_Service_Pubsub_PullBatchRequest extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $maxMessages;
+ public $maxEvents;
public $returnImmediately;
+ public $subscription;
- public function setMaxMessages($maxMessages)
+ public function setMaxEvents($maxEvents)
{
- $this->maxMessages = $maxMessages;
+ $this->maxEvents = $maxEvents;
}
- public function getMaxMessages()
+ public function getMaxEvents()
{
- return $this->maxMessages;
+ return $this->maxEvents;
}
public function setReturnImmediately($returnImmediately)
{
@@ -792,64 +829,68 @@ public function getReturnImmediately()
{
return $this->returnImmediately;
}
+ public function setSubscription($subscription)
+ {
+ $this->subscription = $subscription;
+ }
+ public function getSubscription()
+ {
+ return $this->subscription;
+ }
}
-class Google_Service_Pubsub_PullResponse extends Google_Collection
+class Google_Service_Pubsub_PullBatchResponse extends Google_Collection
{
- protected $collection_key = 'receivedMessages';
+ protected $collection_key = 'pullResponses';
protected $internal_gapi_mappings = array(
);
- protected $receivedMessagesType = 'Google_Service_Pubsub_ReceivedMessage';
- protected $receivedMessagesDataType = 'array';
+ protected $pullResponsesType = 'Google_Service_Pubsub_PullResponse';
+ protected $pullResponsesDataType = 'array';
- public function setReceivedMessages($receivedMessages)
+ public function setPullResponses($pullResponses)
{
- $this->receivedMessages = $receivedMessages;
+ $this->pullResponses = $pullResponses;
}
- public function getReceivedMessages()
+ public function getPullResponses()
{
- return $this->receivedMessages;
+ return $this->pullResponses;
}
}
-class Google_Service_Pubsub_PushConfig extends Google_Model
+class Google_Service_Pubsub_PullRequest extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $attributes;
- public $pushEndpoint;
+ public $returnImmediately;
+ public $subscription;
- public function setAttributes($attributes)
+ public function setReturnImmediately($returnImmediately)
{
- $this->attributes = $attributes;
+ $this->returnImmediately = $returnImmediately;
}
- public function getAttributes()
+ public function getReturnImmediately()
{
- return $this->attributes;
+ return $this->returnImmediately;
}
- public function setPushEndpoint($pushEndpoint)
+ public function setSubscription($subscription)
{
- $this->pushEndpoint = $pushEndpoint;
+ $this->subscription = $subscription;
}
- public function getPushEndpoint()
+ public function getSubscription()
{
- return $this->pushEndpoint;
+ return $this->subscription;
}
}
-class Google_Service_Pubsub_PushConfigAttributes extends Google_Model
-{
-}
-
-class Google_Service_Pubsub_ReceivedMessage extends Google_Model
+class Google_Service_Pubsub_PullResponse extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $ackId;
- protected $messageType = 'Google_Service_Pubsub_PubsubMessage';
- protected $messageDataType = '';
+ protected $pubsubEventType = 'Google_Service_Pubsub_PubsubEvent';
+ protected $pubsubEventDataType = '';
public function setAckId($ackId)
@@ -860,13 +901,30 @@ public function getAckId()
{
return $this->ackId;
}
- public function setMessage(Google_Service_Pubsub_PubsubMessage $message)
+ public function setPubsubEvent(Google_Service_Pubsub_PubsubEvent $pubsubEvent)
{
- $this->message = $message;
+ $this->pubsubEvent = $pubsubEvent;
}
- public function getMessage()
+ public function getPubsubEvent()
{
- return $this->message;
+ return $this->pubsubEvent;
+ }
+}
+
+class Google_Service_Pubsub_PushConfig extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $pushEndpoint;
+
+
+ public function setPushEndpoint($pushEndpoint)
+ {
+ $this->pushEndpoint = $pushEndpoint;
+ }
+ public function getPushEndpoint()
+ {
+ return $this->pushEndpoint;
}
}
From f2d811e9cb364fe28ba6ebb72ccc188630c8854d Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $cloudresourcemanagerService = new Google_Service_Cloudresourcemanager(...);
+ * $projects = $cloudresourcemanagerService->projects;
+ *
+ */
+class Google_Service_Cloudresourcemanager_Projects_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Creates a project resource. Initially, the project resource is owned by its
+ * creator exclusively. The creator can later grant permission to others to read
+ * or update the project. Several APIs are activated automatically for the
+ * project, including Google Cloud Storage. (projects.create)
+ *
+ * @param Google_Project $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudresourcemanager_Project
+ */
+ public function create(Google_Service_Cloudresourcemanager_Project $postBody, $optParams = array())
+ {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('create', array($params), "Google_Service_Cloudresourcemanager_Project");
+ }
+
+ /**
+ * Marks the project identified by the specified `project_id` (for example, `my-
+ * project-123`) for deletion. This method will only affect the project if it
+ * has a lifecycle state of
+ * [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] when
+ * this method is called. Otherwise this method does nothing (since all other
+ * states are phases of deletion). This method changes the project's lifecycle
+ * state from
+ * [ACTIVE][cloudresourcemanager.projects.v1beta2.LifecycleState.ACTIVE] to
+ * [DELETE_REQUESTED]
+ * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED]. The
+ * deletion starts at an unspecified time, at which point the lifecycle state
+ * changes to [DELETE_IN_PROGRESS]
+ * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRESS].
+ * Until the deletion completes, you can check the lifecycle state checked by
+ * retrieving the project with [GetProject]
+ * [cloudresourcemanager.projects.v1beta2.Projects.GetProject], and the project
+ * remains visible to [ListProjects]
+ * [cloudresourcemanager.projects.v1beta2.Projects.ListProjects]. However, you
+ * cannot update the project. After the deletion completes, the project is not
+ * retrievable by the [GetProject]
+ * [cloudresourcemanager.projects.v1beta2.Projects.GetProject] and
+ * [ListProjects] [cloudresourcemanager.projects.v1beta2.Projects.ListProjects]
+ * methods. The caller must have modify permissions for this project.
+ * (projects.delete)
+ *
+ * @param string $projectId The project ID (for example, `foo-bar-123`).
+ * Required.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudresourcemanager_Empty
+ */
+ public function delete($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_Cloudresourcemanager_Empty");
+ }
+
+ /**
+ * Retrieves the project identified by the specified `project_id` (for example,
+ * `my-project-123`). The caller must have read permissions for this project.
+ * (projects.get)
+ *
+ * @param string $projectId The project ID (for example, `my-project-123`).
+ * Required.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudresourcemanager_Project
+ */
+ public function get($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_Cloudresourcemanager_Project");
+ }
+
+ /**
+ * Lists projects that are visible to the user and satisfy the specified filter.
+ * This method returns projects in an unspecified order. New projects do not
+ * necessarily appear at the end of the list. (projects.listProjects)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter An expression for filtering the results of the
+ * request. Filter rules are case insensitive. The fields eligible for filtering
+ * are: name id labels. where is a the name of a label Examples: name:* ==> The
+ * project has a name. name:Howl ==> The project’s name is `Howl` or 'howl'.
+ * name:HOWL ==> Equivalent to above. NAME:howl ==> Equivalent to above.
+ * labels.color:* ==> The project has the label "color". labels.color:red ==>
+ * The project’s label `color` has the value `red`. labels.color:red
+ * label.size:big ==> The project's label `color` has the value `red` and its
+ * label `size` has the value `big`. Optional.
+ * @opt_param string pageToken A pagination token returned from a previous call
+ * to ListProject that indicates from where listing should continue. Note:
+ * pagination is not yet supported; the server ignores this field. Optional.
+ * @opt_param int pageSize The maximum number of Projects to return in the
+ * response. The server can return fewer projects than requested. If
+ * unspecified, server picks an appropriate default. Note: pagination is not yet
+ * supported; the server ignores this field. Optional.
+ * @return Google_Service_Cloudresourcemanager_ListProjectsResponse
+ */
+ public function listProjects($optParams = array())
+ {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_Cloudresourcemanager_ListProjectsResponse");
+ }
+
+ /**
+ * Restores the project identified by the specified `project_id` (for example,
+ * `my-project-123`). You can only use this method for a project that has a
+ * lifecycle state of [DELETE_REQUESTED]
+ * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_REQUESTED].
+ * After deletion starts, as indicated by a lifecycle state of
+ * [DELETE_IN_PROGRESS]
+ * [cloudresourcemanager.projects.v1beta2.LifecycleState.DELETE_IN_PROGRESS],
+ * the project cannot be restored. The caller must have modify permissions for
+ * this project. (projects.undelete)
+ *
+ * @param string $projectId The project ID (for example, `foo-bar-123`).
+ * Required.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudresourcemanager_Empty
+ */
+ public function undelete($projectId, $optParams = array())
+ {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ return $this->call('undelete', array($params), "Google_Service_Cloudresourcemanager_Empty");
+ }
+
+ /**
+ * Updates the attributes of the project identified by the specified
+ * `project_id` (for example, `my-project-123`). The caller must have modify
+ * permissions for this project. (projects.update)
+ *
+ * @param string $projectId The project ID (for example, `my-project-123`).
+ * Required.
+ * @param Google_Project $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Cloudresourcemanager_Project
+ */
+ public function update($projectId, Google_Service_Cloudresourcemanager_Project $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Cloudresourcemanager_Project");
+ }
+}
+
+
+
+
+class Google_Service_Cloudresourcemanager_Empty extends Google_Model
+{
+}
+
+class Google_Service_Cloudresourcemanager_ListProjectsResponse extends Google_Collection
+{
+ protected $collection_key = 'projects';
+ protected $internal_gapi_mappings = array(
+ );
+ public $nextPageToken;
+ protected $projectsType = 'Google_Service_Cloudresourcemanager_Project';
+ protected $projectsDataType = 'array';
+
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setProjects($projects)
+ {
+ $this->projects = $projects;
+ }
+ public function getProjects()
+ {
+ return $this->projects;
+ }
+}
+
+class Google_Service_Cloudresourcemanager_Project extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $createTime;
+ public $labels;
+ public $lifecycleState;
+ public $name;
+ public $projectId;
+ public $projectNumber;
+
+
+ public function setCreateTime($createTime)
+ {
+ $this->createTime = $createTime;
+ }
+ public function getCreateTime()
+ {
+ return $this->createTime;
+ }
+ public function setLabels($labels)
+ {
+ $this->labels = $labels;
+ }
+ public function getLabels()
+ {
+ return $this->labels;
+ }
+ public function setLifecycleState($lifecycleState)
+ {
+ $this->lifecycleState = $lifecycleState;
+ }
+ public function getLifecycleState()
+ {
+ return $this->lifecycleState;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProjectId($projectId)
+ {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId()
+ {
+ return $this->projectId;
+ }
+ public function setProjectNumber($projectNumber)
+ {
+ $this->projectNumber = $projectNumber;
+ }
+ public function getProjectNumber()
+ {
+ return $this->projectNumber;
+ }
+}
+
+class Google_Service_Cloudresourcemanager_ProjectLabels extends Google_Model
+{
+}
From da350e19472f5711703a68a77c6df8d1f5ed4fd4 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
- * $containerService = new Google_Service_Container(...);
- * $clusters = $containerService->clusters;
- *
- */
-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:
- *
- * $containerService = new Google_Service_Container(...);
- * $operations = $containerService->operations;
- *
- */
-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:
@@ -349,50 +238,47 @@ class Google_Service_Container_ProjectsZonesClusters_Resource extends Google_Ser
/**
* 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.
+ * Compute Engine instances, plus a Kubernetes master endpoint. By default, the
+ * cluster is created in the project's [default
+ * network]('/compute/docs/networking#networks_1'). One firewall is added for
+ * the cluster. After cluster creation, the cluster creates routes for each node
+ * to allow the containers on that node to communicate with all other instances
+ * in the cluster. Finally, an entry is added to the project's global metadata
+ * indicating which CIDR range is being used by the cluster. (clusters.create)
*
- * 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 string $projectId The Google Developers Console [project
+ * ID](https://console.developers.google.com/project) or [project
+ * number](https://developers.google.com/console/help/project-number)
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) 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())
+ public function create($projectId, $zone, Google_Service_Container_CreateClusterRequest $postBody, $optParams = array())
{
- $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'postBody' => $postBody);
+ $params = array('projectId' => $projectId, 'zone' => $zone, '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
+ * Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
+ * Firewalls and routes that were configured during 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 $projectId The Google Developers Console [project
+ * ID](https://console.developers.google.com/project) or [project
+ * number](https://developers.google.com/console/help/project-number)
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) 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())
+ public function delete($projectId, $zone, $clusterId, $optParams = array())
{
- $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'clusterId' => $clusterId);
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Container_Operation");
}
@@ -400,38 +286,61 @@ public function delete($projectId, $zoneId, $clusterId, $optParams = array())
/**
* 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 $projectId The Google Developers Console A [project
+ * ID](https://console.developers.google.com/project) or [project
+ * number](https://developers.google.com/console/help/project-number)
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) 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())
+ public function get($projectId, $zone, $clusterId, $optParams = array())
{
- $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'clusterId' => $clusterId);
+ $params = array('projectId' => $projectId, 'zone' => $zone, '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)
+ * Lists all clusters owned by a project in either the specified zone or all
+ * zones. (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 string $projectId The Google Developers Console [project
+ * ID](https://console.developers.google.com/project) or [project
+ * number](https://developers.google.com/console/help/project-number)
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides, or "-"
+ * for all zones.
* @param array $optParams Optional parameters.
* @return Google_Service_Container_ListClustersResponse
*/
- public function listProjectsZonesClusters($projectId, $zoneId, $optParams = array())
+ public function listProjectsZonesClusters($projectId, $zone, $optParams = array())
{
- $params = array('projectId' => $projectId, 'zoneId' => $zoneId);
+ $params = array('projectId' => $projectId, 'zone' => $zone);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Container_ListClustersResponse");
}
+
+ /**
+ * Update settings of a specific cluster. (clusters.update)
+ *
+ * @param string $projectId The Google Developers Console [project
+ * ID](https://console.developers.google.com/project) or [project
+ * number](https://developers.google.com/console/help/project-number)
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @param string $clusterId The name of the cluster to upgrade.
+ * @param Google_UpdateClusterRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Container_Operation
+ */
+ public function update($projectId, $zone, $clusterId, Google_Service_Container_UpdateClusterRequest $postBody, $optParams = array())
+ {
+ $params = array('projectId' => $projectId, 'zone' => $zone, 'clusterId' => $clusterId, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_Container_Operation");
+ }
}
/**
* The "operations" collection of methods.
@@ -447,95 +356,69 @@ class Google_Service_Container_ProjectsZonesOperations_Resource extends Google_S
/**
* 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 string $projectId The Google Developers Console [project
+ * ID](https://console.developers.google.com/project) or [project
+ * number](https://developers.google.com/console/help/project-number)
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) in which the cluster resides.
+ * @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())
+ public function get($projectId, $zone, $operationId, $optParams = array())
{
- $params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'operationId' => $operationId);
+ $params = array('projectId' => $projectId, 'zone' => $zone, '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.
+ * Lists all operations in a project in a specific zone or all zones.
* (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 string $projectId The Google Developers Console [project
+ * ID](https://console.developers.google.com/project) or [project
+ * number](https://developers.google.com/console/help/project-number)
+ * @param string $zone The name of the Google Compute Engine
+ * [zone](/compute/docs/zones#available) to return operations for, or "-" for
+ * all zones.
* @param array $optParams Optional parameters.
* @return Google_Service_Container_ListOperationsResponse
*/
- public function listProjectsZonesOperations($projectId, $zoneId, $optParams = array())
+ public function listProjectsZonesOperations($projectId, $zone, $optParams = array())
{
- $params = array('projectId' => $projectId, 'zoneId' => $zoneId);
+ $params = array('projectId' => $projectId, 'zone' => $zone);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Container_ListOperationsResponse");
}
}
-/**
- * The "tokens" collection of methods.
- * Typical usage is:
- *
- * $containerService = new Google_Service_Container(...);
- * $tokens = $containerService->tokens;
- *
- */
-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
+class Google_Service_Container_Cluster extends Google_Collection
{
+ protected $collection_key = 'instanceGroupUrls';
protected $internal_gapi_mappings = array(
);
- public $clusterApiVersion;
- public $containerIpv4Cidr;
- public $creationTimestamp;
+ public $clusterIpv4Cidr;
+ public $createTime;
+ public $currentMasterVersion;
+ public $currentNodeVersion;
public $description;
- public $enableCloudLogging;
public $endpoint;
+ public $initialClusterVersion;
+ public $initialNodeCount;
+ public $instanceGroupUrls;
+ public $loggingService;
protected $masterAuthType = 'Google_Service_Container_MasterAuth';
protected $masterAuthDataType = '';
+ public $monitoringService;
public $name;
public $network;
protected $nodeConfigType = 'Google_Service_Container_NodeConfig';
protected $nodeConfigDataType = '';
- public $nodeRoutingPrefixSize;
- public $numNodes;
+ public $nodeIpv4CidrSize;
public $selfLink;
public $servicesIpv4Cidr;
public $status;
@@ -543,45 +426,45 @@ class Google_Service_Container_Cluster extends Google_Model
public $zone;
- public function setClusterApiVersion($clusterApiVersion)
+ public function setClusterIpv4Cidr($clusterIpv4Cidr)
{
- $this->clusterApiVersion = $clusterApiVersion;
+ $this->clusterIpv4Cidr = $clusterIpv4Cidr;
}
- public function getClusterApiVersion()
+ public function getClusterIpv4Cidr()
{
- return $this->clusterApiVersion;
+ return $this->clusterIpv4Cidr;
}
- public function setContainerIpv4Cidr($containerIpv4Cidr)
+ public function setCreateTime($createTime)
{
- $this->containerIpv4Cidr = $containerIpv4Cidr;
+ $this->createTime = $createTime;
}
- public function getContainerIpv4Cidr()
+ public function getCreateTime()
{
- return $this->containerIpv4Cidr;
+ return $this->createTime;
}
- public function setCreationTimestamp($creationTimestamp)
+ public function setCurrentMasterVersion($currentMasterVersion)
{
- $this->creationTimestamp = $creationTimestamp;
+ $this->currentMasterVersion = $currentMasterVersion;
}
- public function getCreationTimestamp()
+ public function getCurrentMasterVersion()
{
- return $this->creationTimestamp;
+ return $this->currentMasterVersion;
}
- public function setDescription($description)
+ public function setCurrentNodeVersion($currentNodeVersion)
{
- $this->description = $description;
+ $this->currentNodeVersion = $currentNodeVersion;
}
- public function getDescription()
+ public function getCurrentNodeVersion()
{
- return $this->description;
+ return $this->currentNodeVersion;
}
- public function setEnableCloudLogging($enableCloudLogging)
+ public function setDescription($description)
{
- $this->enableCloudLogging = $enableCloudLogging;
+ $this->description = $description;
}
- public function getEnableCloudLogging()
+ public function getDescription()
{
- return $this->enableCloudLogging;
+ return $this->description;
}
public function setEndpoint($endpoint)
{
@@ -591,6 +474,38 @@ public function getEndpoint()
{
return $this->endpoint;
}
+ public function setInitialClusterVersion($initialClusterVersion)
+ {
+ $this->initialClusterVersion = $initialClusterVersion;
+ }
+ public function getInitialClusterVersion()
+ {
+ return $this->initialClusterVersion;
+ }
+ public function setInitialNodeCount($initialNodeCount)
+ {
+ $this->initialNodeCount = $initialNodeCount;
+ }
+ public function getInitialNodeCount()
+ {
+ return $this->initialNodeCount;
+ }
+ public function setInstanceGroupUrls($instanceGroupUrls)
+ {
+ $this->instanceGroupUrls = $instanceGroupUrls;
+ }
+ public function getInstanceGroupUrls()
+ {
+ return $this->instanceGroupUrls;
+ }
+ public function setLoggingService($loggingService)
+ {
+ $this->loggingService = $loggingService;
+ }
+ public function getLoggingService()
+ {
+ return $this->loggingService;
+ }
public function setMasterAuth(Google_Service_Container_MasterAuth $masterAuth)
{
$this->masterAuth = $masterAuth;
@@ -599,6 +514,14 @@ public function getMasterAuth()
{
return $this->masterAuth;
}
+ public function setMonitoringService($monitoringService)
+ {
+ $this->monitoringService = $monitoringService;
+ }
+ public function getMonitoringService()
+ {
+ return $this->monitoringService;
+ }
public function setName($name)
{
$this->name = $name;
@@ -623,21 +546,13 @@ public function getNodeConfig()
{
return $this->nodeConfig;
}
- public function setNodeRoutingPrefixSize($nodeRoutingPrefixSize)
+ public function setNodeIpv4CidrSize($nodeIpv4CidrSize)
{
- $this->nodeRoutingPrefixSize = $nodeRoutingPrefixSize;
+ $this->nodeIpv4CidrSize = $nodeIpv4CidrSize;
}
- public function getNodeRoutingPrefixSize()
+ public function getNodeIpv4CidrSize()
{
- return $this->nodeRoutingPrefixSize;
- }
- public function setNumNodes($numNodes)
- {
- $this->numNodes = $numNodes;
- }
- public function getNumNodes()
- {
- return $this->numNodes;
+ return $this->nodeIpv4CidrSize;
}
public function setSelfLink($selfLink)
{
@@ -681,59 +596,38 @@ public function getZone()
}
}
-class Google_Service_Container_CreateClusterRequest extends Google_Model
+class Google_Service_Container_ClusterUpdate extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- protected $clusterType = 'Google_Service_Container_Cluster';
- protected $clusterDataType = '';
+ public $desiredNodeVersion;
- public function setCluster(Google_Service_Container_Cluster $cluster)
+ public function setDesiredNodeVersion($desiredNodeVersion)
{
- $this->cluster = $cluster;
+ $this->desiredNodeVersion = $desiredNodeVersion;
}
- public function getCluster()
+ public function getDesiredNodeVersion()
{
- return $this->cluster;
+ return $this->desiredNodeVersion;
}
}
-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
+class Google_Service_Container_CreateClusterRequest extends Google_Model
{
- protected $collection_key = 'operations';
protected $internal_gapi_mappings = array(
);
- protected $operationsType = 'Google_Service_Container_Operation';
- protected $operationsDataType = 'array';
+ protected $clusterType = 'Google_Service_Container_Cluster';
+ protected $clusterDataType = '';
- public function setOperations($operations)
+ public function setCluster(Google_Service_Container_Cluster $cluster)
{
- $this->operations = $operations;
+ $this->cluster = $cluster;
}
- public function getOperations()
+ public function getCluster()
{
- return $this->operations;
+ return $this->cluster;
}
}
@@ -779,18 +673,36 @@ class Google_Service_Container_MasterAuth extends Google_Model
{
protected $internal_gapi_mappings = array(
);
- public $bearerToken;
+ public $clientCertificate;
+ public $clientKey;
+ public $clusterCaCertificate;
public $password;
- public $user;
+ public $username;
- public function setBearerToken($bearerToken)
+ public function setClientCertificate($clientCertificate)
+ {
+ $this->clientCertificate = $clientCertificate;
+ }
+ public function getClientCertificate()
+ {
+ return $this->clientCertificate;
+ }
+ public function setClientKey($clientKey)
+ {
+ $this->clientKey = $clientKey;
+ }
+ public function getClientKey()
+ {
+ return $this->clientKey;
+ }
+ public function setClusterCaCertificate($clusterCaCertificate)
{
- $this->bearerToken = $bearerToken;
+ $this->clusterCaCertificate = $clusterCaCertificate;
}
- public function getBearerToken()
+ public function getClusterCaCertificate()
{
- return $this->bearerToken;
+ return $this->clusterCaCertificate;
}
public function setPassword($password)
{
@@ -800,50 +712,49 @@ public function getPassword()
{
return $this->password;
}
- public function setUser($user)
+ public function setUsername($username)
{
- $this->user = $user;
+ $this->username = $username;
}
- public function getUser()
+ public function getUsername()
{
- return $this->user;
+ return $this->username;
}
}
class Google_Service_Container_NodeConfig extends Google_Collection
{
- protected $collection_key = 'serviceAccounts';
+ protected $collection_key = 'oauthScopes';
protected $internal_gapi_mappings = array(
);
+ public $diskSizeGb;
public $machineType;
- protected $serviceAccountsType = 'Google_Service_Container_ServiceAccount';
- protected $serviceAccountsDataType = 'array';
- public $sourceImage;
+ public $oauthScopes;
- public function setMachineType($machineType)
+ public function setDiskSizeGb($diskSizeGb)
{
- $this->machineType = $machineType;
+ $this->diskSizeGb = $diskSizeGb;
}
- public function getMachineType()
+ public function getDiskSizeGb()
{
- return $this->machineType;
+ return $this->diskSizeGb;
}
- public function setServiceAccounts($serviceAccounts)
+ public function setMachineType($machineType)
{
- $this->serviceAccounts = $serviceAccounts;
+ $this->machineType = $machineType;
}
- public function getServiceAccounts()
+ public function getMachineType()
{
- return $this->serviceAccounts;
+ return $this->machineType;
}
- public function setSourceImage($sourceImage)
+ public function setOauthScopes($oauthScopes)
{
- $this->sourceImage = $sourceImage;
+ $this->oauthScopes = $oauthScopes;
}
- public function getSourceImage()
+ public function getOauthScopes()
{
- return $this->sourceImage;
+ return $this->oauthScopes;
}
}
@@ -851,24 +762,15 @@ 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 $statusMessage;
public $targetLink;
public $zone;
- public function setErrorMessage($errorMessage)
- {
- $this->errorMessage = $errorMessage;
- }
- public function getErrorMessage()
- {
- return $this->errorMessage;
- }
public function setName($name)
{
$this->name = $name;
@@ -901,13 +803,13 @@ public function getStatus()
{
return $this->status;
}
- public function setTarget($target)
+ public function setStatusMessage($statusMessage)
{
- $this->target = $target;
+ $this->statusMessage = $statusMessage;
}
- public function getTarget()
+ public function getStatusMessage()
{
- return $this->target;
+ return $this->statusMessage;
}
public function setTargetLink($targetLink)
{
@@ -927,55 +829,20 @@ public function getZone()
}
}
-class Google_Service_Container_ServiceAccount extends Google_Collection
+class Google_Service_Container_UpdateClusterRequest extends Google_Model
{
- protected $collection_key = 'scopes';
protected $internal_gapi_mappings = array(
);
- public $email;
- public $scopes;
+ protected $updateType = 'Google_Service_Container_ClusterUpdate';
+ protected $updateDataType = '';
- 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)
+ public function setUpdate(Google_Service_Container_ClusterUpdate $update)
{
- $this->expiryTimeSeconds = $expiryTimeSeconds;
+ $this->update = $update;
}
- public function getExpiryTimeSeconds()
+ public function getUpdate()
{
- return $this->expiryTimeSeconds;
+ return $this->update;
}
}
From e43459288bfb34960cfca888e79288dfa3c39b99 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $deploymentmanagerService = new Google_Service_DeploymentManager(...);
+ * $deployments = $deploymentmanagerService->deployments;
+ *
+ */
+class Google_Service_DeploymentManager_Deployments_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes a deployment and all of the resources in the deployment.
+ * (deployments.delete)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_Operation
+ */
+ public function delete($project, $deployment, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_DeploymentManager_Operation");
+ }
+
+ /**
+ * Gets information about a specific deployment. (deployments.get)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_Deployment
+ */
+ public function get($project, $deployment, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_DeploymentManager_Deployment");
+ }
+
+ /**
+ * Creates a deployment and all of the resources described by the deployment
+ * manifest. (deployments.insert)
+ *
+ * @param string $project The project ID for this request.
+ * @param Google_Deployment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_Operation
+ */
+ public function insert($project, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_DeploymentManager_Operation");
+ }
+
+ /**
+ * Lists all deployments for a given project. (deployments.listDeployments)
+ *
+ * @param string $project The project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Filter expression for filtering listed resources.
+ * @opt_param string pageToken Tag returned by a previous list request when that
+ * list was truncated to maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @return Google_Service_DeploymentManager_DeploymentsListResponse
+ */
+ public function listDeployments($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_DeploymentManager_DeploymentsListResponse");
+ }
+
+ /**
+ * Updates a deployment and all of the resources described by the deployment
+ * manifest. This method supports patch semantics. (deployments.patch)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param Google_Deployment $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string deletePolicy Sets the policy to use for deleting resources.
+ * @opt_param string updatePolicy Sets the policy to use for updating resources.
+ * @opt_param string createPolicy Sets the policy to use for creating new
+ * resources.
+ * @return Google_Service_DeploymentManager_Operation
+ */
+ public function patch($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('patch', array($params), "Google_Service_DeploymentManager_Operation");
+ }
+
+ /**
+ * Updates a deployment and all of the resources described by the deployment
+ * manifest. (deployments.update)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param Google_Deployment $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string deletePolicy Sets the policy to use for deleting resources.
+ * @opt_param string updatePolicy Sets the policy to use for updating resources.
+ * @opt_param string createPolicy Sets the policy to use for creating new
+ * resources.
+ * @return Google_Service_DeploymentManager_Operation
+ */
+ public function update($project, $deployment, Google_Service_DeploymentManager_Deployment $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('update', array($params), "Google_Service_DeploymentManager_Operation");
+ }
+}
+
+/**
+ * The "manifests" collection of methods.
+ * Typical usage is:
+ *
+ * $deploymentmanagerService = new Google_Service_DeploymentManager(...);
+ * $manifests = $deploymentmanagerService->manifests;
+ *
+ */
+class Google_Service_DeploymentManager_Manifests_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Gets information about a specific manifest. (manifests.get)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param string $manifest The name of the manifest for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_Manifest
+ */
+ public function get($project, $deployment, $manifest, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment, 'manifest' => $manifest);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_DeploymentManager_Manifest");
+ }
+
+ /**
+ * Lists all manifests for a given deployment. (manifests.listManifests)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Filter expression for filtering listed resources.
+ * @opt_param string pageToken Tag returned by a previous list request when that
+ * list was truncated to maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @return Google_Service_DeploymentManager_ManifestsListResponse
+ */
+ public function listManifests($project, $deployment, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_DeploymentManager_ManifestsListResponse");
+ }
+}
+
+/**
+ * The "operations" collection of methods.
+ * Typical usage is:
+ *
+ * $deploymentmanagerService = new Google_Service_DeploymentManager(...);
+ * $operations = $deploymentmanagerService->operations;
+ *
+ */
+class Google_Service_DeploymentManager_Operations_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Gets information about a specific operation. (operations.get)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $operation The name of the operation for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_Operation
+ */
+ public function get($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_DeploymentManager_Operation");
+ }
+
+ /**
+ * Lists all operations for a project. (operations.listOperations)
+ *
+ * @param string $project The project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Filter expression for filtering listed resources.
+ * @opt_param string pageToken Tag returned by a previous list request when that
+ * list was truncated to maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @return Google_Service_DeploymentManager_OperationsListResponse
+ */
+ public function listOperations($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_DeploymentManager_OperationsListResponse");
+ }
+}
+
+/**
+ * The "resources" collection of methods.
+ * Typical usage is:
+ *
+ * $deploymentmanagerService = new Google_Service_DeploymentManager(...);
+ * $resources = $deploymentmanagerService->resources;
+ *
+ */
+class Google_Service_DeploymentManager_Resources_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Gets information about a single resource. (resources.get)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param string $resource The name of the resource for this request.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_DeploymentManager_DeploymentmanagerResource
+ */
+ public function get($project, $deployment, $resource, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment, 'resource' => $resource);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_DeploymentManager_DeploymentmanagerResource");
+ }
+
+ /**
+ * Lists all resources in a given deployment. (resources.listResources)
+ *
+ * @param string $project The project ID for this request.
+ * @param string $deployment The name of the deployment for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Filter expression for filtering listed resources.
+ * @opt_param string pageToken Tag returned by a previous list request when that
+ * list was truncated to maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @return Google_Service_DeploymentManager_ResourcesListResponse
+ */
+ public function listResources($project, $deployment, $optParams = array())
+ {
+ $params = array('project' => $project, 'deployment' => $deployment);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_DeploymentManager_ResourcesListResponse");
+ }
+}
+
+/**
+ * The "types" collection of methods.
+ * Typical usage is:
+ *
+ * $deploymentmanagerService = new Google_Service_DeploymentManager(...);
+ * $types = $deploymentmanagerService->types;
+ *
+ */
+class Google_Service_DeploymentManager_Types_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Lists all resource types for Deployment Manager. (types.listTypes)
+ *
+ * @param string $project The project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Filter expression for filtering listed resources.
+ * @opt_param string pageToken Tag returned by a previous list request when that
+ * list was truncated to maxResults. Used to continue a previous list request.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @return Google_Service_DeploymentManager_TypesListResponse
+ */
+ public function listTypes($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_DeploymentManager_TypesListResponse");
+ }
+}
+
+
+
+
+class Google_Service_DeploymentManager_Deployment extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $description;
+ public $fingerprint;
+ public $id;
+ public $insertTime;
+ public $intent;
+ public $manifest;
+ public $name;
+ public $state;
+ protected $targetType = 'Google_Service_DeploymentManager_TargetConfiguration';
+ protected $targetDataType = '';
+ protected $updateType = 'Google_Service_DeploymentManager_DeploymentUpdate';
+ protected $updateDataType = '';
+ public $updateTime;
+
+
+ public function setDescription($description)
+ {
+ $this->description = $description;
+ }
+ public function getDescription()
+ {
+ return $this->description;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setIntent($intent)
+ {
+ $this->intent = $intent;
+ }
+ public function getIntent()
+ {
+ return $this->intent;
+ }
+ public function setManifest($manifest)
+ {
+ $this->manifest = $manifest;
+ }
+ public function getManifest()
+ {
+ return $this->manifest;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+ public function setTarget(Google_Service_DeploymentManager_TargetConfiguration $target)
+ {
+ $this->target = $target;
+ }
+ public function getTarget()
+ {
+ return $this->target;
+ }
+ public function setUpdate(Google_Service_DeploymentManager_DeploymentUpdate $update)
+ {
+ $this->update = $update;
+ }
+ public function getUpdate()
+ {
+ return $this->update;
+ }
+ public function setUpdateTime($updateTime)
+ {
+ $this->updateTime = $updateTime;
+ }
+ public function getUpdateTime()
+ {
+ return $this->updateTime;
+ }
+}
+
+class Google_Service_DeploymentManager_DeploymentUpdate extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $internal_gapi_mappings = array(
+ );
+ public $errors;
+ public $manifest;
+
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setManifest($manifest)
+ {
+ $this->manifest = $manifest;
+ }
+ public function getManifest()
+ {
+ return $this->manifest;
+ }
+}
+
+class Google_Service_DeploymentManager_DeploymentmanagerResource extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $finalProperties;
+ public $id;
+ public $insertTime;
+ public $manifest;
+ public $name;
+ public $properties;
+ public $type;
+ protected $updateType = 'Google_Service_DeploymentManager_ResourceUpdate';
+ protected $updateDataType = '';
+ public $updateTime;
+ public $url;
+
+
+ public function setFinalProperties($finalProperties)
+ {
+ $this->finalProperties = $finalProperties;
+ }
+ public function getFinalProperties()
+ {
+ return $this->finalProperties;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setManifest($manifest)
+ {
+ $this->manifest = $manifest;
+ }
+ public function getManifest()
+ {
+ return $this->manifest;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setType($type)
+ {
+ $this->type = $type;
+ }
+ public function getType()
+ {
+ return $this->type;
+ }
+ public function setUpdate(Google_Service_DeploymentManager_ResourceUpdate $update)
+ {
+ $this->update = $update;
+ }
+ public function getUpdate()
+ {
+ return $this->update;
+ }
+ public function setUpdateTime($updateTime)
+ {
+ $this->updateTime = $updateTime;
+ }
+ public function getUpdateTime()
+ {
+ return $this->updateTime;
+ }
+ public function setUrl($url)
+ {
+ $this->url = $url;
+ }
+ public function getUrl()
+ {
+ return $this->url;
+ }
+}
+
+class Google_Service_DeploymentManager_DeploymentsListResponse extends Google_Collection
+{
+ protected $collection_key = 'deployments';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $deploymentsType = 'Google_Service_DeploymentManager_Deployment';
+ protected $deploymentsDataType = 'array';
+ public $nextPageToken;
+
+
+ public function setDeployments($deployments)
+ {
+ $this->deployments = $deployments;
+ }
+ public function getDeployments()
+ {
+ return $this->deployments;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_DeploymentManager_ImportFile extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $content;
+ public $name;
+
+
+ public function setContent($content)
+ {
+ $this->content = $content;
+ }
+ public function getContent()
+ {
+ return $this->content;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
+
+class Google_Service_DeploymentManager_Manifest extends Google_Collection
+{
+ protected $collection_key = 'imports';
+ protected $internal_gapi_mappings = array(
+ );
+ public $config;
+ public $evaluatedConfig;
+ public $id;
+ protected $importsType = 'Google_Service_DeploymentManager_ImportFile';
+ protected $importsDataType = 'array';
+ public $insertTime;
+ public $layout;
+ public $name;
+ public $selfLink;
+
+
+ public function setConfig($config)
+ {
+ $this->config = $config;
+ }
+ public function getConfig()
+ {
+ return $this->config;
+ }
+ public function setEvaluatedConfig($evaluatedConfig)
+ {
+ $this->evaluatedConfig = $evaluatedConfig;
+ }
+ public function getEvaluatedConfig()
+ {
+ return $this->evaluatedConfig;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setImports($imports)
+ {
+ $this->imports = $imports;
+ }
+ public function getImports()
+ {
+ return $this->imports;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ public function setLayout($layout)
+ {
+ $this->layout = $layout;
+ }
+ public function getLayout()
+ {
+ return $this->layout;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_DeploymentManager_ManifestsListResponse extends Google_Collection
+{
+ protected $collection_key = 'manifests';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $manifestsType = 'Google_Service_DeploymentManager_Manifest';
+ protected $manifestsDataType = 'array';
+ public $nextPageToken;
+
+
+ public function setManifests($manifests)
+ {
+ $this->manifests = $manifests;
+ }
+ public function getManifests()
+ {
+ return $this->manifests;
+ }
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_DeploymentManager_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ protected $internal_gapi_mappings = array(
+ );
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $endTime;
+ protected $errorType = 'Google_Service_DeploymentManager_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_DeploymentManager_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_DeploymentManager_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ 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 setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ 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;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
+
+class Google_Service_DeploymentManager_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $errorsType = 'Google_Service_DeploymentManager_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
+
+class Google_Service_DeploymentManager_OperationErrorErrors extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ public $location;
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_DeploymentManager_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ protected $dataType = 'Google_Service_DeploymentManager_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_DeploymentManager_OperationWarningsData extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $key;
+ public $value;
+
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
+class Google_Service_DeploymentManager_OperationsListResponse extends Google_Collection
+{
+ protected $collection_key = 'operations';
+ protected $internal_gapi_mappings = array(
+ );
+ public $nextPageToken;
+ protected $operationsType = 'Google_Service_DeploymentManager_Operation';
+ protected $operationsDataType = 'array';
+
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setOperations($operations)
+ {
+ $this->operations = $operations;
+ }
+ public function getOperations()
+ {
+ return $this->operations;
+ }
+}
+
+class Google_Service_DeploymentManager_ResourceUpdate extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $internal_gapi_mappings = array(
+ );
+ public $errors;
+ public $finalProperties;
+ public $intent;
+ public $manifest;
+ public $properties;
+ public $state;
+
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+ public function setFinalProperties($finalProperties)
+ {
+ $this->finalProperties = $finalProperties;
+ }
+ public function getFinalProperties()
+ {
+ return $this->finalProperties;
+ }
+ public function setIntent($intent)
+ {
+ $this->intent = $intent;
+ }
+ public function getIntent()
+ {
+ return $this->intent;
+ }
+ public function setManifest($manifest)
+ {
+ $this->manifest = $manifest;
+ }
+ public function getManifest()
+ {
+ return $this->manifest;
+ }
+ public function setProperties($properties)
+ {
+ $this->properties = $properties;
+ }
+ public function getProperties()
+ {
+ return $this->properties;
+ }
+ public function setState($state)
+ {
+ $this->state = $state;
+ }
+ public function getState()
+ {
+ return $this->state;
+ }
+}
+
+class Google_Service_DeploymentManager_ResourcesListResponse extends Google_Collection
+{
+ protected $collection_key = 'resources';
+ protected $internal_gapi_mappings = array(
+ );
+ public $nextPageToken;
+ protected $resourcesType = 'Google_Service_DeploymentManager_DeploymentmanagerResource';
+ protected $resourcesDataType = 'array';
+
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setResources($resources)
+ {
+ $this->resources = $resources;
+ }
+ public function getResources()
+ {
+ return $this->resources;
+ }
+}
+
+class Google_Service_DeploymentManager_TargetConfiguration extends Google_Collection
+{
+ protected $collection_key = 'imports';
+ protected $internal_gapi_mappings = array(
+ );
+ public $config;
+ protected $importsType = 'Google_Service_DeploymentManager_ImportFile';
+ protected $importsDataType = 'array';
+
+
+ public function setConfig($config)
+ {
+ $this->config = $config;
+ }
+ public function getConfig()
+ {
+ return $this->config;
+ }
+ public function setImports($imports)
+ {
+ $this->imports = $imports;
+ }
+ public function getImports()
+ {
+ return $this->imports;
+ }
+}
+
+class Google_Service_DeploymentManager_Type extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $name;
+
+
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+}
+
+class Google_Service_DeploymentManager_TypesListResponse extends Google_Collection
+{
+ protected $collection_key = 'types';
+ protected $internal_gapi_mappings = array(
+ );
+ public $nextPageToken;
+ protected $typesType = 'Google_Service_DeploymentManager_Type';
+ protected $typesDataType = 'array';
+
+
+ public function setNextPageToken($nextPageToken)
+ {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken()
+ {
+ return $this->nextPageToken;
+ }
+ public function setTypes($types)
+ {
+ $this->types = $types;
+ }
+ public function getTypes()
+ {
+ return $this->types;
+ }
+}
From 6beb497f7b6ccb7cae2f1a43722ee34c39a75555 Mon Sep 17 00:00:00 2001
From: Silvano Luciani
+ * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...);
+ * $globalAccountsOperations = $clouduseraccountsService->globalAccountsOperations;
+ *
+ */
+class Google_Service_CloudUserAccounts_GlobalAccountsOperations_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Deletes the specified operation resource. (globalAccountsOperations.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $operation Name of the Operations resource to delete.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params));
+ }
+
+ /**
+ * Retrieves the specified operation resource. (globalAccountsOperations.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $operation Name of the Operations resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function get($project, $operation, $optParams = array())
+ {
+ $params = array('project' => $project, 'operation' => $operation);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+
+ /**
+ * Retrieves the list of operation resources contained within the specified
+ * project. (globalAccountsOperations.listGlobalAccountsOperations)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must contain
+ * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME:
+ * The name of the field you want to compare. The field name must be valid for
+ * the type of resource being filtered. Only atomic field types are supported
+ * (string, number, boolean). Array and object fields are not currently
+ * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or
+ * ne (not equals). - LITERAL_STRING: The literal string value to filter to.
+ * The literal value must be valid for the type of field (string, number,
+ * boolean). For string fields, the literal value is interpreted as a regular
+ * expression using RE2 syntax. The literal value must match the entire field.
+ * For example, you can filter by the name of a resource: filter=name ne
+ * example-instance The above filter returns only results whose name field does
+ * not equal example-instance. You can also enclose your literal string in
+ * single, double, or no quotes.
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @opt_param string pageToken Specifies a page token to use. Use this parameter
+ * if you want to list the next page of results. Set pageToken to the
+ * nextPageToken returned by a previous list request.
+ * @return Google_Service_CloudUserAccounts_OperationList
+ */
+ public function listGlobalAccountsOperations($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudUserAccounts_OperationList");
+ }
+}
+
+/**
+ * The "groups" collection of methods.
+ * Typical usage is:
+ *
+ * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...);
+ * $groups = $clouduseraccountsService->groups;
+ *
+ */
+class Google_Service_CloudUserAccounts_Groups_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Adds users to the specified group. (groups.addMember)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the group for this request.
+ * @param Google_GroupsAddMemberRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function addMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsAddMemberRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addMember', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+
+ /**
+ * Deletes the specified Group resource. (groups.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the Group resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function delete($project, $groupName, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+
+ /**
+ * Returns the specified Group resource. (groups.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the Group resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Group
+ */
+ public function get($project, $groupName, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudUserAccounts_Group");
+ }
+
+ /**
+ * Creates a Group resource in the specified project using the data included in
+ * the request. (groups.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_Group $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function insert($project, Google_Service_CloudUserAccounts_Group $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+
+ /**
+ * Retrieves the list of groups contained within the specified project.
+ * (groups.listGroups)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must contain
+ * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME:
+ * The name of the field you want to compare. The field name must be valid for
+ * the type of resource being filtered. Only atomic field types are supported
+ * (string, number, boolean). Array and object fields are not currently
+ * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or
+ * ne (not equals). - LITERAL_STRING: The literal string value to filter to.
+ * The literal value must be valid for the type of field (string, number,
+ * boolean). For string fields, the literal value is interpreted as a regular
+ * expression using RE2 syntax. The literal value must match the entire field.
+ * For example, you can filter by the name of a resource: filter=name ne
+ * example-instance The above filter returns only results whose name field does
+ * not equal example-instance. You can also enclose your literal string in
+ * single, double, or no quotes.
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @opt_param string pageToken Specifies a page token to use. Use this parameter
+ * if you want to list the next page of results. Set pageToken to the
+ * nextPageToken returned by a previous list request.
+ * @return Google_Service_CloudUserAccounts_GroupList
+ */
+ public function listGroups($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudUserAccounts_GroupList");
+ }
+
+ /**
+ * Removes users from the specified group. (groups.removeMember)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $groupName Name of the group for this request.
+ * @param Google_GroupsRemoveMemberRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function removeMember($project, $groupName, Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'groupName' => $groupName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('removeMember', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+}
+
+/**
+ * The "linux" collection of methods.
+ * Typical usage is:
+ *
+ * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...);
+ * $linux = $clouduseraccountsService->linux;
+ *
+ */
+class Google_Service_CloudUserAccounts_Linux_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Returns a list of authorized public keys for a specific user account.
+ * (linux.getAuthorizedKeysView)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $user The user account for which you want to get a list of
+ * authorized public keys.
+ * @param string $instance The fully-qualified URL of the virtual machine
+ * requesting the view.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse
+ */
+ public function getAuthorizedKeysView($project, $zone, $user, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'user' => $user, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('getAuthorizedKeysView', array($params), "Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse");
+ }
+
+ /**
+ * Retrieves a list of user accounts for an instance within a specific project.
+ * (linux.getLinuxAccountViews)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $zone Name of the zone for this request.
+ * @param string $instance The fully-qualified URL of the virtual machine
+ * requesting the views.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string pageToken Specifies a page token to use. Use this parameter
+ * if you want to list the next page of results. Set pageToken to the
+ * nextPageToken returned by a previous list request.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must contain
+ * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME:
+ * The name of the field you want to compare. The field name must be valid for
+ * the type of resource being filtered. Only atomic field types are supported
+ * (string, number, boolean). Array and object fields are not currently
+ * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or
+ * ne (not equals). - LITERAL_STRING: The literal string value to filter to.
+ * The literal value must be valid for the type of field (string, number,
+ * boolean). For string fields, the literal value is interpreted as a regular
+ * expression using RE2 syntax. The literal value must match the entire field.
+ * For example, you can filter by the name of a resource: filter=name ne
+ * example-instance The above filter returns only results whose name field does
+ * not equal example-instance. You can also enclose your literal string in
+ * single, double, or no quotes.
+ * @opt_param string user If provided, the user requesting the views. If left
+ * blank, the system is requesting the views, instead of a particular user.
+ * @return Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse
+ */
+ public function getLinuxAccountViews($project, $zone, $instance, $optParams = array())
+ {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
+ $params = array_merge($params, $optParams);
+ return $this->call('getLinuxAccountViews', array($params), "Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse");
+ }
+}
+
+/**
+ * The "users" collection of methods.
+ * Typical usage is:
+ *
+ * $clouduseraccountsService = new Google_Service_CloudUserAccounts(...);
+ * $users = $clouduseraccountsService->users;
+ *
+ */
+class Google_Service_CloudUserAccounts_Users_Resource extends Google_Service_Resource
+{
+
+ /**
+ * Adds a public key to the specified User resource with the data included in
+ * the request. (users.addPublicKey)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user for this request.
+ * @param Google_PublicKey $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function addPublicKey($project, $user, Google_Service_CloudUserAccounts_PublicKey $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('addPublicKey', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+
+ /**
+ * Deletes the specified User resource. (users.delete)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user resource to delete.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function delete($project, $user, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user);
+ $params = array_merge($params, $optParams);
+ return $this->call('delete', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+
+ /**
+ * Returns the specified User resource. (users.get)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_User
+ */
+ public function get($project, $user, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user);
+ $params = array_merge($params, $optParams);
+ return $this->call('get', array($params), "Google_Service_CloudUserAccounts_User");
+ }
+
+ /**
+ * Creates a User resource in the specified project using the data included in
+ * the request. (users.insert)
+ *
+ * @param string $project Project ID for this request.
+ * @param Google_User $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function insert($project, Google_Service_CloudUserAccounts_User $postBody, $optParams = array())
+ {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ return $this->call('insert', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+
+ /**
+ * Retrieves a list of users contained within the specified project.
+ * (users.listUsers)
+ *
+ * @param string $project Project ID for this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Sets a filter expression for filtering listed
+ * resources, in the form filter={expression}. Your {expression} must contain
+ * the following: FIELD_NAME COMPARISON_STRING LITERAL_STRING - FIELD_NAME:
+ * The name of the field you want to compare. The field name must be valid for
+ * the type of resource being filtered. Only atomic field types are supported
+ * (string, number, boolean). Array and object fields are not currently
+ * supported. - COMPARISON_STRING: The comparison string, either eq (equals) or
+ * ne (not equals). - LITERAL_STRING: The literal string value to filter to.
+ * The literal value must be valid for the type of field (string, number,
+ * boolean). For string fields, the literal value is interpreted as a regular
+ * expression using RE2 syntax. The literal value must match the entire field.
+ * For example, you can filter by the name of a resource: filter=name ne
+ * example-instance The above filter returns only results whose name field does
+ * not equal example-instance. You can also enclose your literal string in
+ * single, double, or no quotes.
+ * @opt_param string orderBy Sorts list results by a certain order. By default,
+ * results are returned in alphanumerical order based on the resource name.
+ *
+ * You can also sort results in descending order based on the creation timestamp
+ * using orderBy="creationTimestamp desc". This sorts results based on the
+ * creationTimestamp field in reverse chronological order (newest result first).
+ * Use this to sort resources like operations so that the newest operation is
+ * returned first.
+ *
+ * Currently, only sorting by name or creationTimestamp desc is supported.
+ * @opt_param string maxResults Maximum count of results to be returned.
+ * @opt_param string pageToken Specifies a page token to use. Use this parameter
+ * if you want to list the next page of results. Set pageToken to the
+ * nextPageToken returned by a previous list request.
+ * @return Google_Service_CloudUserAccounts_UserList
+ */
+ public function listUsers($project, $optParams = array())
+ {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ return $this->call('list', array($params), "Google_Service_CloudUserAccounts_UserList");
+ }
+
+ /**
+ * Removes the specified public key from the user. (users.removePublicKey)
+ *
+ * @param string $project Project ID for this request.
+ * @param string $user Name of the user for this request.
+ * @param string $fingerprint The fingerprint of the public key to delete.
+ * Public keys are identified by their fingerprint, which is defined by RFC4716
+ * to be the MD5 digest of the public key.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_CloudUserAccounts_Operation
+ */
+ public function removePublicKey($project, $user, $fingerprint, $optParams = array())
+ {
+ $params = array('project' => $project, 'user' => $user, 'fingerprint' => $fingerprint);
+ $params = array_merge($params, $optParams);
+ return $this->call('removePublicKey', array($params), "Google_Service_CloudUserAccounts_Operation");
+ }
+}
+
+
+
+
+class Google_Service_CloudUserAccounts_AuthorizedKeysView extends Google_Collection
+{
+ protected $collection_key = 'keys';
+ protected $internal_gapi_mappings = array(
+ );
+ public $keys;
+
+
+ public function setKeys($keys)
+ {
+ $this->keys = $keys;
+ }
+ public function getKeys()
+ {
+ return $this->keys;
+ }
+}
+
+class Google_Service_CloudUserAccounts_Group extends Google_Collection
+{
+ protected $collection_key = 'members';
+ protected $internal_gapi_mappings = array(
+ );
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $members;
+ public $name;
+ public $selfLink;
+
+
+ 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 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 setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+ public function setName($name)
+ {
+ $this->name = $name;
+ }
+ public function getName()
+ {
+ return $this->name;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_CloudUserAccounts_GroupList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ protected $itemsType = 'Google_Service_CloudUserAccounts_Group';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ 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;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_CloudUserAccounts_GroupsAddMemberRequest extends Google_Collection
+{
+ protected $collection_key = 'users';
+ protected $internal_gapi_mappings = array(
+ );
+ public $users;
+
+
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
+
+class Google_Service_CloudUserAccounts_GroupsRemoveMemberRequest extends Google_Collection
+{
+ protected $collection_key = 'users';
+ protected $internal_gapi_mappings = array(
+ );
+ public $users;
+
+
+ public function setUsers($users)
+ {
+ $this->users = $users;
+ }
+ public function getUsers()
+ {
+ return $this->users;
+ }
+}
+
+class Google_Service_CloudUserAccounts_LinuxAccountViews extends Google_Collection
+{
+ protected $collection_key = 'userViews';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $groupViewsType = 'Google_Service_CloudUserAccounts_LinuxGroupView';
+ protected $groupViewsDataType = 'array';
+ public $kind;
+ protected $userViewsType = 'Google_Service_CloudUserAccounts_LinuxUserView';
+ protected $userViewsDataType = 'array';
+
+
+ public function setGroupViews($groupViews)
+ {
+ $this->groupViews = $groupViews;
+ }
+ public function getGroupViews()
+ {
+ return $this->groupViews;
+ }
+ public function setKind($kind)
+ {
+ $this->kind = $kind;
+ }
+ public function getKind()
+ {
+ return $this->kind;
+ }
+ public function setUserViews($userViews)
+ {
+ $this->userViews = $userViews;
+ }
+ public function getUserViews()
+ {
+ return $this->userViews;
+ }
+}
+
+class Google_Service_CloudUserAccounts_LinuxGetAuthorizedKeysViewResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $resourceType = 'Google_Service_CloudUserAccounts_AuthorizedKeysView';
+ protected $resourceDataType = '';
+
+
+ public function setResource(Google_Service_CloudUserAccounts_AuthorizedKeysView $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
+
+class Google_Service_CloudUserAccounts_LinuxGetLinuxAccountViewsResponse extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ protected $resourceType = 'Google_Service_CloudUserAccounts_LinuxAccountViews';
+ protected $resourceDataType = '';
+
+
+ public function setResource(Google_Service_CloudUserAccounts_LinuxAccountViews $resource)
+ {
+ $this->resource = $resource;
+ }
+ public function getResource()
+ {
+ return $this->resource;
+ }
+}
+
+class Google_Service_CloudUserAccounts_LinuxGroupView extends Google_Collection
+{
+ protected $collection_key = 'members';
+ protected $internal_gapi_mappings = array(
+ );
+ public $gid;
+ public $groupName;
+ public $members;
+
+
+ public function setGid($gid)
+ {
+ $this->gid = $gid;
+ }
+ public function getGid()
+ {
+ return $this->gid;
+ }
+ public function setGroupName($groupName)
+ {
+ $this->groupName = $groupName;
+ }
+ public function getGroupName()
+ {
+ return $this->groupName;
+ }
+ public function setMembers($members)
+ {
+ $this->members = $members;
+ }
+ public function getMembers()
+ {
+ return $this->members;
+ }
+}
+
+class Google_Service_CloudUserAccounts_LinuxUserView extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $gecos;
+ public $gid;
+ public $homeDirectory;
+ public $shell;
+ public $uid;
+ public $username;
+
+
+ public function setGecos($gecos)
+ {
+ $this->gecos = $gecos;
+ }
+ public function getGecos()
+ {
+ return $this->gecos;
+ }
+ public function setGid($gid)
+ {
+ $this->gid = $gid;
+ }
+ public function getGid()
+ {
+ return $this->gid;
+ }
+ public function setHomeDirectory($homeDirectory)
+ {
+ $this->homeDirectory = $homeDirectory;
+ }
+ public function getHomeDirectory()
+ {
+ return $this->homeDirectory;
+ }
+ public function setShell($shell)
+ {
+ $this->shell = $shell;
+ }
+ public function getShell()
+ {
+ return $this->shell;
+ }
+ public function setUid($uid)
+ {
+ $this->uid = $uid;
+ }
+ public function getUid()
+ {
+ return $this->uid;
+ }
+ public function setUsername($username)
+ {
+ $this->username = $username;
+ }
+ public function getUsername()
+ {
+ return $this->username;
+ }
+}
+
+class Google_Service_CloudUserAccounts_Operation extends Google_Collection
+{
+ protected $collection_key = 'warnings';
+ protected $internal_gapi_mappings = array(
+ );
+ public $clientOperationId;
+ public $creationTimestamp;
+ public $endTime;
+ protected $errorType = 'Google_Service_CloudUserAccounts_OperationError';
+ protected $errorDataType = '';
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $region;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $warningsType = 'Google_Service_CloudUserAccounts_OperationWarnings';
+ protected $warningsDataType = 'array';
+ public $zone;
+
+
+ public function setClientOperationId($clientOperationId)
+ {
+ $this->clientOperationId = $clientOperationId;
+ }
+ public function getClientOperationId()
+ {
+ return $this->clientOperationId;
+ }
+ public function setCreationTimestamp($creationTimestamp)
+ {
+ $this->creationTimestamp = $creationTimestamp;
+ }
+ public function getCreationTimestamp()
+ {
+ return $this->creationTimestamp;
+ }
+ public function setEndTime($endTime)
+ {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime()
+ {
+ return $this->endTime;
+ }
+ public function setError(Google_Service_CloudUserAccounts_OperationError $error)
+ {
+ $this->error = $error;
+ }
+ public function getError()
+ {
+ return $this->error;
+ }
+ public function setHttpErrorMessage($httpErrorMessage)
+ {
+ $this->httpErrorMessage = $httpErrorMessage;
+ }
+ public function getHttpErrorMessage()
+ {
+ return $this->httpErrorMessage;
+ }
+ public function setHttpErrorStatusCode($httpErrorStatusCode)
+ {
+ $this->httpErrorStatusCode = $httpErrorStatusCode;
+ }
+ public function getHttpErrorStatusCode()
+ {
+ return $this->httpErrorStatusCode;
+ }
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ public function setInsertTime($insertTime)
+ {
+ $this->insertTime = $insertTime;
+ }
+ public function getInsertTime()
+ {
+ return $this->insertTime;
+ }
+ 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 setOperationType($operationType)
+ {
+ $this->operationType = $operationType;
+ }
+ public function getOperationType()
+ {
+ return $this->operationType;
+ }
+ public function setProgress($progress)
+ {
+ $this->progress = $progress;
+ }
+ public function getProgress()
+ {
+ return $this->progress;
+ }
+ public function setRegion($region)
+ {
+ $this->region = $region;
+ }
+ public function getRegion()
+ {
+ return $this->region;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+ 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;
+ }
+ public function setStatusMessage($statusMessage)
+ {
+ $this->statusMessage = $statusMessage;
+ }
+ public function getStatusMessage()
+ {
+ return $this->statusMessage;
+ }
+ public function setTargetId($targetId)
+ {
+ $this->targetId = $targetId;
+ }
+ public function getTargetId()
+ {
+ return $this->targetId;
+ }
+ public function setTargetLink($targetLink)
+ {
+ $this->targetLink = $targetLink;
+ }
+ public function getTargetLink()
+ {
+ return $this->targetLink;
+ }
+ public function setUser($user)
+ {
+ $this->user = $user;
+ }
+ public function getUser()
+ {
+ return $this->user;
+ }
+ public function setWarnings($warnings)
+ {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings()
+ {
+ return $this->warnings;
+ }
+ public function setZone($zone)
+ {
+ $this->zone = $zone;
+ }
+ public function getZone()
+ {
+ return $this->zone;
+ }
+}
+
+class Google_Service_CloudUserAccounts_OperationError extends Google_Collection
+{
+ protected $collection_key = 'errors';
+ protected $internal_gapi_mappings = array(
+ );
+ protected $errorsType = 'Google_Service_CloudUserAccounts_OperationErrorErrors';
+ protected $errorsDataType = 'array';
+
+
+ public function setErrors($errors)
+ {
+ $this->errors = $errors;
+ }
+ public function getErrors()
+ {
+ return $this->errors;
+ }
+}
+
+class Google_Service_CloudUserAccounts_OperationErrorErrors extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ public $location;
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setLocation($location)
+ {
+ $this->location = $location;
+ }
+ public function getLocation()
+ {
+ return $this->location;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_CloudUserAccounts_OperationList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ protected $itemsType = 'Google_Service_CloudUserAccounts_Operation';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ 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;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_CloudUserAccounts_OperationWarnings extends Google_Collection
+{
+ protected $collection_key = 'data';
+ protected $internal_gapi_mappings = array(
+ );
+ public $code;
+ protected $dataType = 'Google_Service_CloudUserAccounts_OperationWarningsData';
+ protected $dataDataType = 'array';
+ public $message;
+
+
+ public function setCode($code)
+ {
+ $this->code = $code;
+ }
+ public function getCode()
+ {
+ return $this->code;
+ }
+ public function setData($data)
+ {
+ $this->data = $data;
+ }
+ public function getData()
+ {
+ return $this->data;
+ }
+ public function setMessage($message)
+ {
+ $this->message = $message;
+ }
+ public function getMessage()
+ {
+ return $this->message;
+ }
+}
+
+class Google_Service_CloudUserAccounts_OperationWarningsData extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $key;
+ public $value;
+
+
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+ public function setValue($value)
+ {
+ $this->value = $value;
+ }
+ public function getValue()
+ {
+ return $this->value;
+ }
+}
+
+class Google_Service_CloudUserAccounts_PublicKey extends Google_Model
+{
+ protected $internal_gapi_mappings = array(
+ );
+ public $creationTimestamp;
+ public $description;
+ public $expirationTimestamp;
+ public $fingerprint;
+ public $key;
+
+
+ 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 setExpirationTimestamp($expirationTimestamp)
+ {
+ $this->expirationTimestamp = $expirationTimestamp;
+ }
+ public function getExpirationTimestamp()
+ {
+ return $this->expirationTimestamp;
+ }
+ public function setFingerprint($fingerprint)
+ {
+ $this->fingerprint = $fingerprint;
+ }
+ public function getFingerprint()
+ {
+ return $this->fingerprint;
+ }
+ public function setKey($key)
+ {
+ $this->key = $key;
+ }
+ public function getKey()
+ {
+ return $this->key;
+ }
+}
+
+class Google_Service_CloudUserAccounts_User extends Google_Collection
+{
+ protected $collection_key = 'publicKeys';
+ protected $internal_gapi_mappings = array(
+ );
+ public $creationTimestamp;
+ public $description;
+ public $groups;
+ public $id;
+ public $kind;
+ public $name;
+ public $owner;
+ protected $publicKeysType = 'Google_Service_CloudUserAccounts_PublicKey';
+ protected $publicKeysDataType = 'array';
+ public $selfLink;
+
+
+ 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 setGroups($groups)
+ {
+ $this->groups = $groups;
+ }
+ public function getGroups()
+ {
+ return $this->groups;
+ }
+ 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 setOwner($owner)
+ {
+ $this->owner = $owner;
+ }
+ public function getOwner()
+ {
+ return $this->owner;
+ }
+ public function setPublicKeys($publicKeys)
+ {
+ $this->publicKeys = $publicKeys;
+ }
+ public function getPublicKeys()
+ {
+ return $this->publicKeys;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_CloudUserAccounts_UserList extends Google_Collection
+{
+ protected $collection_key = 'items';
+ protected $internal_gapi_mappings = array(
+ );
+ public $id;
+ protected $itemsType = 'Google_Service_CloudUserAccounts_User';
+ protected $itemsDataType = 'array';
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+
+
+ public function setId($id)
+ {
+ $this->id = $id;
+ }
+ public function getId()
+ {
+ return $this->id;
+ }
+ 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;
+ }
+ public function setSelfLink($selfLink)
+ {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink()
+ {
+ return $this->selfLink;
+ }
+}
From 1a397a5222477a3d4033a2e5709a651ebf4fec3b Mon Sep 17 00:00:00 2001
From: Silvano Luciani