GoogleGAL_Service_Prediction

Service definition for Prediction (v1.6).

Defined (1)

The class is defined in the following location(s).

/core/Google/Service/Prediction.php  
  1. class GoogleGAL_Service_Prediction extends GoogleGAL_Service 
  2. /** Manage your data and permissions in Google Cloud Storage. */ 
  3. const DEVSTORAGE_FULL_CONTROL = 
  4. "https://www.googleapis.com/auth/devstorage.full_control"; 
  5. /** View your data in Google Cloud Storage. */ 
  6. const DEVSTORAGE_READ_ONLY = 
  7. "https://www.googleapis.com/auth/devstorage.read_only"; 
  8. /** Manage your data in Google Cloud Storage. */ 
  9. const DEVSTORAGE_READ_WRITE = 
  10. "https://www.googleapis.com/auth/devstorage.read_write"; 
  11. /** Manage your data in the Google Prediction API. */ 
  12. const PREDICTION = 
  13. "https://www.googleapis.com/auth/prediction"; 
  14.  
  15. public $hostedmodels; 
  16. public $trainedmodels; 
  17.  
  18.  
  19. /** 
  20. * Constructs the internal representation of the Prediction service. 
  21. * @param GoogleGAL_Client $client 
  22. */ 
  23. public function __construct(GoogleGAL_Client $client) 
  24. parent::__construct($client); 
  25. $this->servicePath = 'prediction/v1.6/projects/'; 
  26. $this->version = 'v1.6'; 
  27. $this->serviceName = 'prediction'; 
  28.  
  29. $this->hostedmodels = new GoogleGAL_Service_Prediction_Hostedmodels_Resource( 
  30. $this,  
  31. $this->serviceName,  
  32. 'hostedmodels',  
  33. array( 
  34. 'methods' => array( 
  35. 'predict' => array( 
  36. 'path' => '{project}/hostedmodels/{hostedModelName}/predict',  
  37. 'httpMethod' => 'POST',  
  38. 'parameters' => array( 
  39. 'project' => array( 
  40. 'location' => 'path',  
  41. 'type' => 'string',  
  42. 'required' => true,  
  43. ),  
  44. 'hostedModelName' => array( 
  45. 'location' => 'path',  
  46. 'type' => 'string',  
  47. 'required' => true,  
  48. ),  
  49. ),  
  50. ),  
  51. ); 
  52. $this->trainedmodels = new GoogleGAL_Service_Prediction_Trainedmodels_Resource( 
  53. $this,  
  54. $this->serviceName,  
  55. 'trainedmodels',  
  56. array( 
  57. 'methods' => array( 
  58. 'analyze' => array( 
  59. 'path' => '{project}/trainedmodels/{id}/analyze',  
  60. 'httpMethod' => 'GET',  
  61. 'parameters' => array( 
  62. 'project' => array( 
  63. 'location' => 'path',  
  64. 'type' => 'string',  
  65. 'required' => true,  
  66. ),  
  67. 'id' => array( 
  68. 'location' => 'path',  
  69. 'type' => 'string',  
  70. 'required' => true,  
  71. ),  
  72. ),  
  73. ), 'delete' => array( 
  74. 'path' => '{project}/trainedmodels/{id}',  
  75. 'httpMethod' => 'DELETE',  
  76. 'parameters' => array( 
  77. 'project' => array( 
  78. 'location' => 'path',  
  79. 'type' => 'string',  
  80. 'required' => true,  
  81. ),  
  82. 'id' => array( 
  83. 'location' => 'path',  
  84. 'type' => 'string',  
  85. 'required' => true,  
  86. ),  
  87. ),  
  88. ), 'get' => array( 
  89. 'path' => '{project}/trainedmodels/{id}',  
  90. 'httpMethod' => 'GET',  
  91. 'parameters' => array( 
  92. 'project' => array( 
  93. 'location' => 'path',  
  94. 'type' => 'string',  
  95. 'required' => true,  
  96. ),  
  97. 'id' => array( 
  98. 'location' => 'path',  
  99. 'type' => 'string',  
  100. 'required' => true,  
  101. ),  
  102. ),  
  103. ), 'insert' => array( 
  104. 'path' => '{project}/trainedmodels',  
  105. 'httpMethod' => 'POST',  
  106. 'parameters' => array( 
  107. 'project' => array( 
  108. 'location' => 'path',  
  109. 'type' => 'string',  
  110. 'required' => true,  
  111. ),  
  112. ),  
  113. ), 'list' => array( 
  114. 'path' => '{project}/trainedmodels/list',  
  115. 'httpMethod' => 'GET',  
  116. 'parameters' => array( 
  117. 'project' => array( 
  118. 'location' => 'path',  
  119. 'type' => 'string',  
  120. 'required' => true,  
  121. ),  
  122. 'pageToken' => array( 
  123. 'location' => 'query',  
  124. 'type' => 'string',  
  125. ),  
  126. 'maxResults' => array( 
  127. 'location' => 'query',  
  128. 'type' => 'integer',  
  129. ),  
  130. ),  
  131. ), 'predict' => array( 
  132. 'path' => '{project}/trainedmodels/{id}/predict',  
  133. 'httpMethod' => 'POST',  
  134. 'parameters' => array( 
  135. 'project' => array( 
  136. 'location' => 'path',  
  137. 'type' => 'string',  
  138. 'required' => true,  
  139. ),  
  140. 'id' => array( 
  141. 'location' => 'path',  
  142. 'type' => 'string',  
  143. 'required' => true,  
  144. ),  
  145. ),  
  146. ), 'update' => array( 
  147. 'path' => '{project}/trainedmodels/{id}',  
  148. 'httpMethod' => 'PUT',  
  149. 'parameters' => array( 
  150. 'project' => array( 
  151. 'location' => 'path',  
  152. 'type' => 'string',  
  153. 'required' => true,  
  154. ),  
  155. 'id' => array( 
  156. 'location' => 'path',  
  157. 'type' => 'string',  
  158. 'required' => true,  
  159. ),  
  160. ),  
  161. ),  
  162. );