Skip to content

Commit 62d47bc

Browse files
authored
fix wrong javadocs of withSsh (Azure#33211)
1 parent 771e70e commit 62d47bc

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

sdk/resourcemanager/azure-resourcemanager-compute/CHANGELOG.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22

33
## 2.24.0-beta.1 (Unreleased)
44

5-
### Features Added
6-
7-
### Breaking Changes
8-
95
### Bugs Fixed
106

11-
### Other Changes
7+
- Fixed wrong javadocs of `withSsh()` in `VirtualMachine` and `VirtualMachineScaleSet`.
128

139
## 2.23.0 (2023-01-27)
1410

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachine.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ interface WithLinuxRootPasswordOrPublicKeyManagedOrUnmanaged {
871871
/**
872872
* Specifies the SSH public key.
873873
*
874-
* @param publicKey an SSH public key in the PEM format.
874+
* @param publicKey an SSH public key at least 2048-bit and in ssh-rsa format.
875875
* @return the next stage of the definition
876876
*/
877877
WithLinuxCreateManagedOrUnmanaged withSsh(String publicKey);
@@ -890,7 +890,7 @@ interface WithLinuxRootPasswordOrPublicKeyManaged {
890890
/**
891891
* Specifies an SSH public key.
892892
*
893-
* @param publicKey an SSH public key in the PEM format.
893+
* @param publicKey an SSH public key at least 2048-bit and in ssh-rsa format.
894894
* @return the next stage of the definition
895895
*/
896896
WithLinuxCreateManaged withSsh(String publicKey);
@@ -909,7 +909,7 @@ interface WithLinuxRootPasswordOrPublicKeyUnmanaged {
909909
/**
910910
* Specifies an SSH public key.
911911
*
912-
* @param publicKey an SSH public key in the PEM format.
912+
* @param publicKey an SSH public key at least 2048-bit and in ssh-rsa format.
913913
* @return the next stage of the definition
914914
*/
915915
WithLinuxCreateUnmanaged withSsh(String publicKey);
@@ -1047,7 +1047,7 @@ interface WithLinuxCreateManagedOrUnmanaged extends WithFromImageCreateOptionsMa
10471047
/**
10481048
* Specifies an SSH public key.
10491049
*
1050-
* @param publicKey an SSH public key in the PEM format.
1050+
* @param publicKey an SSH public key at least 2048-bit and in ssh-rsa format.
10511051
* @return the next stage of the definition
10521052
*/
10531053
WithLinuxCreateManagedOrUnmanaged withSsh(String publicKey);
@@ -1077,7 +1077,7 @@ interface WithLinuxCreateUnmanaged extends WithFromImageCreateOptionsUnmanaged {
10771077
/**
10781078
* Specifies an SSH public key.
10791079
*
1080-
* @param publicKey an SSH public key in the PEM format.
1080+
* @param publicKey an SSH public key at least 2048-bit and in ssh-rsa format.
10811081
* @return the next stage of the definition
10821082
*/
10831083
WithLinuxCreateUnmanaged withSsh(String publicKey);

sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/VirtualMachineScaleSet.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ interface WithLinuxRootPasswordOrPublicKeyManagedOrUnmanaged {
867867
*
868868
* <p>Each call to this method adds the given public key to the list of VM's public keys.
869869
*
870-
* @param publicKey the SSH public key in PEM format.
870+
* @param publicKey the SSH public key at least 2048-bit and in ssh-rsa format.
871871
* @return the next stage of the definition
872872
*/
873873
WithLinuxCreateManagedOrUnmanaged withSsh(String publicKey);
@@ -1015,7 +1015,7 @@ interface WithLinuxCreateManagedOrUnmanaged extends WithManagedCreate {
10151015
*
10161016
* <p>Each call to this method adds the given public key to the list of VM's public keys.
10171017
*
1018-
* @param publicKey an SSH public key in the PEM format.
1018+
* @param publicKey an SSH public key at least 2048-bit and in ssh-rsa format.
10191019
* @return the next stage of the definition
10201020
*/
10211021
WithLinuxCreateManagedOrUnmanaged withSsh(String publicKey);
@@ -1034,7 +1034,7 @@ interface WithLinuxCreateManaged extends WithManagedCreate {
10341034
*
10351035
* <p>Each call to this method adds the given public key to the list of VM's public keys.
10361036
*
1037-
* @param publicKey an SSH public key in the PEM format.
1037+
* @param publicKey an SSH public key at least 2048-bit and in ssh-rsa format.
10381038
* @return the next stage of the definition
10391039
*/
10401040
WithLinuxCreateManaged withSsh(String publicKey);
@@ -1050,7 +1050,7 @@ interface WithLinuxCreateUnmanaged extends WithUnmanagedCreate {
10501050
*
10511051
* <p>Each call to this method adds the given public key to the list of VM's public keys.
10521052
*
1053-
* @param publicKey an SSH public key in the PEM format.
1053+
* @param publicKey an SSH public key at least 2048-bit and in ssh-rsa format.
10541054
* @return the next stage of the definition
10551055
*/
10561056
WithLinuxCreateUnmanaged withSsh(String publicKey);

0 commit comments

Comments
 (0)