source: vendor/google/apiclient-services/src/NetAppFiles/Resource/ProjectsLocationsBackupVaults.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: 5.3 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\NetAppFiles\Resource;
19
20use Google\Service\NetAppFiles\BackupVault;
21use Google\Service\NetAppFiles\ListBackupVaultsResponse;
22use Google\Service\NetAppFiles\Operation;
23
24/**
25 * The "backupVaults" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $netappService = new Google\Service\NetAppFiles(...);
29 * $backupVaults = $netappService->projects_locations_backupVaults;
30 * </code>
31 */
32class ProjectsLocationsBackupVaults extends \Google\Service\Resource
33{
34 /**
35 * Creates new backup vault (backupVaults.create)
36 *
37 * @param string $parent Required. The location to create the backup vaults, in
38 * the format `projects/{project_id}/locations/{location}`
39 * @param BackupVault $postBody
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string backupVaultId Required. The ID to use for the backupVault.
43 * The ID must be unique within the specified location. Must contain only
44 * letters, numbers and hyphen, with the first character a letter, the last a
45 * letter or a number, and a 63 character maximum.
46 * @return Operation
47 * @throws \Google\Service\Exception
48 */
49 public function create($parent, BackupVault $postBody, $optParams = [])
50 {
51 $params = ['parent' => $parent, 'postBody' => $postBody];
52 $params = array_merge($params, $optParams);
53 return $this->call('create', [$params], Operation::class);
54 }
55 /**
56 * Warning! This operation will permanently delete the backup vault.
57 * (backupVaults.delete)
58 *
59 * @param string $name Required. The backupVault resource name, in the format
60 * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
61 * @param array $optParams Optional parameters.
62 * @return Operation
63 * @throws \Google\Service\Exception
64 */
65 public function delete($name, $optParams = [])
66 {
67 $params = ['name' => $name];
68 $params = array_merge($params, $optParams);
69 return $this->call('delete', [$params], Operation::class);
70 }
71 /**
72 * Returns the description of the specified backup vault (backupVaults.get)
73 *
74 * @param string $name Required. The backupVault resource name, in the format
75 * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
76 * @param array $optParams Optional parameters.
77 * @return BackupVault
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], BackupVault::class);
85 }
86 /**
87 * Returns list of all available backup vaults.
88 * (backupVaults.listProjectsLocationsBackupVaults)
89 *
90 * @param string $parent Required. The location for which to retrieve
91 * backupVault information, in the format
92 * `projects/{project_id}/locations/{location}`.
93 * @param array $optParams Optional parameters.
94 *
95 * @opt_param string filter List filter.
96 * @opt_param string orderBy Sort results. Supported values are "name", "name
97 * desc" or "" (unsorted).
98 * @opt_param int pageSize The maximum number of items to return.
99 * @opt_param string pageToken The next_page_token value to use if there are
100 * additional results to retrieve for this list request.
101 * @return ListBackupVaultsResponse
102 * @throws \Google\Service\Exception
103 */
104 public function listProjectsLocationsBackupVaults($parent, $optParams = [])
105 {
106 $params = ['parent' => $parent];
107 $params = array_merge($params, $optParams);
108 return $this->call('list', [$params], ListBackupVaultsResponse::class);
109 }
110 /**
111 * Updates the settings of a specific backup vault. (backupVaults.patch)
112 *
113 * @param string $name Identifier. The resource name of the backup vault.
114 * Format:
115 * `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
116 * @param BackupVault $postBody
117 * @param array $optParams Optional parameters.
118 *
119 * @opt_param string updateMask Required. Field mask is used to specify the
120 * fields to be overwritten in the Backup resource to be updated. The fields
121 * specified in the update_mask are relative to the resource, not the full
122 * request. A field will be overwritten if it is in the mask. If the user does
123 * not provide a mask then all fields will be overwritten.
124 * @return Operation
125 * @throws \Google\Service\Exception
126 */
127 public function patch($name, BackupVault $postBody, $optParams = [])
128 {
129 $params = ['name' => $name, 'postBody' => $postBody];
130 $params = array_merge($params, $optParams);
131 return $this->call('patch', [$params], Operation::class);
132 }
133}
134
135// Adding a class alias for backwards compatibility with the previous class name.
136class_alias(ProjectsLocationsBackupVaults::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsBackupVaults');
Note: See TracBrowser for help on using the repository browser.