Skip to content

Commit a4924d4

Browse files
authored
Make some naming changes for randomnumbers endpoint (Azure#14135)
* Make some naming changes for randomnumbers endpoint * Rename GetRandomBytesResponse to RandomBytes * Change uint32 to int32 to fix the LintDiff error
1 parent 7043b48 commit a4924d4

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

custom-words.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,6 @@ racyscore
14511451
RAGRS
14521452
RAGZRS
14531453
randint
1454-
randomnumbers
14551454
Rankable
14561455
rasterize
14571456
ratelimit

specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.3-preview/examples/RandomNumbers-example.json renamed to specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.3-preview/examples/GetRandomBytes-example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"vaultBaseUrl": "https://myhsm.managedhsm.azure.net/",
44
"api-version": "7.3-preview",
55
"parameters": {
6-
"bytesLength": 4
6+
"count": 4
77
}
88
},
99
"responses": {

specification/keyvault/data-plane/Microsoft.KeyVault/preview/7.3-preview/keys.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,12 +1089,12 @@
10891089
}
10901090
}
10911091
},
1092-
"/randomnumbers": {
1092+
"/rng": {
10931093
"post": {
10941094
"tags": [
1095-
"RandomNumbers"
1095+
"RNG"
10961096
],
1097-
"operationId": "getRandomNumbers",
1097+
"operationId": "GetRandomBytes",
10981098
"summary": "Get the requested number of bytes containing random values.",
10991099
"description": "Get the requested number of bytes containing random values from a managed HSM.",
11001100
"parameters": [
@@ -1104,9 +1104,9 @@
11041104
"required": true,
11051105
"x-ms-client-flatten": true,
11061106
"schema": {
1107-
"$ref": "#/definitions/GetRandomNumbersRequest"
1107+
"$ref": "#/definitions/GetRandomBytesRequest"
11081108
},
1109-
"description": "The request object to get random numbers."
1109+
"description": "The request object to get random bytes."
11101110
},
11111111
{
11121112
"$ref": "#/parameters/ApiVersionParameter"
@@ -1116,7 +1116,7 @@
11161116
"200": {
11171117
"description": "The bytes encoded as a base64url string.",
11181118
"schema": {
1119-
"$ref": "#/definitions/GetRandomNumbersResponse"
1119+
"$ref": "#/definitions/RandomBytes"
11201120
}
11211121
},
11221122
"default": {
@@ -1127,38 +1127,38 @@
11271127
}
11281128
},
11291129
"x-ms-examples": {
1130-
"GetRandomNumbers": {
1131-
"$ref": "./examples/RandomNumbers-example.json"
1130+
"GetRandomBytes": {
1131+
"$ref": "./examples/GetRandomBytes-example.json"
11321132
}
11331133
}
11341134
}
11351135
}
11361136
},
11371137
"definitions": {
1138-
"GetRandomNumbersRequest": {
1138+
"GetRandomBytesRequest": {
11391139
"properties": {
1140-
"bytesLength": {
1140+
"count": {
11411141
"type": "integer",
1142-
"format": "uint32",
1142+
"format": "int32",
11431143
"minimum": 1,
11441144
"maximum": 128,
11451145
"description": "The requested number of random bytes."
11461146
}
11471147
},
1148-
"description": "The get random numbers request object.",
1148+
"description": "The get random bytes request object.",
11491149
"required": [
1150-
"bytesLength"
1150+
"count"
11511151
]
11521152
},
1153-
"GetRandomNumbersResponse": {
1153+
"RandomBytes": {
11541154
"properties": {
11551155
"value": {
11561156
"type": "string",
11571157
"format": "base64url",
11581158
"description": "The bytes encoded as a base64url string."
11591159
}
11601160
},
1161-
"description": "The get random numbers response object containing the bytes."
1161+
"description": "The get random bytes response object containing the bytes."
11621162
},
11631163
"KeyReleasePolicy": {
11641164
"properties": {

0 commit comments

Comments
 (0)