Class ProjectsResource.TopicsResource.DeleteRequest
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; this is an entirely new topic with none of the
old configuration or subscriptions. Existing subscriptions to this topic are not deleted, but their
topic
field is set to _deleted-topic_
.
Inheritance
ProjectsResource.TopicsResource.DeleteRequest
Inherited Members
Namespace: Google.Apis.Pubsub.v1
Assembly: Google.Apis.Pubsub.v1.dll
Syntax
public class ProjectsResource.TopicsResource.DeleteRequest : PubsubBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
DeleteRequest(IClientService, string)
Constructs a new Delete request.
Declaration
public DeleteRequest(IClientService service, string topic)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | topic |
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
Topic
Required. Name of the topic to delete. Format is projects/{project}/topics/{topic}
.
Declaration
[RequestParameter("topic", RequestParameterType.Path)]
public virtual string Topic { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()