Prodly API Service Model

Service Model

Deployment

    global with sharing class DeploymentServiceRequestV1 {
        global String deploymentName;
        global String deploymentNotes;
        global String engagementId;
        global MetadataDeploymentRequest metadata;
        global List<DataDeploymentRequest> data;
        global DeploymentSource source;
    } 
    
    global with sharing class DeploymentSource {
        global String managedInstanceId;

        global DeploymentSource(String managedInstanceId) {
            this.managedInstanceId = managedInstanceId;
        }
    }

    global with sharing class DataDeploymentRequest {
        global String dataSetId;
        global String deploymentPlanId;
        global Boolean simulation;
        global EventControlOptions eventControlOptions;
        global QueryFilter queryFilter;

        global DataDeploymentRequest(String dataSetId) {
            this.dataSetId = dataSetId;
        }
    }

    global with sharing class EventControlOptions {
        global Boolean deactivateAll;

        global EventControlOptions(Boolean deactivateAll) {
            this.deactivateAll = deactivateAll;
        }
    }

    global with sharing class QueryFilter {
        global String filter;

        global QueryFilter(String filter) {
            this.filter = filter;
        }
    }

    global with sharing class MetadataTypeDeploymentRequest {
        global String type;
        global List<MetadataComponentDeploymentRequest> metadataComponents;

        global MetadataTypeDeploymentRequest(String type) {
            this.type = type;
        }
    }

    global with sharing class MetadataDeploymentRequest {
        global Boolean validation;
        global String testLevel;
        global List<MetadataTypeDeploymentRequest> metadataTypes;

        global MetadataDeploymentRequest(String metadataType) {
            this.metadataType = metadataType;
        }

        global MetadataDeploymentRequest(List<MetadataTypeDeploymentRequest> metadataTypes) {
            this.metadataTypes = metadataTypes;
        }

        global MetadataDeploymentRequest() {
        }
    }

    global with sharing class MetadataComponentDeploymentRequest {
        global String componentName;

        global MetadataComponentDeploymentRequest(String componentName) {
            this.componentName = componentName;
        }
    }

Jobs

global with sharing class Jobs {
  global List<PDRI.AppOpsWebServices.Job> jobs;
}

global with sharing class Job {
  global String id;
}

Managed Instances

    global with sharing class ManagedInstances {
        global List<PDRI.AppOpsWebServices.ManagedInstance> instances;
    }

    global with sharing class ManagedInstance {
        global String id;
        global String platformInstanceId;
        global String instanceType;
        global String connectionId;
        global Boolean controlInstance;
    }