Class ProjectsResource.SubscriptionsResource.DeleteRequest
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.
Inheritance
ProjectsResource.SubscriptionsResource.DeleteRequest
Inherited Members
Namespace: Google.Apis.Pubsub.v1
Assembly: Google.Apis.Pubsub.v1.dll
Syntax
public class ProjectsResource.SubscriptionsResource.DeleteRequest : PubsubBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
DeleteRequest(IClientService, string)
Constructs a new Delete request.
Declaration
public DeleteRequest(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 delete. Format is projects/{project}/subscriptions/{sub}
.
Declaration
[RequestParameter("subscription", RequestParameterType.Path)]
public virtual string Subscription { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()