source: vendor/google/apiclient-services/src/CloudMachineLearningEngine/Resource/ProjectsLocationsStudies.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 10 days ago

Upload project files

  • Property mode set to 100644
File size: 3.6 KB
RevLine 
[e3d4e0a]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
18namespace Google\Service\CloudMachineLearningEngine\Resource;
19
20use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1ListStudiesResponse;
21use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1Study;
22use Google\Service\CloudMachineLearningEngine\GoogleProtobufEmpty;
23
24/**
25 * The "studies" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $mlService = new Google\Service\CloudMachineLearningEngine(...);
29 * $studies = $mlService->projects_locations_studies;
30 * </code>
31 */
32class ProjectsLocationsStudies extends \Google\Service\Resource
33{
34 /**
35 * Creates a study. (studies.create)
36 *
37 * @param string $parent Required. The project and location that the study
38 * belongs to. Format: projects/{project}/locations/{location}
39 * @param GoogleCloudMlV1Study $postBody
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string studyId Required. The ID to use for the study, which will
43 * become the final component of the study's resource name.
44 * @return GoogleCloudMlV1Study
45 * @throws \Google\Service\Exception
46 */
47 public function create($parent, GoogleCloudMlV1Study $postBody, $optParams = [])
48 {
49 $params = ['parent' => $parent, 'postBody' => $postBody];
50 $params = array_merge($params, $optParams);
51 return $this->call('create', [$params], GoogleCloudMlV1Study::class);
52 }
53 /**
54 * Deletes a study. (studies.delete)
55 *
56 * @param string $name Required. The study name.
57 * @param array $optParams Optional parameters.
58 * @return GoogleProtobufEmpty
59 * @throws \Google\Service\Exception
60 */
61 public function delete($name, $optParams = [])
62 {
63 $params = ['name' => $name];
64 $params = array_merge($params, $optParams);
65 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
66 }
67 /**
68 * Gets a study. (studies.get)
69 *
70 * @param string $name Required. The study name.
71 * @param array $optParams Optional parameters.
72 * @return GoogleCloudMlV1Study
73 * @throws \Google\Service\Exception
74 */
75 public function get($name, $optParams = [])
76 {
77 $params = ['name' => $name];
78 $params = array_merge($params, $optParams);
79 return $this->call('get', [$params], GoogleCloudMlV1Study::class);
80 }
81 /**
82 * Lists all the studies in a region for an associated project.
83 * (studies.listProjectsLocationsStudies)
84 *
85 * @param string $parent Required. The project and location that the study
86 * belongs to. Format: projects/{project}/locations/{location}
87 * @param array $optParams Optional parameters.
88 * @return GoogleCloudMlV1ListStudiesResponse
89 * @throws \Google\Service\Exception
90 */
91 public function listProjectsLocationsStudies($parent, $optParams = [])
92 {
93 $params = ['parent' => $parent];
94 $params = array_merge($params, $optParams);
95 return $this->call('list', [$params], GoogleCloudMlV1ListStudiesResponse::class);
96 }
97}
98
99// Adding a class alias for backwards compatibility with the previous class name.
100class_alias(ProjectsLocationsStudies::class, 'Google_Service_CloudMachineLearningEngine_Resource_ProjectsLocationsStudies');
Note: See TracBrowser for help on using the repository browser.