Class ProjectsResource.LocationsResource.ClustersResource.AclsResource.CreateRequest
Creates a new acl in the given project, location, and cluster.
Inheritance
Inherited Members
Namespace: Google.Apis.ManagedKafka.v1
Assembly: Google.Apis.ManagedKafka.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ClustersResource.AclsResource.CreateRequest : ManagedKafkaBaseServiceRequest<Acl>, IClientServiceRequest<Acl>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Acl, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Acl body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Acl | body | |
string | parent |
Properties
AclId
Required. The ID to use for the acl, which will become the final component of the acl's
name. The structure of acl_id
defines the Resource Pattern (resource_type, resource_name,
pattern_type) of the acl. acl_id
is structured like one of the following: For acls on the
cluster: cluster
For acls on a single resource within the cluster: topic/{resource_name}
consumerGroup/{resource_name}
transactionalId/{resource_name}
For acls on all resources
that match a prefix: topicPrefixed/{resource_name}
consumerGroupPrefixed/{resource_name}
transactionalIdPrefixed/{resource_name}
For acls on all resources of a given type (i.e.
the wildcard literal "*"): allTopics
(represents topic/*
) allConsumerGroups
(represents consumerGroup/*
) allTransactionalIds
(represents transactionalId/*
)
Declaration
[RequestParameter("aclId", RequestParameterType.Query)]
public virtual string AclId { get; set; }
Property Value
Type | Description |
---|---|
string |
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
Parent
Required. The parent cluster in which to create the acl. Structured like
projects/{project}/locations/{location}/clusters/{cluster}
.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()