/// <summary> /// Instantiates a new instance. /// </summary> /// <param name="apiKey">The API key to use to communicate with the Vultr /// API.</param> /// <param name="apiURL">The optional Vultr API URL to use. Set this if you want /// to override the default endpoint (e.g. for testing).</param> /// <exception cref="ArgumentNullException">If <paramref name="apiKey"/> is null /// or empty.</exception> public VultrClient(string apiKey, string apiURL = VultrApiURL) { if (string.IsNullOrEmpty(apiKey)) { throw new ArgumentNullException("apiKey", "apiKey must not be null"); } Account = new AccountClient(apiKey, apiURL); Application = new ApplicationClient(apiKey, apiURL); Auth = new AuthClient(apiKey, apiURL); Backup = new BackupClient(apiKey, apiURL); Block = new BlockClient(apiKey, apiURL); DNS = new DNSClient(apiKey, apiURL); Firewall = new FirewallClient(apiKey, apiURL); ISOImage = new ISOImageClient(apiKey, apiURL); Network = new NetworkClient(apiKey, apiURL); OperatingSystem = new OperatingSystemClient(apiKey, apiURL); Plan = new PlanClient(apiKey, apiURL); Region = new RegionClient(apiKey, apiURL); ReservedIP = new ReservedIPClient(apiKey, apiURL); Server = new ServerClient(apiKey, apiURL); Snapshot = new SnapshotClient(apiKey, apiURL); SSHKey = new SSHKeyClient(apiKey, apiURL); StartupScript = new StartupScriptClient(apiKey, apiURL); User = new UserClient(apiKey, apiURL); }
protected void ExecuteOperatingSystemListFamiliesMethod(object[] invokeMethodInputParameters) { var result = OperatingSystemClient.ListFamilies(); WriteObject(result); }