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,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_PubsubLite_CancelOperationRequest');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class Capacity extends \Google\Model
{
/**
* @var int
*/
public $publishMibPerSec;
/**
* @var int
*/
public $subscribeMibPerSec;
/**
* @param int
*/
public function setPublishMibPerSec($publishMibPerSec)
{
$this->publishMibPerSec = $publishMibPerSec;
}
/**
* @return int
*/
public function getPublishMibPerSec()
{
return $this->publishMibPerSec;
}
/**
* @param int
*/
public function setSubscribeMibPerSec($subscribeMibPerSec)
{
$this->subscribeMibPerSec = $subscribeMibPerSec;
}
/**
* @return int
*/
public function getSubscribeMibPerSec()
{
return $this->subscribeMibPerSec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Capacity::class, 'Google_Service_PubsubLite_Capacity');

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;
class CommitCursorRequest extends \Google\Model
{
protected $cursorType = Cursor::class;
protected $cursorDataType = '';
/**
* @var string
*/
public $partition;
/**
* @param Cursor
*/
public function setCursor(Cursor $cursor)
{
$this->cursor = $cursor;
}
/**
* @return Cursor
*/
public function getCursor()
{
return $this->cursor;
}
/**
* @param string
*/
public function setPartition($partition)
{
$this->partition = $partition;
}
/**
* @return string
*/
public function getPartition()
{
return $this->partition;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommitCursorRequest::class, 'Google_Service_PubsubLite_CommitCursorRequest');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class CommitCursorResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommitCursorResponse::class, 'Google_Service_PubsubLite_CommitCursorResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class ComputeHeadCursorRequest extends \Google\Model
{
/**
* @var string
*/
public $partition;
/**
* @param string
*/
public function setPartition($partition)
{
$this->partition = $partition;
}
/**
* @return string
*/
public function getPartition()
{
return $this->partition;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeHeadCursorRequest::class, 'Google_Service_PubsubLite_ComputeHeadCursorRequest');

View File

@@ -0,0 +1,42 @@
<?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;
class ComputeHeadCursorResponse extends \Google\Model
{
protected $headCursorType = Cursor::class;
protected $headCursorDataType = '';
/**
* @param Cursor
*/
public function setHeadCursor(Cursor $headCursor)
{
$this->headCursor = $headCursor;
}
/**
* @return Cursor
*/
public function getHeadCursor()
{
return $this->headCursor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeHeadCursorResponse::class, 'Google_Service_PubsubLite_ComputeHeadCursorResponse');

View File

@@ -0,0 +1,76 @@
<?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;
class ComputeMessageStatsRequest extends \Google\Model
{
protected $endCursorType = Cursor::class;
protected $endCursorDataType = '';
/**
* @var string
*/
public $partition;
protected $startCursorType = Cursor::class;
protected $startCursorDataType = '';
/**
* @param Cursor
*/
public function setEndCursor(Cursor $endCursor)
{
$this->endCursor = $endCursor;
}
/**
* @return Cursor
*/
public function getEndCursor()
{
return $this->endCursor;
}
/**
* @param string
*/
public function setPartition($partition)
{
$this->partition = $partition;
}
/**
* @return string
*/
public function getPartition()
{
return $this->partition;
}
/**
* @param Cursor
*/
public function setStartCursor(Cursor $startCursor)
{
$this->startCursor = $startCursor;
}
/**
* @return Cursor
*/
public function getStartCursor()
{
return $this->startCursor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeMessageStatsRequest::class, 'Google_Service_PubsubLite_ComputeMessageStatsRequest');

View File

@@ -0,0 +1,98 @@
<?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;
class ComputeMessageStatsResponse extends \Google\Model
{
/**
* @var string
*/
public $messageBytes;
/**
* @var string
*/
public $messageCount;
/**
* @var string
*/
public $minimumEventTime;
/**
* @var string
*/
public $minimumPublishTime;
/**
* @param string
*/
public function setMessageBytes($messageBytes)
{
$this->messageBytes = $messageBytes;
}
/**
* @return string
*/
public function getMessageBytes()
{
return $this->messageBytes;
}
/**
* @param string
*/
public function setMessageCount($messageCount)
{
$this->messageCount = $messageCount;
}
/**
* @return string
*/
public function getMessageCount()
{
return $this->messageCount;
}
/**
* @param string
*/
public function setMinimumEventTime($minimumEventTime)
{
$this->minimumEventTime = $minimumEventTime;
}
/**
* @return string
*/
public function getMinimumEventTime()
{
return $this->minimumEventTime;
}
/**
* @param string
*/
public function setMinimumPublishTime($minimumPublishTime)
{
$this->minimumPublishTime = $minimumPublishTime;
}
/**
* @return string
*/
public function getMinimumPublishTime()
{
return $this->minimumPublishTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeMessageStatsResponse::class, 'Google_Service_PubsubLite_ComputeMessageStatsResponse');

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;
class ComputeTimeCursorRequest extends \Google\Model
{
/**
* @var string
*/
public $partition;
protected $targetType = TimeTarget::class;
protected $targetDataType = '';
/**
* @param string
*/
public function setPartition($partition)
{
$this->partition = $partition;
}
/**
* @return string
*/
public function getPartition()
{
return $this->partition;
}
/**
* @param TimeTarget
*/
public function setTarget(TimeTarget $target)
{
$this->target = $target;
}
/**
* @return TimeTarget
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeTimeCursorRequest::class, 'Google_Service_PubsubLite_ComputeTimeCursorRequest');

View File

@@ -0,0 +1,42 @@
<?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;
class ComputeTimeCursorResponse extends \Google\Model
{
protected $cursorType = Cursor::class;
protected $cursorDataType = '';
/**
* @param Cursor
*/
public function setCursor(Cursor $cursor)
{
$this->cursor = $cursor;
}
/**
* @return Cursor
*/
public function getCursor()
{
return $this->cursor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeTimeCursorResponse::class, 'Google_Service_PubsubLite_ComputeTimeCursorResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class Cursor extends \Google\Model
{
/**
* @var string
*/
public $offset;
/**
* @param string
*/
public function setOffset($offset)
{
$this->offset = $offset;
}
/**
* @return string
*/
public function getOffset()
{
return $this->offset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cursor::class, 'Google_Service_PubsubLite_Cursor');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class DeliveryConfig extends \Google\Model
{
/**
* @var string
*/
public $deliveryRequirement;
/**
* @param string
*/
public function setDeliveryRequirement($deliveryRequirement)
{
$this->deliveryRequirement = $deliveryRequirement;
}
/**
* @return string
*/
public function getDeliveryRequirement()
{
return $this->deliveryRequirement;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeliveryConfig::class, 'Google_Service_PubsubLite_DeliveryConfig');

View File

@@ -0,0 +1,96 @@
<?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;
class ExportConfig extends \Google\Model
{
/**
* @var string
*/
public $currentState;
/**
* @var string
*/
public $deadLetterTopic;
/**
* @var string
*/
public $desiredState;
protected $pubsubConfigType = PubSubConfig::class;
protected $pubsubConfigDataType = '';
/**
* @param string
*/
public function setCurrentState($currentState)
{
$this->currentState = $currentState;
}
/**
* @return string
*/
public function getCurrentState()
{
return $this->currentState;
}
/**
* @param string
*/
public function setDeadLetterTopic($deadLetterTopic)
{
$this->deadLetterTopic = $deadLetterTopic;
}
/**
* @return string
*/
public function getDeadLetterTopic()
{
return $this->deadLetterTopic;
}
/**
* @param string
*/
public function setDesiredState($desiredState)
{
$this->desiredState = $desiredState;
}
/**
* @return string
*/
public function getDesiredState()
{
return $this->desiredState;
}
/**
* @param PubSubConfig
*/
public function setPubsubConfig(PubSubConfig $pubsubConfig)
{
$this->pubsubConfig = $pubsubConfig;
}
/**
* @return PubSubConfig
*/
public function getPubsubConfig()
{
return $this->pubsubConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportConfig::class, 'Google_Service_PubsubLite_ExportConfig');

View File

@@ -0,0 +1,61 @@
<?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;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_PubsubLite_ListOperationsResponse');

View File

@@ -0,0 +1,61 @@
<?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;
class ListPartitionCursorsResponse extends \Google\Collection
{
protected $collection_key = 'partitionCursors';
/**
* @var string
*/
public $nextPageToken;
protected $partitionCursorsType = PartitionCursor::class;
protected $partitionCursorsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param PartitionCursor[]
*/
public function setPartitionCursors($partitionCursors)
{
$this->partitionCursors = $partitionCursors;
}
/**
* @return PartitionCursor[]
*/
public function getPartitionCursors()
{
return $this->partitionCursors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPartitionCursorsResponse::class, 'Google_Service_PubsubLite_ListPartitionCursorsResponse');

View File

@@ -0,0 +1,63 @@
<?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;
class ListReservationTopicsResponse extends \Google\Collection
{
protected $collection_key = 'topics';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $topics;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setTopics($topics)
{
$this->topics = $topics;
}
/**
* @return string[]
*/
public function getTopics()
{
return $this->topics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListReservationTopicsResponse::class, 'Google_Service_PubsubLite_ListReservationTopicsResponse');

View File

@@ -0,0 +1,61 @@
<?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;
class ListReservationsResponse extends \Google\Collection
{
protected $collection_key = 'reservations';
/**
* @var string
*/
public $nextPageToken;
protected $reservationsType = Reservation::class;
protected $reservationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Reservation[]
*/
public function setReservations($reservations)
{
$this->reservations = $reservations;
}
/**
* @return Reservation[]
*/
public function getReservations()
{
return $this->reservations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListReservationsResponse::class, 'Google_Service_PubsubLite_ListReservationsResponse');

View File

@@ -0,0 +1,61 @@
<?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;
class ListSubscriptionsResponse extends \Google\Collection
{
protected $collection_key = 'subscriptions';
/**
* @var string
*/
public $nextPageToken;
protected $subscriptionsType = Subscription::class;
protected $subscriptionsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Subscription[]
*/
public function setSubscriptions($subscriptions)
{
$this->subscriptions = $subscriptions;
}
/**
* @return Subscription[]
*/
public function getSubscriptions()
{
return $this->subscriptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSubscriptionsResponse::class, 'Google_Service_PubsubLite_ListSubscriptionsResponse');

View File

@@ -0,0 +1,63 @@
<?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;
class ListTopicSubscriptionsResponse extends \Google\Collection
{
protected $collection_key = 'subscriptions';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $subscriptions;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setSubscriptions($subscriptions)
{
$this->subscriptions = $subscriptions;
}
/**
* @return string[]
*/
public function getSubscriptions()
{
return $this->subscriptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTopicSubscriptionsResponse::class, 'Google_Service_PubsubLite_ListTopicSubscriptionsResponse');

View File

@@ -0,0 +1,61 @@
<?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;
class ListTopicsResponse extends \Google\Collection
{
protected $collection_key = 'topics';
/**
* @var string
*/
public $nextPageToken;
protected $topicsType = Topic::class;
protected $topicsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Topic[]
*/
public function setTopics($topics)
{
$this->topics = $topics;
}
/**
* @return Topic[]
*/
public function getTopics()
{
return $this->topics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTopicsResponse::class, 'Google_Service_PubsubLite_ListTopicsResponse');

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;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_PubsubLite_Operation');

View File

@@ -0,0 +1,98 @@
<?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;
class OperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_PubsubLite_OperationMetadata');

View File

@@ -0,0 +1,78 @@
<?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;
class PartitionConfig extends \Google\Model
{
protected $capacityType = Capacity::class;
protected $capacityDataType = '';
/**
* @var string
*/
public $count;
/**
* @var int
*/
public $scale;
/**
* @param Capacity
*/
public function setCapacity(Capacity $capacity)
{
$this->capacity = $capacity;
}
/**
* @return Capacity
*/
public function getCapacity()
{
return $this->capacity;
}
/**
* @param string
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* @param int
*/
public function setScale($scale)
{
$this->scale = $scale;
}
/**
* @return int
*/
public function getScale()
{
return $this->scale;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartitionConfig::class, 'Google_Service_PubsubLite_PartitionConfig');

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;
class PartitionCursor extends \Google\Model
{
protected $cursorType = Cursor::class;
protected $cursorDataType = '';
/**
* @var string
*/
public $partition;
/**
* @param Cursor
*/
public function setCursor(Cursor $cursor)
{
$this->cursor = $cursor;
}
/**
* @return Cursor
*/
public function getCursor()
{
return $this->cursor;
}
/**
* @param string
*/
public function setPartition($partition)
{
$this->partition = $partition;
}
/**
* @return string
*/
public function getPartition()
{
return $this->partition;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartitionCursor::class, 'Google_Service_PubsubLite_PartitionCursor');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class PubSubConfig extends \Google\Model
{
/**
* @var string
*/
public $topic;
/**
* @param string
*/
public function setTopic($topic)
{
$this->topic = $topic;
}
/**
* @return string
*/
public function getTopic()
{
return $this->topic;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PubSubConfig::class, 'Google_Service_PubsubLite_PubSubConfig');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class PubsubliteEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PubsubliteEmpty::class, 'Google_Service_PubsubLite_PubsubliteEmpty');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class Reservation extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $throughputCapacity;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setThroughputCapacity($throughputCapacity)
{
$this->throughputCapacity = $throughputCapacity;
}
/**
* @return string
*/
public function getThroughputCapacity()
{
return $this->throughputCapacity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Reservation::class, 'Google_Service_PubsubLite_Reservation');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class ReservationConfig extends \Google\Model
{
/**
* @var string
*/
public $throughputReservation;
/**
* @param string
*/
public function setThroughputReservation($throughputReservation)
{
$this->throughputReservation = $throughputReservation;
}
/**
* @return string
*/
public function getThroughputReservation()
{
return $this->throughputReservation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReservationConfig::class, 'Google_Service_PubsubLite_ReservationConfig');

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');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class RetentionConfig extends \Google\Model
{
/**
* @var string
*/
public $perPartitionBytes;
/**
* @var string
*/
public $period;
/**
* @param string
*/
public function setPerPartitionBytes($perPartitionBytes)
{
$this->perPartitionBytes = $perPartitionBytes;
}
/**
* @return string
*/
public function getPerPartitionBytes()
{
return $this->perPartitionBytes;
}
/**
* @param string
*/
public function setPeriod($period)
{
$this->period = $period;
}
/**
* @return string
*/
public function getPeriod()
{
return $this->period;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RetentionConfig::class, 'Google_Service_PubsubLite_RetentionConfig');

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;
class SeekSubscriptionRequest extends \Google\Model
{
/**
* @var string
*/
public $namedTarget;
protected $timeTargetType = TimeTarget::class;
protected $timeTargetDataType = '';
/**
* @param string
*/
public function setNamedTarget($namedTarget)
{
$this->namedTarget = $namedTarget;
}
/**
* @return string
*/
public function getNamedTarget()
{
return $this->namedTarget;
}
/**
* @param TimeTarget
*/
public function setTimeTarget(TimeTarget $timeTarget)
{
$this->timeTarget = $timeTarget;
}
/**
* @return TimeTarget
*/
public function getTimeTarget()
{
return $this->timeTarget;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SeekSubscriptionRequest::class, 'Google_Service_PubsubLite_SeekSubscriptionRequest');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class SeekSubscriptionResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SeekSubscriptionResponse::class, 'Google_Service_PubsubLite_SeekSubscriptionResponse');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_PubsubLite_Status');

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;
class Subscription extends \Google\Model
{
protected $deliveryConfigType = DeliveryConfig::class;
protected $deliveryConfigDataType = '';
protected $exportConfigType = ExportConfig::class;
protected $exportConfigDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $topic;
/**
* @param DeliveryConfig
*/
public function setDeliveryConfig(DeliveryConfig $deliveryConfig)
{
$this->deliveryConfig = $deliveryConfig;
}
/**
* @return DeliveryConfig
*/
public function getDeliveryConfig()
{
return $this->deliveryConfig;
}
/**
* @param ExportConfig
*/
public function setExportConfig(ExportConfig $exportConfig)
{
$this->exportConfig = $exportConfig;
}
/**
* @return ExportConfig
*/
public function getExportConfig()
{
return $this->exportConfig;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setTopic($topic)
{
$this->topic = $topic;
}
/**
* @return string
*/
public function getTopic()
{
return $this->topic;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Subscription::class, 'Google_Service_PubsubLite_Subscription');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class TimeTarget extends \Google\Model
{
/**
* @var string
*/
public $eventTime;
/**
* @var string
*/
public $publishTime;
/**
* @param string
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* @param string
*/
public function setPublishTime($publishTime)
{
$this->publishTime = $publishTime;
}
/**
* @return string
*/
public function getPublishTime()
{
return $this->publishTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimeTarget::class, 'Google_Service_PubsubLite_TimeTarget');

View File

@@ -0,0 +1,92 @@
<?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;
class Topic extends \Google\Model
{
/**
* @var string
*/
public $name;
protected $partitionConfigType = PartitionConfig::class;
protected $partitionConfigDataType = '';
protected $reservationConfigType = ReservationConfig::class;
protected $reservationConfigDataType = '';
protected $retentionConfigType = RetentionConfig::class;
protected $retentionConfigDataType = '';
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param PartitionConfig
*/
public function setPartitionConfig(PartitionConfig $partitionConfig)
{
$this->partitionConfig = $partitionConfig;
}
/**
* @return PartitionConfig
*/
public function getPartitionConfig()
{
return $this->partitionConfig;
}
/**
* @param ReservationConfig
*/
public function setReservationConfig(ReservationConfig $reservationConfig)
{
$this->reservationConfig = $reservationConfig;
}
/**
* @return ReservationConfig
*/
public function getReservationConfig()
{
return $this->reservationConfig;
}
/**
* @param RetentionConfig
*/
public function setRetentionConfig(RetentionConfig $retentionConfig)
{
$this->retentionConfig = $retentionConfig;
}
/**
* @return RetentionConfig
*/
public function getRetentionConfig()
{
return $this->retentionConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Topic::class, 'Google_Service_PubsubLite_Topic');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PubsubLite;
class TopicPartitions extends \Google\Model
{
/**
* @var string
*/
public $partitionCount;
/**
* @param string
*/
public function setPartitionCount($partitionCount)
{
$this->partitionCount = $partitionCount;
}
/**
* @return string
*/
public function getPartitionCount()
{
return $this->partitionCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TopicPartitions::class, 'Google_Service_PubsubLite_TopicPartitions');