Interface IProjectPolicyAdminApi
Represents a collection of functions to interact with the API endpoints
Namespace: Unity.Services.Apis.Admin.AccessPolicy
Assembly: Unity.Services.Apis.dll
Syntax
public interface IProjectPolicyAdminApi : IApiAccessor
Methods
DeletePolicyStatements(string, string, DeleteOptions, CancellationToken)
Delete policy statement(s)
Declaration
ApiOperation DeletePolicyStatements(string projectId, string environmentId, DeleteOptions deleteOptions, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | ID of the project |
string | environmentId | ID of the environment |
Delete |
deleteOptions | |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
GetPolicy(string, string, CancellationToken)
Get a project based policy
Declaration
ApiOperation<Policy> GetPolicy(string projectId, string environmentId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | ID of the project |
string | environmentId | ID of the environment |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
UpsertPolicy(string, string, Policy, CancellationToken)
Create or update a project based policy
Declaration
ApiOperation UpsertPolicy(string projectId, string environmentId, Policy policy, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | ID of the project |
string | environmentId | ID of the environment |
Policy | policy | |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |