Class: Google::Apis::PubsubliteV1::PubsubLiteService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::PubsubliteV1::PubsubLiteService
- Defined in:
- generated/google/apis/pubsublite_v1/service.rb
Overview
Pub/Sub Lite API
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#compute_topic_message_stats(topic, compute_message_stats_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::ComputeMessageStatsResponse
Compute statistics about a range of messages in a given topic and partition.
-
#create_admin_project_location_subscription(parent, subscription_object = nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Subscription
Creates a new subscription.
-
#create_admin_project_location_topic(parent, topic_object = nil, topic_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Topic
Creates a new topic.
-
#delete_admin_project_location_subscription(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Empty
Deletes the specified subscription.
-
#delete_admin_project_location_topic(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Empty
Deletes the specified topic.
-
#get_admin_project_location_subscription(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Subscription
Returns the subscription configuration.
-
#get_admin_project_location_topic(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Topic
Returns the topic configuration.
-
#get_admin_project_location_topic_partitions(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::TopicPartitions
Returns the partition information for the requested topic.
-
#initialize ⇒ PubsubLiteService
constructor
A new instance of PubsubLiteService.
-
#list_admin_project_location_subscriptions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::ListSubscriptionsResponse
Returns the list of subscriptions for the given project.
-
#list_admin_project_location_topic_subscriptions(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::ListTopicSubscriptionsResponse
Lists the subscriptions attached to the specified topic.
-
#list_admin_project_location_topics(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::ListTopicsResponse
Returns the list of topics for the given project.
-
#list_cursor_project_location_subscription_cursors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::ListPartitionCursorsResponse
Returns all committed cursor information for a subscription.
-
#patch_admin_project_location_subscription(name, subscription_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Subscription
Updates properties of the specified subscription.
-
#patch_admin_project_location_topic(name, topic_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Topic
Updates properties of the specified topic.
Constructor Details
#initialize ⇒ PubsubLiteService
Returns a new instance of PubsubLiteService.
45 46 47 48 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 45 def initialize super('https://pubsublite.googleapis.com/', '') @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
43 44 45 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 43 def quota_user @quota_user end |
Instance Method Details
#compute_topic_message_stats(topic, compute_message_stats_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::ComputeMessageStatsResponse
Compute statistics about a range of messages in a given topic and partition.
537 538 539 540 541 542 543 544 545 546 547 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 537 def (topic, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/topicStats/{+topic}:computeMessageStats', ) command.request_representation = Google::Apis::PubsubliteV1::ComputeMessageStatsRequest::Representation command.request_object = command.response_representation = Google::Apis::PubsubliteV1::ComputeMessageStatsResponse::Representation command.response_class = Google::Apis::PubsubliteV1::ComputeMessageStatsResponse command.params['topic'] = topic unless topic.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_admin_project_location_subscription(parent, subscription_object = nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Subscription
Creates a new subscription.
76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 76 def create_admin_project_location_subscription(parent, subscription_object = nil, subscription_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/admin/{+parent}/subscriptions', ) command.request_representation = Google::Apis::PubsubliteV1::Subscription::Representation command.request_object = subscription_object command.response_representation = Google::Apis::PubsubliteV1::Subscription::Representation command.response_class = Google::Apis::PubsubliteV1::Subscription command.params['parent'] = parent unless parent.nil? command.query['subscriptionId'] = subscription_id unless subscription_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_admin_project_location_topic(parent, topic_object = nil, topic_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Topic
Creates a new topic.
253 254 255 256 257 258 259 260 261 262 263 264 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 253 def create_admin_project_location_topic(parent, topic_object = nil, topic_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/admin/{+parent}/topics', ) command.request_representation = Google::Apis::PubsubliteV1::Topic::Representation command.request_object = topic_object command.response_representation = Google::Apis::PubsubliteV1::Topic::Representation command.response_class = Google::Apis::PubsubliteV1::Topic command.params['parent'] = parent unless parent.nil? command.query['topicId'] = topic_id unless topic_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_admin_project_location_subscription(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Empty
Deletes the specified subscription.
109 110 111 112 113 114 115 116 117 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 109 def delete_admin_project_location_subscription(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/admin/{+name}', ) command.response_representation = Google::Apis::PubsubliteV1::Empty::Representation command.response_class = Google::Apis::PubsubliteV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_admin_project_location_topic(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Empty
Deletes the specified topic.
286 287 288 289 290 291 292 293 294 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 286 def delete_admin_project_location_topic(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/admin/{+name}', ) command.response_representation = Google::Apis::PubsubliteV1::Empty::Representation command.response_class = Google::Apis::PubsubliteV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_admin_project_location_subscription(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Subscription
Returns the subscription configuration.
139 140 141 142 143 144 145 146 147 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 139 def get_admin_project_location_subscription(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/admin/{+name}', ) command.response_representation = Google::Apis::PubsubliteV1::Subscription::Representation command.response_class = Google::Apis::PubsubliteV1::Subscription command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_admin_project_location_topic(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Topic
Returns the topic configuration.
316 317 318 319 320 321 322 323 324 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 316 def get_admin_project_location_topic(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/admin/{+name}', ) command.response_representation = Google::Apis::PubsubliteV1::Topic::Representation command.response_class = Google::Apis::PubsubliteV1::Topic command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_admin_project_location_topic_partitions(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::TopicPartitions
Returns the partition information for the requested topic.
346 347 348 349 350 351 352 353 354 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 346 def get_admin_project_location_topic_partitions(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/admin/{+name}/partitions', ) command.response_representation = Google::Apis::PubsubliteV1::TopicPartitions::Representation command.response_class = Google::Apis::PubsubliteV1::TopicPartitions command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_admin_project_location_subscriptions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::ListSubscriptionsResponse
Returns the list of subscriptions for the given project.
179 180 181 182 183 184 185 186 187 188 189 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 179 def list_admin_project_location_subscriptions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/admin/{+parent}/subscriptions', ) command.response_representation = Google::Apis::PubsubliteV1::ListSubscriptionsResponse::Representation command.response_class = Google::Apis::PubsubliteV1::ListSubscriptionsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_admin_project_location_topic_subscriptions(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::ListTopicSubscriptionsResponse
Lists the subscriptions attached to the specified topic.
462 463 464 465 466 467 468 469 470 471 472 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 462 def list_admin_project_location_topic_subscriptions(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/admin/{+name}/subscriptions', ) command.response_representation = Google::Apis::PubsubliteV1::ListTopicSubscriptionsResponse::Representation command.response_class = Google::Apis::PubsubliteV1::ListTopicSubscriptionsResponse command.params['name'] = name unless name.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_admin_project_location_topics(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::ListTopicsResponse
Returns the list of topics for the given project.
384 385 386 387 388 389 390 391 392 393 394 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 384 def list_admin_project_location_topics(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/admin/{+parent}/topics', ) command.response_representation = Google::Apis::PubsubliteV1::ListTopicsResponse::Representation command.response_class = Google::Apis::PubsubliteV1::ListTopicsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_cursor_project_location_subscription_cursors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::ListPartitionCursorsResponse
Returns all committed cursor information for a subscription.
504 505 506 507 508 509 510 511 512 513 514 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 504 def list_cursor_project_location_subscription_cursors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/cursor/{+parent}/cursors', ) command.response_representation = Google::Apis::PubsubliteV1::ListPartitionCursorsResponse::Representation command.response_class = Google::Apis::PubsubliteV1::ListPartitionCursorsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_admin_project_location_subscription(name, subscription_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Subscription
Updates properties of the specified subscription.
215 216 217 218 219 220 221 222 223 224 225 226 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 215 def patch_admin_project_location_subscription(name, subscription_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/admin/{+name}', ) command.request_representation = Google::Apis::PubsubliteV1::Subscription::Representation command.request_object = subscription_object command.response_representation = Google::Apis::PubsubliteV1::Subscription::Representation command.response_class = Google::Apis::PubsubliteV1::Subscription command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_admin_project_location_topic(name, topic_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PubsubliteV1::Topic
Updates properties of the specified topic.
420 421 422 423 424 425 426 427 428 429 430 431 |
# File 'generated/google/apis/pubsublite_v1/service.rb', line 420 def patch_admin_project_location_topic(name, topic_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/admin/{+name}', ) command.request_representation = Google::Apis::PubsubliteV1::Topic::Representation command.request_object = topic_object command.response_representation = Google::Apis::PubsubliteV1::Topic::Representation command.response_class = Google::Apis::PubsubliteV1::Topic command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |