1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18/** 19 * Service definition for CloudMachineLearning (v1beta1). 20 * 21 * <p> 22 * An API to enable creating and using machine learning models.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://cloud.google.com/ml/" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31class Google_Service_CloudMachineLearning extends Google_Service 32{ 33 /** View and manage your data across Google Cloud Platform services. */ 34 const CLOUD_PLATFORM = 35 "https://www.googleapis.com/auth/cloud-platform"; 36 37 public $projects; 38 public $projects_jobs; 39 public $projects_models; 40 public $projects_models_versions; 41 public $projects_operations; 42 43 /** 44 * Constructs the internal representation of the CloudMachineLearning service. 45 * 46 * @param Google_Client $client 47 */ 48 public function __construct(Google_Client $client) 49 { 50 parent::__construct($client); 51 $this->rootUrl = 'https://ml.googleapis.com/'; 52 $this->servicePath = ''; 53 $this->version = 'v1beta1'; 54 $this->serviceName = 'ml'; 55 56 $this->projects = new Google_Service_CloudMachineLearning_Resource_Projects( 57 $this, 58 $this->serviceName, 59 'projects', 60 array( 61 'methods' => array( 62 'getConfig' => array( 63 'path' => 'v1beta1/{+name}:getConfig', 64 'httpMethod' => 'GET', 65 'parameters' => array( 66 'name' => array( 67 'location' => 'path', 68 'type' => 'string', 69 'required' => true, 70 ), 71 ), 72 ),'predict' => array( 73 'path' => 'v1beta1/{+name}:predict', 74 'httpMethod' => 'POST', 75 'parameters' => array( 76 'name' => array( 77 'location' => 'path', 78 'type' => 'string', 79 'required' => true, 80 ), 81 ), 82 ), 83 ) 84 ) 85 ); 86 $this->projects_jobs = new Google_Service_CloudMachineLearning_Resource_ProjectsJobs( 87 $this, 88 $this->serviceName, 89 'jobs', 90 array( 91 'methods' => array( 92 'cancel' => array( 93 'path' => 'v1beta1/{+name}:cancel', 94 'httpMethod' => 'POST', 95 'parameters' => array( 96 'name' => array( 97 'location' => 'path', 98 'type' => 'string', 99 'required' => true, 100 ), 101 ), 102 ),'create' => array( 103 'path' => 'v1beta1/{+parent}/jobs', 104 'httpMethod' => 'POST', 105 'parameters' => array( 106 'parent' => array( 107 'location' => 'path', 108 'type' => 'string', 109 'required' => true, 110 ), 111 ), 112 ),'get' => array( 113 'path' => 'v1beta1/{+name}', 114 'httpMethod' => 'GET', 115 'parameters' => array( 116 'name' => array( 117 'location' => 'path', 118 'type' => 'string', 119 'required' => true, 120 ), 121 ), 122 ),'list' => array( 123 'path' => 'v1beta1/{+parent}/jobs', 124 'httpMethod' => 'GET', 125 'parameters' => array( 126 'parent' => array( 127 'location' => 'path', 128 'type' => 'string', 129 'required' => true, 130 ), 131 'pageSize' => array( 132 'location' => 'query', 133 'type' => 'integer', 134 ), 135 'filter' => array( 136 'location' => 'query', 137 'type' => 'string', 138 ), 139 'pageToken' => array( 140 'location' => 'query', 141 'type' => 'string', 142 ), 143 ), 144 ), 145 ) 146 ) 147 ); 148 $this->projects_models = new Google_Service_CloudMachineLearning_Resource_ProjectsModels( 149 $this, 150 $this->serviceName, 151 'models', 152 array( 153 'methods' => array( 154 'create' => array( 155 'path' => 'v1beta1/{+parent}/models', 156 'httpMethod' => 'POST', 157 'parameters' => array( 158 'parent' => array( 159 'location' => 'path', 160 'type' => 'string', 161 'required' => true, 162 ), 163 ), 164 ),'delete' => array( 165 'path' => 'v1beta1/{+name}', 166 'httpMethod' => 'DELETE', 167 'parameters' => array( 168 'name' => array( 169 'location' => 'path', 170 'type' => 'string', 171 'required' => true, 172 ), 173 ), 174 ),'get' => array( 175 'path' => 'v1beta1/{+name}', 176 'httpMethod' => 'GET', 177 'parameters' => array( 178 'name' => array( 179 'location' => 'path', 180 'type' => 'string', 181 'required' => true, 182 ), 183 ), 184 ),'list' => array( 185 'path' => 'v1beta1/{+parent}/models', 186 'httpMethod' => 'GET', 187 'parameters' => array( 188 'parent' => array( 189 'location' => 'path', 190 'type' => 'string', 191 'required' => true, 192 ), 193 'pageSize' => array( 194 'location' => 'query', 195 'type' => 'integer', 196 ), 197 'pageToken' => array( 198 'location' => 'query', 199 'type' => 'string', 200 ), 201 ), 202 ), 203 ) 204 ) 205 ); 206 $this->projects_models_versions = new Google_Service_CloudMachineLearning_Resource_ProjectsModelsVersions( 207 $this, 208 $this->serviceName, 209 'versions', 210 array( 211 'methods' => array( 212 'create' => array( 213 'path' => 'v1beta1/{+parent}/versions', 214 'httpMethod' => 'POST', 215 'parameters' => array( 216 'parent' => array( 217 'location' => 'path', 218 'type' => 'string', 219 'required' => true, 220 ), 221 ), 222 ),'delete' => array( 223 'path' => 'v1beta1/{+name}', 224 'httpMethod' => 'DELETE', 225 'parameters' => array( 226 'name' => array( 227 'location' => 'path', 228 'type' => 'string', 229 'required' => true, 230 ), 231 ), 232 ),'get' => array( 233 'path' => 'v1beta1/{+name}', 234 'httpMethod' => 'GET', 235 'parameters' => array( 236 'name' => array( 237 'location' => 'path', 238 'type' => 'string', 239 'required' => true, 240 ), 241 ), 242 ),'list' => array( 243 'path' => 'v1beta1/{+parent}/versions', 244 'httpMethod' => 'GET', 245 'parameters' => array( 246 'parent' => array( 247 'location' => 'path', 248 'type' => 'string', 249 'required' => true, 250 ), 251 'pageSize' => array( 252 'location' => 'query', 253 'type' => 'integer', 254 ), 255 'pageToken' => array( 256 'location' => 'query', 257 'type' => 'string', 258 ), 259 ), 260 ),'setDefault' => array( 261 'path' => 'v1beta1/{+name}:setDefault', 262 'httpMethod' => 'POST', 263 'parameters' => array( 264 'name' => array( 265 'location' => 'path', 266 'type' => 'string', 267 'required' => true, 268 ), 269 ), 270 ), 271 ) 272 ) 273 ); 274 $this->projects_operations = new Google_Service_CloudMachineLearning_Resource_ProjectsOperations( 275 $this, 276 $this->serviceName, 277 'operations', 278 array( 279 'methods' => array( 280 'cancel' => array( 281 'path' => 'v1beta1/{+name}:cancel', 282 'httpMethod' => 'POST', 283 'parameters' => array( 284 'name' => array( 285 'location' => 'path', 286 'type' => 'string', 287 'required' => true, 288 ), 289 ), 290 ),'delete' => array( 291 'path' => 'v1beta1/{+name}', 292 'httpMethod' => 'DELETE', 293 'parameters' => array( 294 'name' => array( 295 'location' => 'path', 296 'type' => 'string', 297 'required' => true, 298 ), 299 ), 300 ),'get' => array( 301 'path' => 'v1beta1/{+name}', 302 'httpMethod' => 'GET', 303 'parameters' => array( 304 'name' => array( 305 'location' => 'path', 306 'type' => 'string', 307 'required' => true, 308 ), 309 ), 310 ),'list' => array( 311 'path' => 'v1beta1/{+name}/operations', 312 'httpMethod' => 'GET', 313 'parameters' => array( 314 'name' => array( 315 'location' => 'path', 316 'type' => 'string', 317 'required' => true, 318 ), 319 'pageSize' => array( 320 'location' => 'query', 321 'type' => 'integer', 322 ), 323 'filter' => array( 324 'location' => 'query', 325 'type' => 'string', 326 ), 327 'pageToken' => array( 328 'location' => 'query', 329 'type' => 'string', 330 ), 331 ), 332 ), 333 ) 334 ) 335 ); 336 } 337} 338