CoreService

<back to all web services

ResolveDeploymentVariables

Deployment - CRUD

Resolve variables for a new deployment from template and parent collection

Requires Authentication
Required role:TenantReader
The following routes are available for this service:
PATCH/api/deployments/generation/resolvedvariablesResolve variables for a new deployment from template and parent collection
PATCH/deployments/generation/resolvedvariablesResolve variables for a new deployment from template and parent collection
import 'package:servicestack/servicestack.dart';

/**
* Resolve variables for a new deployment from template and parent collection
*/
// @Api(Description="Resolve variables for a new deployment from template and parent collection")
// @ApiResponse(Description="Success", IsDefaultResponse=true, ResponseType=typeof(0, Culture=neutral, PublicKeyToken=null]]), StatusCode=200)
class ResolveDeploymentVariables implements IBaseRequest, IHasTenantName, IPatch, IConvertible
{
    // @ApiMember(DataType="string", IsRequired=true, ParameterType="header")
    // @Validate(Validator="NotEmpty")
    String tenantName = "";

    /**
    * The id of the selected parent collection
    */
    // @ApiMember(DataType="string", Description="The id of the selected parent collection", Format="guid", IsRequired=true, ParameterType="body")
    String collectionId = "";

    /**
    * The id of the selected deployment template
    */
    // @ApiMember(DataType="string", Description="The id of the selected deployment template", Format="guid", IsRequired=true, ParameterType="body")
    String deploymentTemplateId = "";

    ResolveDeploymentVariables({this.tenantName,this.collectionId,this.deploymentTemplateId});
    ResolveDeploymentVariables.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        tenantName = json['tenantName'];
        collectionId = json['collectionId'];
        deploymentTemplateId = json['deploymentTemplateId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'tenantName': tenantName,
        'collectionId': collectionId,
        'deploymentTemplateId': deploymentTemplateId
    };

    getTypeName() => "ResolveDeploymentVariables";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'duneframework.com', types: <String, TypeInfo> {
    'ResolveDeploymentVariables': TypeInfo(TypeOf.Class, create:() => ResolveDeploymentVariables()),
});

Dart ResolveDeploymentVariables DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

PATCH /api/deployments/generation/resolvedvariables HTTP/1.1 
Host: core.starburst.svc 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"tenantName":"String","collectionId":"00000000-0000-0000-0000-000000000000","deploymentTemplateId":"00000000-0000-0000-0000-000000000000","txId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

[{"name":"String","value":"String","type":"String","description":"String","isInherited":false,"environment":"Lab"}]