Azure / autorest.cli

Autorest plugin to Azure CLI command modules and other tooling
MIT License
8 stars 12 forks source link

Generated wrong BODY #106

Open 00Kai0 opened 4 years ago

00Kai0 commented 4 years ago

generated test:

        # DataBoxEdgeDevicePut[put]
        [
          "application/json; charset=utf-8"
        ]
        result = self.mgmt_client.devices.create_or_update(resource_group.name, DATA_BOX_EDGE_DEVICE_NAME, BODY)
        result = result.result()

parameters in DataBoxEdgeDevicePut.json:

  "parameters": {
    "api-version": "2019-08-01",
    "subscriptionId": "4385cf00-2d3a-425a-832f-f4285b1c9dce",
    "resourceGroupName": "GroupForEdgeAutomation",
    "deviceName": "testedgedevice",
    "Content-Type": [
      "application/json; charset=utf-8"
    ],
    "Content-Length": [
      "200"
    ],
    "x-ms-client-request-id": [
      "a93b39a3-1ff4-42b8-a56f-43368d47e37a"
    ],
    "accept-language": [
      "en-US"
    ],
    "DataBoxEdgeDevice": {
      "location": "WUS",
      "tags": {},
      "sku": {
        "name": "Edge",
        "tier": "Standard"
      }
    }
  },