Class ProjectsResource.LocationsResource.SchemaRegistriesResource.ContextsResource.SubjectsResource.DeleteRequest
Delete a subject. The response will be an array of versions of the deleted subject.
Inheritance
Inherited Members
Namespace: Google.Apis.ManagedKafka.v1
Assembly: Google.Apis.ManagedKafka.v1.dll
Syntax
public class ProjectsResource.LocationsResource.SchemaRegistriesResource.ContextsResource.SubjectsResource.DeleteRequest : ManagedKafkaBaseServiceRequest<HttpBody>, IClientServiceRequest<HttpBody>, IClientServiceRequest
Constructors
DeleteRequest(IClientService, string)
Constructs a new Delete request.
Declaration
public DeleteRequest(IClientService service, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | name |
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
Name
Required. The name of the subject to delete. Structured like:
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}
or
projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
Permanent
Optional. If true, the subject and all associated metadata including the schema ID will be deleted permanently. Otherwise, only the subject is soft-deleted. The default is false. Soft-deleted subjects can still be searched in ListSubjects API call with deleted=true query parameter. A soft-delete of a subject must be performed before a hard-delete.
Declaration
[RequestParameter("permanent", RequestParameterType.Query)]
public virtual bool? Permanent { get; set; }
Property Value
Type | Description |
---|---|
bool? |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()