Class ProjectsResource.SnapshotsResource.DeleteRequest
Removes an existing snapshot. Snapshots are used in [Seek] (https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. When the snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with the same name, but the new one has no association with the old snapshot or its subscription, unless the same subscription is specified.
Inheritance
Inherited Members
Namespace: Google.Apis.Pubsub.v1
Assembly: Google.Apis.Pubsub.v1.dll
Syntax
public class ProjectsResource.SnapshotsResource.DeleteRequest : PubsubBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
DeleteRequest(IClientService, string)
Constructs a new Delete request.
Declaration
public DeleteRequest(IClientService service, string snapshot)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | snapshot |
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
Snapshot
Required. The name of the snapshot to delete. Format is projects/{project}/snapshots/{snap}
.
Declaration
[RequestParameter("snapshot", RequestParameterType.Path)]
public virtual string Snapshot { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()