source: vendor/google/apiclient-services/src/BigLakeService/Resource/ProjectsLocationsCatalogsDatabasesTables.php

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

Upload project files

  • Property mode set to 100644
File size: 6.1 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\BigLakeService\Resource;
19
20use Google\Service\BigLakeService\ListTablesResponse;
21use Google\Service\BigLakeService\RenameTableRequest;
22use Google\Service\BigLakeService\Table;
23
24/**
25 * The "tables" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $biglakeService = new Google\Service\BigLakeService(...);
29 * $tables = $biglakeService->projects_locations_catalogs_databases_tables;
30 * </code>
31 */
32class ProjectsLocationsCatalogsDatabasesTables extends \Google\Service\Resource
33{
34 /**
35 * Creates a new table. (tables.create)
36 *
37 * @param string $parent Required. The parent resource where this table will be
38 * created. Format: projects/{project_id_or_number}/locations/{location_id}/cata
39 * logs/{catalog_id}/databases/{database_id}
40 * @param Table $postBody
41 * @param array $optParams Optional parameters.
42 *
43 * @opt_param string tableId Required. The ID to use for the table, which will
44 * become the final component of the table's resource name.
45 * @return Table
46 * @throws \Google\Service\Exception
47 */
48 public function create($parent, Table $postBody, $optParams = [])
49 {
50 $params = ['parent' => $parent, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('create', [$params], Table::class);
53 }
54 /**
55 * Deletes an existing table specified by the table ID. (tables.delete)
56 *
57 * @param string $name Required. The name of the table to delete. Format: projec
58 * ts/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/datab
59 * ases/{database_id}/tables/{table_id}
60 * @param array $optParams Optional parameters.
61 * @return Table
62 * @throws \Google\Service\Exception
63 */
64 public function delete($name, $optParams = [])
65 {
66 $params = ['name' => $name];
67 $params = array_merge($params, $optParams);
68 return $this->call('delete', [$params], Table::class);
69 }
70 /**
71 * Gets the table specified by the resource name. (tables.get)
72 *
73 * @param string $name Required. The name of the table to retrieve. Format: proj
74 * ects/{project_id_or_number}/locations/{location_id}/catalogs/{catalog_id}/dat
75 * abases/{database_id}/tables/{table_id}
76 * @param array $optParams Optional parameters.
77 * @return Table
78 * @throws \Google\Service\Exception
79 */
80 public function get($name, $optParams = [])
81 {
82 $params = ['name' => $name];
83 $params = array_merge($params, $optParams);
84 return $this->call('get', [$params], Table::class);
85 }
86 /**
87 * List all tables in a specified database.
88 * (tables.listProjectsLocationsCatalogsDatabasesTables)
89 *
90 * @param string $parent Required. The parent, which owns this collection of
91 * tables. Format: projects/{project_id_or_number}/locations/{location_id}/catal
92 * ogs/{catalog_id}/databases/{database_id}
93 * @param array $optParams Optional parameters.
94 *
95 * @opt_param int pageSize The maximum number of tables to return. The service
96 * may return fewer than this value. If unspecified, at most 50 tables will be
97 * returned. The maximum value is 1000; values above 1000 will be coerced to
98 * 1000.
99 * @opt_param string pageToken A page token, received from a previous
100 * `ListTables` call. Provide this to retrieve the subsequent page. When
101 * paginating, all other parameters provided to `ListTables` must match the call
102 * that provided the page token.
103 * @opt_param string view The view for the returned tables.
104 * @return ListTablesResponse
105 * @throws \Google\Service\Exception
106 */
107 public function listProjectsLocationsCatalogsDatabasesTables($parent, $optParams = [])
108 {
109 $params = ['parent' => $parent];
110 $params = array_merge($params, $optParams);
111 return $this->call('list', [$params], ListTablesResponse::class);
112 }
113 /**
114 * Updates an existing table specified by the table ID. (tables.patch)
115 *
116 * @param string $name Output only. The resource name. Format: projects/{project
117 * _id_or_number}/locations/{location_id}/catalogs/{catalog_id}/databases/{datab
118 * ase_id}/tables/{table_id}
119 * @param Table $postBody
120 * @param array $optParams Optional parameters.
121 *
122 * @opt_param string updateMask The list of fields to update. For the
123 * `FieldMask` definition, see https://developers.google.com/protocol-
124 * buffers/docs/reference/google.protobuf#fieldmask If not set, defaults to all
125 * of the fields that are allowed to update.
126 * @return Table
127 * @throws \Google\Service\Exception
128 */
129 public function patch($name, Table $postBody, $optParams = [])
130 {
131 $params = ['name' => $name, 'postBody' => $postBody];
132 $params = array_merge($params, $optParams);
133 return $this->call('patch', [$params], Table::class);
134 }
135 /**
136 * Renames an existing table specified by the table ID. (tables.rename)
137 *
138 * @param string $name Required. The table's `name` field is used to identify
139 * the table to rename. Format: projects/{project_id_or_number}/locations/{locat
140 * ion_id}/catalogs/{catalog_id}/databases/{database_id}/tables/{table_id}
141 * @param RenameTableRequest $postBody
142 * @param array $optParams Optional parameters.
143 * @return Table
144 * @throws \Google\Service\Exception
145 */
146 public function rename($name, RenameTableRequest $postBody, $optParams = [])
147 {
148 $params = ['name' => $name, 'postBody' => $postBody];
149 $params = array_merge($params, $optParams);
150 return $this->call('rename', [$params], Table::class);
151 }
152}
153
154// Adding a class alias for backwards compatibility with the previous class name.
155class_alias(ProjectsLocationsCatalogsDatabasesTables::class, 'Google_Service_BigLakeService_Resource_ProjectsLocationsCatalogsDatabasesTables');
Note: See TracBrowser for help on using the repository browser.