source: vendor/google/apiclient-services/src/FirebaseHosting.php

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

Upload project files

  • Property mode set to 100644
File size: 4.9 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 FirebaseHosting (v1).
24 *
25 * <p>
26 * The Firebase Hosting REST API enables programmatic and customizable
27 * management and deployments to your Firebase-hosted sites. Use this REST API
28 * to create and manage channels and sites as well as to deploy new or updated
29 * hosting configurations and content files.</p>
30 *
31 * <p>
32 * For more information about this service, see the API
33 * <a href="https://firebase.google.com/docs/hosting/" target="_blank">Documentation</a>
34 * </p>
35 *
36 * @author Google, Inc.
37 */
38class FirebaseHosting extends \Google\Service
39{
40 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
41 const CLOUD_PLATFORM =
42 "https://www.googleapis.com/auth/cloud-platform";
43 /** View and administer all your Firebase data and settings. */
44 const FIREBASE =
45 "https://www.googleapis.com/auth/firebase";
46
47 public $operations;
48 public $projects_sites_customDomains_operations;
49 public $rootUrlTemplate;
50
51 /**
52 * Constructs the internal representation of the FirebaseHosting service.
53 *
54 * @param Client|array $clientOrConfig The client used to deliver requests, or a
55 * config array to pass to a new Client instance.
56 * @param string $rootUrl The root URL used for requests to the service.
57 */
58 public function __construct($clientOrConfig = [], $rootUrl = null)
59 {
60 parent::__construct($clientOrConfig);
61 $this->rootUrl = $rootUrl ?: 'https://firebasehosting.googleapis.com/';
62 $this->rootUrlTemplate = $rootUrl ?: 'https://firebasehosting.UNIVERSE_DOMAIN/';
63 $this->servicePath = '';
64 $this->batchPath = 'batch';
65 $this->version = 'v1';
66 $this->serviceName = 'firebasehosting';
67
68 $this->operations = new FirebaseHosting\Resource\Operations(
69 $this,
70 $this->serviceName,
71 'operations',
72 [
73 'methods' => [
74 'cancel' => [
75 'path' => 'v1/{+name}:cancel',
76 'httpMethod' => 'POST',
77 'parameters' => [
78 'name' => [
79 'location' => 'path',
80 'type' => 'string',
81 'required' => true,
82 ],
83 ],
84 ],'delete' => [
85 'path' => 'v1/{+name}',
86 'httpMethod' => 'DELETE',
87 'parameters' => [
88 'name' => [
89 'location' => 'path',
90 'type' => 'string',
91 'required' => true,
92 ],
93 ],
94 ],'list' => [
95 'path' => 'v1/{+name}',
96 'httpMethod' => 'GET',
97 'parameters' => [
98 'name' => [
99 'location' => 'path',
100 'type' => 'string',
101 'required' => true,
102 ],
103 'filter' => [
104 'location' => 'query',
105 'type' => 'string',
106 ],
107 'pageSize' => [
108 'location' => 'query',
109 'type' => 'integer',
110 ],
111 'pageToken' => [
112 'location' => 'query',
113 'type' => 'string',
114 ],
115 ],
116 ],
117 ]
118 ]
119 );
120 $this->projects_sites_customDomains_operations = new FirebaseHosting\Resource\ProjectsSitesCustomDomainsOperations(
121 $this,
122 $this->serviceName,
123 'operations',
124 [
125 'methods' => [
126 'cancel' => [
127 'path' => 'v1/{+name}:cancel',
128 'httpMethod' => 'POST',
129 'parameters' => [
130 'name' => [
131 'location' => 'path',
132 'type' => 'string',
133 'required' => true,
134 ],
135 ],
136 ],'delete' => [
137 'path' => 'v1/{+name}',
138 'httpMethod' => 'DELETE',
139 'parameters' => [
140 'name' => [
141 'location' => 'path',
142 'type' => 'string',
143 'required' => true,
144 ],
145 ],
146 ],
147 ]
148 ]
149 );
150 }
151}
152
153// Adding a class alias for backwards compatibility with the previous class name.
154class_alias(FirebaseHosting::class, 'Google_Service_FirebaseHosting');
Note: See TracBrowser for help on using the repository browser.