Skip to content

Commit

Permalink
Make some naming changes for randomnumbers endpoint (Azure#14135)
Browse files Browse the repository at this point in the history
* Make some naming changes for randomnumbers endpoint

* Rename GetRandomBytesResponse to RandomBytes

* Change uint32 to int32 to fix the LintDiff error
  • Loading branch information
yl-ms authored May 7, 2021
1 parent 7043b48 commit a4924d4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
1 change: 0 additions & 1 deletion custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,6 @@ racyscore
RAGRS
RAGZRS
randint
randomnumbers
Rankable
rasterize
ratelimit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"vaultBaseUrl": "https://myhsm.managedhsm.azure.net/",
"api-version": "7.3-preview",
"parameters": {
"bytesLength": 4
"count": 4
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1089,12 +1089,12 @@
}
}
},
"/randomnumbers": {
"/rng": {
"post": {
"tags": [
"RandomNumbers"
"RNG"
],
"operationId": "getRandomNumbers",
"operationId": "GetRandomBytes",
"summary": "Get the requested number of bytes containing random values.",
"description": "Get the requested number of bytes containing random values from a managed HSM.",
"parameters": [
Expand All @@ -1104,9 +1104,9 @@
"required": true,
"x-ms-client-flatten": true,
"schema": {
"$ref": "#/definitions/GetRandomNumbersRequest"
"$ref": "#/definitions/GetRandomBytesRequest"
},
"description": "The request object to get random numbers."
"description": "The request object to get random bytes."
},
{
"$ref": "#/parameters/ApiVersionParameter"
Expand All @@ -1116,7 +1116,7 @@
"200": {
"description": "The bytes encoded as a base64url string.",
"schema": {
"$ref": "#/definitions/GetRandomNumbersResponse"
"$ref": "#/definitions/RandomBytes"
}
},
"default": {
Expand All @@ -1127,38 +1127,38 @@
}
},
"x-ms-examples": {
"GetRandomNumbers": {
"$ref": "./examples/RandomNumbers-example.json"
"GetRandomBytes": {
"$ref": "./examples/GetRandomBytes-example.json"
}
}
}
}
},
"definitions": {
"GetRandomNumbersRequest": {
"GetRandomBytesRequest": {
"properties": {
"bytesLength": {
"count": {
"type": "integer",
"format": "uint32",
"format": "int32",
"minimum": 1,
"maximum": 128,
"description": "The requested number of random bytes."
}
},
"description": "The get random numbers request object.",
"description": "The get random bytes request object.",
"required": [
"bytesLength"
"count"
]
},
"GetRandomNumbersResponse": {
"RandomBytes": {
"properties": {
"value": {
"type": "string",
"format": "base64url",
"description": "The bytes encoded as a base64url string."
}
},
"description": "The get random numbers response object containing the bytes."
"description": "The get random bytes response object containing the bytes."
},
"KeyReleasePolicy": {
"properties": {
Expand Down

0 comments on commit a4924d4

Please sign in to comment.