gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,158 @@
<?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\ApiKeysService;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_ApiKeysService_Operation');
@@ -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\ApiKeysService\Resource;
use Google\Service\ApiKeysService\V2LookupKeyResponse;
/**
* The "keys" collection of methods.
* Typical usage is:
* <code>
* $apikeysService = new Google\Service\ApiKeysService(...);
* $keys = $apikeysService->keys;
* </code>
*/
class Keys extends \Google\Service\Resource
{
/**
* Find the parent project and resource name of the API key that matches the key
* string in the request. If the API key has been purged, resource name will not
* be set. The service account must have the `apikeys.keys.lookup` permission on
* the parent project. (keys.lookupKey)
*
* @param array $optParams Optional parameters.
*
* @opt_param string keyString Required. Finds the project that owns the key
* string value.
* @return V2LookupKeyResponse
* @throws \Google\Service\Exception
*/
public function lookupKey($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('lookupKey', [$params], V2LookupKeyResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Keys::class, 'Google_Service_ApiKeysService_Resource_Keys');
@@ -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\ApiKeysService\Resource;
use Google\Service\ApiKeysService\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $apikeysService = new Google\Service\ApiKeysService(...);
* $operations = $apikeysService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_ApiKeysService_Resource_Operations');
@@ -0,0 +1,33 @@
<?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\ApiKeysService\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $apikeysService = new Google\Service\ApiKeysService(...);
* $projects = $apikeysService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_ApiKeysService_Resource_Projects');
@@ -0,0 +1,33 @@
<?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\ApiKeysService\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $apikeysService = new Google\Service\ApiKeysService(...);
* $locations = $apikeysService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_ApiKeysService_Resource_ProjectsLocations');
@@ -0,0 +1,184 @@
<?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\ApiKeysService\Resource;
use Google\Service\ApiKeysService\Operation;
use Google\Service\ApiKeysService\V2GetKeyStringResponse;
use Google\Service\ApiKeysService\V2Key;
use Google\Service\ApiKeysService\V2ListKeysResponse;
use Google\Service\ApiKeysService\V2UndeleteKeyRequest;
/**
* The "keys" collection of methods.
* Typical usage is:
* <code>
* $apikeysService = new Google\Service\ApiKeysService(...);
* $keys = $apikeysService->projects_locations_keys;
* </code>
*/
class ProjectsLocationsKeys extends \Google\Service\Resource
{
/**
* Creates a new API key. NOTE: Key is a global resource; hence the only
* supported value for location is `global`. (keys.create)
*
* @param string $parent Required. The project in which the API key is created.
* The parent field must be in format of "projects//locations/global".
* @param V2Key $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string keyId User specified key id (optional). If specified, it
* will become the final component of the key resource name. The id must be
* unique within the project, must conform with RFC-1034, is restricted to
* lower-cased letters, and has a maximum length of 63 characters. In another
* word, the id must match the regular expression:
* `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. The id must NOT be a UUID-like string.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, V2Key $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes an API key. Deleted key can be retrieved within 30 days of deletion.
* Afterward, key will be purged from the project. NOTE: Key is a global
* resource; hence the only supported value for location is `global`.
* (keys.delete)
*
* @param string $name Required. The resource name of the API key to be deleted.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The etag known to the client for the
* expected state of the key. This is to be used for optimistic concurrency.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets the metadata for an API key. The key string of the API key isn't
* included in the response. NOTE: Key is a global resource; hence the only
* supported value for location is `global`. (keys.get)
*
* @param string $name Required. The resource name of the API key to get.
* @param array $optParams Optional parameters.
* @return V2Key
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], V2Key::class);
}
/**
* Get the key string for an API key. NOTE: Key is a global resource; hence the
* only supported value for location is `global`. (keys.getKeyString)
*
* @param string $name Required. The resource name of the API key to be
* retrieved.
* @param array $optParams Optional parameters.
* @return V2GetKeyStringResponse
* @throws \Google\Service\Exception
*/
public function getKeyString($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getKeyString', [$params], V2GetKeyStringResponse::class);
}
/**
* Lists the API keys owned by a project. The key string of the API key isn't
* included in the response. NOTE: Key is a global resource; hence the only
* supported value for location is `global`. (keys.listProjectsLocationsKeys)
*
* @param string $parent Required. Lists all API keys associated with this
* project. The parent field must be in format of "projects//locations/global".
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Specifies the maximum number of results to
* be returned at a time.
* @opt_param string pageToken Optional. Requests a specific page of results.
* @opt_param bool showDeleted Optional. Indicate that keys deleted in the past
* 30 days should also be returned.
* @return V2ListKeysResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsKeys($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], V2ListKeysResponse::class);
}
/**
* Patches the modifiable fields of an API key. The key string of the API key
* isn't included in the response. NOTE: Key is a global resource; hence the
* only supported value for location is `global`. (keys.patch)
*
* @param string $name Identifier. The resource name of the key. The `name` has
* the form: `projects//locations/global/keys/`. For example: `projects/12345686
* 7718/locations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is
* a global resource; hence the only supported value for location is `global`.
* @param V2Key $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The field mask specifies which fields to be
* updated as part of this request. All other fields are ignored. Mutable fields
* are: `display_name`, `restrictions`, and `annotations`. If an update mask is
* not provided, the service treats it as an implied mask equivalent to all
* allowed fields that are set on the wire. If the field mask has a special
* value "*", the service treats it equivalent to replace all allowed mutable
* fields.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, V2Key $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Undeletes an API key which was deleted within 30 days. NOTE: Key is a global
* resource; hence the only supported value for location is `global`.
* (keys.undelete)
*
* @param string $name Required. The resource name of the API key to be
* undeleted.
* @param V2UndeleteKeyRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function undelete($name, V2UndeleteKeyRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsKeys::class, 'Google_Service_ApiKeysService_Resource_ProjectsLocationsKeys');
@@ -0,0 +1,99 @@
<?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\ApiKeysService;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_ApiKeysService_Status');
@@ -0,0 +1,74 @@
<?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\ApiKeysService;
class V2AndroidApplication extends \Google\Model
{
/**
* The package name of the application.
*
* @var string
*/
public $packageName;
/**
* The SHA1 fingerprint of the application. For example, both sha1 formats are
* acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or
* DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
*
* @var string
*/
public $sha1Fingerprint;
/**
* The package name of the application.
*
* @param string $packageName
*/
public function setPackageName($packageName)
{
$this->packageName = $packageName;
}
/**
* @return string
*/
public function getPackageName()
{
return $this->packageName;
}
/**
* The SHA1 fingerprint of the application. For example, both sha1 formats are
* acceptable : DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:D8:07:09 or
* DA39A3EE5E6B4B0D3255BFEF95601890AFD80709. Output format is the latter.
*
* @param string $sha1Fingerprint
*/
public function setSha1Fingerprint($sha1Fingerprint)
{
$this->sha1Fingerprint = $sha1Fingerprint;
}
/**
* @return string
*/
public function getSha1Fingerprint()
{
return $this->sha1Fingerprint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2AndroidApplication::class, 'Google_Service_ApiKeysService_V2AndroidApplication');
@@ -0,0 +1,46 @@
<?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\ApiKeysService;
class V2AndroidKeyRestrictions extends \Google\Collection
{
protected $collection_key = 'allowedApplications';
protected $allowedApplicationsType = V2AndroidApplication::class;
protected $allowedApplicationsDataType = 'array';
/**
* A list of Android applications that are allowed to make API calls with this
* key.
*
* @param V2AndroidApplication[] $allowedApplications
*/
public function setAllowedApplications($allowedApplications)
{
$this->allowedApplications = $allowedApplications;
}
/**
* @return V2AndroidApplication[]
*/
public function getAllowedApplications()
{
return $this->allowedApplications;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2AndroidKeyRestrictions::class, 'Google_Service_ApiKeysService_V2AndroidKeyRestrictions');
@@ -0,0 +1,85 @@
<?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\ApiKeysService;
class V2ApiTarget extends \Google\Collection
{
protected $collection_key = 'methods';
/**
* Optional. List of one or more methods that can be called. If empty, all
* methods for the service are allowed. A wildcard (*) can be used as the last
* symbol. Valid examples:
* `google.cloud.translate.v2.TranslateService.GetSupportedLanguage`
* `TranslateText` `Get*` `translate.googleapis.com.Get*`
*
* @var string[]
*/
public $methods;
/**
* The service for this restriction. It should be the canonical service name,
* for example: `translate.googleapis.com`. You can use [`gcloud services
* list`](https://cloud.google.com/sdk/gcloud/reference/services/list) to get
* a list of services that are enabled in the project.
*
* @var string
*/
public $service;
/**
* Optional. List of one or more methods that can be called. If empty, all
* methods for the service are allowed. A wildcard (*) can be used as the last
* symbol. Valid examples:
* `google.cloud.translate.v2.TranslateService.GetSupportedLanguage`
* `TranslateText` `Get*` `translate.googleapis.com.Get*`
*
* @param string[] $methods
*/
public function setMethods($methods)
{
$this->methods = $methods;
}
/**
* @return string[]
*/
public function getMethods()
{
return $this->methods;
}
/**
* The service for this restriction. It should be the canonical service name,
* for example: `translate.googleapis.com`. You can use [`gcloud services
* list`](https://cloud.google.com/sdk/gcloud/reference/services/list) to get
* a list of services that are enabled in the project.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2ApiTarget::class, 'Google_Service_ApiKeysService_V2ApiTarget');
@@ -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\ApiKeysService;
class V2BrowserKeyRestrictions extends \Google\Collection
{
protected $collection_key = 'allowedReferrers';
/**
* A list of regular expressions for the referrer URLs that are allowed to
* make API calls with this key.
*
* @var string[]
*/
public $allowedReferrers;
/**
* A list of regular expressions for the referrer URLs that are allowed to
* make API calls with this key.
*
* @param string[] $allowedReferrers
*/
public function setAllowedReferrers($allowedReferrers)
{
$this->allowedReferrers = $allowedReferrers;
}
/**
* @return string[]
*/
public function getAllowedReferrers()
{
return $this->allowedReferrers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2BrowserKeyRestrictions::class, 'Google_Service_ApiKeysService_V2BrowserKeyRestrictions');
@@ -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\ApiKeysService;
class V2CloneKeyRequest extends \Google\Model
{
/**
* @var string
*/
public $keyId;
/**
* @param string
*/
public function setKeyId($keyId)
{
$this->keyId = $keyId;
}
/**
* @return string
*/
public function getKeyId()
{
return $this->keyId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2CloneKeyRequest::class, 'Google_Service_ApiKeysService_V2CloneKeyRequest');
@@ -0,0 +1,48 @@
<?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\ApiKeysService;
class V2GetKeyStringResponse extends \Google\Model
{
/**
* An encrypted and signed value of the key.
*
* @var string
*/
public $keyString;
/**
* An encrypted and signed value of the key.
*
* @param string $keyString
*/
public function setKeyString($keyString)
{
$this->keyString = $keyString;
}
/**
* @return string
*/
public function getKeyString()
{
return $this->keyString;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2GetKeyStringResponse::class, 'Google_Service_ApiKeysService_V2GetKeyStringResponse');
@@ -0,0 +1,49 @@
<?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\ApiKeysService;
class V2IosKeyRestrictions extends \Google\Collection
{
protected $collection_key = 'allowedBundleIds';
/**
* A list of bundle IDs that are allowed when making API calls with this key.
*
* @var string[]
*/
public $allowedBundleIds;
/**
* A list of bundle IDs that are allowed when making API calls with this key.
*
* @param string[] $allowedBundleIds
*/
public function setAllowedBundleIds($allowedBundleIds)
{
$this->allowedBundleIds = $allowedBundleIds;
}
/**
* @return string[]
*/
public function getAllowedBundleIds()
{
return $this->allowedBundleIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2IosKeyRestrictions::class, 'Google_Service_ApiKeysService_V2IosKeyRestrictions');
@@ -0,0 +1,292 @@
<?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\ApiKeysService;
class V2Key extends \Google\Model
{
/**
* Annotations is an unstructured key-value map stored with a policy that may
* be set by external tools to store and retrieve arbitrary metadata. They are
* not queryable and should be preserved when modifying objects.
*
* @var string[]
*/
public $annotations;
/**
* Output only. A timestamp identifying the time this key was originally
* created.
*
* @var string
*/
public $createTime;
/**
* Output only. A timestamp when this key was deleted. If the resource is not
* deleted, this must be empty.
*
* @var string
*/
public $deleteTime;
/**
* Human-readable display name of this key that you can modify. The maximum
* length is 63 characters.
*
* @var string
*/
public $displayName;
/**
* A checksum computed by the server based on the current value of the Key
* resource. This may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding. See
* https://google.aip.dev/154.
*
* @var string
*/
public $etag;
/**
* Output only. An encrypted and signed value held by this key. This field can
* be accessed only through the `GetKeyString` method.
*
* @var string
*/
public $keyString;
/**
* Identifier. The resource name of the key. The `name` has the form:
* `projects//locations/global/keys/`. For example: `projects/123456867718/loc
* ations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a
* global resource; hence the only supported value for location is `global`.
*
* @var string
*/
public $name;
protected $restrictionsType = V2Restrictions::class;
protected $restrictionsDataType = '';
/**
* Optional. The email address of [the service
* account](https://cloud.google.com/iam/docs/service-accounts) the key is
* bound to.
*
* @var string
*/
public $serviceAccountEmail;
/**
* Output only. Unique id in UUID4 format.
*
* @var string
*/
public $uid;
/**
* Output only. A timestamp identifying the time this key was last updated.
*
* @var string
*/
public $updateTime;
/**
* Annotations is an unstructured key-value map stored with a policy that may
* be set by external tools to store and retrieve arbitrary metadata. They are
* not queryable and should be preserved when modifying objects.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. A timestamp identifying the time this key was originally
* created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. A timestamp when this key was deleted. If the resource is not
* deleted, this must be empty.
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* Human-readable display name of this key that you can modify. The maximum
* length is 63 characters.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* A checksum computed by the server based on the current value of the Key
* resource. This may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding. See
* https://google.aip.dev/154.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. An encrypted and signed value held by this key. This field can
* be accessed only through the `GetKeyString` method.
*
* @param string $keyString
*/
public function setKeyString($keyString)
{
$this->keyString = $keyString;
}
/**
* @return string
*/
public function getKeyString()
{
return $this->keyString;
}
/**
* Identifier. The resource name of the key. The `name` has the form:
* `projects//locations/global/keys/`. For example: `projects/123456867718/loc
* ations/global/keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a
* global resource; hence the only supported value for location is `global`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Key restrictions.
*
* @param V2Restrictions $restrictions
*/
public function setRestrictions(V2Restrictions $restrictions)
{
$this->restrictions = $restrictions;
}
/**
* @return V2Restrictions
*/
public function getRestrictions()
{
return $this->restrictions;
}
/**
* Optional. The email address of [the service
* account](https://cloud.google.com/iam/docs/service-accounts) the key is
* bound to.
*
* @param string $serviceAccountEmail
*/
public function setServiceAccountEmail($serviceAccountEmail)
{
$this->serviceAccountEmail = $serviceAccountEmail;
}
/**
* @return string
*/
public function getServiceAccountEmail()
{
return $this->serviceAccountEmail;
}
/**
* Output only. Unique id in UUID4 format.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. A timestamp identifying the time this key was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2Key::class, 'Google_Service_ApiKeysService_V2Key');
@@ -0,0 +1,67 @@
<?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\ApiKeysService;
class V2ListKeysResponse extends \Google\Collection
{
protected $collection_key = 'keys';
protected $keysType = V2Key::class;
protected $keysDataType = 'array';
/**
* The pagination token for the next page of results.
*
* @var string
*/
public $nextPageToken;
/**
* A list of API keys.
*
* @param V2Key[] $keys
*/
public function setKeys($keys)
{
$this->keys = $keys;
}
/**
* @return V2Key[]
*/
public function getKeys()
{
return $this->keys;
}
/**
* The pagination token for the next page of results.
*
* @param string $nextPageToken
*/
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(V2ListKeysResponse::class, 'Google_Service_ApiKeysService_V2ListKeysResponse');
@@ -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\ApiKeysService;
class V2LookupKeyResponse extends \Google\Model
{
/**
* The resource name of the API key. If the API key has been purged, resource
* name is empty.
*
* @var string
*/
public $name;
/**
* The project that owns the key with the value specified in the request.
*
* @var string
*/
public $parent;
/**
* The resource name of the API key. If the API key has been purged, resource
* name is empty.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The project that owns the key with the value specified in the request.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2LookupKeyResponse::class, 'Google_Service_ApiKeysService_V2LookupKeyResponse');
@@ -0,0 +1,119 @@
<?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\ApiKeysService;
class V2Restrictions extends \Google\Collection
{
protected $collection_key = 'apiTargets';
protected $androidKeyRestrictionsType = V2AndroidKeyRestrictions::class;
protected $androidKeyRestrictionsDataType = '';
protected $apiTargetsType = V2ApiTarget::class;
protected $apiTargetsDataType = 'array';
protected $browserKeyRestrictionsType = V2BrowserKeyRestrictions::class;
protected $browserKeyRestrictionsDataType = '';
protected $iosKeyRestrictionsType = V2IosKeyRestrictions::class;
protected $iosKeyRestrictionsDataType = '';
protected $serverKeyRestrictionsType = V2ServerKeyRestrictions::class;
protected $serverKeyRestrictionsDataType = '';
/**
* The Android apps that are allowed to use the key.
*
* @param V2AndroidKeyRestrictions $androidKeyRestrictions
*/
public function setAndroidKeyRestrictions(V2AndroidKeyRestrictions $androidKeyRestrictions)
{
$this->androidKeyRestrictions = $androidKeyRestrictions;
}
/**
* @return V2AndroidKeyRestrictions
*/
public function getAndroidKeyRestrictions()
{
return $this->androidKeyRestrictions;
}
/**
* A restriction for a specific service and optionally one or more specific
* methods. Requests are allowed if they match any of these restrictions. If
* no restrictions are specified, all targets are allowed.
*
* @param V2ApiTarget[] $apiTargets
*/
public function setApiTargets($apiTargets)
{
$this->apiTargets = $apiTargets;
}
/**
* @return V2ApiTarget[]
*/
public function getApiTargets()
{
return $this->apiTargets;
}
/**
* The HTTP referrers (websites) that are allowed to use the key.
*
* @param V2BrowserKeyRestrictions $browserKeyRestrictions
*/
public function setBrowserKeyRestrictions(V2BrowserKeyRestrictions $browserKeyRestrictions)
{
$this->browserKeyRestrictions = $browserKeyRestrictions;
}
/**
* @return V2BrowserKeyRestrictions
*/
public function getBrowserKeyRestrictions()
{
return $this->browserKeyRestrictions;
}
/**
* The iOS apps that are allowed to use the key.
*
* @param V2IosKeyRestrictions $iosKeyRestrictions
*/
public function setIosKeyRestrictions(V2IosKeyRestrictions $iosKeyRestrictions)
{
$this->iosKeyRestrictions = $iosKeyRestrictions;
}
/**
* @return V2IosKeyRestrictions
*/
public function getIosKeyRestrictions()
{
return $this->iosKeyRestrictions;
}
/**
* The IP addresses of callers that are allowed to use the key.
*
* @param V2ServerKeyRestrictions $serverKeyRestrictions
*/
public function setServerKeyRestrictions(V2ServerKeyRestrictions $serverKeyRestrictions)
{
$this->serverKeyRestrictions = $serverKeyRestrictions;
}
/**
* @return V2ServerKeyRestrictions
*/
public function getServerKeyRestrictions()
{
return $this->serverKeyRestrictions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2Restrictions::class, 'Google_Service_ApiKeysService_V2Restrictions');
@@ -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\ApiKeysService;
class V2ServerKeyRestrictions extends \Google\Collection
{
protected $collection_key = 'allowedIps';
/**
* A list of the caller IP addresses that are allowed to make API calls with
* this key.
*
* @var string[]
*/
public $allowedIps;
/**
* A list of the caller IP addresses that are allowed to make API calls with
* this key.
*
* @param string[] $allowedIps
*/
public function setAllowedIps($allowedIps)
{
$this->allowedIps = $allowedIps;
}
/**
* @return string[]
*/
public function getAllowedIps()
{
return $this->allowedIps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2ServerKeyRestrictions::class, 'Google_Service_ApiKeysService_V2ServerKeyRestrictions');
@@ -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\ApiKeysService;
class V2UndeleteKeyRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2UndeleteKeyRequest::class, 'Google_Service_ApiKeysService_V2UndeleteKeyRequest');