source: vendor/google/apiclient-services/src/Firebasestorage.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 5.6 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;
19
20use Google\Client;
21
22/**
23 * Service definition for Firebasestorage (v1beta).
24 *
25 * <p>
26 * The Cloud Storage for Firebase API enables programmatic management of Cloud
27 * Storage buckets for use in Firebase projects</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://firebase.google.com/docs/storage" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class Firebasestorage extends \Google\Service
37{
38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
39 const CLOUD_PLATFORM =
40 "https://www.googleapis.com/auth/cloud-platform";
41 /** View and administer all your Firebase data and settings. */
42 const FIREBASE =
43 "https://www.googleapis.com/auth/firebase";
44
45 public $projects;
46 public $projects_buckets;
47 public $projects_defaultBucket;
48 public $rootUrlTemplate;
49
50 /**
51 * Constructs the internal representation of the Firebasestorage service.
52 *
53 * @param Client|array $clientOrConfig The client used to deliver requests, or a
54 * config array to pass to a new Client instance.
55 * @param string $rootUrl The root URL used for requests to the service.
56 */
57 public function __construct($clientOrConfig = [], $rootUrl = null)
58 {
59 parent::__construct($clientOrConfig);
60 $this->rootUrl = $rootUrl ?: 'https://firebasestorage.googleapis.com/';
61 $this->rootUrlTemplate = $rootUrl ?: 'https://firebasestorage.UNIVERSE_DOMAIN/';
62 $this->servicePath = '';
63 $this->batchPath = 'batch';
64 $this->version = 'v1beta';
65 $this->serviceName = 'firebasestorage';
66
67 $this->projects = new Firebasestorage\Resource\Projects(
68 $this,
69 $this->serviceName,
70 'projects',
71 [
72 'methods' => [
73 'deleteDefaultBucket' => [
74 'path' => 'v1beta/{+name}',
75 'httpMethod' => 'DELETE',
76 'parameters' => [
77 'name' => [
78 'location' => 'path',
79 'type' => 'string',
80 'required' => true,
81 ],
82 ],
83 ],'getDefaultBucket' => [
84 'path' => 'v1beta/{+name}',
85 'httpMethod' => 'GET',
86 'parameters' => [
87 'name' => [
88 'location' => 'path',
89 'type' => 'string',
90 'required' => true,
91 ],
92 ],
93 ],
94 ]
95 ]
96 );
97 $this->projects_buckets = new Firebasestorage\Resource\ProjectsBuckets(
98 $this,
99 $this->serviceName,
100 'buckets',
101 [
102 'methods' => [
103 'addFirebase' => [
104 'path' => 'v1beta/{+bucket}:addFirebase',
105 'httpMethod' => 'POST',
106 'parameters' => [
107 'bucket' => [
108 'location' => 'path',
109 'type' => 'string',
110 'required' => true,
111 ],
112 ],
113 ],'get' => [
114 'path' => 'v1beta/{+name}',
115 'httpMethod' => 'GET',
116 'parameters' => [
117 'name' => [
118 'location' => 'path',
119 'type' => 'string',
120 'required' => true,
121 ],
122 ],
123 ],'list' => [
124 'path' => 'v1beta/{+parent}/buckets',
125 'httpMethod' => 'GET',
126 'parameters' => [
127 'parent' => [
128 'location' => 'path',
129 'type' => 'string',
130 'required' => true,
131 ],
132 'pageSize' => [
133 'location' => 'query',
134 'type' => 'integer',
135 ],
136 'pageToken' => [
137 'location' => 'query',
138 'type' => 'string',
139 ],
140 ],
141 ],'removeFirebase' => [
142 'path' => 'v1beta/{+bucket}:removeFirebase',
143 'httpMethod' => 'POST',
144 'parameters' => [
145 'bucket' => [
146 'location' => 'path',
147 'type' => 'string',
148 'required' => true,
149 ],
150 ],
151 ],
152 ]
153 ]
154 );
155 $this->projects_defaultBucket = new Firebasestorage\Resource\ProjectsDefaultBucket(
156 $this,
157 $this->serviceName,
158 'defaultBucket',
159 [
160 'methods' => [
161 'create' => [
162 'path' => 'v1beta/{+parent}/defaultBucket',
163 'httpMethod' => 'POST',
164 'parameters' => [
165 'parent' => [
166 'location' => 'path',
167 'type' => 'string',
168 'required' => true,
169 ],
170 ],
171 ],
172 ]
173 ]
174 );
175 }
176}
177
178// Adding a class alias for backwards compatibility with the previous class name.
179class_alias(Firebasestorage::class, 'Google_Service_Firebasestorage');
Note: See TracBrowser for help on using the repository browser.