Class ProjectsResource.LocationsResource.ChannelsResource
The "channels" collection of methods.
Inherited Members
Namespace: Google.Apis.Eventarc.v1
Assembly: Google.Apis.Eventarc.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ChannelsResource
Constructors
ChannelsResource(IClientService)
Constructs a new resource.
Declaration
public ChannelsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(Channel, string)
Create a new channel in a particular project and location.
Declaration
public virtual ProjectsResource.LocationsResource.ChannelsResource.CreateRequest Create(Channel body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| Channel | body | The body of the request. |
| string | parent | Required. The parent collection in which to add this channel. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ChannelsResource.CreateRequest |
Delete(string)
Delete a single channel.
Declaration
public virtual ProjectsResource.LocationsResource.ChannelsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the channel to be deleted. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ChannelsResource.DeleteRequest |
Get(string)
Get a single Channel.
Declaration
public virtual ProjectsResource.LocationsResource.ChannelsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the channel to get. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ChannelsResource.GetRequest |
GetIamPolicy(string)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Declaration
public virtual ProjectsResource.LocationsResource.ChannelsResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| string | resource | REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ChannelsResource.GetIamPolicyRequest |
List(string)
List channels.
Declaration
public virtual ProjectsResource.LocationsResource.ChannelsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent collection to list channels on. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ChannelsResource.ListRequest |
Patch(Channel, string)
Update a single channel.
Declaration
public virtual ProjectsResource.LocationsResource.ChannelsResource.PatchRequest Patch(Channel body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Channel | body | The body of the request. |
| string | name | Required. The resource name of the channel. Must be unique within the location on the project and
must be in |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ChannelsResource.PatchRequest |
SetIamPolicy(SetIamPolicyRequest, string)
Sets the access control policy on the specified resource. Replaces any existing policy. Can return
NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
Declaration
public virtual ProjectsResource.LocationsResource.ChannelsResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| SetIamPolicyRequest | body | The body of the request. |
| string | resource | REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ChannelsResource.SetIamPolicyRequest |
TestIamPermissions(TestIamPermissionsRequest, string)
Returns permissions that a caller has on the specified resource. If the resource does not exist,
this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is
designed to be used for building permission-aware UIs and command-line tools, not for authorization
checking. This operation may "fail open" without warning.
Declaration
public virtual ProjectsResource.LocationsResource.ChannelsResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| TestIamPermissionsRequest | body | The body of the request. |
| string | resource | REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.ChannelsResource.TestIamPermissionsRequest |