Skip to content

Commit 397cd0d

Browse files
minor fix on doc (Azure#17836)
1 parent 5ffd413 commit 397cd0d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sdk/resourcemanager/docs/DESIGN.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Azure Management Libraries for Java is object-oriented API for managing Azure re
3636

3737
There are 3 levels of object for Azure resource management.
3838

39-
Topmost, there is **service** API, e.g. `ComputeManager` for Azure compute service or `Azure` for all supported services.
39+
Topmost, there is **service** API, e.g. `ComputeManager` for Azure compute service or `AzureResourceManager` for all supported services.
4040
[Authentication][authenticate] is required to instantiate the service API.
4141

4242
Next, there is **resource collection** API, e.g. `VirtualMachines` to manage Azure virtual machine.
@@ -50,14 +50,14 @@ A resource instance can be instantiated as:
5050

5151
- Creating a new Azure resource from resource collection API, with method verb `define` till `create`, e.g.
5252

53-
```
53+
```java
5454
VirtualMachine virtualMachine = computeManager.virtualMachines()
5555
.define(name)...create();
5656
```
5757

5858
- Getting an existing Azure resource from resource collection API, with method verb `get` or `list`, e.g.
5959

60-
```
60+
```java
6161
VirtualMachine virtualMachine = computeManager.virtualMachines()
6262
.getByResourceGroup(resourceGroupName, name);
6363
```
@@ -66,15 +66,15 @@ After a resource instance is instantiated, it can be modified as:
6666

6767
- Updating the Azure resource, with method verb `update` till `apply`, e.g.
6868

69-
```
69+
```java
7070
virtualMachine.update()...apply();
7171
```
7272

7373
After the Azure resource served its purpose, it can be deleted as:
7474

7575
- Deleting the Azure resource from resource collection API, with method verb `delete`, e.g.
7676

77-
```
77+
```java
7878
computeManager.virtualMachines().deleteByResourceGroup(resourceGroupName, name);
7979
```
8080

@@ -108,7 +108,7 @@ The method verb `list` in resource collection API usually returns a `PagedIterab
108108

109109
The results can be iterated by items, in a for-loop, or via `forEach`.
110110
Alternatively, the results can be iterated by pages, e.g.
111-
```
111+
```java
112112
computeManager.virtualMachines().list()
113113
.iterableByPage()
114114
.forEach(page -> ...);

0 commit comments

Comments
 (0)