Class: Google::Cloud::PubSub::SubscriptionAdmin::Client

Inherits:
V1::SubscriptionAdmin::Client
  • Object
show all
Defined in:
lib/google/cloud/pubsub/admin_clients.rb

Overview

The SubscriptionAdmin client is used to manage subscriptions.

This client is a subclass of the auto-generated SubscriptionAdmin client, and provides the same methods. However, it raises errors on data plane operations to prevent misuse.

Instance Method Summary collapse

Instance Method Details

#acknowledge(*args, **kwargs) ⇒ Object

The acknowledge method is a data plane operation.

Raises:



83
84
85
86
87
# File 'lib/google/cloud/pubsub/admin_clients.rb', line 83

def acknowledge *args, **kwargs
  raise NotImplementedError,
        "The `acknowledge` method is a data plane operation. " \
        "Use Google::Cloud::PubSub::Subscriber instead."
end

#modify_ack_deadline(*args, **kwargs) ⇒ Object

The modify_ack_deadline method is a data plane operation.

Raises:



71
72
73
74
75
# File 'lib/google/cloud/pubsub/admin_clients.rb', line 71

def modify_ack_deadline *args, **kwargs
  raise NotImplementedError,
        "The `modify_ack_deadline` method is a data plane operation. " \
        "Use Google::Cloud::PubSub::Subscriber instead."
end

#pull(*args, **kwargs) ⇒ Object

The pull method is a data plane operation.

Raises:



95
96
97
98
99
# File 'lib/google/cloud/pubsub/admin_clients.rb', line 95

def pull *args, **kwargs
  raise NotImplementedError,
        "The `pull` method is a data plane operation. " \
        "Use Google::Cloud::PubSub::Subscriber instead."
end

#streaming_pull(*args, **kwargs) ⇒ Object

The streaming_pull method is a data plane operation.

Raises:



107
108
109
110
111
# File 'lib/google/cloud/pubsub/admin_clients.rb', line 107

def streaming_pull *args, **kwargs
  raise NotImplementedError,
        "The `streaming_pull` method is a data plane operation. " \
        "Use Google::Cloud::PubSub::Subscriber instead."
end