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 |
|
---|
18 | namespace Google\Service\OracleDatabase\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\OracleDatabase\ListAutonomousDatabaseBackupsResponse;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * The "autonomousDatabaseBackups" collection of methods.
|
---|
24 | * Typical usage is:
|
---|
25 | * <code>
|
---|
26 | * $oracledatabaseService = new Google\Service\OracleDatabase(...);
|
---|
27 | * $autonomousDatabaseBackups = $oracledatabaseService->projects_locations_autonomousDatabaseBackups;
|
---|
28 | * </code>
|
---|
29 | */
|
---|
30 | class ProjectsLocationsAutonomousDatabaseBackups extends \Google\Service\Resource
|
---|
31 | {
|
---|
32 | /**
|
---|
33 | * Lists the long-term and automatic backups of an Autonomous Database.
|
---|
34 | * (autonomousDatabaseBackups.listProjectsLocationsAutonomousDatabaseBackups)
|
---|
35 | *
|
---|
36 | * @param string $parent Required. The parent value for
|
---|
37 | * ListAutonomousDatabaseBackups in the following format:
|
---|
38 | * projects/{project}/locations/{location}.
|
---|
39 | * @param array $optParams Optional parameters.
|
---|
40 | *
|
---|
41 | * @opt_param string filter Optional. An expression for filtering the results of
|
---|
42 | * the request. Only the **autonomous_database_id** field is supported in the
|
---|
43 | * following format: `autonomous_database_id="{autonomous_database_id}"`. The
|
---|
44 | * accepted values must be a valid Autonomous Database ID, limited to the naming
|
---|
45 | * restrictions of the ID: ^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). The ID must start
|
---|
46 | * with a letter, end with a letter or a number, and be a maximum of 63
|
---|
47 | * characters.
|
---|
48 | * @opt_param int pageSize Optional. The maximum number of items to return. If
|
---|
49 | * unspecified, at most 50 Autonomous DB Backups will be returned. The maximum
|
---|
50 | * value is 1000; values above 1000 will be coerced to 1000.
|
---|
51 | * @opt_param string pageToken Optional. A token identifying a page of results
|
---|
52 | * the server should return.
|
---|
53 | * @return ListAutonomousDatabaseBackupsResponse
|
---|
54 | * @throws \Google\Service\Exception
|
---|
55 | */
|
---|
56 | public function listProjectsLocationsAutonomousDatabaseBackups($parent, $optParams = [])
|
---|
57 | {
|
---|
58 | $params = ['parent' => $parent];
|
---|
59 | $params = array_merge($params, $optParams);
|
---|
60 | return $this->call('list', [$params], ListAutonomousDatabaseBackupsResponse::class);
|
---|
61 | }
|
---|
62 | }
|
---|
63 |
|
---|
64 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
65 | class_alias(ProjectsLocationsAutonomousDatabaseBackups::class, 'Google_Service_OracleDatabase_Resource_ProjectsLocationsAutonomousDatabaseBackups');
|
---|