Skip to content

operation response type with headers #446

Closed
@ctaggart

Description

@ctaggart

pub async fn get_account_info(
operation_config: &crate::OperationConfig,
restype: &str,
comp: &str,
x_ms_version: &str,
) -> std::result::Result<(), get_account_info::Error> {

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"
          ]
        }
      ]
    },

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.CodeGenIssues that relate to code generation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions