[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 |
|
---|
| 18 | namespace Google\Service\Firebasestorage\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\Firebasestorage\DefaultBucket;
|
---|
| 21 | use Google\Service\Firebasestorage\FirebasestorageEmpty;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * The "projects" collection of methods.
|
---|
| 25 | * Typical usage is:
|
---|
| 26 | * <code>
|
---|
| 27 | * $firebasestorageService = new Google\Service\Firebasestorage(...);
|
---|
| 28 | * $projects = $firebasestorageService->projects;
|
---|
| 29 | * </code>
|
---|
| 30 | */
|
---|
| 31 | class Projects extends \Google\Service\Resource
|
---|
| 32 | {
|
---|
| 33 | /**
|
---|
| 34 | * Unlinks and deletes the default bucket. (projects.deleteDefaultBucket)
|
---|
| 35 | *
|
---|
| 36 | * @param string $name Required. The name of the default bucket to delete,
|
---|
| 37 | * `projects/{project_id_or_number}/defaultBucket`.
|
---|
| 38 | * @param array $optParams Optional parameters.
|
---|
| 39 | * @return FirebasestorageEmpty
|
---|
| 40 | * @throws \Google\Service\Exception
|
---|
| 41 | */
|
---|
| 42 | public function deleteDefaultBucket($name, $optParams = [])
|
---|
| 43 | {
|
---|
| 44 | $params = ['name' => $name];
|
---|
| 45 | $params = array_merge($params, $optParams);
|
---|
| 46 | return $this->call('deleteDefaultBucket', [$params], FirebasestorageEmpty::class);
|
---|
| 47 | }
|
---|
| 48 | /**
|
---|
| 49 | * Gets the default bucket. (projects.getDefaultBucket)
|
---|
| 50 | *
|
---|
| 51 | * @param string $name Required. The name of the default bucket to retrieve,
|
---|
| 52 | * `projects/{project_id_or_number}/defaultBucket`.
|
---|
| 53 | * @param array $optParams Optional parameters.
|
---|
| 54 | * @return DefaultBucket
|
---|
| 55 | * @throws \Google\Service\Exception
|
---|
| 56 | */
|
---|
| 57 | public function getDefaultBucket($name, $optParams = [])
|
---|
| 58 | {
|
---|
| 59 | $params = ['name' => $name];
|
---|
| 60 | $params = array_merge($params, $optParams);
|
---|
| 61 | return $this->call('getDefaultBucket', [$params], DefaultBucket::class);
|
---|
| 62 | }
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 66 | class_alias(Projects::class, 'Google_Service_Firebasestorage_Resource_Projects');
|
---|