docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MultiplayAllocationsAllocateRequest

    Request to process an allocation. The body size is capped at 10kb to prevent allocation payloads being too large.

    Inheritance
    object
    MultiplayAllocationsAllocateRequest
    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.Multiplay
    Assembly: Unity.Services.Apis.dll
    Syntax
    [DataContract(Name = "multiplay.allocations.AllocateRequest")]
    [Preserve]
    public class MultiplayAllocationsAllocateRequest

    Constructors

    MultiplayAllocationsAllocateRequest(string, long, string, string, bool)

    Initializes a new instance of the MultiplayAllocationsAllocateRequest class.

    Declaration
    [Preserve]
    public MultiplayAllocationsAllocateRequest(string allocationId = null, long buildConfigurationId = 0, string payload = null, string regionId = null, bool restart = false)
    Parameters
    Type Name Description
    string allocationId

    The uuid for the allocation. If specified, an existing allocation request result my be returned. (required).

    long buildConfigurationId

    ID of the build configuration. (required).

    string payload

    The payload containing additional game configuration to be used on allocation. Replaces the X-Enable-Payload flag in older APIs. .

    string regionId

    ID of the Region. (required).

    bool restart

    Flag whether game server requires restart or not..

    Properties

    AllocationId

    The uuid for the allocation. If specified, an existing allocation request result my be returned.

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

    The uuid for the allocation. If specified, an existing allocation request result my be returned.

    BuildConfigurationId

    ID of the build configuration.

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

    ID of the build configuration.

    Payload

    The payload containing additional game configuration to be used on allocation. Replaces the X-Enable-Payload flag in older APIs.

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

    The payload containing additional game configuration to be used on allocation. Replaces the X-Enable-Payload flag in older APIs.

    RegionId

    ID of the Region.

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

    ID of the Region.

    Restart

    Flag whether game server requires restart or not.

    Declaration
    [DataMember(Name = "restart", EmitDefaultValue = true)]
    [Preserve]
    public bool Restart { get; set; }
    Property Value
    Type Description
    bool

    Flag whether game server requires restart or not.

    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)