Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

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\PubsubLite\Resource;
/**
* The "admin" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $admin = $pubsubliteService->admin;
* </code>
*/
class Admin extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Admin::class, 'Google_Service_PubsubLite_Resource_Admin');

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\PubsubLite\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $projects = $pubsubliteService->admin_projects;
* </code>
*/
class AdminProjects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdminProjects::class, 'Google_Service_PubsubLite_Resource_AdminProjects');

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\PubsubLite\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $locations = $pubsubliteService->admin_projects_locations;
* </code>
*/
class AdminProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdminProjectsLocations::class, 'Google_Service_PubsubLite_Resource_AdminProjectsLocations');

View File

@@ -0,0 +1,114 @@
<?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\PubsubLite\Resource;
use Google\Service\PubsubLite\CancelOperationRequest;
use Google\Service\PubsubLite\ListOperationsResponse;
use Google\Service\PubsubLite\Operation;
use Google\Service\PubsubLite\PubsubliteEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $operations = $pubsubliteService->admin_projects_locations_operations;
* </code>
*/
class AdminProjectsLocationsOperations 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 PubsubliteEmpty
* @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], PubsubliteEmpty::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 PubsubliteEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PubsubliteEmpty::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.listAdminProjectsLocationsOperations)
*
* @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.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listAdminProjectsLocationsOperations($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(AdminProjectsLocationsOperations::class, 'Google_Service_PubsubLite_Resource_AdminProjectsLocationsOperations');

View File

@@ -0,0 +1,133 @@
<?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\PubsubLite\Resource;
use Google\Service\PubsubLite\ListReservationsResponse;
use Google\Service\PubsubLite\PubsubliteEmpty;
use Google\Service\PubsubLite\Reservation;
/**
* The "reservations" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $reservations = $pubsubliteService->admin_projects_locations_reservations;
* </code>
*/
class AdminProjectsLocationsReservations extends \Google\Service\Resource
{
/**
* Creates a new reservation. (reservations.create)
*
* @param string $parent Required. The parent location in which to create the
* reservation. Structured like
* `projects/{project_number}/locations/{location}`.
* @param Reservation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string reservationId Required. The ID to use for the reservation,
* which will become the final component of the reservation's name. This value
* is structured like: `my-reservation-name`.
* @return Reservation
* @throws \Google\Service\Exception
*/
public function create($parent, Reservation $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Reservation::class);
}
/**
* Deletes the specified reservation. (reservations.delete)
*
* @param string $name Required. The name of the reservation to delete.
* Structured like:
* projects/{project_number}/locations/{location}/reservations/{reservation_id}
* @param array $optParams Optional parameters.
* @return PubsubliteEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PubsubliteEmpty::class);
}
/**
* Returns the reservation configuration. (reservations.get)
*
* @param string $name Required. The name of the reservation whose configuration
* to return. Structured like:
* projects/{project_number}/locations/{location}/reservations/{reservation_id}
* @param array $optParams Optional parameters.
* @return Reservation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Reservation::class);
}
/**
* Returns the list of reservations for the given project.
* (reservations.listAdminProjectsLocationsReservations)
*
* @param string $parent Required. The parent whose reservations are to be
* listed. Structured like `projects/{project_number}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of reservations to return. The
* service may return fewer than this value. If unset or zero, all reservations
* for the parent will be returned.
* @opt_param string pageToken A page token, received from a previous
* `ListReservations` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListReservations` must match
* the call that provided the page token.
* @return ListReservationsResponse
* @throws \Google\Service\Exception
*/
public function listAdminProjectsLocationsReservations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReservationsResponse::class);
}
/**
* Updates properties of the specified reservation. (reservations.patch)
*
* @param string $name The name of the reservation. Structured like:
* projects/{project_number}/locations/{location}/reservations/{reservation_id}
* @param Reservation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. A mask specifying the reservation
* fields to change.
* @return Reservation
* @throws \Google\Service\Exception
*/
public function patch($name, Reservation $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Reservation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdminProjectsLocationsReservations::class, 'Google_Service_PubsubLite_Resource_AdminProjectsLocationsReservations');

View File

@@ -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\PubsubLite\Resource;
use Google\Service\PubsubLite\ListReservationTopicsResponse;
/**
* The "topics" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $topics = $pubsubliteService->admin_projects_locations_reservations_topics;
* </code>
*/
class AdminProjectsLocationsReservationsTopics extends \Google\Service\Resource
{
/**
* Lists the topics attached to the specified reservation.
* (topics.listAdminProjectsLocationsReservationsTopics)
*
* @param string $name Required. The name of the reservation whose topics to
* list. Structured like:
* projects/{project_number}/locations/{location}/reservations/{reservation_id}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of topics to return. The service
* may return fewer than this value. If unset or zero, all topics for the given
* reservation will be returned.
* @opt_param string pageToken A page token, received from a previous
* `ListReservationTopics` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListReservationTopics`
* must match the call that provided the page token.
* @return ListReservationTopicsResponse
* @throws \Google\Service\Exception
*/
public function listAdminProjectsLocationsReservationsTopics($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReservationTopicsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdminProjectsLocationsReservationsTopics::class, 'Google_Service_PubsubLite_Resource_AdminProjectsLocationsReservationsTopics');

View File

@@ -0,0 +1,166 @@
<?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\PubsubLite\Resource;
use Google\Service\PubsubLite\ListSubscriptionsResponse;
use Google\Service\PubsubLite\Operation;
use Google\Service\PubsubLite\PubsubliteEmpty;
use Google\Service\PubsubLite\SeekSubscriptionRequest;
use Google\Service\PubsubLite\Subscription;
/**
* The "subscriptions" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $subscriptions = $pubsubliteService->admin_projects_locations_subscriptions;
* </code>
*/
class AdminProjectsLocationsSubscriptions extends \Google\Service\Resource
{
/**
* Creates a new subscription. (subscriptions.create)
*
* @param string $parent Required. The parent location in which to create the
* subscription. Structured like
* `projects/{project_number}/locations/{location}`.
* @param Subscription $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool skipBacklog If true, the newly created subscription will only
* receive messages published after the subscription was created. Otherwise, the
* entire message backlog will be received on the subscription. Defaults to
* false.
* @opt_param string subscriptionId Required. The ID to use for the
* subscription, which will become the final component of the subscription's
* name. This value is structured like: `my-sub-name`.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function create($parent, Subscription $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Subscription::class);
}
/**
* Deletes the specified subscription. (subscriptions.delete)
*
* @param string $name Required. The name of the subscription to delete.
* @param array $optParams Optional parameters.
* @return PubsubliteEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PubsubliteEmpty::class);
}
/**
* Returns the subscription configuration. (subscriptions.get)
*
* @param string $name Required. The name of the subscription whose
* configuration to return.
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Subscription::class);
}
/**
* Returns the list of subscriptions for the given project.
* (subscriptions.listAdminProjectsLocationsSubscriptions)
*
* @param string $parent Required. The parent whose subscriptions are to be
* listed. Structured like `projects/{project_number}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of subscriptions to return. The
* service may return fewer than this value. If unset or zero, all subscriptions
* for the parent will be returned.
* @opt_param string pageToken A page token, received from a previous
* `ListSubscriptions` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListSubscriptions` must match
* the call that provided the page token.
* @return ListSubscriptionsResponse
* @throws \Google\Service\Exception
*/
public function listAdminProjectsLocationsSubscriptions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSubscriptionsResponse::class);
}
/**
* Updates properties of the specified subscription. (subscriptions.patch)
*
* @param string $name The name of the subscription. Structured like: projects/{
* project_number}/locations/{location}/subscriptions/{subscription_id}
* @param Subscription $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. A mask specifying the subscription
* fields to change.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function patch($name, Subscription $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Subscription::class);
}
/**
* Performs an out-of-band seek for a subscription to a specified target, which
* may be timestamps or named positions within the message backlog. Seek
* translates these targets to cursors for each partition and orchestrates
* subscribers to start consuming messages from these seek cursors. If an
* operation is returned, the seek has been registered and subscribers will
* eventually receive messages from the seek cursors (i.e. eventual
* consistency), as long as they are using a minimum supported client library
* version and not a system that tracks cursors independently of Pub/Sub Lite
* (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
* unsupported clients. If clients would like to know when subscribers react to
* the seek (or not), they can poll the operation. The seek operation will
* succeed and complete once subscribers are ready to receive messages from the
* seek cursors for all partitions of the topic. This means that the seek
* operation will not complete until all subscribers come online. If the
* previous seek operation has not yet completed, it will be aborted and the new
* invocation of seek will supersede it. (subscriptions.seek)
*
* @param string $name Required. The name of the subscription to seek.
* @param SeekSubscriptionRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function seek($name, SeekSubscriptionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('seek', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdminProjectsLocationsSubscriptions::class, 'Google_Service_PubsubLite_Resource_AdminProjectsLocationsSubscriptions');

View File

@@ -0,0 +1,146 @@
<?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\PubsubLite\Resource;
use Google\Service\PubsubLite\ListTopicsResponse;
use Google\Service\PubsubLite\PubsubliteEmpty;
use Google\Service\PubsubLite\Topic;
use Google\Service\PubsubLite\TopicPartitions;
/**
* The "topics" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $topics = $pubsubliteService->admin_projects_locations_topics;
* </code>
*/
class AdminProjectsLocationsTopics extends \Google\Service\Resource
{
/**
* Creates a new topic. (topics.create)
*
* @param string $parent Required. The parent location in which to create the
* topic. Structured like `projects/{project_number}/locations/{location}`.
* @param Topic $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string topicId Required. The ID to use for the topic, which will
* become the final component of the topic's name. This value is structured
* like: `my-topic-name`.
* @return Topic
* @throws \Google\Service\Exception
*/
public function create($parent, Topic $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Topic::class);
}
/**
* Deletes the specified topic. (topics.delete)
*
* @param string $name Required. The name of the topic to delete.
* @param array $optParams Optional parameters.
* @return PubsubliteEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PubsubliteEmpty::class);
}
/**
* Returns the topic configuration. (topics.get)
*
* @param string $name Required. The name of the topic whose configuration to
* return.
* @param array $optParams Optional parameters.
* @return Topic
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Topic::class);
}
/**
* Returns the partition information for the requested topic.
* (topics.getPartitions)
*
* @param string $name Required. The topic whose partition information to
* return.
* @param array $optParams Optional parameters.
* @return TopicPartitions
* @throws \Google\Service\Exception
*/
public function getPartitions($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getPartitions', [$params], TopicPartitions::class);
}
/**
* Returns the list of topics for the given project.
* (topics.listAdminProjectsLocationsTopics)
*
* @param string $parent Required. The parent whose topics are to be listed.
* Structured like `projects/{project_number}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of topics to return. The service
* may return fewer than this value. If unset or zero, all topics for the parent
* will be returned.
* @opt_param string pageToken A page token, received from a previous
* `ListTopics` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListTopics` must match the call
* that provided the page token.
* @return ListTopicsResponse
* @throws \Google\Service\Exception
*/
public function listAdminProjectsLocationsTopics($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTopicsResponse::class);
}
/**
* Updates properties of the specified topic. (topics.patch)
*
* @param string $name The name of the topic. Structured like:
* projects/{project_number}/locations/{location}/topics/{topic_id}
* @param Topic $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. A mask specifying the topic fields to
* change.
* @return Topic
* @throws \Google\Service\Exception
*/
public function patch($name, Topic $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Topic::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdminProjectsLocationsTopics::class, 'Google_Service_PubsubLite_Resource_AdminProjectsLocationsTopics');

View File

@@ -0,0 +1,59 @@
<?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\PubsubLite\Resource;
use Google\Service\PubsubLite\ListTopicSubscriptionsResponse;
/**
* The "subscriptions" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $subscriptions = $pubsubliteService->admin_projects_locations_topics_subscriptions;
* </code>
*/
class AdminProjectsLocationsTopicsSubscriptions extends \Google\Service\Resource
{
/**
* Lists the subscriptions attached to the specified topic.
* (subscriptions.listAdminProjectsLocationsTopicsSubscriptions)
*
* @param string $name Required. The name of the topic whose subscriptions to
* list.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of subscriptions to return. The
* service may return fewer than this value. If unset or zero, all subscriptions
* for the given topic will be returned.
* @opt_param string pageToken A page token, received from a previous
* `ListTopicSubscriptions` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListTopicSubscriptions`
* must match the call that provided the page token.
* @return ListTopicSubscriptionsResponse
* @throws \Google\Service\Exception
*/
public function listAdminProjectsLocationsTopicsSubscriptions($name, $optParams = [])
{
$params = ['name' => $name];
$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(AdminProjectsLocationsTopicsSubscriptions::class, 'Google_Service_PubsubLite_Resource_AdminProjectsLocationsTopicsSubscriptions');

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\PubsubLite\Resource;
/**
* The "cursor" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $cursor = $pubsubliteService->cursor;
* </code>
*/
class Cursor extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cursor::class, 'Google_Service_PubsubLite_Resource_Cursor');

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\PubsubLite\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $projects = $pubsubliteService->cursor_projects;
* </code>
*/
class CursorProjects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CursorProjects::class, 'Google_Service_PubsubLite_Resource_CursorProjects');

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\PubsubLite\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $locations = $pubsubliteService->cursor_projects_locations;
* </code>
*/
class CursorProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CursorProjectsLocations::class, 'Google_Service_PubsubLite_Resource_CursorProjectsLocations');

View File

@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite\Resource;
use Google\Service\PubsubLite\CommitCursorRequest;
use Google\Service\PubsubLite\CommitCursorResponse;
/**
* The "subscriptions" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $subscriptions = $pubsubliteService->cursor_projects_locations_subscriptions;
* </code>
*/
class CursorProjectsLocationsSubscriptions extends \Google\Service\Resource
{
/**
* Updates the committed cursor. (subscriptions.commitCursor)
*
* @param string $subscription The subscription for which to update the cursor.
* @param CommitCursorRequest $postBody
* @param array $optParams Optional parameters.
* @return CommitCursorResponse
* @throws \Google\Service\Exception
*/
public function commitCursor($subscription, CommitCursorRequest $postBody, $optParams = [])
{
$params = ['subscription' => $subscription, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('commitCursor', [$params], CommitCursorResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CursorProjectsLocationsSubscriptions::class, 'Google_Service_PubsubLite_Resource_CursorProjectsLocationsSubscriptions');

View File

@@ -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\PubsubLite\Resource;
use Google\Service\PubsubLite\ListPartitionCursorsResponse;
/**
* The "cursors" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $cursors = $pubsubliteService->cursor_projects_locations_subscriptions_cursors;
* </code>
*/
class CursorProjectsLocationsSubscriptionsCursors extends \Google\Service\Resource
{
/**
* Returns all committed cursor information for a subscription.
* (cursors.listCursorProjectsLocationsSubscriptionsCursors)
*
* @param string $parent Required. The subscription for which to retrieve
* cursors. Structured like `projects/{project_number}/locations/{location}/subs
* criptions/{subscription_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of cursors to return. The service
* may return fewer than this value. If unset or zero, all cursors for the
* parent will be returned.
* @opt_param string pageToken A page token, received from a previous
* `ListPartitionCursors` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListPartitionCursors` must
* match the call that provided the page token.
* @return ListPartitionCursorsResponse
* @throws \Google\Service\Exception
*/
public function listCursorProjectsLocationsSubscriptionsCursors($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPartitionCursorsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CursorProjectsLocationsSubscriptionsCursors::class, 'Google_Service_PubsubLite_Resource_CursorProjectsLocationsSubscriptionsCursors');

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\PubsubLite\Resource;
/**
* The "topicStats" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $topicStats = $pubsubliteService->topicStats;
* </code>
*/
class TopicStats extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TopicStats::class, 'Google_Service_PubsubLite_Resource_TopicStats');

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\PubsubLite\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $projects = $pubsubliteService->topicStats_projects;
* </code>
*/
class TopicStatsProjects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TopicStatsProjects::class, 'Google_Service_PubsubLite_Resource_TopicStatsProjects');

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\PubsubLite\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $locations = $pubsubliteService->topicStats_projects_locations;
* </code>
*/
class TopicStatsProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TopicStatsProjectsLocations::class, 'Google_Service_PubsubLite_Resource_TopicStatsProjectsLocations');

View File

@@ -0,0 +1,94 @@
<?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\PubsubLite\Resource;
use Google\Service\PubsubLite\ComputeHeadCursorRequest;
use Google\Service\PubsubLite\ComputeHeadCursorResponse;
use Google\Service\PubsubLite\ComputeMessageStatsRequest;
use Google\Service\PubsubLite\ComputeMessageStatsResponse;
use Google\Service\PubsubLite\ComputeTimeCursorRequest;
use Google\Service\PubsubLite\ComputeTimeCursorResponse;
/**
* The "topics" collection of methods.
* Typical usage is:
* <code>
* $pubsubliteService = new Google\Service\PubsubLite(...);
* $topics = $pubsubliteService->topicStats_projects_locations_topics;
* </code>
*/
class TopicStatsProjectsLocationsTopics extends \Google\Service\Resource
{
/**
* Compute the head cursor for the partition. The head cursor's offset is
* guaranteed to be less than or equal to all messages which have not yet been
* acknowledged as published, and greater than the offset of any message whose
* publish has already been acknowledged. It is zero if there have never been
* messages in the partition. (topics.computeHeadCursor)
*
* @param string $topic Required. The topic for which we should compute the head
* cursor.
* @param ComputeHeadCursorRequest $postBody
* @param array $optParams Optional parameters.
* @return ComputeHeadCursorResponse
* @throws \Google\Service\Exception
*/
public function computeHeadCursor($topic, ComputeHeadCursorRequest $postBody, $optParams = [])
{
$params = ['topic' => $topic, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('computeHeadCursor', [$params], ComputeHeadCursorResponse::class);
}
/**
* Compute statistics about a range of messages in a given topic and partition.
* (topics.computeMessageStats)
*
* @param string $topic Required. The topic for which we should compute message
* stats.
* @param ComputeMessageStatsRequest $postBody
* @param array $optParams Optional parameters.
* @return ComputeMessageStatsResponse
* @throws \Google\Service\Exception
*/
public function computeMessageStats($topic, ComputeMessageStatsRequest $postBody, $optParams = [])
{
$params = ['topic' => $topic, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('computeMessageStats', [$params], ComputeMessageStatsResponse::class);
}
/**
* Compute the corresponding cursor for a publish or event time in a topic
* partition. (topics.computeTimeCursor)
*
* @param string $topic Required. The topic for which we should compute the
* cursor.
* @param ComputeTimeCursorRequest $postBody
* @param array $optParams Optional parameters.
* @return ComputeTimeCursorResponse
* @throws \Google\Service\Exception
*/
public function computeTimeCursor($topic, ComputeTimeCursorRequest $postBody, $optParams = [])
{
$params = ['topic' => $topic, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('computeTimeCursor', [$params], ComputeTimeCursorResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TopicStatsProjectsLocationsTopics::class, 'Google_Service_PubsubLite_Resource_TopicStatsProjectsLocationsTopics');