Skip to content

Commit df77afd

Browse files
authored
Update Javadoc of premium SDK for azure-resourcemanager-authorization (#43489)
1 parent 5e9b63f commit df77afd

File tree

15 files changed

+271
-49
lines changed

15 files changed

+271
-49
lines changed

sdk/resourcemanager/azure-resourcemanager-authorization/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
--add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
4848
</javaModulesSurefireArgLine>
4949
<javadoc.excludePackageNames>com.azure.json,com.azure.core.*,*.fluent:,*.fluent*:</javadoc.excludePackageNames>
50-
<doclintMissingInclusion>-</doclintMissingInclusion>
5150
</properties>
5251

5352
<developers>

sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/AuthorizationManager.java

Lines changed: 47 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,72 +128,110 @@ private AuthorizationManager(HttpPipeline httpPipeline, AzureProfile profile) {
128128
}
129129

130130
/**
131+
* Gets wrapped inner authorization client.
132+
*
131133
* @return wrapped inner authorization client providing direct access to auto-generated API implementation, based on
132134
* Azure REST API
133135
*/
134136
public AuthorizationManagementClient roleServiceClient() {
135137
return authorizationManagementClient;
136138
}
137139

138-
/** @return the tenant ID the graph client is associated with */
140+
/**
141+
* Gets the tenant ID the graph client is associated with.
142+
*
143+
* @return the tenant ID the graph client is associated with
144+
*/
139145
public String tenantId() {
140146
return tenantId;
141147
}
142148

143-
/** @return the environment the graph client is associated with */
149+
/**
150+
* Gets the environment the graph client is associated with.
151+
*
152+
* @return the environment the graph client is associated with
153+
*/
144154
public AzureEnvironment environment() {
145155
return environment;
146156
}
147157

148-
/** @return the {@link ResourceManagerUtils.InternalRuntimeContext} associated with this manager */
158+
/**
159+
* Gets the {@link ResourceManagerUtils.InternalRuntimeContext} associated with this manager.
160+
*
161+
* @return the {@link ResourceManagerUtils.InternalRuntimeContext} associated with this manager
162+
*/
149163
public ResourceManagerUtils.InternalRuntimeContext internalContext() {
150164
if (internalContext == null) {
151165
internalContext = new ResourceManagerUtils.InternalRuntimeContext();
152166
}
153167
return internalContext;
154168
}
155169

156-
/** @return the Active Directory user management API entry point */
170+
/**
171+
* Gets the Active Directory user management API entry point.
172+
*
173+
* @return the Active Directory user management API entry point
174+
*/
157175
public ActiveDirectoryUsers users() {
158176
if (activeDirectoryUsers == null) {
159177
activeDirectoryUsers = new ActiveDirectoryUsersImpl(this);
160178
}
161179
return activeDirectoryUsers;
162180
}
163181

164-
/** @return the Active Directory group management API entry point */
182+
/**
183+
* Gets the Active Directory group management API entry point.
184+
*
185+
* @return the Active Directory group management API entry point
186+
*/
165187
public ActiveDirectoryGroups groups() {
166188
if (activeDirectoryGroups == null) {
167189
activeDirectoryGroups = new ActiveDirectoryGroupsImpl(this);
168190
}
169191
return activeDirectoryGroups;
170192
}
171193

172-
/** @return the service principal management API entry point */
194+
/**
195+
* Gets the service principal management API entry point.
196+
*
197+
* @return the service principal management API entry point
198+
*/
173199
public ServicePrincipals servicePrincipals() {
174200
if (servicePrincipals == null) {
175201
servicePrincipals = new ServicePrincipalsImpl(this);
176202
}
177203
return servicePrincipals;
178204
}
179205

180-
/** @return the application management API entry point */
206+
/**
207+
* Gets the application management API entry point.
208+
*
209+
* @return the application management API entry point
210+
*/
181211
public ActiveDirectoryApplications applications() {
182212
if (applications == null) {
183213
applications = new ActiveDirectoryApplicationsImpl(this);
184214
}
185215
return applications;
186216
}
187217

188-
/** @return the role assignment management API entry point */
218+
/**
219+
* Gets the role assignment management API entry point.
220+
*
221+
* @return the role assignment management API entry point
222+
*/
189223
public RoleAssignments roleAssignments() {
190224
if (roleAssignments == null) {
191225
roleAssignments = new RoleAssignmentsImpl(this);
192226
}
193227
return roleAssignments;
194228
}
195229

196-
/** @return the role definition management API entry point */
230+
/**
231+
* Gets the role definition management API entry point.
232+
*
233+
* @return the role definition management API entry point
234+
*/
197235
public RoleDefinitions roleDefinitions() {
198236
if (roleDefinitions == null) {
199237
roleDefinitions = new RoleDefinitionsImpl(this);

sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/ActiveDirectoryApplication.java

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818
@Fluent
1919
public interface ActiveDirectoryApplication extends ActiveDirectoryObject,
2020
HasInnerModel<MicrosoftGraphApplicationInner>, Updatable<ActiveDirectoryApplication.Update> {
21-
/** @return the application ID */
21+
/**
22+
* Gets the application ID.
23+
*
24+
* @return the application ID
25+
*/
2226
String applicationId();
2327

2428
/**
@@ -29,23 +33,45 @@ public interface ActiveDirectoryApplication extends ActiveDirectoryObject,
2933
boolean availableToOtherTenants();
3034

3135
/**
36+
* Gets the application account type.
37+
*
3238
* @return the application account type
3339
*/
3440
ApplicationAccountType accountType();
3541

36-
/** @return a collection of URIs for the application */
42+
/**
43+
* Gets a collection of URIs for the application.
44+
*
45+
* @return a collection of URIs for the application
46+
*/
3747
Set<String> identifierUris();
3848

39-
/** @return a collection of reply URLs for the application */
49+
/**
50+
* Gets a collection of reply URLs for the application.
51+
*
52+
* @return a collection of reply URLs for the application
53+
*/
4054
Set<String> replyUrls();
4155

42-
/** @return the home page of the application */
56+
/**
57+
* Gets the home page of the application.
58+
*
59+
* @return the home page of the application
60+
*/
4361
URL signOnUrl();
4462

45-
/** @return the mapping of password credentials from their names */
63+
/**
64+
* Gets the mapping of password credentials from their names.
65+
*
66+
* @return the mapping of password credentials from their names
67+
*/
4668
Map<String, PasswordCredential> passwordCredentials();
4769

48-
/** @return the mapping of certificate credentials from their names */
70+
/**
71+
* Gets the mapping of certificate credentials from their names.
72+
*
73+
* @return the mapping of certificate credentials from their names
74+
*/
4975
Map<String, CertificateCredential> certificateCredentials();
5076

5177
/**************************************************************

sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/ActiveDirectoryGroup.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,18 @@
1717
@Fluent
1818
public interface ActiveDirectoryGroup
1919
extends ActiveDirectoryObject, HasInnerModel<MicrosoftGraphGroupInner>, Updatable<ActiveDirectoryGroup.Update> {
20-
/** @return security enabled field. */
20+
/**
21+
* Check whether security enabled field.
22+
*
23+
* @return security enabled field.
24+
*/
2125
boolean securityEnabled();
2226

23-
/** @return mail field. */
27+
/**
28+
* Gets mail field.
29+
*
30+
* @return mail field.
31+
*/
2432
String mail();
2533

2634
/**

sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/ActiveDirectoryUser.java

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,32 @@
1515
@Fluent
1616
public interface ActiveDirectoryUser
1717
extends ActiveDirectoryObject, HasInnerModel<MicrosoftGraphUserInner>, Updatable<ActiveDirectoryUser.Update> {
18-
/** @return user principal name */
18+
/**
19+
* Gets user principal name.
20+
*
21+
* @return user principal name
22+
*/
1923
String userPrincipalName();
2024

21-
/** @return user mail */
25+
/**
26+
* Gets user mail.
27+
*
28+
* @return user mail
29+
*/
2230
String mail();
2331

24-
/** @return the mail alias for the user */
32+
/**
33+
* Gets the mail alias for the user.
34+
*
35+
* @return the mail alias for the user
36+
*/
2537
String mailNickname();
2638

27-
/** @return the usage location of the user */
39+
/**
40+
* Gets the usage location of the user.
41+
*
42+
* @return the usage location of the user
43+
*/
2844
CountryIsoCode usageLocation();
2945

3046
/**************************************************************

sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/ApplicationAccountType.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ public final class ApplicationAccountType extends ExpandableStringEnum<Applicati
2323
/** Users with a personal Microsoft account only. */
2424
public static final ApplicationAccountType PERSONAL_MICROSOFT_ACCOUNT = fromString("PersonalMicrosoftAccount");
2525

26+
/**
27+
* Creates a new instance of ApplicationAccountType value.
28+
*
29+
* @deprecated Use the {@link #fromString(String)} factory method.
30+
*/
31+
@Deprecated
32+
public ApplicationAccountType() {
33+
}
34+
2635
/**
2736
* Creates or finds a ApplicationAccountType from its string representation.
2837
*
@@ -33,7 +42,11 @@ public static ApplicationAccountType fromString(String name) {
3342
return fromString(name, ApplicationAccountType.class);
3443
}
3544

36-
/** @return known ApplicationAccountType values. */
45+
/**
46+
* Gets known ApplicationAccountType values.
47+
*
48+
* @return known ApplicationAccountType values.
49+
*/
3750
public static Collection<ApplicationAccountType> values() {
3851
return values(ApplicationAccountType.class);
3952
}

sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/BuiltInRole.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,15 @@ public final class BuiltInRole extends ExpandableStringEnum<BuiltInRole> {
234234
/** Read and create quota requests, get quota request status, and create support tickets. */
235235
public static final BuiltInRole QUOTA_REQUEST_OPERATOR = BuiltInRole.fromString("Quota Request Operator");
236236

237+
/**
238+
* Creates a new instance of BuiltInRole value.
239+
*
240+
* @deprecated Use the {@link #fromString(String)} factory method.
241+
*/
242+
@Deprecated
243+
public BuiltInRole() {
244+
}
245+
237246
/**
238247
* Finds or creates a role instance based on the specified name.
239248
*
@@ -244,7 +253,10 @@ public static BuiltInRole fromString(String name) {
244253
return fromString(name, BuiltInRole.class);
245254
}
246255

247-
/** @return known roles */
256+
/**
257+
* Gets known roles.
258+
*
259+
* @return known roles */
248260
public static Collection<BuiltInRole> values() {
249261
return values(BuiltInRole.class);
250262
}

sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/CertificateCredential.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ interface WithDuration<ParentT> {
122122
WithAttach<ParentT> withDuration(Duration duration);
123123
}
124124

125-
/** A credential definition stage allowing exporting the auth file for the service principal. */
125+
/**
126+
* A credential definition stage allowing exporting the auth file for the service principal.
127+
*
128+
* @param <ParentT> the stage of the parent definition to return to after attaching this definition
129+
*/
126130
interface WithAuthFile<ParentT> {
127131
/**
128132
* Export the information of this service principal into an auth file.
@@ -135,7 +139,10 @@ interface WithAuthFile<ParentT> {
135139
WithAuthFileCertificate<ParentT> withAuthFileToExport(OutputStream outputStream);
136140
}
137141

138-
/** A credential definition stage allowing specifying the private key for exporting an auth file. */
142+
/** A credential definition stage allowing specifying the private key for exporting an auth file.
143+
*
144+
* @param <ParentT> the stage of the parent definition to return to after attaching this definition
145+
*/
139146
interface WithAuthFileCertificate<ParentT> {
140147
/**
141148
* Export the information of this service principal into an auth file.
@@ -149,6 +156,8 @@ interface WithAuthFileCertificate<ParentT> {
149156
/**
150157
* A credential definition stage allowing specifying the password for the private key for exporting an auth
151158
* file.
159+
*
160+
* @param <ParentT> the stage of the parent definition to return to after attaching this definition
152161
*/
153162
interface WithAuthFileCertificatePassword<ParentT> {
154163
/**

sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/CertificateType.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ public final class CertificateType extends ExpandableStringEnum<CertificateType>
1515
/** Static value Symmetric for CertificateType. */
1616
public static final CertificateType SYMMETRIC = CertificateType.fromString("Symmetric");
1717

18+
/**
19+
* Creates a new instance of CertificateType value.
20+
*
21+
* @deprecated Use the {@link #fromString(String)} factory method.
22+
*/
23+
@Deprecated
24+
public CertificateType() {
25+
}
26+
1827
/**
1928
* Finds or creates a certificate type instance based on the specified name.
2029
*
@@ -25,7 +34,11 @@ public static CertificateType fromString(String name) {
2534
return fromString(name, CertificateType.class);
2635
}
2736

28-
/** @return known certificate types */
37+
/**
38+
* Gets known certificate types.
39+
*
40+
* @return known certificate types
41+
*/
2942
public static Collection<CertificateType> values() {
3043
return values(CertificateType.class);
3144
}

sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/Credential.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,24 @@
1212
/** An immutable client-side representation of an Azure AD credential. */
1313
@Fluent
1414
public interface Credential extends Indexable, HasId, HasName {
15-
/** @return start date. */
15+
/**
16+
* Gets start date.
17+
*
18+
* @return start date.
19+
*/
1620
OffsetDateTime startDate();
1721

18-
/** @return end date. */
22+
/**
23+
* Gets end date.
24+
*
25+
* @return end date.
26+
*/
1927
OffsetDateTime endDate();
2028

21-
/** @return key value. */
29+
/**
30+
* Gets key value.
31+
*
32+
* @return key value.
33+
*/
2234
String value();
2335
}

0 commit comments

Comments
 (0)