The "topics" collection of methods.
More...
|
| convertToArrayAndStripNulls ($o) |
|
The "topics" collection of methods.
Typical usage is: $pubsubService = new Google_Service_Pubsub(...); $topics = $pubsubService->topics;
◆ call()
Google_Service_Resource::call |
( |
| $name, |
|
|
| $arguments, |
|
|
| $expected_class = null ) |
|
inherited |
TODO: This function needs simplifying.
- Parameters
-
$name | |
$arguments | |
$expected_class | - optional, the expected class name |
- Return values
-
Google_Http_Request|expected_class | |
- Exceptions
-
◆ create()
Creates the given topic with the given name.
(topics.create)
- Parameters
-
Google_Topic | $postBody | |
array | $optParams | Optional parameters. |
- Return values
-
◆ delete()
Google_Service_Pubsub_Topics_Resource::delete |
( |
| $topic, |
|
|
| $optParams = array() ) |
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. (topics.delete)
- Parameters
-
string | $topic | Name of the topic to delete. |
array | $optParams | Optional parameters. |
◆ get()
Google_Service_Pubsub_Topics_Resource::get |
( |
| $topic, |
|
|
| $optParams = array() ) |
Gets the configuration of a topic.
Since the topic only has the name attribute, this method is only useful to check the existence of a topic. If other attributes are added in the future, they will be returned here. (topics.get)
- Parameters
-
string | $topic | The name of the topic to get. |
array | $optParams | Optional parameters. |
- Return values
-
◆ listTopics()
Google_Service_Pubsub_Topics_Resource::listTopics |
( |
| $optParams = array() | ) |
|
Lists matching topics.
(topics.listTopics)
- Parameters
-
array | $optParams | Optional parameters. |
@opt_param string pageToken The value obtained in the last ListTopicsResponse for continuation. @opt_param int maxResults Maximum number of topics to return. @opt_param string query A valid label query expression.
- Return values
-
◆ publish()
Adds a message to the topic.
Returns NOT_FOUND if the topic does not exist. (topics.publish)
- Parameters
-
Google_PublishRequest | $postBody | |
array | $optParams | Optional parameters. |
◆ publishBatch()
Adds one or more messages to the topic.
Returns NOT_FOUND if the topic does not exist. (topics.publishBatch)
- Parameters
-
Google_PublishBatchRequest | $postBody | |
array | $optParams | Optional parameters. |
- Return values
-
The documentation for this class was generated from the following file:
- lib/google/src/Google/Service/Pubsub.php