source: vendor/google/apiclient-services/src/Baremetalsolution/Resource/ProjectsLocationsVolumesLuns.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 3.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\Baremetalsolution\Resource;
19
20use Google\Service\Baremetalsolution\EvictLunRequest;
21use Google\Service\Baremetalsolution\ListLunsResponse;
22use Google\Service\Baremetalsolution\Lun;
23use Google\Service\Baremetalsolution\Operation;
24
25/**
26 * The "luns" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
30 * $luns = $baremetalsolutionService->projects_locations_volumes_luns;
31 * </code>
32 */
33class ProjectsLocationsVolumesLuns extends \Google\Service\Resource
34{
35 /**
36 * Skips lun's cooloff and deletes it now. Lun must be in cooloff state.
37 * (luns.evict)
38 *
39 * @param string $name Required. The name of the lun.
40 * @param EvictLunRequest $postBody
41 * @param array $optParams Optional parameters.
42 * @return Operation
43 * @throws \Google\Service\Exception
44 */
45 public function evict($name, EvictLunRequest $postBody, $optParams = [])
46 {
47 $params = ['name' => $name, 'postBody' => $postBody];
48 $params = array_merge($params, $optParams);
49 return $this->call('evict', [$params], Operation::class);
50 }
51 /**
52 * Get details of a single storage logical unit number(LUN). (luns.get)
53 *
54 * @param string $name Required. Name of the resource.
55 * @param array $optParams Optional parameters.
56 * @return Lun
57 * @throws \Google\Service\Exception
58 */
59 public function get($name, $optParams = [])
60 {
61 $params = ['name' => $name];
62 $params = array_merge($params, $optParams);
63 return $this->call('get', [$params], Lun::class);
64 }
65 /**
66 * List storage volume luns for given storage volume.
67 * (luns.listProjectsLocationsVolumesLuns)
68 *
69 * @param string $parent Required. Parent value for ListLunsRequest.
70 * @param array $optParams Optional parameters.
71 *
72 * @opt_param int pageSize Requested page size. The server might return fewer
73 * items than requested. If unspecified, server will pick an appropriate
74 * default.
75 * @opt_param string pageToken A token identifying a page of results from the
76 * server.
77 * @return ListLunsResponse
78 * @throws \Google\Service\Exception
79 */
80 public function listProjectsLocationsVolumesLuns($parent, $optParams = [])
81 {
82 $params = ['parent' => $parent];
83 $params = array_merge($params, $optParams);
84 return $this->call('list', [$params], ListLunsResponse::class);
85 }
86}
87
88// Adding a class alias for backwards compatibility with the previous class name.
89class_alias(ProjectsLocationsVolumesLuns::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsVolumesLuns');
Note: See TracBrowser for help on using the repository browser.