Skip to content

Commit 16da6bd

Browse files
authored
Update Javadoc of premium SDK for azure-resourcemanager-resources (#43192)
* Fix ci analyze exception for resource * Fix comments and remove doclintMissingInclusion from pom.xml * Fix comments * fix ci exception * fix ci exception * fix ci exception * fix ci exception * fix ci exception * Fix ci analyze exception * fix comments * fix comments * fix comments
1 parent fbbc340 commit 16da6bd

Some content is hidden

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

58 files changed

+489
-22
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747

4848
--add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
4949
</javaModulesSurefireArgLine>
50-
<doclintMissingInclusion>-</doclintMissingInclusion>
5150
</properties>
5251

5352
<developers>

sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/ResourceManager.java

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,15 @@ public ResourceManager.Authenticated authenticate(TokenCredential credential, Az
143143
*/
144144
public interface Authenticated {
145145
/**
146+
* Gets the entry point to tenant management API.
147+
*
146148
* @return the entry point to tenant management API.
147149
*/
148150
Tenants tenants();
149151

150152
/**
153+
* Gets the entry point to subscription management API.
154+
*
151155
* @return the entry point to subscription management API.
152156
*/
153157
Subscriptions subscriptions();
@@ -272,40 +276,50 @@ private ResourceManager(HttpPipeline httpPipeline, AzureProfile profile) {
272276
}
273277

274278
/**
275-
* @return wrapped inner feature client providing direct access to auto-generated API implementation,
279+
* Gets wrapped inner feature client providing direct access to auto-generated API implementation,
276280
* based on Azure REST API.
281+
*
282+
* @return wrapped inner feature client.
277283
*/
278284
public FeatureClient featureClient() {
279285
return featureClient;
280286
}
281287

282288
/**
283-
* @return wrapped inner subscription client providing direct access to auto-generated API implementation,
289+
* Gets wrapped inner subscription client providing direct access to auto-generated API implementation,
284290
* based on Azure REST API.
291+
*
292+
* @return wrapped inner subscription client.
285293
*/
286294
public SubscriptionClient subscriptionClient() {
287295
return subscriptionClient;
288296
}
289297

290298
/**
291-
* @return wrapped inner policy client providing direct access to auto-generated API implementation,
299+
* Gets wrapped inner policy client providing direct access to auto-generated API implementation,
292300
* based on Azure REST API.
301+
*
302+
* @return wrapped inner policy client.
293303
*/
294304
public PolicyClient policyClient() {
295305
return policyClient;
296306
}
297307

298308
/**
299-
* @return wrapped inner policy client providing direct access to auto-generated API implementation,
309+
* Gets wrapped inner policy client providing direct access to auto-generated API implementation,
300310
* based on Azure REST API.
311+
*
312+
* @return wrapped inner policy client.
301313
*/
302314
public ManagementLockClient managementLockClient() {
303315
return managementLockClient;
304316
}
305317

306318
/**
307-
* @return wrapped inner resource change client providing direct access to auto-generated API implementation,
319+
* Gets wrapped inner resource change client providing direct access to auto-generated API implementation,
308320
* based on Azure REST API.
321+
*
322+
* @return wrapped inner resource change client.
309323
*/
310324
public ChangesManagementClient resourceChangeClient() {
311325
return resourceChangeClient;
@@ -332,6 +346,8 @@ public DataBoundariesManagementClient dataBoundaryClient() {
332346
}
333347

334348
/**
349+
* Gets the resource group management API entry point.
350+
*
335351
* @return the resource group management API entry point
336352
*/
337353
public ResourceGroups resourceGroups() {
@@ -342,6 +358,8 @@ public ResourceGroups resourceGroups() {
342358
}
343359

344360
/**
361+
* Gets the generic resource management API entry point.
362+
*
345363
* @return the generic resource management API entry point
346364
*/
347365
public GenericResources genericResources() {
@@ -352,6 +370,8 @@ public GenericResources genericResources() {
352370
}
353371

354372
/**
373+
* Gets the deployment management API entry point.
374+
*
355375
* @return the deployment management API entry point
356376
*/
357377
public Deployments deployments() {
@@ -362,6 +382,8 @@ public Deployments deployments() {
362382
}
363383

364384
/**
385+
* Gets the feature management API entry point.
386+
*
365387
* @return the feature management API entry point
366388
*/
367389
public Features features() {
@@ -372,6 +394,8 @@ public Features features() {
372394
}
373395

374396
/**
397+
* Gets the resource provider management API entry point.
398+
*
375399
* @return the resource provider management API entry point
376400
*/
377401
public Providers providers() {
@@ -382,6 +406,8 @@ public Providers providers() {
382406
}
383407

384408
/**
409+
* Gets the policy definition management API entry point.
410+
*
385411
* @return the policy definition management API entry point
386412
*/
387413
public PolicyDefinitions policyDefinitions() {
@@ -392,6 +418,8 @@ public PolicyDefinitions policyDefinitions() {
392418
}
393419

394420
/**
421+
* Gets the policy assignment management API entry point.
422+
*
395423
* @return the policy assignment management API entry point
396424
*/
397425
public PolicyAssignments policyAssignments() {
@@ -402,6 +430,8 @@ public PolicyAssignments policyAssignments() {
402430
}
403431

404432
/**
433+
* Gets the subscription management API entry point.
434+
*
405435
* @return the subscription management API entry point
406436
*/
407437
public Subscriptions subscriptions() {
@@ -412,6 +442,8 @@ public Subscriptions subscriptions() {
412442
}
413443

414444
/**
445+
* Gets the tenant management API entry point.
446+
*
415447
* @return the tenant management API entry point
416448
*/
417449
public Tenants tenants() {
@@ -422,6 +454,8 @@ public Tenants tenants() {
422454
}
423455

424456
/**
457+
* Gets the locks management API entry point.
458+
*
425459
* @return the locks management API entry point
426460
*/
427461
public ManagementLocks managementLocks() {
@@ -432,6 +466,8 @@ public ManagementLocks managementLocks() {
432466
}
433467

434468
/**
469+
* Gets the tag management API entry point.
470+
*
435471
* @return the tag management API entry point
436472
*/
437473
public TagOperations tagOperations() {
@@ -442,6 +478,8 @@ public TagOperations tagOperations() {
442478
}
443479

444480
/**
481+
* Gets the ResourceManagerUtils.InternalRuntimeContext associated with this manager.
482+
*
445483
* @return the {@link ResourceManagerUtils.InternalRuntimeContext} associated with this manager
446484
*/
447485
public ResourceManagerUtils.InternalRuntimeContext internalContext() {

sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/arm/AvailabilityZoneId.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ public class AvailabilityZoneId extends ExpandableStringEnum<AvailabilityZoneId>
2626
*/
2727
public static final AvailabilityZoneId ZONE_3 = fromString("3");
2828

29+
/**
30+
* Creates a new instance of AvailabilityZoneId value.
31+
*
32+
* @deprecated Use the {@link #fromString(String)} factory method.
33+
*/
34+
@Deprecated
35+
public AvailabilityZoneId() {
36+
}
37+
2938
/**
3039
* Finds or creates an availability zone identifier based on the specified identifier in string format.
3140
*
@@ -37,6 +46,8 @@ public static AvailabilityZoneId fromString(String id) {
3746
}
3847

3948
/**
49+
* Gets known AvailabilityZoneId values.
50+
*
4051
* @return known availability zone identifiers
4152
*/
4253
public static Collection<AvailabilityZoneId> values() {

sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/arm/CountryIsoCode.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,17 @@ public final class CountryIsoCode extends ExpandableStringEnum<CountryIsoCode> {
963963
public static final CountryIsoCode ZIMBABWE = fromString("ZW");
964964

965965
/**
966+
* Creates a new instance of CountryIsoCode value.
967+
*
968+
* @deprecated Use the {@link #fromString(String)} factory method.
969+
*/
970+
@Deprecated
971+
public CountryIsoCode() {
972+
}
973+
974+
/**
975+
* Gets known CountryIsoCode values.
976+
*
966977
* @return known country ISO codes
967978
*/
968979
public static Collection<CountryIsoCode> values() {

sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/arm/CountryPhoneCode.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,15 @@ public final class CountryPhoneCode extends ExpandableStringEnum<CountryPhoneCod
958958
*/
959959
public static final CountryPhoneCode ZIMBABWE = fromString("+263");
960960

961+
/**
962+
* Creates a new instance of CountryPhoneCode value.
963+
*
964+
* @deprecated Use the {@link #fromString(String)} factory method.
965+
*/
966+
@Deprecated
967+
public CountryPhoneCode() {
968+
}
969+
961970
/**
962971
* Creates or finds a country phone code from its string representation.
963972
*
@@ -969,6 +978,8 @@ public static CountryPhoneCode fromString(String code) {
969978
}
970979

971980
/**
981+
* Gets known CountryPhoneCode values.
982+
*
972983
* @return known country phone codes
973984
*/
974985
public static Collection<CountryPhoneCode> values() {

sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/arm/Manager.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,17 @@ public InnerT serviceClient() {
4646
}
4747

4848
/**
49+
* Gets the ID of the subscription the manager is working with.
50+
*
4951
* @return the ID of the subscription the manager is working with
5052
*/
5153
public String subscriptionId() {
5254
return this.subscriptionId;
5355
}
5456

5557
/**
58+
* Gets the Azure environment the manager is working with.
59+
*
5660
* @return the Azure environment the manager is working with
5761
*/
5862
public AzureEnvironment environment() {
@@ -73,13 +77,17 @@ protected final void withResourceManager(ResourceManager resourceManager) {
7377
}
7478

7579
/**
80+
* Gets the ResourceManager associated with this manager.
81+
*
7682
* @return the {@link ResourceManager} associated with this manager
7783
*/
7884
public ResourceManager resourceManager() {
7985
return this.resourceManager;
8086
}
8187

8288
/**
89+
* Gets the HttpPipeline associated with this manager.
90+
*
8391
* @return the {@link HttpPipeline} associated with this manager
8492
*/
8593
public HttpPipeline httpPipeline() {

sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/arm/ResourceId.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,27 +98,35 @@ public static ResourceId fromString(String id) {
9898
}
9999

100100
/**
101+
* Gets the subscriptionId of the resource.
102+
*
101103
* @return subscriptionId of the resource.
102104
*/
103105
public String subscriptionId() {
104106
return this.subscriptionId;
105107
}
106108

107109
/**
110+
* Gets the resourceGroupName of the resource.
111+
*
108112
* @return resourceGroupName of the resource.
109113
*/
110114
public String resourceGroupName() {
111115
return this.resourceGroupName;
112116
}
113117

114118
/**
119+
* Gets the name of the resource.
120+
*
115121
* @return name of the resource.
116122
*/
117123
public String name() {
118124
return this.name;
119125
}
120126

121127
/**
128+
* Gets the parent resource id of the resource.
129+
*
122130
* @return parent resource id of the resource if any, otherwise null.
123131
*/
124132
public ResourceId parent() {
@@ -130,20 +138,26 @@ public ResourceId parent() {
130138
}
131139

132140
/**
141+
* Gets name of the provider.
142+
*
133143
* @return name of the provider.
134144
*/
135145
public String providerNamespace() {
136146
return this.providerNamespace;
137147
}
138148

139149
/**
150+
* Gets type of the resource.
151+
*
140152
* @return type of the resource.
141153
*/
142154
public String resourceType() {
143155
return this.resourceType;
144156
}
145157

146158
/**
159+
* Gets full type of the resource.
160+
*
147161
* @return full type of the resource.
148162
*/
149163
public String fullResourceType() {
@@ -155,6 +169,8 @@ public String fullResourceType() {
155169
}
156170

157171
/**
172+
* Gets id of the resource.
173+
*
158174
* @return the id of the resource.
159175
*/
160176
public String id() {

sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/arm/models/CheckNameAvailabilityReason.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ public final class CheckNameAvailabilityReason extends ExpandableStringEnum<Chec
1616
/** Static value AlreadyExists for CheckNameAvailabilityReason. */
1717
public static final CheckNameAvailabilityReason ALREADY_EXISTS = fromString("AlreadyExists");
1818

19+
/**
20+
* Creates a new instance of CheckNameAvailabilityReason value.
21+
*
22+
* @deprecated Use the {@link #fromString(String)} factory method.
23+
*/
24+
@Deprecated
25+
public CheckNameAvailabilityReason() {
26+
}
27+
1928
/**
2029
* Creates or finds a CheckNameAvailabilityReason from its string representation.
2130
*

sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/arm/models/ExternalChildResource.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
public interface ExternalChildResource<FluentModelT, ParentT>
1414
extends ChildResource<ParentT>, Refreshable<FluentModelT> {
1515
/**
16+
* Gets the id of the external child resource.
17+
*
1618
* @return the id of the external child resource
1719
*/
1820
String id();

sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluentcore/arm/models/HasId.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
@Fluent
1111
public interface HasId {
1212
/**
13+
* Gets the resource ID.
14+
*
1315
* @return the resource ID string
1416
*/
1517
String id();

0 commit comments

Comments
 (0)