Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Firebasestorage;
class AddFirebaseRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddFirebaseRequest::class, 'Google_Service_Firebasestorage_AddFirebaseRequest');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Firebasestorage;
class Bucket extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Bucket::class, 'Google_Service_Firebasestorage_Bucket');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Firebasestorage;
class DefaultBucket extends \Google\Model
{
protected $bucketType = Bucket::class;
protected $bucketDataType = '';
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $storageClass;
/**
* @param Bucket
*/
public function setBucket(Bucket $bucket)
{
$this->bucket = $bucket;
}
/**
* @return Bucket
*/
public function getBucket()
{
return $this->bucket;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setStorageClass($storageClass)
{
$this->storageClass = $storageClass;
}
/**
* @return string
*/
public function getStorageClass()
{
return $this->storageClass;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DefaultBucket::class, 'Google_Service_Firebasestorage_DefaultBucket');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Firebasestorage;
class FirebasestorageEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FirebasestorageEmpty::class, 'Google_Service_Firebasestorage_FirebasestorageEmpty');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Firebasestorage;
class GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $lastUpdateTime;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setLastUpdateTime($lastUpdateTime)
{
$this->lastUpdateTime = $lastUpdateTime;
}
/**
* @return string
*/
public function getLastUpdateTime()
{
return $this->lastUpdateTime;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata::class, 'Google_Service_Firebasestorage_GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Firebasestorage;
class GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $lastUpdateTime;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setLastUpdateTime($lastUpdateTime)
{
$this->lastUpdateTime = $lastUpdateTime;
}
/**
* @return string
*/
public function getLastUpdateTime()
{
return $this->lastUpdateTime;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata::class, 'Google_Service_Firebasestorage_GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Firebasestorage;
class ListBucketsResponse extends \Google\Collection
{
protected $collection_key = 'buckets';
protected $bucketsType = Bucket::class;
protected $bucketsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Bucket[]
*/
public function setBuckets($buckets)
{
$this->buckets = $buckets;
}
/**
* @return Bucket[]
*/
public function getBuckets()
{
return $this->buckets;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBucketsResponse::class, 'Google_Service_Firebasestorage_ListBucketsResponse');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Firebasestorage;
class RemoveFirebaseRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RemoveFirebaseRequest::class, 'Google_Service_Firebasestorage_RemoveFirebaseRequest');
@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Firebasestorage\Resource;
use Google\Service\Firebasestorage\DefaultBucket;
use Google\Service\Firebasestorage\FirebasestorageEmpty;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $firebasestorageService = new Google\Service\Firebasestorage(...);
* $projects = $firebasestorageService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Unlinks and deletes the default bucket. (projects.deleteDefaultBucket)
*
* @param string $name Required. The name of the default bucket to delete,
* `projects/{project_id_or_number}/defaultBucket`.
* @param array $optParams Optional parameters.
* @return FirebasestorageEmpty
* @throws \Google\Service\Exception
*/
public function deleteDefaultBucket($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('deleteDefaultBucket', [$params], FirebasestorageEmpty::class);
}
/**
* Gets the default bucket. (projects.getDefaultBucket)
*
* @param string $name Required. The name of the default bucket to retrieve,
* `projects/{project_id_or_number}/defaultBucket`.
* @param array $optParams Optional parameters.
* @return DefaultBucket
* @throws \Google\Service\Exception
*/
public function getDefaultBucket($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getDefaultBucket', [$params], DefaultBucket::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Firebasestorage_Resource_Projects');
@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Firebasestorage\Resource;
use Google\Service\Firebasestorage\AddFirebaseRequest;
use Google\Service\Firebasestorage\Bucket;
use Google\Service\Firebasestorage\FirebasestorageEmpty;
use Google\Service\Firebasestorage\ListBucketsResponse;
use Google\Service\Firebasestorage\RemoveFirebaseRequest;
/**
* The "buckets" collection of methods.
* Typical usage is:
* <code>
* $firebasestorageService = new Google\Service\Firebasestorage(...);
* $buckets = $firebasestorageService->projects_buckets;
* </code>
*/
class ProjectsBuckets extends \Google\Service\Resource
{
/**
* Links a Google Cloud Storage bucket to a Firebase project.
* (buckets.addFirebase)
*
* @param string $bucket Required. Resource name of the bucket, mirrors the ID
* of the underlying Google Cloud Storage bucket,
* `projects/{project_id_or_number}/buckets/{bucket_id}`.
* @param AddFirebaseRequest $postBody
* @param array $optParams Optional parameters.
* @return Bucket
* @throws \Google\Service\Exception
*/
public function addFirebase($bucket, AddFirebaseRequest $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('addFirebase', [$params], Bucket::class);
}
/**
* Gets a single linked storage bucket. (buckets.get)
*
* @param string $name Required. Resource name of the bucket, mirrors the ID of
* the underlying Google Cloud Storage bucket,
* `projects/{project_id_or_number}/buckets/{bucket_id}`.
* @param array $optParams Optional parameters.
* @return Bucket
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Bucket::class);
}
/**
* Lists the linked storage buckets for a project. (buckets.listProjectsBuckets)
*
* @param string $parent Required. Resource name of the parent Firebase project,
* `projects/{project_id_or_number}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of buckets to return. If not set,
* the server will use a reasonable default.
* @opt_param string pageToken A page token, received from a previous
* `ListBuckets` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListBuckets` must match the
* call that provided the page token.
* @return ListBucketsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsBuckets($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBucketsResponse::class);
}
/**
* Unlinks a linked Google Cloud Storage bucket from a Firebase project.
* (buckets.removeFirebase)
*
* @param string $bucket Required. Resource name of the bucket, mirrors the ID
* of the underlying Google Cloud Storage bucket,
* `projects/{project_id_or_number}/buckets/{bucket_id}`.
* @param RemoveFirebaseRequest $postBody
* @param array $optParams Optional parameters.
* @return FirebasestorageEmpty
* @throws \Google\Service\Exception
*/
public function removeFirebase($bucket, RemoveFirebaseRequest $postBody, $optParams = [])
{
$params = ['bucket' => $bucket, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('removeFirebase', [$params], FirebasestorageEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsBuckets::class, 'Google_Service_Firebasestorage_Resource_ProjectsBuckets');
@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Firebasestorage\Resource;
use Google\Service\Firebasestorage\DefaultBucket;
/**
* The "defaultBucket" collection of methods.
* Typical usage is:
* <code>
* $firebasestorageService = new Google\Service\Firebasestorage(...);
* $defaultBucket = $firebasestorageService->projects_defaultBucket;
* </code>
*/
class ProjectsDefaultBucket extends \Google\Service\Resource
{
/**
* Creates a Spark tier-eligible Cloud Storage bucket and links it to your
* Firebase project. If the default bucket already exists, this method will re-
* link it to your Firebase project. See https://firebase.google.com/pricing for
* pricing details. (defaultBucket.create)
*
* @param string $parent Required. The parent resource where the default bucket
* will be created, `projects/{project_id_or_number}`.
* @param DefaultBucket $postBody
* @param array $optParams Optional parameters.
* @return DefaultBucket
* @throws \Google\Service\Exception
*/
public function create($parent, DefaultBucket $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], DefaultBucket::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsDefaultBucket::class, 'Google_Service_Firebasestorage_Resource_ProjectsDefaultBucket');