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

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\Pubsub;
class AnalyticsHubSubscriptionInfo extends \Google\Model
{
/**
* @var string
*/
public $listing;
/**
* @var string
*/
public $subscription;
/**
* @param string
*/
public function setListing($listing)
{
$this->listing = $listing;
}
/**
* @return string
*/
public function getListing()
{
return $this->listing;
}
/**
* @param string
*/
public function setSubscription($subscription)
{
$this->subscription = $subscription;
}
/**
* @return string
*/
public function getSubscription()
{
return $this->subscription;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyticsHubSubscriptionInfo::class, 'Google_Service_Pubsub_AnalyticsHubSubscriptionInfo');

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\Pubsub;
class AvroConfig extends \Google\Model
{
/**
* @var bool
*/
public $useTopicSchema;
/**
* @var bool
*/
public $writeMetadata;
/**
* @param bool
*/
public function setUseTopicSchema($useTopicSchema)
{
$this->useTopicSchema = $useTopicSchema;
}
/**
* @return bool
*/
public function getUseTopicSchema()
{
return $this->useTopicSchema;
}
/**
* @param bool
*/
public function setWriteMetadata($writeMetadata)
{
$this->writeMetadata = $writeMetadata;
}
/**
* @return bool
*/
public function getWriteMetadata()
{
return $this->writeMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AvroConfig::class, 'Google_Service_Pubsub_AvroConfig');

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

View File

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

View File

@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub;
class BigQueryConfig extends \Google\Model
{
/**
* @var bool
*/
public $dropUnknownFields;
/**
* @var string
*/
public $serviceAccountEmail;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $table;
/**
* @var bool
*/
public $useTableSchema;
/**
* @var bool
*/
public $useTopicSchema;
/**
* @var bool
*/
public $writeMetadata;
/**
* @param bool
*/
public function setDropUnknownFields($dropUnknownFields)
{
$this->dropUnknownFields = $dropUnknownFields;
}
/**
* @return bool
*/
public function getDropUnknownFields()
{
return $this->dropUnknownFields;
}
/**
* @param string
*/
public function setServiceAccountEmail($serviceAccountEmail)
{
$this->serviceAccountEmail = $serviceAccountEmail;
}
/**
* @return string
*/
public function getServiceAccountEmail()
{
return $this->serviceAccountEmail;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setTable($table)
{
$this->table = $table;
}
/**
* @return string
*/
public function getTable()
{
return $this->table;
}
/**
* @param bool
*/
public function setUseTableSchema($useTableSchema)
{
$this->useTableSchema = $useTableSchema;
}
/**
* @return bool
*/
public function getUseTableSchema()
{
return $this->useTableSchema;
}
/**
* @param bool
*/
public function setUseTopicSchema($useTopicSchema)
{
$this->useTopicSchema = $useTopicSchema;
}
/**
* @return bool
*/
public function getUseTopicSchema()
{
return $this->useTopicSchema;
}
/**
* @param bool
*/
public function setWriteMetadata($writeMetadata)
{
$this->writeMetadata = $writeMetadata;
}
/**
* @return bool
*/
public function getWriteMetadata()
{
return $this->writeMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigQueryConfig::class, 'Google_Service_Pubsub_BigQueryConfig');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_Pubsub_Binding');

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\Pubsub;
class CloudStorage extends \Google\Model
{
protected $avroFormatType = AvroFormat::class;
protected $avroFormatDataType = '';
/**
* @var string
*/
public $bucket;
/**
* @var string
*/
public $matchGlob;
/**
* @var string
*/
public $minimumObjectCreateTime;
protected $pubsubAvroFormatType = PubSubAvroFormat::class;
protected $pubsubAvroFormatDataType = '';
/**
* @var string
*/
public $state;
protected $textFormatType = TextFormat::class;
protected $textFormatDataType = '';
/**
* @param AvroFormat
*/
public function setAvroFormat(AvroFormat $avroFormat)
{
$this->avroFormat = $avroFormat;
}
/**
* @return AvroFormat
*/
public function getAvroFormat()
{
return $this->avroFormat;
}
/**
* @param string
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* @param string
*/
public function setMatchGlob($matchGlob)
{
$this->matchGlob = $matchGlob;
}
/**
* @return string
*/
public function getMatchGlob()
{
return $this->matchGlob;
}
/**
* @param string
*/
public function setMinimumObjectCreateTime($minimumObjectCreateTime)
{
$this->minimumObjectCreateTime = $minimumObjectCreateTime;
}
/**
* @return string
*/
public function getMinimumObjectCreateTime()
{
return $this->minimumObjectCreateTime;
}
/**
* @param PubSubAvroFormat
*/
public function setPubsubAvroFormat(PubSubAvroFormat $pubsubAvroFormat)
{
$this->pubsubAvroFormat = $pubsubAvroFormat;
}
/**
* @return PubSubAvroFormat
*/
public function getPubsubAvroFormat()
{
return $this->pubsubAvroFormat;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param TextFormat
*/
public function setTextFormat(TextFormat $textFormat)
{
$this->textFormat = $textFormat;
}
/**
* @return TextFormat
*/
public function getTextFormat()
{
return $this->textFormat;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudStorage::class, 'Google_Service_Pubsub_CloudStorage');

View File

@@ -0,0 +1,220 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub;
class CloudStorageConfig extends \Google\Model
{
protected $avroConfigType = AvroConfig::class;
protected $avroConfigDataType = '';
/**
* @var string
*/
public $bucket;
/**
* @var string
*/
public $filenameDatetimeFormat;
/**
* @var string
*/
public $filenamePrefix;
/**
* @var string
*/
public $filenameSuffix;
/**
* @var string
*/
public $maxBytes;
/**
* @var string
*/
public $maxDuration;
/**
* @var string
*/
public $maxMessages;
/**
* @var string
*/
public $serviceAccountEmail;
/**
* @var string
*/
public $state;
protected $textConfigType = TextConfig::class;
protected $textConfigDataType = '';
/**
* @param AvroConfig
*/
public function setAvroConfig(AvroConfig $avroConfig)
{
$this->avroConfig = $avroConfig;
}
/**
* @return AvroConfig
*/
public function getAvroConfig()
{
return $this->avroConfig;
}
/**
* @param string
*/
public function setBucket($bucket)
{
$this->bucket = $bucket;
}
/**
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* @param string
*/
public function setFilenameDatetimeFormat($filenameDatetimeFormat)
{
$this->filenameDatetimeFormat = $filenameDatetimeFormat;
}
/**
* @return string
*/
public function getFilenameDatetimeFormat()
{
return $this->filenameDatetimeFormat;
}
/**
* @param string
*/
public function setFilenamePrefix($filenamePrefix)
{
$this->filenamePrefix = $filenamePrefix;
}
/**
* @return string
*/
public function getFilenamePrefix()
{
return $this->filenamePrefix;
}
/**
* @param string
*/
public function setFilenameSuffix($filenameSuffix)
{
$this->filenameSuffix = $filenameSuffix;
}
/**
* @return string
*/
public function getFilenameSuffix()
{
return $this->filenameSuffix;
}
/**
* @param string
*/
public function setMaxBytes($maxBytes)
{
$this->maxBytes = $maxBytes;
}
/**
* @return string
*/
public function getMaxBytes()
{
return $this->maxBytes;
}
/**
* @param string
*/
public function setMaxDuration($maxDuration)
{
$this->maxDuration = $maxDuration;
}
/**
* @return string
*/
public function getMaxDuration()
{
return $this->maxDuration;
}
/**
* @param string
*/
public function setMaxMessages($maxMessages)
{
$this->maxMessages = $maxMessages;
}
/**
* @return string
*/
public function getMaxMessages()
{
return $this->maxMessages;
}
/**
* @param string
*/
public function setServiceAccountEmail($serviceAccountEmail)
{
$this->serviceAccountEmail = $serviceAccountEmail;
}
/**
* @return string
*/
public function getServiceAccountEmail()
{
return $this->serviceAccountEmail;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param TextConfig
*/
public function setTextConfig(TextConfig $textConfig)
{
$this->textConfig = $textConfig;
}
/**
* @return TextConfig
*/
public function getTextConfig()
{
return $this->textConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudStorageConfig::class, 'Google_Service_Pubsub_CloudStorageConfig');

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\Pubsub;
class CommitSchemaRequest extends \Google\Model
{
protected $schemaType = Schema::class;
protected $schemaDataType = '';
/**
* @param Schema
*/
public function setSchema(Schema $schema)
{
$this->schema = $schema;
}
/**
* @return Schema
*/
public function getSchema()
{
return $this->schema;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommitSchemaRequest::class, 'Google_Service_Pubsub_CommitSchemaRequest');

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\Pubsub;
class CreateSnapshotRequest extends \Google\Model
{
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $subscription;
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setSubscription($subscription)
{
$this->subscription = $subscription;
}
/**
* @return string
*/
public function getSubscription()
{
return $this->subscription;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateSnapshotRequest::class, 'Google_Service_Pubsub_CreateSnapshotRequest');

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\Pubsub;
class DeadLetterPolicy extends \Google\Model
{
/**
* @var string
*/
public $deadLetterTopic;
/**
* @var int
*/
public $maxDeliveryAttempts;
/**
* @param string
*/
public function setDeadLetterTopic($deadLetterTopic)
{
$this->deadLetterTopic = $deadLetterTopic;
}
/**
* @return string
*/
public function getDeadLetterTopic()
{
return $this->deadLetterTopic;
}
/**
* @param int
*/
public function setMaxDeliveryAttempts($maxDeliveryAttempts)
{
$this->maxDeliveryAttempts = $maxDeliveryAttempts;
}
/**
* @return int
*/
public function getMaxDeliveryAttempts()
{
return $this->maxDeliveryAttempts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeadLetterPolicy::class, 'Google_Service_Pubsub_DeadLetterPolicy');

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

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\Pubsub;
class ExpirationPolicy extends \Google\Model
{
/**
* @var string
*/
public $ttl;
/**
* @param string
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExpirationPolicy::class, 'Google_Service_Pubsub_ExpirationPolicy');

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\Pubsub;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_Pubsub_Expr');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub;
class IngestionDataSourceSettings extends \Google\Model
{
protected $awsKinesisType = AwsKinesis::class;
protected $awsKinesisDataType = '';
protected $cloudStorageType = CloudStorage::class;
protected $cloudStorageDataType = '';
protected $platformLogsSettingsType = PlatformLogsSettings::class;
protected $platformLogsSettingsDataType = '';
/**
* @param AwsKinesis
*/
public function setAwsKinesis(AwsKinesis $awsKinesis)
{
$this->awsKinesis = $awsKinesis;
}
/**
* @return AwsKinesis
*/
public function getAwsKinesis()
{
return $this->awsKinesis;
}
/**
* @param CloudStorage
*/
public function setCloudStorage(CloudStorage $cloudStorage)
{
$this->cloudStorage = $cloudStorage;
}
/**
* @return CloudStorage
*/
public function getCloudStorage()
{
return $this->cloudStorage;
}
/**
* @param PlatformLogsSettings
*/
public function setPlatformLogsSettings(PlatformLogsSettings $platformLogsSettings)
{
$this->platformLogsSettings = $platformLogsSettings;
}
/**
* @return PlatformLogsSettings
*/
public function getPlatformLogsSettings()
{
return $this->platformLogsSettings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IngestionDataSourceSettings::class, 'Google_Service_Pubsub_IngestionDataSourceSettings');

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\Pubsub;
class ListSchemaRevisionsResponse extends \Google\Collection
{
protected $collection_key = 'schemas';
/**
* @var string
*/
public $nextPageToken;
protected $schemasType = Schema::class;
protected $schemasDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Schema[]
*/
public function setSchemas($schemas)
{
$this->schemas = $schemas;
}
/**
* @return Schema[]
*/
public function getSchemas()
{
return $this->schemas;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSchemaRevisionsResponse::class, 'Google_Service_Pubsub_ListSchemaRevisionsResponse');

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\Pubsub;
class ListSchemasResponse extends \Google\Collection
{
protected $collection_key = 'schemas';
/**
* @var string
*/
public $nextPageToken;
protected $schemasType = Schema::class;
protected $schemasDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Schema[]
*/
public function setSchemas($schemas)
{
$this->schemas = $schemas;
}
/**
* @return Schema[]
*/
public function getSchemas()
{
return $this->schemas;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSchemasResponse::class, 'Google_Service_Pubsub_ListSchemasResponse');

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\Pubsub;
class ListSnapshotsResponse extends \Google\Collection
{
protected $collection_key = 'snapshots';
/**
* @var string
*/
public $nextPageToken;
protected $snapshotsType = Snapshot::class;
protected $snapshotsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Snapshot[]
*/
public function setSnapshots($snapshots)
{
$this->snapshots = $snapshots;
}
/**
* @return Snapshot[]
*/
public function getSnapshots()
{
return $this->snapshots;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSnapshotsResponse::class, 'Google_Service_Pubsub_ListSnapshotsResponse');

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\Pubsub;
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_Pubsub_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\Pubsub;
class ListTopicSnapshotsResponse extends \Google\Collection
{
protected $collection_key = 'snapshots';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $snapshots;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setSnapshots($snapshots)
{
$this->snapshots = $snapshots;
}
/**
* @return string[]
*/
public function getSnapshots()
{
return $this->snapshots;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTopicSnapshotsResponse::class, 'Google_Service_Pubsub_ListTopicSnapshotsResponse');

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\Pubsub;
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_Pubsub_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\Pubsub;
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_Pubsub_ListTopicsResponse');

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\Pubsub;
class MessageStoragePolicy extends \Google\Collection
{
protected $collection_key = 'allowedPersistenceRegions';
/**
* @var string[]
*/
public $allowedPersistenceRegions;
/**
* @var bool
*/
public $enforceInTransit;
/**
* @param string[]
*/
public function setAllowedPersistenceRegions($allowedPersistenceRegions)
{
$this->allowedPersistenceRegions = $allowedPersistenceRegions;
}
/**
* @return string[]
*/
public function getAllowedPersistenceRegions()
{
return $this->allowedPersistenceRegions;
}
/**
* @param bool
*/
public function setEnforceInTransit($enforceInTransit)
{
$this->enforceInTransit = $enforceInTransit;
}
/**
* @return bool
*/
public function getEnforceInTransit()
{
return $this->enforceInTransit;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MessageStoragePolicy::class, 'Google_Service_Pubsub_MessageStoragePolicy');

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\Pubsub;
class ModifyAckDeadlineRequest extends \Google\Collection
{
protected $collection_key = 'ackIds';
/**
* @var int
*/
public $ackDeadlineSeconds;
/**
* @var string[]
*/
public $ackIds;
/**
* @param int
*/
public function setAckDeadlineSeconds($ackDeadlineSeconds)
{
$this->ackDeadlineSeconds = $ackDeadlineSeconds;
}
/**
* @return int
*/
public function getAckDeadlineSeconds()
{
return $this->ackDeadlineSeconds;
}
/**
* @param string[]
*/
public function setAckIds($ackIds)
{
$this->ackIds = $ackIds;
}
/**
* @return string[]
*/
public function getAckIds()
{
return $this->ackIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ModifyAckDeadlineRequest::class, 'Google_Service_Pubsub_ModifyAckDeadlineRequest');

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\Pubsub;
class ModifyPushConfigRequest extends \Google\Model
{
protected $pushConfigType = PushConfig::class;
protected $pushConfigDataType = '';
/**
* @param PushConfig
*/
public function setPushConfig(PushConfig $pushConfig)
{
$this->pushConfig = $pushConfig;
}
/**
* @return PushConfig
*/
public function getPushConfig()
{
return $this->pushConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ModifyPushConfigRequest::class, 'Google_Service_Pubsub_ModifyPushConfigRequest');

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\Pubsub;
class NoWrapper extends \Google\Model
{
/**
* @var bool
*/
public $writeMetadata;
/**
* @param bool
*/
public function setWriteMetadata($writeMetadata)
{
$this->writeMetadata = $writeMetadata;
}
/**
* @return bool
*/
public function getWriteMetadata()
{
return $this->writeMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NoWrapper::class, 'Google_Service_Pubsub_NoWrapper');

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\Pubsub;
class OidcToken extends \Google\Model
{
/**
* @var string
*/
public $audience;
/**
* @var string
*/
public $serviceAccountEmail;
/**
* @param string
*/
public function setAudience($audience)
{
$this->audience = $audience;
}
/**
* @return string
*/
public function getAudience()
{
return $this->audience;
}
/**
* @param string
*/
public function setServiceAccountEmail($serviceAccountEmail)
{
$this->serviceAccountEmail = $serviceAccountEmail;
}
/**
* @return string
*/
public function getServiceAccountEmail()
{
return $this->serviceAccountEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OidcToken::class, 'Google_Service_Pubsub_OidcToken');

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\Pubsub;
class PlatformLogsSettings extends \Google\Model
{
/**
* @var string
*/
public $severity;
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlatformLogsSettings::class, 'Google_Service_Pubsub_PlatformLogsSettings');

View File

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

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

View File

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

View File

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

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

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub;
class PubsubMessage extends \Google\Model
{
/**
* @var string[]
*/
public $attributes;
/**
* @var string
*/
public $data;
/**
* @var string
*/
public $messageId;
/**
* @var string
*/
public $orderingKey;
/**
* @var string
*/
public $publishTime;
/**
* @param string[]
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return string[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* @param string
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* @param string
*/
public function setMessageId($messageId)
{
$this->messageId = $messageId;
}
/**
* @return string
*/
public function getMessageId()
{
return $this->messageId;
}
/**
* @param string
*/
public function setOrderingKey($orderingKey)
{
$this->orderingKey = $orderingKey;
}
/**
* @return string
*/
public function getOrderingKey()
{
return $this->orderingKey;
}
/**
* @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(PubsubMessage::class, 'Google_Service_Pubsub_PubsubMessage');

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

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\Pubsub;
class PullRequest extends \Google\Model
{
/**
* @var int
*/
public $maxMessages;
/**
* @var bool
*/
public $returnImmediately;
/**
* @param int
*/
public function setMaxMessages($maxMessages)
{
$this->maxMessages = $maxMessages;
}
/**
* @return int
*/
public function getMaxMessages()
{
return $this->maxMessages;
}
/**
* @param bool
*/
public function setReturnImmediately($returnImmediately)
{
$this->returnImmediately = $returnImmediately;
}
/**
* @return bool
*/
public function getReturnImmediately()
{
return $this->returnImmediately;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PullRequest::class, 'Google_Service_Pubsub_PullRequest');

View File

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

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub;
class PushConfig extends \Google\Model
{
/**
* @var string[]
*/
public $attributes;
protected $noWrapperType = NoWrapper::class;
protected $noWrapperDataType = '';
protected $oidcTokenType = OidcToken::class;
protected $oidcTokenDataType = '';
protected $pubsubWrapperType = PubsubWrapper::class;
protected $pubsubWrapperDataType = '';
/**
* @var string
*/
public $pushEndpoint;
/**
* @param string[]
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return string[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* @param NoWrapper
*/
public function setNoWrapper(NoWrapper $noWrapper)
{
$this->noWrapper = $noWrapper;
}
/**
* @return NoWrapper
*/
public function getNoWrapper()
{
return $this->noWrapper;
}
/**
* @param OidcToken
*/
public function setOidcToken(OidcToken $oidcToken)
{
$this->oidcToken = $oidcToken;
}
/**
* @return OidcToken
*/
public function getOidcToken()
{
return $this->oidcToken;
}
/**
* @param PubsubWrapper
*/
public function setPubsubWrapper(PubsubWrapper $pubsubWrapper)
{
$this->pubsubWrapper = $pubsubWrapper;
}
/**
* @return PubsubWrapper
*/
public function getPubsubWrapper()
{
return $this->pubsubWrapper;
}
/**
* @param string
*/
public function setPushEndpoint($pushEndpoint)
{
$this->pushEndpoint = $pushEndpoint;
}
/**
* @return string
*/
public function getPushEndpoint()
{
return $this->pushEndpoint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PushConfig::class, 'Google_Service_Pubsub_PushConfig');

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\Pubsub;
class ReceivedMessage extends \Google\Model
{
/**
* @var string
*/
public $ackId;
/**
* @var int
*/
public $deliveryAttempt;
protected $messageType = PubsubMessage::class;
protected $messageDataType = '';
/**
* @param string
*/
public function setAckId($ackId)
{
$this->ackId = $ackId;
}
/**
* @return string
*/
public function getAckId()
{
return $this->ackId;
}
/**
* @param int
*/
public function setDeliveryAttempt($deliveryAttempt)
{
$this->deliveryAttempt = $deliveryAttempt;
}
/**
* @return int
*/
public function getDeliveryAttempt()
{
return $this->deliveryAttempt;
}
/**
* @param PubsubMessage
*/
public function setMessage(PubsubMessage $message)
{
$this->message = $message;
}
/**
* @return PubsubMessage
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReceivedMessage::class, 'Google_Service_Pubsub_ReceivedMessage');

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

View File

@@ -0,0 +1,304 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub\Resource;
use Google\Service\Pubsub\CommitSchemaRequest;
use Google\Service\Pubsub\ListSchemaRevisionsResponse;
use Google\Service\Pubsub\ListSchemasResponse;
use Google\Service\Pubsub\Policy;
use Google\Service\Pubsub\PubsubEmpty;
use Google\Service\Pubsub\RollbackSchemaRequest;
use Google\Service\Pubsub\Schema;
use Google\Service\Pubsub\SetIamPolicyRequest;
use Google\Service\Pubsub\TestIamPermissionsRequest;
use Google\Service\Pubsub\TestIamPermissionsResponse;
use Google\Service\Pubsub\ValidateMessageRequest;
use Google\Service\Pubsub\ValidateMessageResponse;
use Google\Service\Pubsub\ValidateSchemaRequest;
use Google\Service\Pubsub\ValidateSchemaResponse;
/**
* The "schemas" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $schemas = $pubsubService->projects_schemas;
* </code>
*/
class ProjectsSchemas extends \Google\Service\Resource
{
/**
* Commits a new schema revision to an existing schema. (schemas.commit)
*
* @param string $name Required. The name of the schema we are revising. Format
* is `projects/{project}/schemas/{schema}`.
* @param CommitSchemaRequest $postBody
* @param array $optParams Optional parameters.
* @return Schema
* @throws \Google\Service\Exception
*/
public function commit($name, CommitSchemaRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('commit', [$params], Schema::class);
}
/**
* Creates a schema. (schemas.create)
*
* @param string $parent Required. The name of the project in which to create
* the schema. Format is `projects/{project-id}`.
* @param Schema $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string schemaId The ID to use for the schema, which will become
* the final component of the schema's resource name. See
* https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for
* resource name constraints.
* @return Schema
* @throws \Google\Service\Exception
*/
public function create($parent, Schema $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Schema::class);
}
/**
* Deletes a schema. (schemas.delete)
*
* @param string $name Required. Name of the schema to delete. Format is
* `projects/{project}/schemas/{schema}`.
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PubsubEmpty::class);
}
/**
* Deletes a specific schema revision. (schemas.deleteRevision)
*
* @param string $name Required. The name of the schema revision to be deleted,
* with a revision ID explicitly included. Example: `projects/123/schemas/my-
* schema@c7cfa2a8`
* @param array $optParams Optional parameters.
*
* @opt_param string revisionId Optional. This field is deprecated and should
* not be used for specifying the revision ID. The revision ID should be
* specified via the `name` parameter.
* @return Schema
* @throws \Google\Service\Exception
*/
public function deleteRevision($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('deleteRevision', [$params], Schema::class);
}
/**
* Gets a schema. (schemas.get)
*
* @param string $name Required. The name of the schema to get. Format is
* `projects/{project}/schemas/{schema}`.
* @param array $optParams Optional parameters.
*
* @opt_param string view The set of fields to return in the response. If not
* set, returns a Schema with all fields filled out. Set to `BASIC` to omit the
* `definition`.
* @return Schema
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Schema::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (schemas.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists schemas in a project. (schemas.listProjectsSchemas)
*
* @param string $parent Required. The name of the project in which to list
* schemas. Format is `projects/{project-id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of schemas to return.
* @opt_param string pageToken The value returned by the last
* `ListSchemasResponse`; indicates that this is a continuation of a prior
* `ListSchemas` call, and that the system should return the next page of data.
* @opt_param string view The set of Schema fields to return in the response. If
* not set, returns Schemas with `name` and `type`, but not `definition`. Set to
* `FULL` to retrieve all fields.
* @return ListSchemasResponse
* @throws \Google\Service\Exception
*/
public function listProjectsSchemas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSchemasResponse::class);
}
/**
* Lists all schema revisions for the named schema. (schemas.listRevisions)
*
* @param string $name Required. The name of the schema to list revisions for.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of revisions to return per page.
* @opt_param string pageToken The page token, received from a previous
* ListSchemaRevisions call. Provide this to retrieve the subsequent page.
* @opt_param string view The set of Schema fields to return in the response. If
* not set, returns Schemas with `name` and `type`, but not `definition`. Set to
* `FULL` to retrieve all fields.
* @return ListSchemaRevisionsResponse
* @throws \Google\Service\Exception
*/
public function listRevisions($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('listRevisions', [$params], ListSchemaRevisionsResponse::class);
}
/**
* Creates a new schema revision that is a copy of the provided revision_id.
* (schemas.rollback)
*
* @param string $name Required. The schema being rolled back with revision id.
* @param RollbackSchemaRequest $postBody
* @param array $optParams Optional parameters.
* @return Schema
* @throws \Google\Service\Exception
*/
public function rollback($name, RollbackSchemaRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rollback', [$params], Schema::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (schemas.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (schemas.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
/**
* Validates a schema. (schemas.validate)
*
* @param string $parent Required. The name of the project in which to validate
* schemas. Format is `projects/{project-id}`.
* @param ValidateSchemaRequest $postBody
* @param array $optParams Optional parameters.
* @return ValidateSchemaResponse
* @throws \Google\Service\Exception
*/
public function validate($parent, ValidateSchemaRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('validate', [$params], ValidateSchemaResponse::class);
}
/**
* Validates a message against a schema. (schemas.validateMessage)
*
* @param string $parent Required. The name of the project in which to validate
* schemas. Format is `projects/{project-id}`.
* @param ValidateMessageRequest $postBody
* @param array $optParams Optional parameters.
* @return ValidateMessageResponse
* @throws \Google\Service\Exception
*/
public function validateMessage($parent, ValidateMessageRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('validateMessage', [$params], ValidateMessageResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsSchemas::class, 'Google_Service_Pubsub_Resource_ProjectsSchemas');

View File

@@ -0,0 +1,238 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub\Resource;
use Google\Service\Pubsub\CreateSnapshotRequest;
use Google\Service\Pubsub\ListSnapshotsResponse;
use Google\Service\Pubsub\Policy;
use Google\Service\Pubsub\PubsubEmpty;
use Google\Service\Pubsub\SetIamPolicyRequest;
use Google\Service\Pubsub\Snapshot;
use Google\Service\Pubsub\TestIamPermissionsRequest;
use Google\Service\Pubsub\TestIamPermissionsResponse;
use Google\Service\Pubsub\UpdateSnapshotRequest;
/**
* The "snapshots" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $snapshots = $pubsubService->projects_snapshots;
* </code>
*/
class ProjectsSnapshots extends \Google\Service\Resource
{
/**
* Creates a snapshot from the requested subscription. Snapshots are used in
* [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
* which allow you to manage message acknowledgments in bulk. That is, you can
* set the acknowledgment state of messages in an existing subscription to the
* state captured by a snapshot. If the snapshot already exists, returns
* `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns
* `NOT_FOUND`. If the backlog in the subscription is too old -- and the
* resulting snapshot would expire in less than 1 hour -- then
* `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field.
* If the name is not provided in the request, the server will assign a random
* name for this snapshot on the same project as the subscription, conforming to
* the [resource name format] (https://cloud.google.com/pubsub/docs/pubsub-
* basics#resource_names). The generated name is populated in the returned
* Snapshot object. Note that for REST API requests, you must specify a name in
* the request. (snapshots.create)
*
* @param string $name Required. User-provided name for this snapshot. If the
* name is not provided in the request, the server will assign a random name for
* this snapshot on the same project as the subscription. Note that for REST API
* requests, you must specify a name. See the [resource name
* rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
* Format is `projects/{project}/snapshots/{snap}`.
* @param CreateSnapshotRequest $postBody
* @param array $optParams Optional parameters.
* @return Snapshot
* @throws \Google\Service\Exception
*/
public function create($name, CreateSnapshotRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Snapshot::class);
}
/**
* Removes an existing snapshot. Snapshots are used in [Seek]
* (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
* allow you to manage message acknowledgments in bulk. That is, you can set the
* acknowledgment state of messages in an existing subscription to the state
* captured by a snapshot. When the snapshot is deleted, all messages retained
* in the snapshot are immediately dropped. After a snapshot is deleted, a new
* one may be created with the same name, but the new one has no association
* with the old snapshot or its subscription, unless the same subscription is
* specified. (snapshots.delete)
*
* @param string $snapshot Required. The name of the snapshot to delete. Format
* is `projects/{project}/snapshots/{snap}`.
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function delete($snapshot, $optParams = [])
{
$params = ['snapshot' => $snapshot];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PubsubEmpty::class);
}
/**
* Gets the configuration details of a snapshot. Snapshots are used in
* [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
* which allow you to manage message acknowledgments in bulk. That is, you can
* set the acknowledgment state of messages in an existing subscription to the
* state captured by a snapshot. (snapshots.get)
*
* @param string $snapshot Required. The name of the snapshot to get. Format is
* `projects/{project}/snapshots/{snap}`.
* @param array $optParams Optional parameters.
* @return Snapshot
* @throws \Google\Service\Exception
*/
public function get($snapshot, $optParams = [])
{
$params = ['snapshot' => $snapshot];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Snapshot::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (snapshots.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists the existing snapshots. Snapshots are used in [Seek](
* https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow
* you to manage message acknowledgments in bulk. That is, you can set the
* acknowledgment state of messages in an existing subscription to the state
* captured by a snapshot. (snapshots.listProjectsSnapshots)
*
* @param string $project Required. The name of the project in which to list
* snapshots. Format is `projects/{project-id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of snapshots to return.
* @opt_param string pageToken Optional. The value returned by the last
* `ListSnapshotsResponse`; indicates that this is a continuation of a prior
* `ListSnapshots` call, and that the system should return the next page of
* data.
* @return ListSnapshotsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsSnapshots($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSnapshotsResponse::class);
}
/**
* Updates an existing snapshot by updating the fields specified in the update
* mask. Snapshots are used in
* [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
* which allow you to manage message acknowledgments in bulk. That is, you can
* set the acknowledgment state of messages in an existing subscription to the
* state captured by a snapshot. (snapshots.patch)
*
* @param string $name Optional. The name of the snapshot.
* @param UpdateSnapshotRequest $postBody
* @param array $optParams Optional parameters.
* @return Snapshot
* @throws \Google\Service\Exception
*/
public function patch($name, UpdateSnapshotRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Snapshot::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (snapshots.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (snapshots.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsSnapshots::class, 'Google_Service_Pubsub_Resource_ProjectsSnapshots');

View File

@@ -0,0 +1,348 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub\Resource;
use Google\Service\Pubsub\AcknowledgeRequest;
use Google\Service\Pubsub\DetachSubscriptionResponse;
use Google\Service\Pubsub\ListSubscriptionsResponse;
use Google\Service\Pubsub\ModifyAckDeadlineRequest;
use Google\Service\Pubsub\ModifyPushConfigRequest;
use Google\Service\Pubsub\Policy;
use Google\Service\Pubsub\PubsubEmpty;
use Google\Service\Pubsub\PullRequest;
use Google\Service\Pubsub\PullResponse;
use Google\Service\Pubsub\SeekRequest;
use Google\Service\Pubsub\SeekResponse;
use Google\Service\Pubsub\SetIamPolicyRequest;
use Google\Service\Pubsub\Subscription;
use Google\Service\Pubsub\TestIamPermissionsRequest;
use Google\Service\Pubsub\TestIamPermissionsResponse;
use Google\Service\Pubsub\UpdateSubscriptionRequest;
/**
* The "subscriptions" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $subscriptions = $pubsubService->projects_subscriptions;
* </code>
*/
class ProjectsSubscriptions extends \Google\Service\Resource
{
/**
* Acknowledges the messages associated with the `ack_ids` in the
* `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
* from the subscription. Acknowledging a message whose ack deadline has expired
* may succeed, but such a message may be redelivered later. Acknowledging a
* message more than once will not result in an error.
* (subscriptions.acknowledge)
*
* @param string $subscription Required. The subscription whose message is being
* acknowledged. Format is `projects/{project}/subscriptions/{sub}`.
* @param AcknowledgeRequest $postBody
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function acknowledge($subscription, AcknowledgeRequest $postBody, $optParams = [])
{
$params = ['subscription' => $subscription, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('acknowledge', [$params], PubsubEmpty::class);
}
/**
* Creates a subscription to a given topic. See the [resource name rules]
* (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). If the
* subscription already exists, returns `ALREADY_EXISTS`. If the corresponding
* topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the
* request, the server will assign a random name for this subscription on the
* same project as the topic, conforming to the [resource name format]
* (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
* generated name is populated in the returned Subscription object. Note that
* for REST API requests, you must specify a name in the request.
* (subscriptions.create)
*
* @param string $name Required. The name of the subscription. It must have the
* format `"projects/{project}/subscriptions/{subscription}"`. `{subscription}`
* must start with a letter, and contain only letters (`[A-Za-z]`), numbers
* (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus
* (`+`) or percent signs (`%`). It must be between 3 and 255 characters in
* length, and it must not start with `"goog"`.
* @param Subscription $postBody
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function create($name, Subscription $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Subscription::class);
}
/**
* Deletes an existing subscription. All messages retained in the subscription
* are immediately dropped. Calls to `Pull` after deletion will return
* `NOT_FOUND`. After a subscription is deleted, a new one may be created with
* the same name, but the new one has no association with the old subscription
* or its topic unless the same topic is specified. (subscriptions.delete)
*
* @param string $subscription Required. The subscription to delete. Format is
* `projects/{project}/subscriptions/{sub}`.
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function delete($subscription, $optParams = [])
{
$params = ['subscription' => $subscription];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PubsubEmpty::class);
}
/**
* Detaches a subscription from this topic. All messages retained in the
* subscription are dropped. Subsequent `Pull` and `StreamingPull` requests will
* return FAILED_PRECONDITION. If the subscription is a push subscription,
* pushes to the endpoint will stop. (subscriptions.detach)
*
* @param string $subscription Required. The subscription to detach. Format is
* `projects/{project}/subscriptions/{subscription}`.
* @param array $optParams Optional parameters.
* @return DetachSubscriptionResponse
* @throws \Google\Service\Exception
*/
public function detach($subscription, $optParams = [])
{
$params = ['subscription' => $subscription];
$params = array_merge($params, $optParams);
return $this->call('detach', [$params], DetachSubscriptionResponse::class);
}
/**
* Gets the configuration details of a subscription. (subscriptions.get)
*
* @param string $subscription Required. The name of the subscription to get.
* Format is `projects/{project}/subscriptions/{sub}`.
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function get($subscription, $optParams = [])
{
$params = ['subscription' => $subscription];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Subscription::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (subscriptions.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists matching subscriptions. (subscriptions.listProjectsSubscriptions)
*
* @param string $project Required. The name of the project in which to list
* subscriptions. Format is `projects/{project-id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of subscriptions to return.
* @opt_param string pageToken Optional. The value returned by the last
* `ListSubscriptionsResponse`; indicates that this is a continuation of a prior
* `ListSubscriptions` call, and that the system should return the next page of
* data.
* @return ListSubscriptionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsSubscriptions($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSubscriptionsResponse::class);
}
/**
* Modifies the ack deadline for a specific message. This method is useful to
* indicate that more time is needed to process a message by the subscriber, or
* to make the message available for redelivery if the processing was
* interrupted. Note that this does not modify the subscription-level
* `ackDeadlineSeconds` used for subsequent messages.
* (subscriptions.modifyAckDeadline)
*
* @param string $subscription Required. The name of the subscription. Format is
* `projects/{project}/subscriptions/{sub}`.
* @param ModifyAckDeadlineRequest $postBody
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function modifyAckDeadline($subscription, ModifyAckDeadlineRequest $postBody, $optParams = [])
{
$params = ['subscription' => $subscription, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('modifyAckDeadline', [$params], PubsubEmpty::class);
}
/**
* Modifies the `PushConfig` for a specified subscription. This may be used to
* change a push subscription to a pull one (signified by an empty `PushConfig`)
* or vice versa, or change the endpoint URL and other attributes of a push
* subscription. Messages will accumulate for delivery continuously through the
* call regardless of changes to the `PushConfig`.
* (subscriptions.modifyPushConfig)
*
* @param string $subscription Required. The name of the subscription. Format is
* `projects/{project}/subscriptions/{sub}`.
* @param ModifyPushConfigRequest $postBody
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function modifyPushConfig($subscription, ModifyPushConfigRequest $postBody, $optParams = [])
{
$params = ['subscription' => $subscription, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('modifyPushConfig', [$params], PubsubEmpty::class);
}
/**
* Updates an existing subscription by updating the fields specified in the
* update mask. Note that certain properties of a subscription, such as its
* topic, are not modifiable. (subscriptions.patch)
*
* @param string $name Required. The name of the subscription. It must have the
* format `"projects/{project}/subscriptions/{subscription}"`. `{subscription}`
* must start with a letter, and contain only letters (`[A-Za-z]`), numbers
* (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus
* (`+`) or percent signs (`%`). It must be between 3 and 255 characters in
* length, and it must not start with `"goog"`.
* @param UpdateSubscriptionRequest $postBody
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function patch($name, UpdateSubscriptionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Subscription::class);
}
/**
* Pulls messages from the server. (subscriptions.pull)
*
* @param string $subscription Required. The subscription from which messages
* should be pulled. Format is `projects/{project}/subscriptions/{sub}`.
* @param PullRequest $postBody
* @param array $optParams Optional parameters.
* @return PullResponse
* @throws \Google\Service\Exception
*/
public function pull($subscription, PullRequest $postBody, $optParams = [])
{
$params = ['subscription' => $subscription, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('pull', [$params], PullResponse::class);
}
/**
* Seeks an existing subscription to a point in time or to a given snapshot,
* whichever is provided in the request. Snapshots are used in [Seek]
* (https://cloud.google.com/pubsub/docs/replay-overview) operations, which
* allow you to manage message acknowledgments in bulk. That is, you can set the
* acknowledgment state of messages in an existing subscription to the state
* captured by a snapshot. Note that both the subscription and the snapshot must
* be on the same topic. (subscriptions.seek)
*
* @param string $subscription Required. The subscription to affect.
* @param SeekRequest $postBody
* @param array $optParams Optional parameters.
* @return SeekResponse
* @throws \Google\Service\Exception
*/
public function seek($subscription, SeekRequest $postBody, $optParams = [])
{
$params = ['subscription' => $subscription, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('seek', [$params], SeekResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (subscriptions.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning.
* (subscriptions.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsSubscriptions::class, 'Google_Service_Pubsub_Resource_ProjectsSubscriptions');

View File

@@ -0,0 +1,232 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub\Resource;
use Google\Service\Pubsub\ListTopicsResponse;
use Google\Service\Pubsub\Policy;
use Google\Service\Pubsub\PublishRequest;
use Google\Service\Pubsub\PublishResponse;
use Google\Service\Pubsub\PubsubEmpty;
use Google\Service\Pubsub\SetIamPolicyRequest;
use Google\Service\Pubsub\TestIamPermissionsRequest;
use Google\Service\Pubsub\TestIamPermissionsResponse;
use Google\Service\Pubsub\Topic;
use Google\Service\Pubsub\UpdateTopicRequest;
/**
* The "topics" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $topics = $pubsubService->projects_topics;
* </code>
*/
class ProjectsTopics extends \Google\Service\Resource
{
/**
* Creates the given topic with the given name. See the [resource name rules]
* (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
* (topics.create)
*
* @param string $name Required. The name of the topic. It must have the format
* `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
* and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
* underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs
* (`%`). It must be between 3 and 255 characters in length, and it must not
* start with `"goog"`.
* @param Topic $postBody
* @param array $optParams Optional parameters.
* @return Topic
* @throws \Google\Service\Exception
*/
public function create($name, Topic $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Topic::class);
}
/**
* Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does
* not exist. After a topic is deleted, a new topic may be created with the same
* name; this is an entirely new topic with none of the old configuration or
* subscriptions. Existing subscriptions to this topic are not deleted, but
* their `topic` field is set to `_deleted-topic_`. (topics.delete)
*
* @param string $topic Required. Name of the topic to delete. Format is
* `projects/{project}/topics/{topic}`.
* @param array $optParams Optional parameters.
* @return PubsubEmpty
* @throws \Google\Service\Exception
*/
public function delete($topic, $optParams = [])
{
$params = ['topic' => $topic];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PubsubEmpty::class);
}
/**
* Gets the configuration of a topic. (topics.get)
*
* @param string $topic Required. The name of the topic to get. Format is
* `projects/{project}/topics/{topic}`.
* @param array $optParams Optional parameters.
* @return Topic
* @throws \Google\Service\Exception
*/
public function get($topic, $optParams = [])
{
$params = ['topic' => $topic];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Topic::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (topics.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists matching topics. (topics.listProjectsTopics)
*
* @param string $project Required. The name of the project in which to list
* topics. Format is `projects/{project-id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of topics to return.
* @opt_param string pageToken Optional. The value returned by the last
* `ListTopicsResponse`; indicates that this is a continuation of a prior
* `ListTopics` call, and that the system should return the next page of data.
* @return ListTopicsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsTopics($project, $optParams = [])
{
$params = ['project' => $project];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTopicsResponse::class);
}
/**
* Updates an existing topic by updating the fields specified in the update
* mask. Note that certain properties of a topic are not modifiable.
* (topics.patch)
*
* @param string $name Required. The name of the topic. It must have the format
* `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
* and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
* underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs
* (`%`). It must be between 3 and 255 characters in length, and it must not
* start with `"goog"`.
* @param UpdateTopicRequest $postBody
* @param array $optParams Optional parameters.
* @return Topic
* @throws \Google\Service\Exception
*/
public function patch($name, UpdateTopicRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Topic::class);
}
/**
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does
* not exist. (topics.publish)
*
* @param string $topic Required. The messages in the request will be published
* on this topic. Format is `projects/{project}/topics/{topic}`.
* @param PublishRequest $postBody
* @param array $optParams Optional parameters.
* @return PublishResponse
* @throws \Google\Service\Exception
*/
public function publish($topic, PublishRequest $postBody, $optParams = [])
{
$params = ['topic' => $topic, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('publish', [$params], PublishResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (topics.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (topics.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsTopics::class, 'Google_Service_Pubsub_Resource_ProjectsTopics');

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\Pubsub\Resource;
use Google\Service\Pubsub\ListTopicSnapshotsResponse;
/**
* The "snapshots" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $snapshots = $pubsubService->projects_topics_snapshots;
* </code>
*/
class ProjectsTopicsSnapshots extends \Google\Service\Resource
{
/**
* Lists the names of the snapshots on this topic. Snapshots are used in
* [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
* which allow you to manage message acknowledgments in bulk. That is, you can
* set the acknowledgment state of messages in an existing subscription to the
* state captured by a snapshot. (snapshots.listProjectsTopicsSnapshots)
*
* @param string $topic Required. The name of the topic that snapshots are
* attached to. Format is `projects/{project}/topics/{topic}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of snapshot names to return.
* @opt_param string pageToken Optional. The value returned by the last
* `ListTopicSnapshotsResponse`; indicates that this is a continuation of a
* prior `ListTopicSnapshots` call, and that the system should return the next
* page of data.
* @return ListTopicSnapshotsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsTopicsSnapshots($topic, $optParams = [])
{
$params = ['topic' => $topic];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTopicSnapshotsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsTopicsSnapshots::class, 'Google_Service_Pubsub_Resource_ProjectsTopicsSnapshots');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub\Resource;
use Google\Service\Pubsub\ListTopicSubscriptionsResponse;
/**
* The "subscriptions" collection of methods.
* Typical usage is:
* <code>
* $pubsubService = new Google\Service\Pubsub(...);
* $subscriptions = $pubsubService->projects_topics_subscriptions;
* </code>
*/
class ProjectsTopicsSubscriptions extends \Google\Service\Resource
{
/**
* Lists the names of the attached subscriptions on this topic.
* (subscriptions.listProjectsTopicsSubscriptions)
*
* @param string $topic Required. The name of the topic that subscriptions are
* attached to. Format is `projects/{project}/topics/{topic}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Maximum number of subscription names to
* return.
* @opt_param string pageToken Optional. The value returned by the last
* `ListTopicSubscriptionsResponse`; indicates that this is a continuation of a
* prior `ListTopicSubscriptions` call, and that the system should return the
* next page of data.
* @return ListTopicSubscriptionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsTopicsSubscriptions($topic, $optParams = [])
{
$params = ['topic' => $topic];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTopicSubscriptionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsTopicsSubscriptions::class, 'Google_Service_Pubsub_Resource_ProjectsTopicsSubscriptions');

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\Pubsub;
class RetryPolicy extends \Google\Model
{
/**
* @var string
*/
public $maximumBackoff;
/**
* @var string
*/
public $minimumBackoff;
/**
* @param string
*/
public function setMaximumBackoff($maximumBackoff)
{
$this->maximumBackoff = $maximumBackoff;
}
/**
* @return string
*/
public function getMaximumBackoff()
{
return $this->maximumBackoff;
}
/**
* @param string
*/
public function setMinimumBackoff($minimumBackoff)
{
$this->minimumBackoff = $minimumBackoff;
}
/**
* @return string
*/
public function getMinimumBackoff()
{
return $this->minimumBackoff;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RetryPolicy::class, 'Google_Service_Pubsub_RetryPolicy');

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\Pubsub;
class RollbackSchemaRequest extends \Google\Model
{
/**
* @var string
*/
public $revisionId;
/**
* @param string
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RollbackSchemaRequest::class, 'Google_Service_Pubsub_RollbackSchemaRequest');

View File

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

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\Pubsub;
class SchemaSettings extends \Google\Model
{
/**
* @var string
*/
public $encoding;
/**
* @var string
*/
public $firstRevisionId;
/**
* @var string
*/
public $lastRevisionId;
/**
* @var string
*/
public $schema;
/**
* @param string
*/
public function setEncoding($encoding)
{
$this->encoding = $encoding;
}
/**
* @return string
*/
public function getEncoding()
{
return $this->encoding;
}
/**
* @param string
*/
public function setFirstRevisionId($firstRevisionId)
{
$this->firstRevisionId = $firstRevisionId;
}
/**
* @return string
*/
public function getFirstRevisionId()
{
return $this->firstRevisionId;
}
/**
* @param string
*/
public function setLastRevisionId($lastRevisionId)
{
$this->lastRevisionId = $lastRevisionId;
}
/**
* @return string
*/
public function getLastRevisionId()
{
return $this->lastRevisionId;
}
/**
* @param string
*/
public function setSchema($schema)
{
$this->schema = $schema;
}
/**
* @return string
*/
public function getSchema()
{
return $this->schema;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SchemaSettings::class, 'Google_Service_Pubsub_SchemaSettings');

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\Pubsub;
class SeekRequest extends \Google\Model
{
/**
* @var string
*/
public $snapshot;
/**
* @var string
*/
public $time;
/**
* @param string
*/
public function setSnapshot($snapshot)
{
$this->snapshot = $snapshot;
}
/**
* @return string
*/
public function getSnapshot()
{
return $this->snapshot;
}
/**
* @param string
*/
public function setTime($time)
{
$this->time = $time;
}
/**
* @return string
*/
public function getTime()
{
return $this->time;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SeekRequest::class, 'Google_Service_Pubsub_SeekRequest');

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

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\Pubsub;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* @param Policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_Pubsub_SetIamPolicyRequest');

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\Pubsub;
class Snapshot extends \Google\Model
{
/**
* @var string
*/
public $expireTime;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $topic;
/**
* @param string
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @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(Snapshot::class, 'Google_Service_Pubsub_Snapshot');

View File

@@ -0,0 +1,354 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub;
class Subscription extends \Google\Model
{
/**
* @var int
*/
public $ackDeadlineSeconds;
protected $analyticsHubSubscriptionInfoType = AnalyticsHubSubscriptionInfo::class;
protected $analyticsHubSubscriptionInfoDataType = '';
protected $bigqueryConfigType = BigQueryConfig::class;
protected $bigqueryConfigDataType = '';
protected $cloudStorageConfigType = CloudStorageConfig::class;
protected $cloudStorageConfigDataType = '';
protected $deadLetterPolicyType = DeadLetterPolicy::class;
protected $deadLetterPolicyDataType = '';
/**
* @var bool
*/
public $detached;
/**
* @var bool
*/
public $enableExactlyOnceDelivery;
/**
* @var bool
*/
public $enableMessageOrdering;
protected $expirationPolicyType = ExpirationPolicy::class;
protected $expirationPolicyDataType = '';
/**
* @var string
*/
public $filter;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $messageRetentionDuration;
/**
* @var string
*/
public $name;
protected $pushConfigType = PushConfig::class;
protected $pushConfigDataType = '';
/**
* @var bool
*/
public $retainAckedMessages;
protected $retryPolicyType = RetryPolicy::class;
protected $retryPolicyDataType = '';
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $topic;
/**
* @var string
*/
public $topicMessageRetentionDuration;
/**
* @param int
*/
public function setAckDeadlineSeconds($ackDeadlineSeconds)
{
$this->ackDeadlineSeconds = $ackDeadlineSeconds;
}
/**
* @return int
*/
public function getAckDeadlineSeconds()
{
return $this->ackDeadlineSeconds;
}
/**
* @param AnalyticsHubSubscriptionInfo
*/
public function setAnalyticsHubSubscriptionInfo(AnalyticsHubSubscriptionInfo $analyticsHubSubscriptionInfo)
{
$this->analyticsHubSubscriptionInfo = $analyticsHubSubscriptionInfo;
}
/**
* @return AnalyticsHubSubscriptionInfo
*/
public function getAnalyticsHubSubscriptionInfo()
{
return $this->analyticsHubSubscriptionInfo;
}
/**
* @param BigQueryConfig
*/
public function setBigqueryConfig(BigQueryConfig $bigqueryConfig)
{
$this->bigqueryConfig = $bigqueryConfig;
}
/**
* @return BigQueryConfig
*/
public function getBigqueryConfig()
{
return $this->bigqueryConfig;
}
/**
* @param CloudStorageConfig
*/
public function setCloudStorageConfig(CloudStorageConfig $cloudStorageConfig)
{
$this->cloudStorageConfig = $cloudStorageConfig;
}
/**
* @return CloudStorageConfig
*/
public function getCloudStorageConfig()
{
return $this->cloudStorageConfig;
}
/**
* @param DeadLetterPolicy
*/
public function setDeadLetterPolicy(DeadLetterPolicy $deadLetterPolicy)
{
$this->deadLetterPolicy = $deadLetterPolicy;
}
/**
* @return DeadLetterPolicy
*/
public function getDeadLetterPolicy()
{
return $this->deadLetterPolicy;
}
/**
* @param bool
*/
public function setDetached($detached)
{
$this->detached = $detached;
}
/**
* @return bool
*/
public function getDetached()
{
return $this->detached;
}
/**
* @param bool
*/
public function setEnableExactlyOnceDelivery($enableExactlyOnceDelivery)
{
$this->enableExactlyOnceDelivery = $enableExactlyOnceDelivery;
}
/**
* @return bool
*/
public function getEnableExactlyOnceDelivery()
{
return $this->enableExactlyOnceDelivery;
}
/**
* @param bool
*/
public function setEnableMessageOrdering($enableMessageOrdering)
{
$this->enableMessageOrdering = $enableMessageOrdering;
}
/**
* @return bool
*/
public function getEnableMessageOrdering()
{
return $this->enableMessageOrdering;
}
/**
* @param ExpirationPolicy
*/
public function setExpirationPolicy(ExpirationPolicy $expirationPolicy)
{
$this->expirationPolicy = $expirationPolicy;
}
/**
* @return ExpirationPolicy
*/
public function getExpirationPolicy()
{
return $this->expirationPolicy;
}
/**
* @param string
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setMessageRetentionDuration($messageRetentionDuration)
{
$this->messageRetentionDuration = $messageRetentionDuration;
}
/**
* @return string
*/
public function getMessageRetentionDuration()
{
return $this->messageRetentionDuration;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param PushConfig
*/
public function setPushConfig(PushConfig $pushConfig)
{
$this->pushConfig = $pushConfig;
}
/**
* @return PushConfig
*/
public function getPushConfig()
{
return $this->pushConfig;
}
/**
* @param bool
*/
public function setRetainAckedMessages($retainAckedMessages)
{
$this->retainAckedMessages = $retainAckedMessages;
}
/**
* @return bool
*/
public function getRetainAckedMessages()
{
return $this->retainAckedMessages;
}
/**
* @param RetryPolicy
*/
public function setRetryPolicy(RetryPolicy $retryPolicy)
{
$this->retryPolicy = $retryPolicy;
}
/**
* @return RetryPolicy
*/
public function getRetryPolicy()
{
return $this->retryPolicy;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setTopic($topic)
{
$this->topic = $topic;
}
/**
* @return string
*/
public function getTopic()
{
return $this->topic;
}
/**
* @param string
*/
public function setTopicMessageRetentionDuration($topicMessageRetentionDuration)
{
$this->topicMessageRetentionDuration = $topicMessageRetentionDuration;
}
/**
* @return string
*/
public function getTopicMessageRetentionDuration()
{
return $this->topicMessageRetentionDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Subscription::class, 'Google_Service_Pubsub_Subscription');

View File

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

View File

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

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

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\Pubsub;
class TextFormat extends \Google\Model
{
/**
* @var string
*/
public $delimiter;
/**
* @param string
*/
public function setDelimiter($delimiter)
{
$this->delimiter = $delimiter;
}
/**
* @return string
*/
public function getDelimiter()
{
return $this->delimiter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TextFormat::class, 'Google_Service_Pubsub_TextFormat');

View File

@@ -0,0 +1,182 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Pubsub;
class Topic extends \Google\Model
{
protected $ingestionDataSourceSettingsType = IngestionDataSourceSettings::class;
protected $ingestionDataSourceSettingsDataType = '';
/**
* @var string
*/
public $kmsKeyName;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $messageRetentionDuration;
protected $messageStoragePolicyType = MessageStoragePolicy::class;
protected $messageStoragePolicyDataType = '';
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $satisfiesPzs;
protected $schemaSettingsType = SchemaSettings::class;
protected $schemaSettingsDataType = '';
/**
* @var string
*/
public $state;
/**
* @param IngestionDataSourceSettings
*/
public function setIngestionDataSourceSettings(IngestionDataSourceSettings $ingestionDataSourceSettings)
{
$this->ingestionDataSourceSettings = $ingestionDataSourceSettings;
}
/**
* @return IngestionDataSourceSettings
*/
public function getIngestionDataSourceSettings()
{
return $this->ingestionDataSourceSettings;
}
/**
* @param string
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setMessageRetentionDuration($messageRetentionDuration)
{
$this->messageRetentionDuration = $messageRetentionDuration;
}
/**
* @return string
*/
public function getMessageRetentionDuration()
{
return $this->messageRetentionDuration;
}
/**
* @param MessageStoragePolicy
*/
public function setMessageStoragePolicy(MessageStoragePolicy $messageStoragePolicy)
{
$this->messageStoragePolicy = $messageStoragePolicy;
}
/**
* @return MessageStoragePolicy
*/
public function getMessageStoragePolicy()
{
return $this->messageStoragePolicy;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* @param SchemaSettings
*/
public function setSchemaSettings(SchemaSettings $schemaSettings)
{
$this->schemaSettings = $schemaSettings;
}
/**
* @return SchemaSettings
*/
public function getSchemaSettings()
{
return $this->schemaSettings;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Topic::class, 'Google_Service_Pubsub_Topic');

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\Pubsub;
class UpdateSnapshotRequest extends \Google\Model
{
protected $snapshotType = Snapshot::class;
protected $snapshotDataType = '';
/**
* @var string
*/
public $updateMask;
/**
* @param Snapshot
*/
public function setSnapshot(Snapshot $snapshot)
{
$this->snapshot = $snapshot;
}
/**
* @return Snapshot
*/
public function getSnapshot()
{
return $this->snapshot;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateSnapshotRequest::class, 'Google_Service_Pubsub_UpdateSnapshotRequest');

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\Pubsub;
class UpdateSubscriptionRequest extends \Google\Model
{
protected $subscriptionType = Subscription::class;
protected $subscriptionDataType = '';
/**
* @var string
*/
public $updateMask;
/**
* @param Subscription
*/
public function setSubscription(Subscription $subscription)
{
$this->subscription = $subscription;
}
/**
* @return Subscription
*/
public function getSubscription()
{
return $this->subscription;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateSubscriptionRequest::class, 'Google_Service_Pubsub_UpdateSubscriptionRequest');

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\Pubsub;
class UpdateTopicRequest extends \Google\Model
{
protected $topicType = Topic::class;
protected $topicDataType = '';
/**
* @var string
*/
public $updateMask;
/**
* @param Topic
*/
public function setTopic(Topic $topic)
{
$this->topic = $topic;
}
/**
* @return Topic
*/
public function getTopic()
{
return $this->topic;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateTopicRequest::class, 'Google_Service_Pubsub_UpdateTopicRequest');

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\Pubsub;
class ValidateMessageRequest extends \Google\Model
{
/**
* @var string
*/
public $encoding;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $name;
protected $schemaType = Schema::class;
protected $schemaDataType = '';
/**
* @param string
*/
public function setEncoding($encoding)
{
$this->encoding = $encoding;
}
/**
* @return string
*/
public function getEncoding()
{
return $this->encoding;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param Schema
*/
public function setSchema(Schema $schema)
{
$this->schema = $schema;
}
/**
* @return Schema
*/
public function getSchema()
{
return $this->schema;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ValidateMessageRequest::class, 'Google_Service_Pubsub_ValidateMessageRequest');

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

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\Pubsub;
class ValidateSchemaRequest extends \Google\Model
{
protected $schemaType = Schema::class;
protected $schemaDataType = '';
/**
* @param Schema
*/
public function setSchema(Schema $schema)
{
$this->schema = $schema;
}
/**
* @return Schema
*/
public function getSchema()
{
return $this->schema;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ValidateSchemaRequest::class, 'Google_Service_Pubsub_ValidateSchemaRequest');

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