@@ -309,6 +309,8 @@ Delete deleteDropletByTagName(String tagName)
309
309
* @throws DigitalOceanException if request had interruption [
310
310
* <code>HTTP status code >= 400 && < 510</code>]
311
311
* @throws RequestUnsuccessfulException if any RESTful request unsuccessful from wrapper method
312
+ *
313
+ * @since v2.0
312
314
*/
313
315
Droplets getDropletNeighbors (Integer dropletId , Integer pageNo )
314
316
throws DigitalOceanException , RequestUnsuccessfulException ;
@@ -322,11 +324,34 @@ Droplets getDropletNeighbors(Integer dropletId, Integer pageNo)
322
324
* @throws DigitalOceanException if request had interruption [
323
325
* <code>HTTP status code >= 400 && < 510</code>]
324
326
* @throws RequestUnsuccessfulException if any RESTful request unsuccessful from wrapper method
327
+ *
328
+ * @since v2.0
325
329
*/
326
330
Neighbors getAllDropletNeighbors (Integer pageNo )
327
331
throws DigitalOceanException , RequestUnsuccessfulException ;
328
332
333
+ /**
334
+ * To list Droplets by a tag.
335
+ *
336
+ * The response will match that of regular droplet listing request but will be filtered to only
337
+ * include the tagged Droplets.
338
+ *
339
+ * @param tagName for tagName
340
+ * @param pageNo for pagination
341
+ * @param perPage for pagination
342
+ * @return {@link Droplets}
343
+ * @throws DigitalOceanException if request had interruption [
344
+ * <code>HTTP status code >= 400 && < 510</code>]
345
+ * @throws RequestUnsuccessfulException if any RESTful request unsuccessful from wrapper method
346
+ *
347
+ * @since v2.16
348
+ */
349
+ Droplets getAvailableDropletsByTagName (String tagName , Integer pageNo , Integer perPage )
350
+ throws DigitalOceanException , RequestUnsuccessfulException ;
351
+
352
+ // ===========================================
329
353
// Droplet Action methods
354
+ // ===========================================
330
355
331
356
/**
332
357
* Method allows you to reboot a droplet. This is the preferred method to use if a server is not
@@ -446,7 +471,7 @@ Action resizeDroplet(Integer dropletId, String size)
446
471
* @since v1.0
447
472
*/
448
473
Action resizeDroplet (Integer dropletId , String size , Boolean disk )
449
- throws DigitalOceanException , RequestUnsuccessfulException ;
474
+ throws DigitalOceanException , RequestUnsuccessfulException ;
450
475
451
476
/**
452
477
* Method allows you to take a snapshot of the running droplet, which can later be restored or
@@ -709,6 +734,7 @@ Action getFloatingIPActionInfo(String ipAddress, Integer actionId)
709
734
// ==============================================
710
735
// Images manipulation (aka Distribution) methods
711
736
// ==============================================
737
+
712
738
/**
713
739
* Method returns all the available images that can be accessed by your OAuth Token. You will have
714
740
* access to all public images by default, and any snapshots or backups that you have created in
@@ -840,6 +866,7 @@ Action transferImage(Integer imageId, String regionSlug)
840
866
// ===========================================
841
867
// Regions (aka Data Centers) methods
842
868
// ===========================================
869
+
843
870
/**
844
871
* Method returns all the available regions within the DigitalOcean cloud.
845
872
*
@@ -857,6 +884,7 @@ Regions getAvailableRegions(Integer pageNo)
857
884
// ===========================================
858
885
// Sizes (aka Available Droplet Plans) methods
859
886
// ===========================================
887
+
860
888
/**
861
889
* Method returns all the available sizes that can be used to create a droplet.
862
890
*
@@ -874,6 +902,7 @@ Sizes getAvailableSizes(Integer pageNo)
874
902
// ===========================================
875
903
// Domain manipulation methods
876
904
// ===========================================
905
+
877
906
/**
878
907
* Method returns all of your available domains from DNS control panel
879
908
*
@@ -1010,6 +1039,7 @@ Delete deleteDomainRecord(String domainName, Integer recordId)
1010
1039
// ===========================================
1011
1040
// SSH Key manipulation methods
1012
1041
// ===========================================
1042
+
1013
1043
/**
1014
1044
* Method lists all the available public SSH keys in your account that can be added to a droplet.
1015
1045
*
@@ -1123,6 +1153,7 @@ Key updateKey(String fingerprint, String newSshKeyName)
1123
1153
// ===========================================
1124
1154
// Floating IP manipulation methods
1125
1155
// ===========================================
1156
+
1126
1157
/**
1127
1158
* Method will list all of the Floating IPs available from your account.
1128
1159
*
@@ -1634,8 +1665,8 @@ Delete deleteSnapshot(String snapshotId)
1634
1665
*
1635
1666
* @since v2.11
1636
1667
*/
1637
- LoadBalancer createLoadBalancer (LoadBalancer loadBalancer ) throws DigitalOceanException ,
1638
- RequestUnsuccessfulException ;
1668
+ LoadBalancer createLoadBalancer (LoadBalancer loadBalancer )
1669
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1639
1670
1640
1671
/**
1641
1672
* Method returns complete information for given load balancer ID.
@@ -1681,8 +1712,8 @@ LoadBalancers getAvailableLoadBalancers(Integer pageNo, Integer perPage)
1681
1712
*
1682
1713
* @since v2.11
1683
1714
*/
1684
- LoadBalancer updateLoadBalancer (LoadBalancer loadBalancer ) throws DigitalOceanException ,
1685
- RequestUnsuccessfulException ;
1715
+ LoadBalancer updateLoadBalancer (LoadBalancer loadBalancer )
1716
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1686
1717
1687
1718
/**
1688
1719
* Method allows you to assign a Droplet to a Load Balancer instance.
@@ -1698,8 +1729,7 @@ LoadBalancer updateLoadBalancer(LoadBalancer loadBalancer) throws DigitalOceanEx
1698
1729
* @since v2.11
1699
1730
*/
1700
1731
Response addDropletsToLoadBalancer (String loadBalancerId , List <Integer > dropletIds )
1701
- throws DigitalOceanException ,
1702
- RequestUnsuccessfulException ;
1732
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1703
1733
1704
1734
/**
1705
1735
* Method allows you to remove a Droplet from a Load Balancer instance.
@@ -1715,8 +1745,7 @@ Response addDropletsToLoadBalancer(String loadBalancerId, List<Integer> dropletI
1715
1745
* @since v2.11
1716
1746
*/
1717
1747
Delete removeDropletsFromLoadBalancer (String loadBalancerId , List <Integer > dropletIds )
1718
- throws DigitalOceanException ,
1719
- RequestUnsuccessfulException ;
1748
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1720
1749
1721
1750
/**
1722
1751
* Method allows you to add an additional forwarding rule to a Load Balancer instance.
@@ -1732,8 +1761,8 @@ Delete removeDropletsFromLoadBalancer(String loadBalancerId, List<Integer> dropl
1732
1761
* @since v2.11
1733
1762
*/
1734
1763
Response addForwardingRulesToLoadBalancer (String loadBalancerId ,
1735
- List <ForwardingRules > forwardingRules ) throws DigitalOceanException ,
1736
- RequestUnsuccessfulException ;
1764
+ List <ForwardingRules > forwardingRules )
1765
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1737
1766
1738
1767
/**
1739
1768
* Method allows you to remove forwarding rules from a Load Balancer instance.
@@ -1749,8 +1778,8 @@ Response addForwardingRulesToLoadBalancer(String loadBalancerId,
1749
1778
* @since v2.11
1750
1779
*/
1751
1780
Delete removeForwardingRulesFromLoadBalancer (String loadBalancerId ,
1752
- List <ForwardingRules > forwardingRules ) throws DigitalOceanException ,
1753
- RequestUnsuccessfulException ;
1781
+ List <ForwardingRules > forwardingRules )
1782
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1754
1783
1755
1784
/**
1756
1785
* Method allows you to delete a Load Balancer instance, disassociating any Droplets assigned to
@@ -1764,8 +1793,8 @@ Delete removeForwardingRulesFromLoadBalancer(String loadBalancerId,
1764
1793
*
1765
1794
* @since v2.11
1766
1795
*/
1767
- Delete deleteLoadBalancer (String loadBalancerId ) throws DigitalOceanException ,
1768
- RequestUnsuccessfulException ;
1796
+ Delete deleteLoadBalancer (String loadBalancerId )
1797
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1769
1798
1770
1799
// ===========================================
1771
1800
// Certificates manipulation methods
@@ -1784,8 +1813,7 @@ Delete deleteLoadBalancer(String loadBalancerId) throws DigitalOceanException,
1784
1813
* @since v2.12
1785
1814
**/
1786
1815
Certificates getAvailableCertificates (Integer pageNo , Integer perPage )
1787
- throws DigitalOceanException ,
1788
- RequestUnsuccessfulException ;
1816
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1789
1817
1790
1818
/**
1791
1819
* <p>
@@ -1814,8 +1842,8 @@ Certificates getAvailableCertificates(Integer pageNo, Integer perPage)
1814
1842
*
1815
1843
* @since v2.12
1816
1844
*/
1817
- Certificate createCertificate (Certificate certificate ) throws DigitalOceanException ,
1818
- RequestUnsuccessfulException ;
1845
+ Certificate createCertificate (Certificate certificate )
1846
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1819
1847
1820
1848
/**
1821
1849
* Method returns the Certificate information for given certificate ID.
@@ -1828,8 +1856,8 @@ Certificate createCertificate(Certificate certificate) throws DigitalOceanExcept
1828
1856
*
1829
1857
* @since v2.12
1830
1858
*/
1831
- Certificate getCertificateInfo (String certificateId ) throws DigitalOceanException ,
1832
- RequestUnsuccessfulException ;
1859
+ Certificate getCertificateInfo (String certificateId )
1860
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1833
1861
1834
1862
/**
1835
1863
* Method allows you to delete a Certificate by Id from your account.
@@ -1842,18 +1870,18 @@ Certificate getCertificateInfo(String certificateId) throws DigitalOceanExceptio
1842
1870
*
1843
1871
* @since v2.12
1844
1872
*/
1845
- Delete deleteCertificate (String certificateId ) throws DigitalOceanException ,
1846
- RequestUnsuccessfulException ;
1847
-
1848
- //===========================================
1873
+ Delete deleteCertificate (String certificateId )
1874
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1875
+
1876
+ // ===========================================
1849
1877
// Firewalls manipulation methods
1850
1878
// ===========================================
1851
-
1879
+
1852
1880
/**
1853
1881
* Method allows you to add a new firewall to restrict network access to and from a Droplet.
1854
1882
*
1855
- * The Firewall object passed in param can have a list of dropletIds set as dropletIds
1856
- * attribute. In this case, given Droplets will use the Firewall rules.
1883
+ * The Firewall object passed in param can have a list of dropletIds set as dropletIds attribute.
1884
+ * In this case, given Droplets will use the Firewall rules.
1857
1885
*
1858
1886
* You may also use a Droplet tag to assign a group of Droplets to use the Firewall in place of a
1859
1887
* list of Droplet IDs. In this case, set the tag attribute of the Firewall object passed in
@@ -1867,9 +1895,9 @@ Delete deleteCertificate(String certificateId) throws DigitalOceanException,
1867
1895
*
1868
1896
* @since v2.16
1869
1897
*/
1870
- Firewall createFirewall (Firewall firewall ) throws DigitalOceanException ,
1871
- RequestUnsuccessfulException ;
1872
-
1898
+ Firewall createFirewall (Firewall firewall )
1899
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1900
+
1873
1901
/**
1874
1902
* Method returns complete information for given firewall ID.
1875
1903
*
@@ -1883,12 +1911,12 @@ Firewall createFirewall(Firewall firewall) throws DigitalOceanException,
1883
1911
*/
1884
1912
Firewall getFirewallInfo (String firewallId )
1885
1913
throws DigitalOceanException , RequestUnsuccessfulException ;
1886
-
1914
+
1887
1915
/**
1888
- * Method allows you to update an existing fireawll. The Firewall object passed in param
1889
- * should contain a full representation of the Firewall including existing attributes. It may
1890
- * contain one of the dropletIds or tag parameter as they are mutually exclusive. Note that any
1891
- * attribute that is not provided will be reset to its default value.
1916
+ * Method allows you to update an existing fireawll. The Firewall object passed in param should
1917
+ * contain a full representation of the Firewall including existing attributes. It may contain one
1918
+ * of the dropletIds or tag parameter as they are mutually exclusive. Note that any attribute that
1919
+ * is not provided will be reset to its default value.
1892
1920
*
1893
1921
* @param firewall the instance of the firewall class
1894
1922
* @return {@link Firewall}
@@ -1898,12 +1926,12 @@ Firewall getFirewallInfo(String firewallId)
1898
1926
*
1899
1927
* @since v2.16
1900
1928
*/
1901
- Firewall updateFirewall (Firewall firewall ) throws DigitalOceanException ,
1902
- RequestUnsuccessfulException ;
1903
-
1929
+ Firewall updateFirewall (Firewall firewall )
1930
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1931
+
1904
1932
/**
1905
- * Method allows you to delete a Firewall instance, disassociating any Droplets assigned to
1906
- * it and removing it from your account.
1933
+ * Method allows you to delete a Firewall instance, disassociating any Droplets assigned to it and
1934
+ * removing it from your account.
1907
1935
*
1908
1936
* @param firewallId the id of the firewall
1909
1937
* @return {@link Delete}
@@ -1913,13 +1941,13 @@ Firewall updateFirewall(Firewall firewall) throws DigitalOceanException,
1913
1941
*
1914
1942
* @since v2.16
1915
1943
*/
1916
- Delete deleteFirewall (String firewallId ) throws DigitalOceanException ,
1917
- RequestUnsuccessfulException ;
1944
+ Delete deleteFirewall (String firewallId )
1945
+ throws DigitalOceanException , RequestUnsuccessfulException ;
1946
+
1918
1947
1919
-
1920
1948
/**
1921
- * Method returns all available firewalls that are currently running in your account. All available
1922
- * API information is presented for each firewall.
1949
+ * Method returns all available firewalls that are currently running in your account. All
1950
+ * available API information is presented for each firewall.
1923
1951
*
1924
1952
* @param pageNo for pagination
1925
1953
* @param perPage no. of items per page
0 commit comments