Class ProjectsResource.LocationsResource.ClustersResource.TopicsResource
The "topics" collection of methods.
Inherited Members
Namespace: Google.Apis.ManagedKafka .v1
Assembly: Google.Apis.ManagedKafka.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ClustersResource.TopicsResource
Constructors
TopicsResource(IClientService)
Constructs a new resource.
Declaration
public TopicsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClient |
service |
Methods
Create(Topic, string)
Creates a new topic in a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.TopicsResource.CreateRequest Create(Topic body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Topic | body | The body of the request. |
string | parent | Required. The parent cluster in which to create the topic. Structured like
|
Returns
Type | Description |
---|---|
Projects |
Delete(string)
Deletes a single topic.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.TopicsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the topic to delete.
|
Returns
Type | Description |
---|---|
Projects |
Get(string)
Returns the properties of a single topic.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.TopicsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the topic whose configuration to return. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}. |
Returns
Type | Description |
---|---|
Projects |
List(string)
Lists the topics in a given cluster.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.TopicsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent cluster whose topics are to be listed. Structured like
|
Returns
Type | Description |
---|---|
Projects |
Patch(Topic, string)
Updates the properties of a single topic.
Declaration
public virtual ProjectsResource.LocationsResource.ClustersResource.TopicsResource.PatchRequest Patch(Topic body, string name)
Parameters
Type | Name | Description |
---|---|---|
Topic | body | The body of the request. |
string | name | Identifier. The name of the topic. The |
Returns
Type | Description |
---|---|
Projects |