Trendsic Platform Service

<back to all web services

EngineGovernanceRequest

Requires Authentication
The following routes are available for this service:
GET,PUT,OPTIONS/v1/engine/governance
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class EngineGovernanceRequest
    {
        public String RolePermsJson = null;
        public String GuardsJson = null;
        public String PacksJson = null;
        public String BranchesJson = null;
        
        public String getRolePermsJson() { return RolePermsJson; }
        public EngineGovernanceRequest setRolePermsJson(String value) { this.RolePermsJson = value; return this; }
        public String getGuardsJson() { return GuardsJson; }
        public EngineGovernanceRequest setGuardsJson(String value) { this.GuardsJson = value; return this; }
        public String getPacksJson() { return PacksJson; }
        public EngineGovernanceRequest setPacksJson(String value) { this.PacksJson = value; return this; }
        public String getBranchesJson() { return BranchesJson; }
        public EngineGovernanceRequest setBranchesJson(String value) { this.BranchesJson = value; return this; }
    }

    public static class EngineGovernanceResponse
    {
        public String RolePermsJson = null;
        public String GuardsJson = null;
        public String PacksJson = null;
        public String BranchesJson = null;
        public ResponseStatus ResponseStatus = null;
        
        public String getRolePermsJson() { return RolePermsJson; }
        public EngineGovernanceResponse setRolePermsJson(String value) { this.RolePermsJson = value; return this; }
        public String getGuardsJson() { return GuardsJson; }
        public EngineGovernanceResponse setGuardsJson(String value) { this.GuardsJson = value; return this; }
        public String getPacksJson() { return PacksJson; }
        public EngineGovernanceResponse setPacksJson(String value) { this.PacksJson = value; return this; }
        public String getBranchesJson() { return BranchesJson; }
        public EngineGovernanceResponse setBranchesJson(String value) { this.BranchesJson = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public EngineGovernanceResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java EngineGovernanceRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /v1/engine/governance HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	RolePermsJson: String,
	GuardsJson: String,
	PacksJson: String,
	BranchesJson: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	RolePermsJson: String,
	GuardsJson: String,
	PacksJson: String,
	BranchesJson: String,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}