public static Task Delete(vCloudClient client, ReferenceType adminVdcRef) { try { return(AdminVdc.DeleteAdminVdc(client, adminVdcRef.href)); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public Task Delete() { try { return(AdminVdc.DeleteAdminVdc(this.VcloudClient, this.Reference.href)); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public void Disable() { try { AdminVdc.ExecuteVdcAction(this.VcloudClient, this.Reference.href + "/action/disable", (string)null, (string)null, 204); } catch (Exception ex) { throw new VCloudException(ex.Message); } }
public static void Disable(vCloudClient client, ReferenceType adminVdcRef) { try { string orgActionUrl = adminVdcRef.href + "/action/disable"; AdminVdc.ExecuteVdcAction(client, orgActionUrl, (string)null, (string)null, 204); } catch (Exception ex) { throw new VCloudException(ex.Message); } }