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\DataPortability;
class DataportabilityEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataportabilityEmpty::class, 'Google_Service_DataPortability_DataportabilityEmpty');
@@ -0,0 +1,45 @@
<?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\DataPortability;
class InitiatePortabilityArchiveRequest extends \Google\Collection
{
protected $collection_key = 'resources';
/**
* @var string[]
*/
public $resources;
/**
* @param string[]
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return string[]
*/
public function getResources()
{
return $this->resources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InitiatePortabilityArchiveRequest::class, 'Google_Service_DataPortability_InitiatePortabilityArchiveRequest');
@@ -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\DataPortability;
class InitiatePortabilityArchiveResponse extends \Google\Model
{
/**
* @var string
*/
public $archiveJobId;
/**
* @param string
*/
public function setArchiveJobId($archiveJobId)
{
$this->archiveJobId = $archiveJobId;
}
/**
* @return string
*/
public function getArchiveJobId()
{
return $this->archiveJobId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InitiatePortabilityArchiveResponse::class, 'Google_Service_DataPortability_InitiatePortabilityArchiveResponse');
@@ -0,0 +1,81 @@
<?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\DataPortability;
class PortabilityArchiveState extends \Google\Collection
{
protected $collection_key = 'urls';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $state;
/**
* @var string[]
*/
public $urls;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string[]
*/
public function setUrls($urls)
{
$this->urls = $urls;
}
/**
* @return string[]
*/
public function getUrls()
{
return $this->urls;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PortabilityArchiveState::class, 'Google_Service_DataPortability_PortabilityArchiveState');
@@ -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\DataPortability;
class ResetAuthorizationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResetAuthorizationRequest::class, 'Google_Service_DataPortability_ResetAuthorizationRequest');
@@ -0,0 +1,72 @@
<?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\DataPortability\Resource;
use Google\Service\DataPortability\PortabilityArchiveState;
use Google\Service\DataPortability\RetryPortabilityArchiveRequest;
use Google\Service\DataPortability\RetryPortabilityArchiveResponse;
/**
* The "archiveJobs" collection of methods.
* Typical usage is:
* <code>
* $dataportabilityService = new Google\Service\DataPortability(...);
* $archiveJobs = $dataportabilityService->archiveJobs;
* </code>
*/
class ArchiveJobs extends \Google\Service\Resource
{
/**
* Retrieves the state of an Archive job for the Portability API.
* (archiveJobs.getPortabilityArchiveState)
*
* @param string $name Required. The archive job ID that is returned when you
* request the state of the job. The format is:
* archiveJobs/{archive_job}/portabilityArchiveState. archive_job is the job ID
* returned by the InitiatePortabilityArchiveResponse.
* @param array $optParams Optional parameters.
* @return PortabilityArchiveState
* @throws \Google\Service\Exception
*/
public function getPortabilityArchiveState($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getPortabilityArchiveState', [$params], PortabilityArchiveState::class);
}
/**
* Retries a failed Portability Archive job. (archiveJobs.retry)
*
* @param string $name Required. The Archive job ID you're retrying. This is
* returned by the InitiatePortabilityArchiveResponse. Retrying is only executed
* if the initial job failed.
* @param RetryPortabilityArchiveRequest $postBody
* @param array $optParams Optional parameters.
* @return RetryPortabilityArchiveResponse
* @throws \Google\Service\Exception
*/
public function retry($name, RetryPortabilityArchiveRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('retry', [$params], RetryPortabilityArchiveResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArchiveJobs::class, 'Google_Service_DataPortability_Resource_ArchiveJobs');
@@ -0,0 +1,55 @@
<?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\DataPortability\Resource;
use Google\Service\DataPortability\DataportabilityEmpty;
use Google\Service\DataPortability\ResetAuthorizationRequest;
/**
* The "authorization" collection of methods.
* Typical usage is:
* <code>
* $dataportabilityService = new Google\Service\DataPortability(...);
* $authorization = $dataportabilityService->authorization;
* </code>
*/
class Authorization extends \Google\Service\Resource
{
/**
* Revokes OAuth tokens and resets exhausted scopes for a user/project pair.
* This method allows you to initiate a request after a new consent is granted.
* This method also indicates that previous archives can be garbage collected.
* You should call this method when all jobs are complete and all archives are
* downloaded. Do not call it only when you start a new job.
* (authorization.reset)
*
* @param ResetAuthorizationRequest $postBody
* @param array $optParams Optional parameters.
* @return DataportabilityEmpty
* @throws \Google\Service\Exception
*/
public function reset(ResetAuthorizationRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reset', [$params], DataportabilityEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Authorization::class, 'Google_Service_DataPortability_Resource_Authorization');
@@ -0,0 +1,51 @@
<?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\DataPortability\Resource;
use Google\Service\DataPortability\InitiatePortabilityArchiveRequest;
use Google\Service\DataPortability\InitiatePortabilityArchiveResponse;
/**
* The "portabilityArchive" collection of methods.
* Typical usage is:
* <code>
* $dataportabilityService = new Google\Service\DataPortability(...);
* $portabilityArchive = $dataportabilityService->portabilityArchive;
* </code>
*/
class PortabilityArchive extends \Google\Service\Resource
{
/**
* Initiates a new Archive job for the Portability API.
* (portabilityArchive.initiate)
*
* @param InitiatePortabilityArchiveRequest $postBody
* @param array $optParams Optional parameters.
* @return InitiatePortabilityArchiveResponse
* @throws \Google\Service\Exception
*/
public function initiate(InitiatePortabilityArchiveRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('initiate', [$params], InitiatePortabilityArchiveResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PortabilityArchive::class, 'Google_Service_DataPortability_Resource_PortabilityArchive');
@@ -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\DataPortability;
class RetryPortabilityArchiveRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RetryPortabilityArchiveRequest::class, 'Google_Service_DataPortability_RetryPortabilityArchiveRequest');
@@ -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\DataPortability;
class RetryPortabilityArchiveResponse extends \Google\Model
{
/**
* @var string
*/
public $archiveJobId;
/**
* @param string
*/
public function setArchiveJobId($archiveJobId)
{
$this->archiveJobId = $archiveJobId;
}
/**
* @return string
*/
public function getArchiveJobId()
{
return $this->archiveJobId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RetryPortabilityArchiveResponse::class, 'Google_Service_DataPortability_RetryPortabilityArchiveResponse');