Class ProjectsResource
The "projects" collection of methods.
Inherited Members
Namespace: Google.Apis.Contentwarehouse.v1
Assembly: Google.Apis.Contentwarehouse.v1.dll
Syntax
public class ProjectsResource
Constructors
ProjectsResource(IClientService)
Constructs a new resource.
Declaration
public ProjectsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
Locations
Gets the Locations resource.
Declaration
public virtual ProjectsResource.LocationsResource Locations { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource |
Methods
FetchAcl(GoogleCloudContentwarehouseV1FetchAclRequest, string)
Gets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set.
Declaration
public virtual ProjectsResource.FetchAclRequest FetchAcl(GoogleCloudContentwarehouseV1FetchAclRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudContentwarehouseV1FetchAclRequest | body | The body of the request. |
| string | resource | Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.FetchAclRequest |
SetAcl(GoogleCloudContentwarehouseV1SetAclRequest, string)
Sets the access control policy for a resource. Replaces any existing policy.
Declaration
public virtual ProjectsResource.SetAclRequest SetAcl(GoogleCloudContentwarehouseV1SetAclRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudContentwarehouseV1SetAclRequest | body | The body of the request. |
| string | resource | Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{project_number}/locations/{location}/documents/{document_id}. Format for collection: projects/{project_number}/locations/{location}/collections/{collection_id}. Format for project: projects/{project_number}. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SetAclRequest |