source: vendor/google/apiclient-services/src/Baremetalsolution/Resource/ProjectsLocationsNfsShares.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 5.0 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\Baremetalsolution\Resource;
19
20use Google\Service\Baremetalsolution\ListNfsSharesResponse;
21use Google\Service\Baremetalsolution\NfsShare;
22use Google\Service\Baremetalsolution\Operation;
23use Google\Service\Baremetalsolution\RenameNfsShareRequest;
24
25/**
26 * The "nfsShares" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
30 * $nfsShares = $baremetalsolutionService->projects_locations_nfsShares;
31 * </code>
32 */
33class ProjectsLocationsNfsShares extends \Google\Service\Resource
34{
35 /**
36 * Create an NFS share. (nfsShares.create)
37 *
38 * @param string $parent Required. The parent project and location.
39 * @param NfsShare $postBody
40 * @param array $optParams Optional parameters.
41 * @return Operation
42 * @throws \Google\Service\Exception
43 */
44 public function create($parent, NfsShare $postBody, $optParams = [])
45 {
46 $params = ['parent' => $parent, 'postBody' => $postBody];
47 $params = array_merge($params, $optParams);
48 return $this->call('create', [$params], Operation::class);
49 }
50 /**
51 * Delete an NFS share. The underlying volume is automatically deleted.
52 * (nfsShares.delete)
53 *
54 * @param string $name Required. The name of the NFS share to delete.
55 * @param array $optParams Optional parameters.
56 * @return Operation
57 * @throws \Google\Service\Exception
58 */
59 public function delete($name, $optParams = [])
60 {
61 $params = ['name' => $name];
62 $params = array_merge($params, $optParams);
63 return $this->call('delete', [$params], Operation::class);
64 }
65 /**
66 * Get details of a single NFS share. (nfsShares.get)
67 *
68 * @param string $name Required. Name of the resource.
69 * @param array $optParams Optional parameters.
70 * @return NfsShare
71 * @throws \Google\Service\Exception
72 */
73 public function get($name, $optParams = [])
74 {
75 $params = ['name' => $name];
76 $params = array_merge($params, $optParams);
77 return $this->call('get', [$params], NfsShare::class);
78 }
79 /**
80 * List NFS shares. (nfsShares.listProjectsLocationsNfsShares)
81 *
82 * @param string $parent Required. Parent value for ListNfsSharesRequest.
83 * @param array $optParams Optional parameters.
84 *
85 * @opt_param string filter List filter.
86 * @opt_param int pageSize Requested page size. The server might return fewer
87 * items than requested. If unspecified, server will pick an appropriate
88 * default.
89 * @opt_param string pageToken A token identifying a page of results from the
90 * server.
91 * @return ListNfsSharesResponse
92 * @throws \Google\Service\Exception
93 */
94 public function listProjectsLocationsNfsShares($parent, $optParams = [])
95 {
96 $params = ['parent' => $parent];
97 $params = array_merge($params, $optParams);
98 return $this->call('list', [$params], ListNfsSharesResponse::class);
99 }
100 /**
101 * Update details of a single NFS share. (nfsShares.patch)
102 *
103 * @param string $name Immutable. The name of the NFS share.
104 * @param NfsShare $postBody
105 * @param array $optParams Optional parameters.
106 *
107 * @opt_param string updateMask The list of fields to update. The only currently
108 * supported fields are: `labels` `allowed_clients`
109 * @return Operation
110 * @throws \Google\Service\Exception
111 */
112 public function patch($name, NfsShare $postBody, $optParams = [])
113 {
114 $params = ['name' => $name, 'postBody' => $postBody];
115 $params = array_merge($params, $optParams);
116 return $this->call('patch', [$params], Operation::class);
117 }
118 /**
119 * RenameNfsShare sets a new name for an nfsshare. Use with caution, previous
120 * names become immediately invalidated. (nfsShares.rename)
121 *
122 * @param string $name Required. The `name` field is used to identify the
123 * nfsshare. Format:
124 * projects/{project}/locations/{location}/nfsshares/{nfsshare}
125 * @param RenameNfsShareRequest $postBody
126 * @param array $optParams Optional parameters.
127 * @return NfsShare
128 * @throws \Google\Service\Exception
129 */
130 public function rename($name, RenameNfsShareRequest $postBody, $optParams = [])
131 {
132 $params = ['name' => $name, 'postBody' => $postBody];
133 $params = array_merge($params, $optParams);
134 return $this->call('rename', [$params], NfsShare::class);
135 }
136}
137
138// Adding a class alias for backwards compatibility with the previous class name.
139class_alias(ProjectsLocationsNfsShares::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsNfsShares');
Note: See TracBrowser for help on using the repository browser.