Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,84 @@
<?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\StorageBatchOperations;
class Bucket extends \Google\Model
{
/**
* Required. Bucket name for the objects to be transformed.
*
* @var string
*/
public $bucket;
protected $manifestType = Manifest::class;
protected $manifestDataType = '';
protected $prefixListType = PrefixList::class;
protected $prefixListDataType = '';
/**
* Required. Bucket name for the objects to be transformed.
*
* @param string $bucket
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* Specifies objects in a manifest file.
*
* @param Manifest $manifest
*/
public function setManifest(Manifest $manifest)
{
$this->manifest = $manifest;
}
/**
* @return Manifest
*/
public function getManifest()
{
return $this->manifest;
}
/**
* Specifies objects matching a prefix set.
*
* @param PrefixList $prefixList
*/
public function setPrefixList(PrefixList $prefixList)
{
$this->prefixList = $prefixList;
}
/**
* @return PrefixList
*/
public function getPrefixList()
{
return $this->prefixList;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Bucket::class, 'Google_Service_StorageBatchOperations_Bucket');

View File

@@ -0,0 +1,47 @@
<?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\StorageBatchOperations;
class BucketList extends \Google\Collection
{
protected $collection_key = 'buckets';
protected $bucketsType = Bucket::class;
protected $bucketsDataType = 'array';
/**
* Required. List of buckets and their objects to be transformed. Currently,
* only one bucket configuration is supported. If multiple buckets are
* specified, an error will be returned.
*
* @param Bucket[] $buckets
*/
public function setBuckets($buckets)
{
$this->buckets = $buckets;
}
/**
* @return Bucket[]
*/
public function getBuckets()
{
return $this->buckets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketList::class, 'Google_Service_StorageBatchOperations_BucketList');

View File

@@ -0,0 +1,56 @@
<?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\StorageBatchOperations;
class CancelJobRequest extends \Google\Model
{
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID in case you need to retry your request. Requests with same
* `request_id` will be ignored for at least 60 minutes since the first
* request. The request ID must be a valid UUID with the exception that zero
* UUID is not supported (00000000-0000-0000-0000-000000000000).
*
* @var string
*/
public $requestId;
/**
* Optional. An optional request ID to identify requests. Specify a unique
* request ID in case you need to retry your request. Requests with same
* `request_id` will be ignored for at least 60 minutes since the first
* request. The request ID must be a valid UUID with the exception that zero
* UUID is not supported (00000000-0000-0000-0000-000000000000).
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelJobRequest::class, 'Google_Service_StorageBatchOperations_CancelJobRequest');

View File

@@ -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\StorageBatchOperations;
class CancelJobResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelJobResponse::class, 'Google_Service_StorageBatchOperations_CancelJobResponse');

View File

@@ -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\StorageBatchOperations;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_StorageBatchOperations_CancelOperationRequest');

View File

@@ -0,0 +1,116 @@
<?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\StorageBatchOperations;
class Counters extends \Google\Model
{
/**
* Output only. Number of objects failed.
*
* @var string
*/
public $failedObjectCount;
/**
* Output only. Number of objects completed.
*
* @var string
*/
public $succeededObjectCount;
/**
* Output only. Number of bytes found from source. This field is only
* populated for jobs with a prefix list object configuration.
*
* @var string
*/
public $totalBytesFound;
/**
* Output only. Number of objects listed.
*
* @var string
*/
public $totalObjectCount;
/**
* Output only. Number of objects failed.
*
* @param string $failedObjectCount
*/
public function setFailedObjectCount($failedObjectCount)
{
$this->failedObjectCount = $failedObjectCount;
}
/**
* @return string
*/
public function getFailedObjectCount()
{
return $this->failedObjectCount;
}
/**
* Output only. Number of objects completed.
*
* @param string $succeededObjectCount
*/
public function setSucceededObjectCount($succeededObjectCount)
{
$this->succeededObjectCount = $succeededObjectCount;
}
/**
* @return string
*/
public function getSucceededObjectCount()
{
return $this->succeededObjectCount;
}
/**
* Output only. Number of bytes found from source. This field is only
* populated for jobs with a prefix list object configuration.
*
* @param string $totalBytesFound
*/
public function setTotalBytesFound($totalBytesFound)
{
$this->totalBytesFound = $totalBytesFound;
}
/**
* @return string
*/
public function getTotalBytesFound()
{
return $this->totalBytesFound;
}
/**
* Output only. Number of objects listed.
*
* @param string $totalObjectCount
*/
public function setTotalObjectCount($totalObjectCount)
{
$this->totalObjectCount = $totalObjectCount;
}
/**
* @return string
*/
public function getTotalObjectCount()
{
return $this->totalObjectCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Counters::class, 'Google_Service_StorageBatchOperations_Counters');

View File

@@ -0,0 +1,64 @@
<?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\StorageBatchOperations;
class DeleteObject extends \Google\Model
{
/**
* Required. Controls deletion behavior when versioning is enabled for the
* object's bucket. If true both live and noncurrent objects will be
* permanently deleted. Otherwise live objects in versioned buckets will
* become noncurrent and objects that were already noncurrent will be skipped.
* This setting doesn't have any impact on the Soft Delete feature. All
* objects deleted by this service can be be restored for the duration of the
* Soft Delete retention duration if enabled. If enabled and the manifest
* doesn't specify an object's generation, a GetObjectMetadata call (a Class B
* operation) will be made to determine the live object generation.
*
* @var bool
*/
public $permanentObjectDeletionEnabled;
/**
* Required. Controls deletion behavior when versioning is enabled for the
* object's bucket. If true both live and noncurrent objects will be
* permanently deleted. Otherwise live objects in versioned buckets will
* become noncurrent and objects that were already noncurrent will be skipped.
* This setting doesn't have any impact on the Soft Delete feature. All
* objects deleted by this service can be be restored for the duration of the
* Soft Delete retention duration if enabled. If enabled and the manifest
* doesn't specify an object's generation, a GetObjectMetadata call (a Class B
* operation) will be made to determine the live object generation.
*
* @param bool $permanentObjectDeletionEnabled
*/
public function setPermanentObjectDeletionEnabled($permanentObjectDeletionEnabled)
{
$this->permanentObjectDeletionEnabled = $permanentObjectDeletionEnabled;
}
/**
* @return bool
*/
public function getPermanentObjectDeletionEnabled()
{
return $this->permanentObjectDeletionEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeleteObject::class, 'Google_Service_StorageBatchOperations_DeleteObject');

View File

@@ -0,0 +1,73 @@
<?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\StorageBatchOperations;
class ErrorLogEntry extends \Google\Collection
{
protected $collection_key = 'errorDetails';
/**
* Optional. Output only. At most 5 error log entries are recorded for a given
* error code for a job.
*
* @var string[]
*/
public $errorDetails;
/**
* Required. Output only. Object URL. e.g. gs://my_bucket/object.txt
*
* @var string
*/
public $objectUri;
/**
* Optional. Output only. At most 5 error log entries are recorded for a given
* error code for a job.
*
* @param string[] $errorDetails
*/
public function setErrorDetails($errorDetails)
{
$this->errorDetails = $errorDetails;
}
/**
* @return string[]
*/
public function getErrorDetails()
{
return $this->errorDetails;
}
/**
* Required. Output only. Object URL. e.g. gs://my_bucket/object.txt
*
* @param string $objectUri
*/
public function setObjectUri($objectUri)
{
$this->objectUri = $objectUri;
}
/**
* @return string
*/
public function getObjectUri()
{
return $this->objectUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorLogEntry::class, 'Google_Service_StorageBatchOperations_ErrorLogEntry');

View File

@@ -0,0 +1,221 @@
<?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\StorageBatchOperations;
class ErrorSummary extends \Google\Collection
{
/**
* Not an error; returned on success. HTTP Mapping: 200 OK
*/
public const ERROR_CODE_OK = 'OK';
/**
* The operation was cancelled, typically by the caller. HTTP Mapping: 499
* Client Closed Request
*/
public const ERROR_CODE_CANCELLED = 'CANCELLED';
/**
* Unknown error. For example, this error may be returned when a `Status`
* value received from another address space belongs to an error space that is
* not known in this address space. Also errors raised by APIs that do not
* return enough error information may be converted to this error. HTTP
* Mapping: 500 Internal Server Error
*/
public const ERROR_CODE_UNKNOWN = 'UNKNOWN';
/**
* The client specified an invalid argument. Note that this differs from
* `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments that are
* problematic regardless of the state of the system (e.g., a malformed file
* name). HTTP Mapping: 400 Bad Request
*/
public const ERROR_CODE_INVALID_ARGUMENT = 'INVALID_ARGUMENT';
/**
* The deadline expired before the operation could complete. For operations
* that change the state of the system, this error may be returned even if the
* operation has completed successfully. For example, a successful response
* from a server could have been delayed long enough for the deadline to
* expire. HTTP Mapping: 504 Gateway Timeout
*/
public const ERROR_CODE_DEADLINE_EXCEEDED = 'DEADLINE_EXCEEDED';
/**
* Some requested entity (e.g., file or directory) was not found. Note to
* server developers: if a request is denied for an entire class of users,
* such as gradual feature rollout or undocumented allowlist, `NOT_FOUND` may
* be used. If a request is denied for some users within a class of users,
* such as user-based access control, `PERMISSION_DENIED` must be used. HTTP
* Mapping: 404 Not Found
*/
public const ERROR_CODE_NOT_FOUND = 'NOT_FOUND';
/**
* The entity that a client attempted to create (e.g., file or directory)
* already exists. HTTP Mapping: 409 Conflict
*/
public const ERROR_CODE_ALREADY_EXISTS = 'ALREADY_EXISTS';
/**
* The caller does not have permission to execute the specified operation.
* `PERMISSION_DENIED` must not be used for rejections caused by exhausting
* some resource (use `RESOURCE_EXHAUSTED` instead for those errors).
* `PERMISSION_DENIED` must not be used if the caller can not be identified
* (use `UNAUTHENTICATED` instead for those errors). This error code does not
* imply the request is valid or the requested entity exists or satisfies
* other pre-conditions. HTTP Mapping: 403 Forbidden
*/
public const ERROR_CODE_PERMISSION_DENIED = 'PERMISSION_DENIED';
/**
* The request does not have valid authentication credentials for the
* operation. HTTP Mapping: 401 Unauthorized
*/
public const ERROR_CODE_UNAUTHENTICATED = 'UNAUTHENTICATED';
/**
* Some resource has been exhausted, perhaps a per-user quota, or perhaps the
* entire file system is out of space. HTTP Mapping: 429 Too Many Requests
*/
public const ERROR_CODE_RESOURCE_EXHAUSTED = 'RESOURCE_EXHAUSTED';
/**
* The operation was rejected because the system is not in a state required
* for the operation's execution. For example, the directory to be deleted is
* non-empty, an rmdir operation is applied to a non-directory, etc. Service
* implementors can use the following guidelines to decide between
* `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE`
* if the client can retry just the failing call. (b) Use `ABORTED` if the
* client should retry at a higher level. For example, when a client-specified
* test-and-set fails, indicating the client should restart a read-modify-
* write sequence. (c) Use `FAILED_PRECONDITION` if the client should not
* retry until the system state has been explicitly fixed. For example, if an
* "rmdir" fails because the directory is non-empty, `FAILED_PRECONDITION`
* should be returned since the client should not retry unless the files are
* deleted from the directory. HTTP Mapping: 400 Bad Request
*/
public const ERROR_CODE_FAILED_PRECONDITION = 'FAILED_PRECONDITION';
/**
* The operation was aborted, typically due to a concurrency issue such as a
* sequencer check failure or transaction abort. See the guidelines above for
* deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP
* Mapping: 409 Conflict
*/
public const ERROR_CODE_ABORTED = 'ABORTED';
/**
* The operation was attempted past the valid range. E.g., seeking or reading
* past end-of-file. Unlike `INVALID_ARGUMENT`, this error indicates a problem
* that may be fixed if the system state changes. For example, a 32-bit file
* system will generate `INVALID_ARGUMENT` if asked to read at an offset that
* is not in the range [0,2^32-1], but it will generate `OUT_OF_RANGE` if
* asked to read from an offset past the current file size. There is a fair
* bit of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We
* recommend using `OUT_OF_RANGE` (the more specific error) when it applies so
* that callers who are iterating through a space can easily look for an
* `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: 400 Bad
* Request
*/
public const ERROR_CODE_OUT_OF_RANGE = 'OUT_OF_RANGE';
/**
* The operation is not implemented or is not supported/enabled in this
* service. HTTP Mapping: 501 Not Implemented
*/
public const ERROR_CODE_UNIMPLEMENTED = 'UNIMPLEMENTED';
/**
* Internal errors. This means that some invariants expected by the underlying
* system have been broken. This error code is reserved for serious errors.
* HTTP Mapping: 500 Internal Server Error
*/
public const ERROR_CODE_INTERNAL = 'INTERNAL';
/**
* The service is currently unavailable. This is most likely a transient
* condition, which can be corrected by retrying with a backoff. Note that it
* is not always safe to retry non-idempotent operations. See the guidelines
* above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and
* `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable
*/
public const ERROR_CODE_UNAVAILABLE = 'UNAVAILABLE';
/**
* Unrecoverable data loss or corruption. HTTP Mapping: 500 Internal Server
* Error
*/
public const ERROR_CODE_DATA_LOSS = 'DATA_LOSS';
protected $collection_key = 'errorLogEntries';
/**
* Required. The canonical error code.
*
* @var string
*/
public $errorCode;
/**
* Required. Number of errors encountered per `error_code`.
*
* @var string
*/
public $errorCount;
protected $errorLogEntriesType = ErrorLogEntry::class;
protected $errorLogEntriesDataType = 'array';
/**
* Required. The canonical error code.
*
* Accepted values: OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT,
* DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED,
* UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED,
* OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, DATA_LOSS
*
* @param self::ERROR_CODE_* $errorCode
*/
public function setErrorCode($errorCode)
{
$this->errorCode = $errorCode;
}
/**
* @return self::ERROR_CODE_*
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* Required. Number of errors encountered per `error_code`.
*
* @param string $errorCount
*/
public function setErrorCount($errorCount)
{
$this->errorCount = $errorCount;
}
/**
* @return string
*/
public function getErrorCount()
{
return $this->errorCount;
}
/**
* Required. Sample error logs.
*
* @param ErrorLogEntry[] $errorLogEntries
*/
public function setErrorLogEntries($errorLogEntries)
{
$this->errorLogEntries = $errorLogEntries;
}
/**
* @return ErrorLogEntry[]
*/
public function getErrorLogEntries()
{
return $this->errorLogEntries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorSummary::class, 'Google_Service_StorageBatchOperations_ErrorSummary');

View File

@@ -0,0 +1,361 @@
<?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\StorageBatchOperations;
class Job extends \Google\Collection
{
/**
* Default value. This value is unused.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* In progress.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* Completed successfully.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* Cancelled by the user.
*/
public const STATE_CANCELED = 'CANCELED';
/**
* Terminated due to an unrecoverable failure.
*/
public const STATE_FAILED = 'FAILED';
protected $collection_key = 'errorSummaries';
protected $bucketListType = BucketList::class;
protected $bucketListDataType = '';
/**
* Output only. The time that the job was completed.
*
* @var string
*/
public $completeTime;
protected $countersType = Counters::class;
protected $countersDataType = '';
/**
* Output only. The time that the job was created.
*
* @var string
*/
public $createTime;
protected $deleteObjectType = DeleteObject::class;
protected $deleteObjectDataType = '';
/**
* Optional. A description provided by the user for the job. Its max length is
* 1024 bytes when Unicode-encoded.
*
* @var string
*/
public $description;
/**
* Optional. If true, the job will run in dry run mode, returning the total
* object count and, if the object configuration is a prefix list, the bytes
* found from source. No transformations will be performed.
*
* @var bool
*/
public $dryRun;
protected $errorSummariesType = ErrorSummary::class;
protected $errorSummariesDataType = 'array';
protected $loggingConfigType = LoggingConfig::class;
protected $loggingConfigDataType = '';
/**
* Identifier. The resource name of the Job. job_id is unique within the
* project, that is either set by the customer or defined by the service.
* Format: projects/{project}/locations/global/jobs/{job_id} . For example:
* "projects/123456/locations/global/jobs/job01".
*
* @var string
*/
public $name;
protected $putMetadataType = PutMetadata::class;
protected $putMetadataDataType = '';
protected $putObjectHoldType = PutObjectHold::class;
protected $putObjectHoldDataType = '';
protected $rewriteObjectType = RewriteObject::class;
protected $rewriteObjectDataType = '';
/**
* Output only. The time that the job was scheduled.
*
* @var string
*/
public $scheduleTime;
/**
* Output only. State of the job.
*
* @var string
*/
public $state;
/**
* Specifies a list of buckets and their objects to be transformed.
*
* @param BucketList $bucketList
*/
public function setBucketList(BucketList $bucketList)
{
$this->bucketList = $bucketList;
}
/**
* @return BucketList
*/
public function getBucketList()
{
return $this->bucketList;
}
/**
* Output only. The time that the job was completed.
*
* @param string $completeTime
*/
public function setCompleteTime($completeTime)
{
$this->completeTime = $completeTime;
}
/**
* @return string
*/
public function getCompleteTime()
{
return $this->completeTime;
}
/**
* Output only. Information about the progress of the job.
*
* @param Counters $counters
*/
public function setCounters(Counters $counters)
{
$this->counters = $counters;
}
/**
* @return Counters
*/
public function getCounters()
{
return $this->counters;
}
/**
* Output only. The time that the job was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Delete objects.
*
* @param DeleteObject $deleteObject
*/
public function setDeleteObject(DeleteObject $deleteObject)
{
$this->deleteObject = $deleteObject;
}
/**
* @return DeleteObject
*/
public function getDeleteObject()
{
return $this->deleteObject;
}
/**
* Optional. A description provided by the user for the job. Its max length is
* 1024 bytes when Unicode-encoded.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. If true, the job will run in dry run mode, returning the total
* object count and, if the object configuration is a prefix list, the bytes
* found from source. No transformations will be performed.
*
* @param bool $dryRun
*/
public function setDryRun($dryRun)
{
$this->dryRun = $dryRun;
}
/**
* @return bool
*/
public function getDryRun()
{
return $this->dryRun;
}
/**
* Output only. Summarizes errors encountered with sample error log entries.
*
* @param ErrorSummary[] $errorSummaries
*/
public function setErrorSummaries($errorSummaries)
{
$this->errorSummaries = $errorSummaries;
}
/**
* @return ErrorSummary[]
*/
public function getErrorSummaries()
{
return $this->errorSummaries;
}
/**
* Optional. Logging configuration.
*
* @param LoggingConfig $loggingConfig
*/
public function setLoggingConfig(LoggingConfig $loggingConfig)
{
$this->loggingConfig = $loggingConfig;
}
/**
* @return LoggingConfig
*/
public function getLoggingConfig()
{
return $this->loggingConfig;
}
/**
* Identifier. The resource name of the Job. job_id is unique within the
* project, that is either set by the customer or defined by the service.
* Format: projects/{project}/locations/global/jobs/{job_id} . For example:
* "projects/123456/locations/global/jobs/job01".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Updates object metadata. Allows updating fixed-key and custom metadata and
* fixed-key metadata i.e. Cache-Control, Content-Disposition, Content-
* Encoding, Content-Language, Content-Type, Custom-Time.
*
* @param PutMetadata $putMetadata
*/
public function setPutMetadata(PutMetadata $putMetadata)
{
$this->putMetadata = $putMetadata;
}
/**
* @return PutMetadata
*/
public function getPutMetadata()
{
return $this->putMetadata;
}
/**
* Changes object hold status.
*
* @param PutObjectHold $putObjectHold
*/
public function setPutObjectHold(PutObjectHold $putObjectHold)
{
$this->putObjectHold = $putObjectHold;
}
/**
* @return PutObjectHold
*/
public function getPutObjectHold()
{
return $this->putObjectHold;
}
/**
* Rewrite the object and updates metadata like KMS key.
*
* @param RewriteObject $rewriteObject
*/
public function setRewriteObject(RewriteObject $rewriteObject)
{
$this->rewriteObject = $rewriteObject;
}
/**
* @return RewriteObject
*/
public function getRewriteObject()
{
return $this->rewriteObject;
}
/**
* Output only. The time that the job was scheduled.
*
* @param string $scheduleTime
*/
public function setScheduleTime($scheduleTime)
{
$this->scheduleTime = $scheduleTime;
}
/**
* @return string
*/
public function getScheduleTime()
{
return $this->scheduleTime;
}
/**
* Output only. State of the job.
*
* Accepted values: STATE_UNSPECIFIED, RUNNING, SUCCEEDED, CANCELED, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Job::class, 'Google_Service_StorageBatchOperations_Job');

View File

@@ -0,0 +1,89 @@
<?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\StorageBatchOperations;
class ListJobsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $jobsType = Job::class;
protected $jobsDataType = 'array';
/**
* A token identifying a page of results.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A list of storage batch jobs.
*
* @param Job[] $jobs
*/
public function setJobs($jobs)
{
$this->jobs = $jobs;
}
/**
* @return Job[]
*/
public function getJobs()
{
return $this->jobs;
}
/**
* A token identifying a page of results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListJobsResponse::class, 'Google_Service_StorageBatchOperations_ListJobsResponse');

View File

@@ -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\StorageBatchOperations;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @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(ListLocationsResponse::class, 'Google_Service_StorageBatchOperations_ListLocationsResponse');

View File

@@ -0,0 +1,95 @@
<?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\StorageBatchOperations;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_StorageBatchOperations_ListOperationsResponse');

View File

@@ -0,0 +1,144 @@
<?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\StorageBatchOperations;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @param string $name
*/
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(Location::class, 'Google_Service_StorageBatchOperations_Location');

View File

@@ -0,0 +1,73 @@
<?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\StorageBatchOperations;
class LoggingConfig extends \Google\Collection
{
protected $collection_key = 'logActions';
/**
* Required. States in which Action are logged.If empty, no logs are
* generated.
*
* @var string[]
*/
public $logActionStates;
/**
* Required. Specifies the actions to be logged.
*
* @var string[]
*/
public $logActions;
/**
* Required. States in which Action are logged.If empty, no logs are
* generated.
*
* @param string[] $logActionStates
*/
public function setLogActionStates($logActionStates)
{
$this->logActionStates = $logActionStates;
}
/**
* @return string[]
*/
public function getLogActionStates()
{
return $this->logActionStates;
}
/**
* Required. Specifies the actions to be logged.
*
* @param string[] $logActions
*/
public function setLogActions($logActions)
{
$this->logActions = $logActions;
}
/**
* @return string[]
*/
public function getLogActions()
{
return $this->logActions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LoggingConfig::class, 'Google_Service_StorageBatchOperations_LoggingConfig');

View File

@@ -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\StorageBatchOperations;
class Manifest extends \Google\Model
{
/**
* Required. `manifest_location` must contain the manifest source file that is
* a CSV file in a Google Cloud Storage bucket. Each row in the file must
* include the object details i.e. BucketId and Name. Generation may
* optionally be specified. When it is not specified the live object is acted
* upon. `manifest_location` should either be 1) An absolute path to the
* object in the format of `gs://bucket_name/path/file_name.csv`. 2) An
* absolute path with a single wildcard character in the file name, for
* example `gs://bucket_name/path/file_name*.csv`. If manifest location is
* specified with a wildcard, objects in all manifest files matching the
* pattern will be acted upon.
*
* @var string
*/
public $manifestLocation;
/**
* Required. `manifest_location` must contain the manifest source file that is
* a CSV file in a Google Cloud Storage bucket. Each row in the file must
* include the object details i.e. BucketId and Name. Generation may
* optionally be specified. When it is not specified the live object is acted
* upon. `manifest_location` should either be 1) An absolute path to the
* object in the format of `gs://bucket_name/path/file_name.csv`. 2) An
* absolute path with a single wildcard character in the file name, for
* example `gs://bucket_name/path/file_name*.csv`. If manifest location is
* specified with a wildcard, objects in all manifest files matching the
* pattern will be acted upon.
*
* @param string $manifestLocation
*/
public function setManifestLocation($manifestLocation)
{
$this->manifestLocation = $manifestLocation;
}
/**
* @return string
*/
public function getManifestLocation()
{
return $this->manifestLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Manifest::class, 'Google_Service_StorageBatchOperations_Manifest');

View File

@@ -0,0 +1,88 @@
<?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\StorageBatchOperations;
class ObjectRetention extends \Google\Model
{
/**
* If set and retain_until_time is empty, clears the retention.
*/
public const RETENTION_MODE_RETENTION_MODE_UNSPECIFIED = 'RETENTION_MODE_UNSPECIFIED';
/**
* Sets the retention mode to locked.
*/
public const RETENTION_MODE_LOCKED = 'LOCKED';
/**
* Sets the retention mode to unlocked.
*/
public const RETENTION_MODE_UNLOCKED = 'UNLOCKED';
/**
* Required. The time when the object will be retained until. UNSET will clear
* the retention. Must be specified in RFC 3339 format e.g. YYYY-MM-
* DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.
*
* @var string
*/
public $retainUntilTime;
/**
* Required. The retention mode of the object.
*
* @var string
*/
public $retentionMode;
/**
* Required. The time when the object will be retained until. UNSET will clear
* the retention. Must be specified in RFC 3339 format e.g. YYYY-MM-
* DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.
*
* @param string $retainUntilTime
*/
public function setRetainUntilTime($retainUntilTime)
{
$this->retainUntilTime = $retainUntilTime;
}
/**
* @return string
*/
public function getRetainUntilTime()
{
return $this->retainUntilTime;
}
/**
* Required. The retention mode of the object.
*
* Accepted values: RETENTION_MODE_UNSPECIFIED, LOCKED, UNLOCKED
*
* @param self::RETENTION_MODE_* $retentionMode
*/
public function setRetentionMode($retentionMode)
{
$this->retentionMode = $retentionMode;
}
/**
* @return self::RETENTION_MODE_*
*/
public function getRetentionMode()
{
return $this->retentionMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObjectRetention::class, 'Google_Service_StorageBatchOperations_ObjectRetention');

View File

@@ -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\StorageBatchOperations;
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_StorageBatchOperations_Operation');

View File

@@ -0,0 +1,162 @@
<?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\StorageBatchOperations;
class OperationMetadata extends \Google\Model
{
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
protected $jobType = Job::class;
protected $jobDataType = '';
/**
* Output only. The unique operation resource name. Format:
* projects/{project}/locations/global/operations/{operation}.
*
* @var string
*/
public $operation;
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* 1, corresponding to `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. The Job associated with the operation.
*
* @param Job $job
*/
public function setJob(Job $job)
{
$this->job = $job;
}
/**
* @return Job
*/
public function getJob()
{
return $this->job;
}
/**
* Output only. The unique operation resource name. Format:
* projects/{project}/locations/global/operations/{operation}.
*
* @param string $operation
*/
public function setOperation($operation)
{
$this->operation = $operation;
}
/**
* @return string
*/
public function getOperation()
{
return $this->operation;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* google.longrunning.Operation.error value with a google.rpc.Status.code of
* 1, corresponding to `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_StorageBatchOperations_OperationMetadata');

View File

@@ -0,0 +1,53 @@
<?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\StorageBatchOperations;
class PrefixList extends \Google\Collection
{
protected $collection_key = 'includedObjectPrefixes';
/**
* Optional. Include prefixes of the objects to be transformed. * Supports
* full object name * Supports prefix of the object name * Wildcards are not
* supported * Supports empty string for all objects in a bucket.
*
* @var string[]
*/
public $includedObjectPrefixes;
/**
* Optional. Include prefixes of the objects to be transformed. * Supports
* full object name * Supports prefix of the object name * Wildcards are not
* supported * Supports empty string for all objects in a bucket.
*
* @param string[] $includedObjectPrefixes
*/
public function setIncludedObjectPrefixes($includedObjectPrefixes)
{
$this->includedObjectPrefixes = $includedObjectPrefixes;
}
/**
* @return string[]
*/
public function getIncludedObjectPrefixes()
{
return $this->includedObjectPrefixes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrefixList::class, 'Google_Service_StorageBatchOperations_PrefixList');

View File

@@ -0,0 +1,244 @@
<?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\StorageBatchOperations;
class PutMetadata extends \Google\Model
{
/**
* Optional. Updates objects Cache-Control fixed metadata. Unset values will
* be ignored. Set empty values to clear the metadata. Additionally, the value
* for Custom-Time cannot decrease. Refer to documentation in
* https://cloud.google.com/storage/docs/metadata#caching_data.
*
* @var string
*/
public $cacheControl;
/**
* Optional. Updates objects Content-Disposition fixed metadata. Unset values
* will be ignored. Set empty values to clear the metadata. Refer
* https://cloud.google.com/storage/docs/metadata#content-disposition for
* additional documentation.
*
* @var string
*/
public $contentDisposition;
/**
* Optional. Updates objects Content-Encoding fixed metadata. Unset values
* will be ignored. Set empty values to clear the metadata. Refer to
* documentation in https://cloud.google.com/storage/docs/metadata#content-
* encoding.
*
* @var string
*/
public $contentEncoding;
/**
* Optional. Updates objects Content-Language fixed metadata. Refer to ISO
* 639-1 language codes for typical values of this metadata. Max length 100
* characters. Unset values will be ignored. Set empty values to clear the
* metadata. Refer to documentation in
* https://cloud.google.com/storage/docs/metadata#content-language.
*
* @var string
*/
public $contentLanguage;
/**
* Optional. Updates objects Content-Type fixed metadata. Unset values will be
* ignored. Set empty values to clear the metadata. Refer to documentation in
* https://cloud.google.com/storage/docs/metadata#content-type
*
* @var string
*/
public $contentType;
/**
* Optional. Updates objects custom metadata. Adds or sets individual custom
* metadata key value pairs on objects. Keys that are set with empty custom
* metadata values will have its value cleared. Existing custom metadata not
* specified with this flag is not changed. Refer to documentation in
* https://cloud.google.com/storage/docs/metadata#custom-metadata
*
* @var string[]
*/
public $customMetadata;
/**
* Optional. Updates objects Custom-Time fixed metadata. Unset values will be
* ignored. Set empty values to clear the metadata. Refer to documentation in
* https://cloud.google.com/storage/docs/metadata#custom-time.
*
* @var string
*/
public $customTime;
protected $objectRetentionType = ObjectRetention::class;
protected $objectRetentionDataType = '';
/**
* Optional. Updates objects Cache-Control fixed metadata. Unset values will
* be ignored. Set empty values to clear the metadata. Additionally, the value
* for Custom-Time cannot decrease. Refer to documentation in
* https://cloud.google.com/storage/docs/metadata#caching_data.
*
* @param string $cacheControl
*/
public function setCacheControl($cacheControl)
{
$this->cacheControl = $cacheControl;
}
/**
* @return string
*/
public function getCacheControl()
{
return $this->cacheControl;
}
/**
* Optional. Updates objects Content-Disposition fixed metadata. Unset values
* will be ignored. Set empty values to clear the metadata. Refer
* https://cloud.google.com/storage/docs/metadata#content-disposition for
* additional documentation.
*
* @param string $contentDisposition
*/
public function setContentDisposition($contentDisposition)
{
$this->contentDisposition = $contentDisposition;
}
/**
* @return string
*/
public function getContentDisposition()
{
return $this->contentDisposition;
}
/**
* Optional. Updates objects Content-Encoding fixed metadata. Unset values
* will be ignored. Set empty values to clear the metadata. Refer to
* documentation in https://cloud.google.com/storage/docs/metadata#content-
* encoding.
*
* @param string $contentEncoding
*/
public function setContentEncoding($contentEncoding)
{
$this->contentEncoding = $contentEncoding;
}
/**
* @return string
*/
public function getContentEncoding()
{
return $this->contentEncoding;
}
/**
* Optional. Updates objects Content-Language fixed metadata. Refer to ISO
* 639-1 language codes for typical values of this metadata. Max length 100
* characters. Unset values will be ignored. Set empty values to clear the
* metadata. Refer to documentation in
* https://cloud.google.com/storage/docs/metadata#content-language.
*
* @param string $contentLanguage
*/
public function setContentLanguage($contentLanguage)
{
$this->contentLanguage = $contentLanguage;
}
/**
* @return string
*/
public function getContentLanguage()
{
return $this->contentLanguage;
}
/**
* Optional. Updates objects Content-Type fixed metadata. Unset values will be
* ignored. Set empty values to clear the metadata. Refer to documentation in
* https://cloud.google.com/storage/docs/metadata#content-type
*
* @param string $contentType
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* Optional. Updates objects custom metadata. Adds or sets individual custom
* metadata key value pairs on objects. Keys that are set with empty custom
* metadata values will have its value cleared. Existing custom metadata not
* specified with this flag is not changed. Refer to documentation in
* https://cloud.google.com/storage/docs/metadata#custom-metadata
*
* @param string[] $customMetadata
*/
public function setCustomMetadata($customMetadata)
{
$this->customMetadata = $customMetadata;
}
/**
* @return string[]
*/
public function getCustomMetadata()
{
return $this->customMetadata;
}
/**
* Optional. Updates objects Custom-Time fixed metadata. Unset values will be
* ignored. Set empty values to clear the metadata. Refer to documentation in
* https://cloud.google.com/storage/docs/metadata#custom-time.
*
* @param string $customTime
*/
public function setCustomTime($customTime)
{
$this->customTime = $customTime;
}
/**
* @return string
*/
public function getCustomTime()
{
return $this->customTime;
}
/**
* Optional. Updates objects retention lock configuration. Unset values will
* be ignored. Set empty values to clear the retention for the object with
* existing `Unlocked` retention mode. Object with existing `Locked` retention
* mode cannot be cleared or reduce retain_until_time. Refer to documentation
* in https://cloud.google.com/storage/docs/object-lock
*
* @param ObjectRetention $objectRetention
*/
public function setObjectRetention(ObjectRetention $objectRetention)
{
$this->objectRetention = $objectRetention;
}
/**
* @return ObjectRetention
*/
public function getObjectRetention()
{
return $this->objectRetention;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PutMetadata::class, 'Google_Service_StorageBatchOperations_PutMetadata');

View File

@@ -0,0 +1,104 @@
<?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\StorageBatchOperations;
class PutObjectHold extends \Google\Model
{
/**
* Default value, Object hold status will not be changed.
*/
public const EVENT_BASED_HOLD_HOLD_STATUS_UNSPECIFIED = 'HOLD_STATUS_UNSPECIFIED';
/**
* Places the hold.
*/
public const EVENT_BASED_HOLD_SET = 'SET';
/**
* Releases the hold.
*/
public const EVENT_BASED_HOLD_UNSET = 'UNSET';
/**
* Default value, Object hold status will not be changed.
*/
public const TEMPORARY_HOLD_HOLD_STATUS_UNSPECIFIED = 'HOLD_STATUS_UNSPECIFIED';
/**
* Places the hold.
*/
public const TEMPORARY_HOLD_SET = 'SET';
/**
* Releases the hold.
*/
public const TEMPORARY_HOLD_UNSET = 'UNSET';
/**
* Required. Updates object event based holds state. When object event based
* hold is set, object cannot be deleted or replaced. Resets object's time in
* the bucket for the purposes of the retention period.
*
* @var string
*/
public $eventBasedHold;
/**
* Required. Updates object temporary holds state. When object temporary hold
* is set, object cannot be deleted or replaced.
*
* @var string
*/
public $temporaryHold;
/**
* Required. Updates object event based holds state. When object event based
* hold is set, object cannot be deleted or replaced. Resets object's time in
* the bucket for the purposes of the retention period.
*
* Accepted values: HOLD_STATUS_UNSPECIFIED, SET, UNSET
*
* @param self::EVENT_BASED_HOLD_* $eventBasedHold
*/
public function setEventBasedHold($eventBasedHold)
{
$this->eventBasedHold = $eventBasedHold;
}
/**
* @return self::EVENT_BASED_HOLD_*
*/
public function getEventBasedHold()
{
return $this->eventBasedHold;
}
/**
* Required. Updates object temporary holds state. When object temporary hold
* is set, object cannot be deleted or replaced.
*
* Accepted values: HOLD_STATUS_UNSPECIFIED, SET, UNSET
*
* @param self::TEMPORARY_HOLD_* $temporaryHold
*/
public function setTemporaryHold($temporaryHold)
{
$this->temporaryHold = $temporaryHold;
}
/**
* @return self::TEMPORARY_HOLD_*
*/
public function getTemporaryHold()
{
return $this->temporaryHold;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PutObjectHold::class, 'Google_Service_StorageBatchOperations_PutObjectHold');

View File

@@ -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\StorageBatchOperations\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $storagebatchoperationsService = new Google\Service\StorageBatchOperations(...);
* $projects = $storagebatchoperationsService->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_StorageBatchOperations_Resource_Projects');

View File

@@ -0,0 +1,77 @@
<?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\StorageBatchOperations\Resource;
use Google\Service\StorageBatchOperations\ListLocationsResponse;
use Google\Service\StorageBatchOperations\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $storagebatchoperationsService = new Google\Service\StorageBatchOperations(...);
* $locations = $storagebatchoperationsService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
* unsupported and is ignored unless explicitly documented otherwise. This is
* primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_StorageBatchOperations_Resource_ProjectsLocations');

View File

@@ -0,0 +1,140 @@
<?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\StorageBatchOperations\Resource;
use Google\Service\StorageBatchOperations\CancelJobRequest;
use Google\Service\StorageBatchOperations\CancelJobResponse;
use Google\Service\StorageBatchOperations\Job;
use Google\Service\StorageBatchOperations\ListJobsResponse;
use Google\Service\StorageBatchOperations\Operation;
use Google\Service\StorageBatchOperations\StoragebatchoperationsEmpty;
/**
* The "jobs" collection of methods.
* Typical usage is:
* <code>
* $storagebatchoperationsService = new Google\Service\StorageBatchOperations(...);
* $jobs = $storagebatchoperationsService->projects_locations_jobs;
* </code>
*/
class ProjectsLocationsJobs extends \Google\Service\Resource
{
/**
* Cancels a batch job. (jobs.cancel)
*
* @param string $name Required. The `name` of the job to cancel. Format:
* projects/{project_id}/locations/global/jobs/{job_id}.
* @param CancelJobRequest $postBody
* @param array $optParams Optional parameters.
* @return CancelJobResponse
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelJobRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], CancelJobResponse::class);
}
/**
* Creates a batch job. (jobs.create)
*
* @param string $parent Required. Value for parent.
* @param Job $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string jobId Required. The optional `job_id` for this Job . If not
* specified, an id is generated. `job_id` should be no more than 128 characters
* and must include only characters available in DNS names, as defined by
* RFC-1123.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID in case you need to retry your request.
* Requests with same `request_id` will be ignored for at least 60 minutes since
* the first request. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Job $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a batch job. (jobs.delete)
*
* @param string $name Required. The `name` of the job to delete. Format:
* projects/{project_id}/locations/global/jobs/{job_id} .
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID in case you need to retry your request.
* Requests with same `request_id` will be ignored for at least 60 minutes since
* the first request. The request ID must be a valid UUID with the exception
* that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
* @return StoragebatchoperationsEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], StoragebatchoperationsEmpty::class);
}
/**
* Gets a batch job. (jobs.get)
*
* @param string $name Required. `name` of the job to retrieve. Format:
* projects/{project_id}/locations/global/jobs/{job_id} .
* @param array $optParams Optional parameters.
* @return Job
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Job::class);
}
/**
* Lists Jobs in a given project. (jobs.listProjectsLocationsJobs)
*
* @param string $parent Required. Format:
* projects/{project_id}/locations/global.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filters results as defined by
* https://google.aip.dev/160.
* @opt_param string orderBy Optional. Field to sort by. Supported fields are
* name, create_time.
* @opt_param int pageSize Optional. The list page size. default page size is
* 100.
* @opt_param string pageToken Optional. The list page token.
* @return ListJobsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsJobs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListJobsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsJobs::class, 'Google_Service_StorageBatchOperations_Resource_ProjectsLocationsJobs');

View File

@@ -0,0 +1,121 @@
<?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\StorageBatchOperations\Resource;
use Google\Service\StorageBatchOperations\CancelOperationRequest;
use Google\Service\StorageBatchOperations\ListOperationsResponse;
use Google\Service\StorageBatchOperations\Operation;
use Google\Service\StorageBatchOperations\StoragebatchoperationsEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $storagebatchoperationsService = new Google\Service\StorageBatchOperations(...);
* $operations = $storagebatchoperationsService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return StoragebatchoperationsEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], StoragebatchoperationsEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return StoragebatchoperationsEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], StoragebatchoperationsEmpty::class);
}
/**
* 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);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_StorageBatchOperations_Resource_ProjectsLocationsOperations');

View File

@@ -0,0 +1,62 @@
<?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\StorageBatchOperations;
class RewriteObject extends \Google\Model
{
/**
* Required. Resource name of the Cloud KMS key that will be used to encrypt
* the object. The Cloud KMS key must be located in same location as the
* object. Refer to https://cloud.google.com/storage/docs/encryption/using-
* customer-managed-keys#add-object-key for additional documentation. Format:
* projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}
* For example: "projects/123456/locations/us-central1/keyRings/my-
* keyring/cryptoKeys/my-key". The object will be rewritten and set with the
* specified KMS key.
*
* @var string
*/
public $kmsKey;
/**
* Required. Resource name of the Cloud KMS key that will be used to encrypt
* the object. The Cloud KMS key must be located in same location as the
* object. Refer to https://cloud.google.com/storage/docs/encryption/using-
* customer-managed-keys#add-object-key for additional documentation. Format:
* projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}
* For example: "projects/123456/locations/us-central1/keyRings/my-
* keyring/cryptoKeys/my-key". The object will be rewritten and set with the
* specified KMS key.
*
* @param string $kmsKey
*/
public function setKmsKey($kmsKey)
{
$this->kmsKey = $kmsKey;
}
/**
* @return string
*/
public function getKmsKey()
{
return $this->kmsKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RewriteObject::class, 'Google_Service_StorageBatchOperations_RewriteObject');

View File

@@ -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\StorageBatchOperations;
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_StorageBatchOperations_Status');

View File

@@ -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\StorageBatchOperations;
class StoragebatchoperationsEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StoragebatchoperationsEmpty::class, 'Google_Service_StorageBatchOperations_StoragebatchoperationsEmpty');