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,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\Pubsub\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $projects = $pubsubService->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_Pubsub_Resource_Projects');
@@ -0,0 +1,304 @@
<?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\Pubsub\Resource;
use Google\Service\Pubsub\CommitSchemaRequest;
use Google\Service\Pubsub\ListSchemaRevisionsResponse;
use Google\Service\Pubsub\ListSchemasResponse;
use Google\Service\Pubsub\Policy;
use Google\Service\Pubsub\PubsubEmpty;
use Google\Service\Pubsub\RollbackSchemaRequest;
use Google\Service\Pubsub\Schema;
use Google\Service\Pubsub\SetIamPolicyRequest;
use Google\Service\Pubsub\TestIamPermissionsRequest;
use Google\Service\Pubsub\TestIamPermissionsResponse;
use Google\Service\Pubsub\ValidateMessageRequest;
use Google\Service\Pubsub\ValidateMessageResponse;
use Google\Service\Pubsub\ValidateSchemaRequest;
use Google\Service\Pubsub\ValidateSchemaResponse;
/**
* The "schemas" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $schemas = $pubsubService->projects_schemas;
* </code>
*/
class ProjectsSchemas extends \Google\Service\Resource
{
/**
* Commits a new schema revision to an existing schema. (schemas.commit)
*
* @param string $name Required. The name of the schema we are revising. Format
* is `projects/{project}/schemas/{schema}`.
* @param CommitSchemaRequest $postBody
* @param array $optParams Optional parameters.
* @return Schema
* @throws \Google\Service\Exception
*/
public function commit($name, CommitSchemaRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('commit', [$params], Schema::class);
}
/**
* Creates a schema. (schemas.create)
*
* @param string $parent Required. The name of the project in which to create
* the schema. Format is `projects/{project-id}`.
* @param Schema $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string schemaId The ID to use for the schema, which will become
* the final component of the schema's resource name. See
* https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for
* resource name constraints.
* @return Schema
* @throws \Google\Service\Exception
*/
public function create($parent, Schema $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Schema::class);
}
/**
* Deletes a schema. (schemas.delete)
*
* @param string $name Required. Name of the schema to delete. Format is
* `projects/{project}/schemas/{schema}`.
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PubsubEmpty::class);
}
/**
* Deletes a specific schema revision. (schemas.deleteRevision)
*
* @param string $name Required. The name of the schema revision to be deleted,
* with a revision ID explicitly included. Example: `projects/123/schemas/my-
* schema@c7cfa2a8`
* @param array $optParams Optional parameters.
*
* @opt_param string revisionId Optional. This field is deprecated and should
* not be used for specifying the revision ID. The revision ID should be
* specified via the `name` parameter.
* @return Schema
* @throws \Google\Service\Exception
*/
public function deleteRevision($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('deleteRevision', [$params], Schema::class);
}
/**
* Gets a schema. (schemas.get)
*
* @param string $name Required. The name of the schema to get. Format is
* `projects/{project}/schemas/{schema}`.
* @param array $optParams Optional parameters.
*
* @opt_param string view The set of fields to return in the response. If not
* set, returns a Schema with all fields filled out. Set to `BASIC` to omit the
* `definition`.
* @return Schema
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Schema::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (schemas.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists schemas in a project. (schemas.listProjectsSchemas)
*
* @param string $parent Required. The name of the project in which to list
* schemas. Format is `projects/{project-id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of schemas to return.
* @opt_param string pageToken The value returned by the last
* `ListSchemasResponse`; indicates that this is a continuation of a prior
* `ListSchemas` call, and that the system should return the next page of data.
* @opt_param string view The set of Schema fields to return in the response. If
* not set, returns Schemas with `name` and `type`, but not `definition`. Set to
* `FULL` to retrieve all fields.
* @return ListSchemasResponse
* @throws \Google\Service\Exception
*/
public function listProjectsSchemas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSchemasResponse::class);
}
/**
* Lists all schema revisions for the named schema. (schemas.listRevisions)
*
* @param string $name Required. The name of the schema to list revisions for.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of revisions to return per page.
* @opt_param string pageToken The page token, received from a previous
* ListSchemaRevisions call. Provide this to retrieve the subsequent page.
* @opt_param string view The set of Schema fields to return in the response. If
* not set, returns Schemas with `name` and `type`, but not `definition`. Set to
* `FULL` to retrieve all fields.
* @return ListSchemaRevisionsResponse
* @throws \Google\Service\Exception
*/
public function listRevisions($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('listRevisions', [$params], ListSchemaRevisionsResponse::class);
}
/**
* Creates a new schema revision that is a copy of the provided revision_id.
* (schemas.rollback)
*
* @param string $name Required. The schema being rolled back with revision id.
* @param RollbackSchemaRequest $postBody
* @param array $optParams Optional parameters.
* @return Schema
* @throws \Google\Service\Exception
*/
public function rollback($name, RollbackSchemaRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rollback', [$params], Schema::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (schemas.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (schemas.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
/**
* Validates a schema. (schemas.validate)
*
* @param string $parent Required. The name of the project in which to validate
* schemas. Format is `projects/{project-id}`.
* @param ValidateSchemaRequest $postBody
* @param array $optParams Optional parameters.
* @return ValidateSchemaResponse
* @throws \Google\Service\Exception
*/
public function validate($parent, ValidateSchemaRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('validate', [$params], ValidateSchemaResponse::class);
}
/**
* Validates a message against a schema. (schemas.validateMessage)
*
* @param string $parent Required. The name of the project in which to validate
* schemas. Format is `projects/{project-id}`.
* @param ValidateMessageRequest $postBody
* @param array $optParams Optional parameters.
* @return ValidateMessageResponse
* @throws \Google\Service\Exception
*/
public function validateMessage($parent, ValidateMessageRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('validateMessage', [$params], ValidateMessageResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsSchemas::class, 'Google_Service_Pubsub_Resource_ProjectsSchemas');
@@ -0,0 +1,238 @@
<?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\Pubsub\Resource;
use Google\Service\Pubsub\CreateSnapshotRequest;
use Google\Service\Pubsub\ListSnapshotsResponse;
use Google\Service\Pubsub\Policy;
use Google\Service\Pubsub\PubsubEmpty;
use Google\Service\Pubsub\SetIamPolicyRequest;
use Google\Service\Pubsub\Snapshot;
use Google\Service\Pubsub\TestIamPermissionsRequest;
use Google\Service\Pubsub\TestIamPermissionsResponse;
use Google\Service\Pubsub\UpdateSnapshotRequest;
/**
* The "snapshots" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $snapshots = $pubsubService->projects_snapshots;
* </code>
*/
class ProjectsSnapshots extends \Google\Service\Resource
{
/**
* Creates a snapshot from the requested subscription. Snapshots are used in
* [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
* which allow you to manage message acknowledgments in bulk. That is, you can
* set the acknowledgment state of messages in an existing subscription to the
* state captured by a snapshot. If the snapshot already exists, returns
* `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns
* `NOT_FOUND`. If the backlog in the subscription is too old -- and the
* resulting snapshot would expire in less than 1 hour -- then
* `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field.
* If the name is not provided in the request, the server will assign a random
* name for this snapshot on the same project as the subscription, conforming to
* the [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-
* basics#resource_names). The generated name is populated in the returned
* Snapshot object. Note that for REST API requests, you must specify a name in
* the request. (snapshots.create)
*
* @param string $name Required. User-provided name for this snapshot. If the
* name is not provided in the request, the server will assign a random name for
* this snapshot on the same project as the subscription. Note that for REST API
* requests, you must specify a name. See the [resource name
* rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
* Format is `projects/{project}/snapshots/{snap}`.
* @param CreateSnapshotRequest $postBody
* @param array $optParams Optional parameters.
* @return Snapshot
* @throws \Google\Service\Exception
*/
public function create($name, CreateSnapshotRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Snapshot::class);
}
/**
* Removes an existing snapshot. Snapshots are used in [Seek]
* (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
* allow you to manage message acknowledgments in bulk. That is, you can set the
* acknowledgment state of messages in an existing subscription to the state
* captured by a snapshot. When the snapshot is deleted, all messages retained
* in the snapshot are immediately dropped. After a snapshot is deleted, a new
* one may be created with the same name, but the new one has no association
* with the old snapshot or its subscription, unless the same subscription is
* specified. (snapshots.delete)
*
* @param string $snapshot Required. The name of the snapshot to delete. Format
* is `projects/{project}/snapshots/{snap}`.
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function delete($snapshot, $optParams = [])
{
$params = ['snapshot' => $snapshot];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PubsubEmpty::class);
}
/**
* Gets the configuration details of a snapshot. Snapshots are used in
* [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
* which allow you to manage message acknowledgments in bulk. That is, you can
* set the acknowledgment state of messages in an existing subscription to the
* state captured by a snapshot. (snapshots.get)
*
* @param string $snapshot Required. The name of the snapshot to get. Format is
* `projects/{project}/snapshots/{snap}`.
* @param array $optParams Optional parameters.
* @return Snapshot
* @throws \Google\Service\Exception
*/
public function get($snapshot, $optParams = [])
{
$params = ['snapshot' => $snapshot];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Snapshot::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (snapshots.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists the existing snapshots. Snapshots are used in [Seek](
* https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow
* you to manage message acknowledgments in bulk. That is, you can set the
* acknowledgment state of messages in an existing subscription to the state
* captured by a snapshot. (snapshots.listProjectsSnapshots)
*
* @param string $project Required. The name of the project in which to list
* snapshots. Format is `projects/{project-id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of snapshots to return.
* @opt_param string pageToken Optional. The value returned by the last
* `ListSnapshotsResponse`; indicates that this is a continuation of a prior
* `ListSnapshots` call, and that the system should return the next page of
* data.
* @return ListSnapshotsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsSnapshots($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSnapshotsResponse::class);
}
/**
* Updates an existing snapshot by updating the fields specified in the update
* mask. Snapshots are used in
* [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
* which allow you to manage message acknowledgments in bulk. That is, you can
* set the acknowledgment state of messages in an existing subscription to the
* state captured by a snapshot. (snapshots.patch)
*
* @param string $name Optional. The name of the snapshot.
* @param UpdateSnapshotRequest $postBody
* @param array $optParams Optional parameters.
* @return Snapshot
* @throws \Google\Service\Exception
*/
public function patch($name, UpdateSnapshotRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Snapshot::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (snapshots.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (snapshots.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsSnapshots::class, 'Google_Service_Pubsub_Resource_ProjectsSnapshots');
@@ -0,0 +1,348 @@
<?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\Pubsub\Resource;
use Google\Service\Pubsub\AcknowledgeRequest;
use Google\Service\Pubsub\DetachSubscriptionResponse;
use Google\Service\Pubsub\ListSubscriptionsResponse;
use Google\Service\Pubsub\ModifyAckDeadlineRequest;
use Google\Service\Pubsub\ModifyPushConfigRequest;
use Google\Service\Pubsub\Policy;
use Google\Service\Pubsub\PubsubEmpty;
use Google\Service\Pubsub\PullRequest;
use Google\Service\Pubsub\PullResponse;
use Google\Service\Pubsub\SeekRequest;
use Google\Service\Pubsub\SeekResponse;
use Google\Service\Pubsub\SetIamPolicyRequest;
use Google\Service\Pubsub\Subscription;
use Google\Service\Pubsub\TestIamPermissionsRequest;
use Google\Service\Pubsub\TestIamPermissionsResponse;
use Google\Service\Pubsub\UpdateSubscriptionRequest;
/**
* The "subscriptions" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $subscriptions = $pubsubService->projects_subscriptions;
* </code>
*/
class ProjectsSubscriptions extends \Google\Service\Resource
{
/**
* Acknowledges the messages associated with the `ack_ids` in the
* `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
* from the subscription. Acknowledging a message whose ack deadline has expired
* may succeed, but such a message may be redelivered later. Acknowledging a
* message more than once will not result in an error.
* (subscriptions.acknowledge)
*
* @param string $subscription Required. The subscription whose message is being
* acknowledged. Format is `projects/{project}/subscriptions/{sub}`.
* @param AcknowledgeRequest $postBody
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function acknowledge($subscription, AcknowledgeRequest $postBody, $optParams = [])
{
$params = ['subscription' => $subscription, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('acknowledge', [$params], PubsubEmpty::class);
}
/**
* Creates a subscription to a given topic. See the [resource name rules]
* (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). If the
* subscription already exists, returns `ALREADY_EXISTS`. If the corresponding
* topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the
* request, the server will assign a random name for this subscription on the
* same project as the topic, conforming to the [resource name format]
* (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
* generated name is populated in the returned Subscription object. Note that
* for REST API requests, you must specify a name in the request.
* (subscriptions.create)
*
* @param string $name Required. Identifier. The name of the subscription. It
* must have the format `"projects/{project}/subscriptions/{subscription}"`.
* `{subscription}` must start with a letter, and contain only letters
* (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods
* (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3
* and 255 characters in length, and it must not start with `"goog"`.
* @param Subscription $postBody
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function create($name, Subscription $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Subscription::class);
}
/**
* Deletes an existing subscription. All messages retained in the subscription
* are immediately dropped. Calls to `Pull` after deletion will return
* `NOT_FOUND`. After a subscription is deleted, a new one may be created with
* the same name, but the new one has no association with the old subscription
* or its topic unless the same topic is specified. (subscriptions.delete)
*
* @param string $subscription Required. The subscription to delete. Format is
* `projects/{project}/subscriptions/{sub}`.
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function delete($subscription, $optParams = [])
{
$params = ['subscription' => $subscription];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PubsubEmpty::class);
}
/**
* Detaches a subscription from this topic. All messages retained in the
* subscription are dropped. Subsequent `Pull` and `StreamingPull` requests will
* return FAILED_PRECONDITION. If the subscription is a push subscription,
* pushes to the endpoint will stop. (subscriptions.detach)
*
* @param string $subscription Required. The subscription to detach. Format is
* `projects/{project}/subscriptions/{subscription}`.
* @param array $optParams Optional parameters.
* @return DetachSubscriptionResponse
* @throws \Google\Service\Exception
*/
public function detach($subscription, $optParams = [])
{
$params = ['subscription' => $subscription];
$params = array_merge($params, $optParams);
return $this->call('detach', [$params], DetachSubscriptionResponse::class);
}
/**
* Gets the configuration details of a subscription. (subscriptions.get)
*
* @param string $subscription Required. The name of the subscription to get.
* Format is `projects/{project}/subscriptions/{sub}`.
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function get($subscription, $optParams = [])
{
$params = ['subscription' => $subscription];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Subscription::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (subscriptions.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists matching subscriptions. (subscriptions.listProjectsSubscriptions)
*
* @param string $project Required. The name of the project in which to list
* subscriptions. Format is `projects/{project-id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of subscriptions to return.
* @opt_param string pageToken Optional. The value returned by the last
* `ListSubscriptionsResponse`; indicates that this is a continuation of a prior
* `ListSubscriptions` call, and that the system should return the next page of
* data.
* @return ListSubscriptionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsSubscriptions($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSubscriptionsResponse::class);
}
/**
* Modifies the ack deadline for a specific message. This method is useful to
* indicate that more time is needed to process a message by the subscriber, or
* to make the message available for redelivery if the processing was
* interrupted. Note that this does not modify the subscription-level
* `ackDeadlineSeconds` used for subsequent messages.
* (subscriptions.modifyAckDeadline)
*
* @param string $subscription Required. The name of the subscription. Format is
* `projects/{project}/subscriptions/{sub}`.
* @param ModifyAckDeadlineRequest $postBody
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function modifyAckDeadline($subscription, ModifyAckDeadlineRequest $postBody, $optParams = [])
{
$params = ['subscription' => $subscription, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('modifyAckDeadline', [$params], PubsubEmpty::class);
}
/**
* Modifies the `PushConfig` for a specified subscription. This may be used to
* change a push subscription to a pull one (signified by an empty `PushConfig`)
* or vice versa, or change the endpoint URL and other attributes of a push
* subscription. Messages will accumulate for delivery continuously through the
* call regardless of changes to the `PushConfig`.
* (subscriptions.modifyPushConfig)
*
* @param string $subscription Required. The name of the subscription. Format is
* `projects/{project}/subscriptions/{sub}`.
* @param ModifyPushConfigRequest $postBody
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function modifyPushConfig($subscription, ModifyPushConfigRequest $postBody, $optParams = [])
{
$params = ['subscription' => $subscription, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('modifyPushConfig', [$params], PubsubEmpty::class);
}
/**
* Updates an existing subscription by updating the fields specified in the
* update mask. Note that certain properties of a subscription, such as its
* topic, are not modifiable. (subscriptions.patch)
*
* @param string $name Required. Identifier. The name of the subscription. It
* must have the format `"projects/{project}/subscriptions/{subscription}"`.
* `{subscription}` must start with a letter, and contain only letters
* (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods
* (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3
* and 255 characters in length, and it must not start with `"goog"`.
* @param UpdateSubscriptionRequest $postBody
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function patch($name, UpdateSubscriptionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Subscription::class);
}
/**
* Pulls messages from the server. (subscriptions.pull)
*
* @param string $subscription Required. The subscription from which messages
* should be pulled. Format is `projects/{project}/subscriptions/{sub}`.
* @param PullRequest $postBody
* @param array $optParams Optional parameters.
* @return PullResponse
* @throws \Google\Service\Exception
*/
public function pull($subscription, PullRequest $postBody, $optParams = [])
{
$params = ['subscription' => $subscription, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('pull', [$params], PullResponse::class);
}
/**
* Seeks an existing subscription to a point in time or to a given snapshot,
* whichever is provided in the request. Snapshots are used in [Seek]
* (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
* allow you to manage message acknowledgments in bulk. That is, you can set the
* acknowledgment state of messages in an existing subscription to the state
* captured by a snapshot. Note that both the subscription and the snapshot must
* be on the same topic. (subscriptions.seek)
*
* @param string $subscription Required. The subscription to affect.
* @param SeekRequest $postBody
* @param array $optParams Optional parameters.
* @return SeekResponse
* @throws \Google\Service\Exception
*/
public function seek($subscription, SeekRequest $postBody, $optParams = [])
{
$params = ['subscription' => $subscription, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('seek', [$params], SeekResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (subscriptions.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (subscriptions.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsSubscriptions::class, 'Google_Service_Pubsub_Resource_ProjectsSubscriptions');
@@ -0,0 +1,232 @@
<?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\Pubsub\Resource;
use Google\Service\Pubsub\ListTopicsResponse;
use Google\Service\Pubsub\Policy;
use Google\Service\Pubsub\PublishRequest;
use Google\Service\Pubsub\PublishResponse;
use Google\Service\Pubsub\PubsubEmpty;
use Google\Service\Pubsub\SetIamPolicyRequest;
use Google\Service\Pubsub\TestIamPermissionsRequest;
use Google\Service\Pubsub\TestIamPermissionsResponse;
use Google\Service\Pubsub\Topic;
use Google\Service\Pubsub\UpdateTopicRequest;
/**
* The "topics" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $topics = $pubsubService->projects_topics;
* </code>
*/
class ProjectsTopics extends \Google\Service\Resource
{
/**
* Creates the given topic with the given name. See the [resource name rules]
* (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
* (topics.create)
*
* @param string $name Required. Identifier. The name of the topic. It must have
* the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a
* letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes
* (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
* signs (`%`). It must be between 3 and 255 characters in length, and it must
* not start with `"goog"`.
* @param Topic $postBody
* @param array $optParams Optional parameters.
* @return Topic
* @throws \Google\Service\Exception
*/
public function create($name, Topic $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Topic::class);
}
/**
* Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does
* not exist. After a topic is deleted, a new topic may be created with the same
* name; this is an entirely new topic with none of the old configuration or
* subscriptions. Existing subscriptions to this topic are not deleted, but
* their `topic` field is set to `_deleted-topic_`. (topics.delete)
*
* @param string $topic Required. Name of the topic to delete. Format is
* `projects/{project}/topics/{topic}`.
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function delete($topic, $optParams = [])
{
$params = ['topic' => $topic];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PubsubEmpty::class);
}
/**
* Gets the configuration of a topic. (topics.get)
*
* @param string $topic Required. The name of the topic to get. Format is
* `projects/{project}/topics/{topic}`.
* @param array $optParams Optional parameters.
* @return Topic
* @throws \Google\Service\Exception
*/
public function get($topic, $optParams = [])
{
$params = ['topic' => $topic];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Topic::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (topics.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists matching topics. (topics.listProjectsTopics)
*
* @param string $project Required. The name of the project in which to list
* topics. Format is `projects/{project-id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of topics to return.
* @opt_param string pageToken Optional. The value returned by the last
* `ListTopicsResponse`; indicates that this is a continuation of a prior
* `ListTopics` call, and that the system should return the next page of data.
* @return ListTopicsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsTopics($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTopicsResponse::class);
}
/**
* Updates an existing topic by updating the fields specified in the update
* mask. Note that certain properties of a topic are not modifiable.
* (topics.patch)
*
* @param string $name Required. Identifier. The name of the topic. It must have
* the format `"projects/{project}/topics/{topic}"`. `{topic}` must start with a
* letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes
* (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
* signs (`%`). It must be between 3 and 255 characters in length, and it must
* not start with `"goog"`.
* @param UpdateTopicRequest $postBody
* @param array $optParams Optional parameters.
* @return Topic
* @throws \Google\Service\Exception
*/
public function patch($name, UpdateTopicRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Topic::class);
}
/**
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does
* not exist. (topics.publish)
*
* @param string $topic Required. The messages in the request will be published
* on this topic. Format is `projects/{project}/topics/{topic}`.
* @param PublishRequest $postBody
* @param array $optParams Optional parameters.
* @return PublishResponse
* @throws \Google\Service\Exception
*/
public function publish($topic, PublishRequest $postBody, $optParams = [])
{
$params = ['topic' => $topic, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('publish', [$params], PublishResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (topics.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (topics.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsTopics::class, 'Google_Service_Pubsub_Resource_ProjectsTopics');
@@ -0,0 +1,60 @@
<?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\Pubsub\Resource;
use Google\Service\Pubsub\ListTopicSnapshotsResponse;
/**
* The "snapshots" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $snapshots = $pubsubService->projects_topics_snapshots;
* </code>
*/
class ProjectsTopicsSnapshots extends \Google\Service\Resource
{
/**
* Lists the names of the snapshots on this topic. Snapshots are used in
* [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
* which allow you to manage message acknowledgments in bulk. That is, you can
* set the acknowledgment state of messages in an existing subscription to the
* state captured by a snapshot. (snapshots.listProjectsTopicsSnapshots)
*
* @param string $topic Required. The name of the topic that snapshots are
* attached to. Format is `projects/{project}/topics/{topic}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of snapshot names to return.
* @opt_param string pageToken Optional. The value returned by the last
* `ListTopicSnapshotsResponse`; indicates that this is a continuation of a
* prior `ListTopicSnapshots` call, and that the system should return the next
* page of data.
* @return ListTopicSnapshotsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsTopicsSnapshots($topic, $optParams = [])
{
$params = ['topic' => $topic];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTopicSnapshotsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsTopicsSnapshots::class, 'Google_Service_Pubsub_Resource_ProjectsTopicsSnapshots');
@@ -0,0 +1,58 @@
<?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\Pubsub\Resource;
use Google\Service\Pubsub\ListTopicSubscriptionsResponse;
/**
* The "subscriptions" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $subscriptions = $pubsubService->projects_topics_subscriptions;
* </code>
*/
class ProjectsTopicsSubscriptions extends \Google\Service\Resource
{
/**
* Lists the names of the attached subscriptions on this topic.
* (subscriptions.listProjectsTopicsSubscriptions)
*
* @param string $topic Required. The name of the topic that subscriptions are
* attached to. Format is `projects/{project}/topics/{topic}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of subscription names to
* return.
* @opt_param string pageToken Optional. The value returned by the last
* `ListTopicSubscriptionsResponse`; indicates that this is a continuation of a
* prior `ListTopicSubscriptions` call, and that the system should return the
* next page of data.
* @return ListTopicSubscriptionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsTopicsSubscriptions($topic, $optParams = [])
{
$params = ['topic' => $topic];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTopicSubscriptionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsTopicsSubscriptions::class, 'Google_Service_Pubsub_Resource_ProjectsTopicsSubscriptions');