Class ProjectsResource.SubscriptionsResource.DetachRequest
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.
Inheritance
ProjectsResource.SubscriptionsResource.DetachRequest
Inherited Members
Namespace: Google.Apis.Pubsub.v1
Assembly: Google.Apis.Pubsub.v1.dll
Syntax
public class ProjectsResource.SubscriptionsResource.DetachRequest : PubsubBaseServiceRequest<DetachSubscriptionResponse>, IClientServiceRequest<DetachSubscriptionResponse>, IClientServiceRequest
Constructors
DetachRequest(IClientService, string)
Constructs a new Detach request.
Declaration
public DetachRequest(IClientService service, string subscription)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | subscription |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Subscription
Required. The subscription to detach. Format is projects/{project}/subscriptions/{subscription}
.
Declaration
[RequestParameter("subscription", RequestParameterType.Path)]
public virtual string Subscription { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes Detach parameter list.
Declaration
protected override void InitParameters()