Skip to content

Commit 8a2d253

Browse files
author
Thomas Crombez
authored
General fixes (#104)
* Added IDE specific files to .gitignore * Fixed javadocs warnings
1 parent 79d7acf commit 8a2d253

File tree

5 files changed

+25
-13
lines changed

5 files changed

+25
-13
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ bin/
1414
# custom
1515
/javadoc/**
1616
/2.*/**
17+
.idea/
18+
*.iml

pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<verbose>true</verbose>
115115
<reportOutputDirectory>${javadoc.output.path}</reportOutputDirectory>
116116
<destDir>${project.version}</destDir>
117+
<additionalOptions>--allow-script-in-comments</additionalOptions>
117118
</configuration>
118119
</plugin>
119120
<plugin>

src/main/java/com/myjeeva/digitalocean/DigitalOcean.java

+14-12
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ Snapshots getDropletSnapshots(Integer dropletId, Integer pageNo, Integer perPage
178178
*
179179
* @param dropletId for backup info
180180
* @param pageNo for pagination
181+
* @param perPage no. of items per page
181182
* @return {@link Backups}
182183
* @throws DigitalOceanException if request had interruption [
183184
* <code>HTTP status code &gt;= 400 &amp;&amp; &lt; 510</code>]
@@ -1449,7 +1450,7 @@ Volumes getVolumeInfo(String volumeName, String regionSlug)
14491450
/**
14501451
* Method deletes volume by name and region slug
14511452
*
1452-
* @param volumeName
1453+
* @param volumeName name of the volume
14531454
* @param regionSlug is code name of the region aka DigitalOcean data centers
14541455
* @return {@link Delete}
14551456
* @throws DigitalOceanException if request had interruption [
@@ -1468,8 +1469,9 @@ Delete deleteVolume(String volumeName, String regionSlug)
14681469
* @param volumeId volume identifier
14691470
* @param regionSlug is code name of the region aka DigitalOcean data centers
14701471
* @return {@link Action}
1471-
* @throws DigitalOceanException
1472-
* @throws RequestUnsuccessfulException
1472+
* @throws DigitalOceanException if request had interruption [
1473+
* <code>HTTP status code &gt;= 400 &amp;&amp; &lt; 510</code>]
1474+
* @throws RequestUnsuccessfulException if any RESTful request unsuccessful from wrapper method
14731475
*/
14741476
Action attachVolume(Integer dropletId, String volumeId, String regionSlug)
14751477
throws DigitalOceanException, RequestUnsuccessfulException;
@@ -1478,7 +1480,7 @@ Action attachVolume(Integer dropletId, String volumeId, String regionSlug)
14781480
* Method attaches the given volume into droplet by name
14791481
*
14801482
* @param dropletId droplet identifier
1481-
* @param volumeName
1483+
* @param volumeName name of the volume
14821484
* @param regionSlug is code name of the region aka DigitalOcean data centers
14831485
* @return {@link Action}
14841486
* @throws DigitalOceanException if request had interruption [
@@ -1510,7 +1512,7 @@ Action detachVolume(Integer dropletId, String volumeId, String regionSlug)
15101512
* Method detaches volume from the droplet by volume name
15111513
*
15121514
* @param dropletId droplet identifier
1513-
* @param volumeName
1515+
* @param volumeName name of the volume
15141516
* @param regionSlug is code name of the region aka DigitalOcean data centers
15151517
* @return {@link Action}
15161518
* @throws DigitalOceanException if request had interruption [
@@ -1553,10 +1555,10 @@ Actions getAvailableVolumeActions(String volumeId)
15531555
throws DigitalOceanException, RequestUnsuccessfulException;
15541556

15551557
/**
1556-
* Method returns specific volume action by action & volume identifier
1558+
* Method returns specific volume action by action and volume identifier
15571559
*
1558-
* @param volumeId
1559-
* @param actionId
1560+
* @param volumeId volume identifier
1561+
* @param actionId the id of action
15601562
* @return {@link Action}
15611563
* @throws DigitalOceanException if request had interruption [
15621564
* <code>HTTP status code &gt;= 400 &amp;&amp; &lt; 510</code>]
@@ -1570,7 +1572,7 @@ Action getVolumeAction(String volumeId, Integer actionId)
15701572
/**
15711573
* Method return all of the snapshots for given volume Id
15721574
*
1573-
* @param volumeId
1575+
* @param volumeId volume identifier
15741576
* @param pageNo for pagination
15751577
* @param perPage no. of items per page
15761578
* @return {@link Snapshots}
@@ -1586,8 +1588,8 @@ Snapshots getVolumeSnapshots(String volumeId, Integer pageNo, Integer perPage)
15861588
/**
15871589
* Method take snapshot of given volume Id
15881590
*
1589-
* @param volumeId
1590-
* @param snapshotName
1591+
* @param volumeId volume identifier
1592+
* @param snapshotName the name the snapshot to be created
15911593
* @return {@link Snapshot}
15921594
* @throws DigitalOceanException if request had interruption [
15931595
* <code>HTTP status code &gt;= 400 &amp;&amp; &lt; 510</code>]
@@ -1650,7 +1652,7 @@ Snapshots getAllVolumeSnapshots(Integer pageNo, Integer perPage)
16501652
/**
16511653
* Method returns specific snapshot info by id
16521654
*
1653-
* @param snapshotId
1655+
* @param snapshotId for snapshot
16541656
* @return {@link Snapshot}
16551657
* @throws DigitalOceanException if request had interruption [
16561658
* <code>HTTP status code &gt;= 400 &amp;&amp; &lt; 510</code>]

src/main/java/com/myjeeva/digitalocean/pojo/Certificate.java

+7
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ public Certificate() {
8686

8787
/**
8888
* Constructor for new certificate create request.
89+
* @param name the name for the certificate
90+
* @param privateKey the private key
91+
* @param leafCertificate the leaf certificate
92+
* @param certificateChain the certificate chain
8993
*/
9094
public Certificate(String name, String privateKey, String leafCertificate,
9195
String certificateChain) {
@@ -97,6 +101,9 @@ public Certificate(String name, String privateKey, String leafCertificate,
97101

98102
/**
99103
* Constructor for new Let's Encrypt certificate create request.
104+
* @param name the name for the certificate
105+
* @param type the type of the certificate
106+
* @param dnsNames list of dns names
100107
*/
101108
public Certificate(String name, String type, List<String> dnsNames) {
102109
this.name = name;

src/main/java/com/myjeeva/digitalocean/pojo/VolumeAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public VolumeAction(ActionType type, String regionSlug, Double size) {
7676
* @param type action type of the volume
7777
* @param dropletId is to attach/detach volume from droplet
7878
* @param regionSlug short name of region
79-
* @param volumeName
79+
* @param volumeName name of the volume
8080
* @param size volume size in GB
8181
*/
8282
public VolumeAction(ActionType type, Integer dropletId, String regionSlug, String volumeName,

0 commit comments

Comments
 (0)