protected override bool PerformRightScaleTask(CodeActivityContext context) { bool retVal = false; LogInformation("Beginning update ServerArray id: " + this.serverArrayID.Get(context)); if (base.authClient(context)) { retVal = ServerArray.update(serverArrayID.Get(context), arrayType.Get(context), dataCenterPolicies.Get(context), deploymentID.Get(context), description.Get(context), elasticityParams.Get(context), cloudID.Get(context), dataCenterID.Get(context), inputs.Get(context), instanceTypeID.Get(context), imageID.Get(context), kernelImageID.Get(context), multiCloudImageID.Get(context), ramdiskImageID.Get(context), securityGroupIDs.Get(context), serverTemplateID.Get(context), sshKeyID.Get(context), userData.Get(context), name.Get(context), optimized.Get(context), state.Get(context)); this.isUpdated.Set(context, retVal); } LogInformation("Completed update ServerArray id: " + this.serverArrayID.Get(context) + " with isUpdated = " + this.isUpdated.Get(context)); return(retVal); }
//[TestMethod] public void ServerArrayUpdate() { bool isUpdated = ServerArray.update("220543001", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, false, "enabled"); }