* Lets you access a cloud hosted machine learning service that makes it easy to * build smart apps
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class Google_Service_Prediction 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 data and permissions in Google Cloud Storage. */ const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control"; /** View your data in Google Cloud Storage. */ const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only"; /** Manage your data in Google Cloud Storage. */ const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write"; /** Manage your data in the Google Prediction API. */ const PREDICTION = "https://www.googleapis.com/auth/prediction"; public $hostedmodels; public $trainedmodels; /** * Constructs the internal representation of the Prediction service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'prediction/v1.6/projects/'; $this->version = 'v1.6'; $this->serviceName = 'prediction'; $this->hostedmodels = new Google_Service_Prediction_Resource_Hostedmodels( $this, $this->serviceName, 'hostedmodels', array( 'methods' => array( 'predict' => array( 'path' => '{project}/hostedmodels/{hostedModelName}/predict', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'hostedModelName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->trainedmodels = new Google_Service_Prediction_Resource_Trainedmodels( $this, $this->serviceName, 'trainedmodels', array( 'methods' => array( 'analyze' => array( 'path' => '{project}/trainedmodels/{id}/analyze', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => '{project}/trainedmodels/{id}', 'httpMethod' => 'DELETE', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => '{project}/trainedmodels/{id}', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'insert' => array( 'path' => '{project}/trainedmodels', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => '{project}/trainedmodels/list', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'predict' => array( 'path' => '{project}/trainedmodels/{id}/predict', 'httpMethod' => 'POST', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'update' => array( 'path' => '{project}/trainedmodels/{id}', 'httpMethod' => 'PUT', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'id' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); } }