Closed
Description
- sketch out response type for headers #746
- break up
create_operation_code
in AutoRust #1034 - rename the request builder to
RequestBuilder
#1037 remove special handling for single responses- adjust non-single responses to be like single responses. See analysis in There are 10 combinations of multiple status codes: ctaggart/azure-sdk-for-rust#17
- return new type
operation::Response(azure_core::Response)
- typed
headers()
body()
functions - allow getting the
azure_core::Response
. may be implementAsRef<azure_core::Response>
- typed
azure-sdk-for-rust/services/svc/blobstorage/src/package_2020_10/operations.rs
Lines 407 to 412 in 2eadbde
specification\storage\data-plane\Microsoft.BlobStorage\preview\2020-10-02\blob.json
"/?restype=account&comp=properties": {
"get": {
"tags": [
"service"
],
"operationId": "Service_GetAccountInfo",
"description": "Returns the sku name and account kind ",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Success (OK)",
"headers": {
"x-ms-client-request-id": {
"x-ms-client-name": "ClientRequestId",
"type": "string",
"description": "If a client request id header is sent in the request, this header will be present in the response with the same value."
},
"x-ms-request-id": {
"x-ms-client-name": "RequestId",
"type": "string",
"description": "This header uniquely identifies the request that was made and can be used for troubleshooting the request."
},
"x-ms-version": {
"x-ms-client-name": "Version",
"type": "string",
"description": "Indicates the version of the Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and above."
},
"Date": {
"type": "string",
"format": "date-time-rfc1123",
"description": "UTC date/time value generated by the service that indicates the time at which the response was initiated"
},
"x-ms-sku-name": {
"x-ms-client-name": "SkuName",
"type": "string",
"enum": [
"Standard_LRS",
"Standard_GRS",
"Standard_RAGRS",
"Standard_ZRS",
"Premium_LRS"
],
"x-ms-enum": {
"name": "SkuName",
"modelAsString": false
},
"description": "Identifies the sku name of the account"
},
"x-ms-account-kind": {
"x-ms-client-name": "AccountKind",
"type": "string",
"enum": [
"Storage",
"BlobStorage",
"StorageV2",
"FileStorage",
"BlockBlobStorage"
],
"x-ms-enum": {
"name": "AccountKind",
"modelAsString": false
},
"description": "Identifies the account kind"
},
"x-ms-is-hns-enabled": {
"x-ms-client-name": "IsHierarchicalNamespaceEnabled",
"type": "boolean",
"description": "Version 2019-07-07 and newer. Indicates if the account has a hierarchical namespace enabled."
}
}
},
"default": {
"description": "Failure",
"headers": {
"x-ms-error-code": {
"x-ms-client-name": "ErrorCode",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/StorageError"
}
}
}
},
"parameters": [
{
"name": "restype",
"description": "restype",
"in": "query",
"required": true,
"type": "string",
"enum": [
"account"
]
},
{
"name": "comp",
"description": "comp",
"in": "query",
"required": true,
"type": "string",
"enum": [
"properties"
]
}
]
},