source: vendor/google/apiclient-services/src/Aiplatform/Resource/ProjectsLocationsNotebookExecutionJobs.php

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

Upload project files

  • Property mode set to 100644
File size: 5.3 KB
Line 
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\Aiplatform\Resource;
19
20use Google\Service\Aiplatform\GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse;
21use Google\Service\Aiplatform\GoogleCloudAiplatformV1NotebookExecutionJob;
22use Google\Service\Aiplatform\GoogleLongrunningOperation;
23
24/**
25 * The "notebookExecutionJobs" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $aiplatformService = new Google\Service\Aiplatform(...);
29 * $notebookExecutionJobs = $aiplatformService->projects_locations_notebookExecutionJobs;
30 * </code>
31 */
32class ProjectsLocationsNotebookExecutionJobs extends \Google\Service\Resource
33{
34 /**
35 * Creates a NotebookExecutionJob. (notebookExecutionJobs.create)
36 *
37 * @param string $parent Required. The resource name of the Location to create
38 * the NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
39 * @param GoogleCloudAiplatformV1NotebookExecutionJob $postBody
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string notebookExecutionJobId Optional. User specified ID for the
43 * NotebookExecutionJob.
44 * @return GoogleLongrunningOperation
45 * @throws \Google\Service\Exception
46 */
47 public function create($parent, GoogleCloudAiplatformV1NotebookExecutionJob $postBody, $optParams = [])
48 {
49 $params = ['parent' => $parent, 'postBody' => $postBody];
50 $params = array_merge($params, $optParams);
51 return $this->call('create', [$params], GoogleLongrunningOperation::class);
52 }
53 /**
54 * Deletes a NotebookExecutionJob. (notebookExecutionJobs.delete)
55 *
56 * @param string $name Required. The name of the NotebookExecutionJob resource
57 * to be deleted.
58 * @param array $optParams Optional parameters.
59 * @return GoogleLongrunningOperation
60 * @throws \Google\Service\Exception
61 */
62 public function delete($name, $optParams = [])
63 {
64 $params = ['name' => $name];
65 $params = array_merge($params, $optParams);
66 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
67 }
68 /**
69 * Gets a NotebookExecutionJob. (notebookExecutionJobs.get)
70 *
71 * @param string $name Required. The name of the NotebookExecutionJob resource.
72 * @param array $optParams Optional parameters.
73 *
74 * @opt_param string view Optional. The NotebookExecutionJob view. Defaults to
75 * BASIC.
76 * @return GoogleCloudAiplatformV1NotebookExecutionJob
77 * @throws \Google\Service\Exception
78 */
79 public function get($name, $optParams = [])
80 {
81 $params = ['name' => $name];
82 $params = array_merge($params, $optParams);
83 return $this->call('get', [$params], GoogleCloudAiplatformV1NotebookExecutionJob::class);
84 }
85 /**
86 * Lists NotebookExecutionJobs in a Location.
87 * (notebookExecutionJobs.listProjectsLocationsNotebookExecutionJobs)
88 *
89 * @param string $parent Required. The resource name of the Location from which
90 * to list the NotebookExecutionJobs. Format:
91 * `projects/{project}/locations/{location}`
92 * @param array $optParams Optional parameters.
93 *
94 * @opt_param string filter Optional. An expression for filtering the results of
95 * the request. For field names both snake_case and camelCase are supported. *
96 * `notebookExecutionJob` supports = and !=. `notebookExecutionJob` represents
97 * the NotebookExecutionJob ID. * `displayName` supports = and != and regex. *
98 * `schedule` supports = and != and regex. Some examples: *
99 * `notebookExecutionJob="123"` * `notebookExecutionJob="my-execution-job"` *
100 * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
101 * @opt_param string orderBy Optional. A comma-separated list of fields to order
102 * by, sorted in ascending order. Use "desc" after a field name for descending.
103 * Supported fields: * `display_name` * `create_time` * `update_time` Example:
104 * `display_name, create_time desc`.
105 * @opt_param int pageSize Optional. The standard list page size.
106 * @opt_param string pageToken Optional. The standard list page token. Typically
107 * obtained via ListNotebookExecutionJobsResponse.next_page_token of the
108 * previous NotebookService.ListNotebookExecutionJobs call.
109 * @opt_param string view Optional. The NotebookExecutionJob view. Defaults to
110 * BASIC.
111 * @return GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse
112 * @throws \Google\Service\Exception
113 */
114 public function listProjectsLocationsNotebookExecutionJobs($parent, $optParams = [])
115 {
116 $params = ['parent' => $parent];
117 $params = array_merge($params, $optParams);
118 return $this->call('list', [$params], GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse::class);
119 }
120}
121
122// Adding a class alias for backwards compatibility with the previous class name.
123class_alias(ProjectsLocationsNotebookExecutionJobs::class, 'Google_Service_Aiplatform_Resource_ProjectsLocationsNotebookExecutionJobs');
Note: See TracBrowser for help on using the repository browser.