docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProjectStatement

    A Statement is a single set of rules for accessing a resource

    Inheritance
    object
    ProjectStatement
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Apis.Admin.AccessPolicy
    Assembly: Unity.Services.Apis.dll
    Syntax
    [DataContract(Name = "ProjectStatement")]
    [Preserve]
    public class ProjectStatement

    Constructors

    ProjectStatement(string, List<string>, string, string, string, DateTime, string)

    Initializes a new instance of the ProjectStatement class.

    Declaration
    [Preserve]
    public ProjectStatement(string sid = null, List<string> action = null, string effect = null, string principal = null, string resource = null, DateTime expiresAt = default, string version = null)
    Parameters
    Type Name Description
    string sid

    Statement ID. Consists of alphanumeric characters and hyphen, and must be of length between 6 and 60 chars. (required).

    List<string> action

    User action against which the policy statement will be applicable. Allowable values are "Read", "Write", "*", "Vivox:JoinMuted", "Vivox:JoinAllMuted, "Vivox:JoinWithConsent", "Vivox:JoinWithConsent". (required).

    string effect

    Effect of the policy statement. Allowable values are "Allow" and "Deny" (required).

    string principal

    The principal the statement applies to, Allowed values are "Player" and "Unauthenticated" (required).

    string resource

    Uniform resource name of the resource(s) being targeted by the policy. The format is urn:ugs:<service-name>:/<path>. For example, urn:ugs:* targets all services. Some other examples are <ul><li>urn:ugs:cloud-code:/v1/projects/_*_/scripts/_*</li> <li>urn:ugs:economy:/_*</li></ul> (required).

    DateTime expiresAt

    UTC time (ISO 8601 extended format) when the policy expires.

    string version

    version.

    Properties

    Action

    User action against which the policy statement will be applicable. Allowable values are "Read", "Write", "*", "Vivox:JoinMuted", "Vivox:JoinAllMuted, "Vivox:JoinWithConsent", "Vivox:JoinWithConsent".

    Declaration
    [DataMember(Name = "Action", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public List<string> Action { get; set; }
    Property Value
    Type Description
    List<string>

    User action against which the policy statement will be applicable. Allowable values are "Read", "Write", "*", "Vivox:JoinMuted", "Vivox:JoinAllMuted, "Vivox:JoinWithConsent", "Vivox:JoinWithConsent".

    Effect

    Effect of the policy statement. Allowable values are "Allow" and "Deny"

    Declaration
    [DataMember(Name = "Effect", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public string Effect { get; set; }
    Property Value
    Type Description
    string

    Effect of the policy statement. Allowable values are "Allow" and "Deny"

    ExpiresAt

    UTC time (ISO 8601 extended format) when the policy expires

    Declaration
    [DataMember(Name = "ExpiresAt", EmitDefaultValue = false)]
    [Preserve]
    public DateTime ExpiresAt { get; set; }
    Property Value
    Type Description
    DateTime

    UTC time (ISO 8601 extended format) when the policy expires

    Principal

    The principal the statement applies to, Allowed values are "Player" and "Unauthenticated"

    Declaration
    [DataMember(Name = "Principal", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public string Principal { get; set; }
    Property Value
    Type Description
    string

    The principal the statement applies to, Allowed values are "Player" and "Unauthenticated"

    Resource

    Uniform resource name of the resource(s) being targeted by the policy. The format is urn:ugs:<service-name>:/<path>. For example, urn:ugs:* targets all services. Some other examples are <ul><li>urn:ugs:cloud-code:/v1/projects/_*_/scripts/_*</li> <li>urn:ugs:economy:/_*</li></ul>

    Declaration
    [DataMember(Name = "Resource", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public string Resource { get; set; }
    Property Value
    Type Description
    string

    Uniform resource name of the resource(s) being targeted by the policy. The format is urn:ugs:<service-name>:/<path>. For example, urn:ugs:* targets all services. Some other examples are <ul><li>urn:ugs:cloud-code:/v1/projects/_*_/scripts/_*</li> <li>urn:ugs:economy:/_*</li></ul>

    Sid

    Statement ID. Consists of alphanumeric characters and hyphen, and must be of length between 6 and 60 chars.

    Declaration
    [DataMember(Name = "Sid", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public string Sid { get; set; }
    Property Value
    Type Description
    string

    Statement ID. Consists of alphanumeric characters and hyphen, and must be of length between 6 and 60 chars.

    _Version

    Gets or Sets _Version

    Declaration
    [DataMember(Name = "Version", EmitDefaultValue = false)]
    [Preserve]
    public string _Version { get; set; }
    Property Value
    Type Description
    string
    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)