docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IProjectPolicyAdminApi

    Represents a collection of functions to interact with the API endpoints

    Inherited Members
    IApiAccessor.Configuration
    IApiAccessor.GetBasePath()
    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

    DeleteOptions deleteOptions
    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    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

    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation<Policy>

    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
    CancellationToken cancellationToken

    Cancellation Token to cancel the request.

    Returns
    Type Description
    ApiOperation

    The operation

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)