Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit 963777b

Browse files
Merge pull request #5 from jasper-schneider/docUpdates
Update Javadoc comments
2 parents c337214 + 49f87f7 commit 963777b

File tree

281 files changed

+4282
-2419
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+4282
-2419
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var isMac = (process.platform.lastIndexOf('darwin') === 0);
2828

2929
var specRoot = args['spec-root'] || "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master";
3030
var projects = 'batchService'; // default
31-
var autoRestVersion = '0.17.0-Nightly20160706'; // default
31+
var autoRestVersion = '0.17.0-Nightly20160727'; // default
3232
if (args['autorest'] !== undefined) {
3333
autoRestVersion = args['autorest'];
3434
}

src/main/java/com/microsoft/azure/batch/AccountOperations.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.List;
1919

2020
/**
21-
* Performs account related operations on an Azure Batch account.
21+
* Performs account-related operations on an Azure Batch account.
2222
*/
2323
public class AccountOperations implements IInheritedBehaviors {
2424

@@ -34,20 +34,20 @@ public class AccountOperations implements IInheritedBehaviors {
3434
private BatchClient _parentBatchClient;
3535

3636
/**
37-
* Gets a list of behaviors that modify or customize requests to the Batch service.
37+
* Gets a collection of behaviors that modify or customize requests to the Batch service.
3838
*
39-
* @return A list of BatchClientBehavior
39+
* @return A collection of {@link BatchClientBehavior} instances.
4040
*/
4141
@Override
4242
public Collection<BatchClientBehavior> customBehaviors() {
4343
return _customBehaviors;
4444
}
4545

4646
/**
47-
* Sets a list of behaviors that modify or customize requests to the Batch service.
47+
* Sets a collection of behaviors that modify or customize requests to the Batch service.
4848
*
49-
* @param behaviors The collection of BatchClientBehavior classes
50-
* @return The current instance
49+
* @param behaviors The collection of {@link BatchClientBehavior} instances.
50+
* @return The current instance.
5151
*/
5252
@Override
5353
public IInheritedBehaviors withCustomBehaviors(Collection<BatchClientBehavior> behaviors) {
@@ -56,36 +56,36 @@ public IInheritedBehaviors withCustomBehaviors(Collection<BatchClientBehavior> b
5656
}
5757

5858
/**
59-
* Enumerates the node agent SKU values supported by Batch Service.
59+
* Lists the node agent SKU values supported by the Batch service.
6060
*
61-
* @return A collection of {@link NodeAgentSku} that can be used to enumerate node agent SKU values
62-
* @throws BatchErrorException Exception thrown from REST call
63-
* @throws IOException Exception thrown from serialization/deserialization
61+
* @return A list of {@link NodeAgentSku} objects.
62+
* @throws BatchErrorException Exception thrown when an error response is received from the Batch service.
63+
* @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
6464
*/
6565
public List<NodeAgentSku> listNodeAgentSkus() throws BatchErrorException, IOException {
6666
return listNodeAgentSkus(null, null);
6767
}
6868

6969
/**
70-
* Enumerates the node agent SKU values supported by Batch Service.
70+
* Lists the node agent SKU values supported by the Batch service.
7171
*
7272
* @param detailLevel A {@link DetailLevel} used for filtering the list and for controlling which properties are retrieved from the service.
73-
* @return An collection of {@link NodeAgentSku} that can be used to enumerate node agent SKU values
74-
* @throws BatchErrorException Exception thrown from REST call
75-
* @throws IOException Exception thrown from serialization/deserialization
73+
* @return A list of {@link NodeAgentSku} objects.
74+
* @throws BatchErrorException Exception thrown when an error response is received from the Batch service.
75+
* @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
7676
*/
7777
public List<NodeAgentSku> listNodeAgentSkus(DetailLevel detailLevel) throws BatchErrorException, IOException {
7878
return listNodeAgentSkus(detailLevel, null);
7979
}
8080

8181
/**
82-
* Enumerates the node agent SKU values supported by Batch Service.
82+
* Lists the node agent SKU values supported by the Batch service.
8383
*
8484
* @param detailLevel A {@link DetailLevel} used for filtering the list and for controlling which properties are retrieved from the service.
8585
* @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request.
86-
* @return A collection of {@link NodeAgentSku} that can be used to enumerate node agent SKU values
87-
* @throws BatchErrorException Exception thrown from REST call
88-
* @throws IOException Exception thrown from serialization/deserialization
86+
* @return A list of {@link NodeAgentSku} objects.
87+
* @throws BatchErrorException Exception thrown when an error response is received from the Batch service.
88+
* @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
8989
*/
9090
public List<NodeAgentSku> listNodeAgentSkus(DetailLevel detailLevel, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException {
9191
AccountListNodeAgentSkusOptions options = new AccountListNodeAgentSkusOptions();
@@ -97,4 +97,4 @@ public List<NodeAgentSku> listNodeAgentSkus(DetailLevel detailLevel, Iterable<Ba
9797

9898
return response.getBody();
9999
}
100-
}
100+
}

src/main/java/com/microsoft/azure/batch/ApplicationOperations.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
import java.util.List;
2121

2222
/**
23-
* Performs application related operations on an Azure Batch account.
23+
* Performs application-related operations on an Azure Batch account.
2424
*/
25-
public class ApplicationOperations implements IInheritedBehaviors {
25+
public class ApplicationOperations implements IInheritedBehaviors {
2626

2727
ApplicationOperations(BatchClient batchClient, Collection<BatchClientBehavior> customBehaviors) {
2828
_parentBatchClient = batchClient;
@@ -36,20 +36,20 @@ public class ApplicationOperations implements IInheritedBehaviors {
3636
private BatchClient _parentBatchClient;
3737

3838
/**
39-
* Gets a list of behaviors that modify or customize requests to the Batch service.
39+
* Gets a collection of behaviors that modify or customize requests to the Batch service.
4040
*
41-
* @return A list of BatchClientBehavior
41+
* @return A collection of {@link BatchClientBehavior} instances.
4242
*/
4343
@Override
4444
public Collection<BatchClientBehavior> customBehaviors() {
4545
return _customBehaviors;
4646
}
4747

4848
/**
49-
* Sets a list of behaviors that modify or customize requests to the Batch service.
49+
* Sets a collection of behaviors that modify or customize requests to the Batch service.
5050
*
51-
* @param behaviors The collection of BatchClientBehavior classes
52-
* @return The current instance
51+
* @param behaviors The collection of {@link BatchClientBehavior} instances.
52+
* @return The current instance.
5353
*/
5454
@Override
5555
public IInheritedBehaviors withCustomBehaviors(Collection<BatchClientBehavior> behaviors) {
@@ -58,23 +58,23 @@ public IInheritedBehaviors withCustomBehaviors(Collection<BatchClientBehavior> b
5858
}
5959

6060
/**
61-
* Enumerates the {@link ApplicationSummary applications} in the Batch account.
61+
* Lists the {@link ApplicationSummary applications} in the Batch account.
6262
*
63-
* @return A collection of {@link ApplicationSummary}
64-
* @throws BatchErrorException Exception thrown from REST call
65-
* @throws IOException Exception thrown from serialization/deserialization
63+
* @return A list of {@link ApplicationSummary} objects.
64+
* @throws BatchErrorException Exception thrown when an error response is received from the Batch service.
65+
* @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
6666
*/
6767
public List<ApplicationSummary> listApplications() throws BatchErrorException, IOException {
6868
return listApplications(null);
6969
}
7070

7171
/**
72-
* Enumerates the {@link ApplicationSummary applications} in the Batch account.
72+
* Lists the {@link ApplicationSummary applications} in the Batch account.
7373
*
7474
* @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request.
75-
* @return A collection of {@link ApplicationSummary}
76-
* @throws BatchErrorException Exception thrown from REST call
77-
* @throws IOException Exception thrown from serialization/deserialization
75+
* @return A list of {@link ApplicationSummary} objects.
76+
* @throws BatchErrorException Exception thrown when an error response is received from the Batch service.
77+
* @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
7878
*/
7979
public List<ApplicationSummary> listApplications(Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException {
8080
ApplicationListOptions options = new ApplicationListOptions();
@@ -91,8 +91,8 @@ public List<ApplicationSummary> listApplications(Iterable<BatchClientBehavior> a
9191
*
9292
* @param applicationId The ID of the application to get.
9393
* @return An {@link ApplicationSummary} containing information about the specified application.
94-
* @throws BatchErrorException Exception thrown from REST call
95-
* @throws IOException Exception thrown from serialization/deserialization
94+
* @throws BatchErrorException Exception thrown when an error response is received from the Batch service.
95+
* @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
9696
*/
9797
public ApplicationSummary getApplication(String applicationId) throws BatchErrorException, IOException {
9898
return getApplication(applicationId, null);
@@ -104,8 +104,8 @@ public ApplicationSummary getApplication(String applicationId) throws BatchError
104104
* @param applicationId The ID of the application to get.
105105
* @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request.
106106
* @return An {@link ApplicationSummary} containing information about the specified application.
107-
* @throws BatchErrorException Exception thrown from REST call
108-
* @throws IOException Exception thrown from serialization/deserialization
107+
* @throws BatchErrorException Exception thrown when an error response is received from the Batch service.
108+
* @throws IOException Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.
109109
*/
110110
public ApplicationSummary getApplication(String applicationId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException {
111111
ApplicationGetOptions options = new ApplicationGetOptions();

src/main/java/com/microsoft/azure/batch/BatchClient.java

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public class BatchClient {
3232
private Collection<BatchClientBehavior> customBehaviors;
3333

3434
/**
35-
* Gets the internal proxy layer to be used for this client instance
35+
* Gets the protocol layer service client that issues requests to the Azure Batch service.
3636
*
37-
* @return The proxy layer client
37+
* @return The protocol layer client.
3838
*/
3939
public BatchServiceClient protocolLayer() {
4040
return this.protocolLayer;
@@ -58,108 +58,108 @@ private BatchClient(BatchSharedKeyCredentials credentials) {
5858
/**
5959
* Creates an instance of {@link BatchClient} associated with the specified credentials.
6060
*
61-
* @param credentials The provided credential
62-
* @return The new instance of BatchClient
61+
* @param credentials A {@link BatchSharedKeyCredentials} object specifying the Batch account credentials.
62+
* @return The new {@link BatchClient} instance.
6363
*/
6464
public static BatchClient open(BatchSharedKeyCredentials credentials) {
6565
return new BatchClient(credentials);
6666
}
6767

6868
/**
69-
* Gets an {@link CertificateOperations} for performing certificate related operations on the associated account.
69+
* Gets a {@link CertificateOperations} object for performing certificate-related operations on the associated account.
7070
*
71-
* @return An instance of CertificateOperations class
71+
* @return An instance of the {@link CertificateOperations} class.
7272
*/
7373
public CertificateOperations certificateOperations() {
7474
return certificateOperations;
7575
}
7676

7777
/**
78-
* Gets an {@link JobOperations} for performing job related operations on the associated account.
78+
* Gets a {@link JobOperations} object for performing job-related operations on the associated account.
7979
*
80-
* @return An instance of JobOperations class
80+
* @return An instance of the {@link JobOperations} class.
8181
*/
8282
public JobOperations jobOperations() {
8383
return jobOperations;
8484
}
8585

8686
/**
87-
* Gets an {@link TaskOperations} for performing task related operations on the associated account.
87+
* Gets a {@link TaskOperations} object for performing task-related operations on the associated account.
8888
*
89-
* @return An instance of TaskOperations class
89+
* @return An instance of the {@link TaskOperations} class.
9090
*/
9191
public TaskOperations taskOperations() {
9292
return taskOperations;
9393
}
9494

9595
/**
96-
* Gets an {@link JobScheduleOperations} for performing job schedule related operations on the associated account.
96+
* Gets a {@link JobScheduleOperations} object for performing job schedule-related operations on the associated account.
9797
*
98-
* @return An instance of JobScheduleOperations class
98+
* @return An instance of the {@link JobScheduleOperations} class.
9999
*/
100100
public JobScheduleOperations jobScheduleOperations() {
101101
return jobScheduleOperations;
102102
}
103103

104104
/**
105-
* Gets an {@link FileOperations} for performing file-related operations on the associated account.
105+
* Gets a {@link FileOperations} object for performing file-related operations on the associated account.
106106
*
107-
* @return An instance of FileOperations class
107+
* @return An instance of the {@link FileOperations} class.
108108
*/
109109
public FileOperations fileOperations() {
110110
return fileOperations;
111111
}
112112

113113
/**
114-
* Gets an {@link PoolOperations} for performing pool related operations on the associated account.
114+
* Gets a {@link PoolOperations} object for performing pool-related operations on the associated account.
115115
*
116-
* @return An instance of PoolOperations class
116+
* @return An instance of the {@link PoolOperations} class.
117117
*/
118118
public PoolOperations poolOperations() {
119119
return poolOperations;
120120
}
121121

122122
/**
123-
* Gets an {@link ComputeNodeOperations} for performing compute node related operations on the associated account.
123+
* Gets a {@link ComputeNodeOperations} object for performing compute node-related operations on the associated account.
124124
*
125-
* @return An instance of ComputeNodeOperations class
125+
* @return An instance of the {@link ComputeNodeOperations} class.
126126
*/
127127
public ComputeNodeOperations computeNodeOperations() {
128128
return computeNodeOperations;
129129
}
130130

131131
/**
132-
* Gets an {@link ApplicationOperations} for performing application related operations on the associated account.
132+
* Gets an {@link ApplicationOperations} object for performing application-related operations on the associated account.
133133
*
134-
* @return An instance of ApplicationOperations class
134+
* @return An instance of the {@link ApplicationOperations} class.
135135
*/
136136
public ApplicationOperations applicationOperations() {
137137
return applicationOperations;
138138
}
139139

140140
/**
141-
* Gets an {@link AccountOperations} for performing account related operations on the associated account.
141+
* Gets an {@link AccountOperations} object for performing account-related operations on the associated account.
142142
*
143-
* @return An instance of AccountOperations class
143+
* @return An instance of the {@link AccountOperations} class.
144144
*/
145145
public AccountOperations accountOperations() {
146146
return accountOperations;
147147
}
148148

149149
/**
150-
* Gets a list of behaviors that modify or customize requests to the Batch service.
150+
* Gets a collection of behaviors that modify or customize requests to the Batch service.
151151
*
152-
* @return The collection of BatchClientBehavior classes.
152+
* @return The collection of {@link BatchClientBehavior} instances.
153153
*/
154154
public Collection<BatchClientBehavior> customBehaviors() {
155155
return customBehaviors;
156156
}
157157

158158
/**
159-
* Sets a list of behaviors that modify or customize requests to the Batch service.
159+
* Sets a collection of behaviors that modify or customize requests to the Batch service.
160160
*
161-
* @param customBehaviors The collection of BatchClientBehavior classes.
162-
* @return A BatchClient instance
161+
* @param customBehaviors The collection of {@link BatchClientBehavior} instances.
162+
* @return The current instance.
163163
*/
164164
public BatchClient withCustomBehaviors(Collection<BatchClientBehavior> customBehaviors) {
165165
this.customBehaviors = customBehaviors;

src/main/java/com/microsoft/azure/batch/BatchClientBehavior.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
package com.microsoft.azure.batch;
88

99
/**
10-
* Derived classes modify operational behaviors of a Azure Batch Service client.
10+
* Classes derived from the BatchClientBehavior class modify operational behaviors of an Azure Batch client.
1111
*/
1212
public abstract class BatchClientBehavior {
1313
}

src/main/java/com/microsoft/azure/batch/BatchErrorCodeStrings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
package com.microsoft.azure.batch;
88

99
/**
10-
* Contains possible error code with BatchErrorException
10+
* Error code strings returned from the Batch service.
1111
*/
1212
public final class BatchErrorCodeStrings {
1313
// Batch Service
@@ -433,7 +433,7 @@ public final class BatchErrorCodeStrings {
433433
public static final String InvalidHeaderValue = "InvalidHeaderValue";
434434

435435
/**
436-
* The Batch service did not recognise the HTTP verb.
436+
* The Batch service did not recognize the HTTP verb used for the request.
437437
*/
438438
public static final String InvalidHttpVerb = "InvalidHttpVerb";
439439

0 commit comments

Comments
 (0)