PUT Budget_CreateOrUpdate
{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName
QUERY PARAMS

api-version
scope
budgetName
BODY json

{
  "properties": {
    "amount": "",
    "category": "",
    "currentSpend": {
      "amount": "",
      "unit": ""
    },
    "filter": {
      "and": [],
      "dimension": {
        "name": "",
        "operator": "",
        "values": []
      },
      "not": "",
      "or": [],
      "tag": {}
    },
    "notifications": {},
    "timeGrain": "",
    "timePeriod": {
      "endDate": "",
      "startDate": ""
    }
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName" {:query-params {:api-version ""}
                                                                                                         :content-type :json
                                                                                                         :form-params {:properties {:amount ""
                                                                                                                                    :category ""
                                                                                                                                    :currentSpend {:amount ""
                                                                                                                                                   :unit ""}
                                                                                                                                    :filter {:and []
                                                                                                                                             :dimension {:name ""
                                                                                                                                                         :operator ""
                                                                                                                                                         :values []}
                                                                                                                                             :not ""
                                                                                                                                             :or []
                                                                                                                                             :tag {}}
                                                                                                                                    :notifications {}
                                                                                                                                    :timeGrain ""
                                                                                                                                    :timePeriod {:endDate ""
                                                                                                                                                 :startDate ""}}}})
require "http/client"

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="),
    Content = new StringContent("{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="

	payload := strings.NewReader("{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 428

{
  "properties": {
    "amount": "",
    "category": "",
    "currentSpend": {
      "amount": "",
      "unit": ""
    },
    "filter": {
      "and": [],
      "dimension": {
        "name": "",
        "operator": "",
        "values": []
      },
      "not": "",
      "or": [],
      "tag": {}
    },
    "notifications": {},
    "timeGrain": "",
    "timePeriod": {
      "endDate": "",
      "startDate": ""
    }
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")
  .header("content-type", "application/json")
  .body("{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}")
  .asString();
const data = JSON.stringify({
  properties: {
    amount: '',
    category: '',
    currentSpend: {
      amount: '',
      unit: ''
    },
    filter: {
      and: [],
      dimension: {
        name: '',
        operator: '',
        values: []
      },
      not: '',
      or: [],
      tag: {}
    },
    notifications: {},
    timeGrain: '',
    timePeriod: {
      endDate: '',
      startDate: ''
    }
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName',
  params: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  data: {
    properties: {
      amount: '',
      category: '',
      currentSpend: {amount: '', unit: ''},
      filter: {
        and: [],
        dimension: {name: '', operator: '', values: []},
        not: '',
        or: [],
        tag: {}
      },
      notifications: {},
      timeGrain: '',
      timePeriod: {endDate: '', startDate: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"properties":{"amount":"","category":"","currentSpend":{"amount":"","unit":""},"filter":{"and":[],"dimension":{"name":"","operator":"","values":[]},"not":"","or":[],"tag":{}},"notifications":{},"timeGrain":"","timePeriod":{"endDate":"","startDate":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "properties": {\n    "amount": "",\n    "category": "",\n    "currentSpend": {\n      "amount": "",\n      "unit": ""\n    },\n    "filter": {\n      "and": [],\n      "dimension": {\n        "name": "",\n        "operator": "",\n        "values": []\n      },\n      "not": "",\n      "or": [],\n      "tag": {}\n    },\n    "notifications": {},\n    "timeGrain": "",\n    "timePeriod": {\n      "endDate": "",\n      "startDate": ""\n    }\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  properties: {
    amount: '',
    category: '',
    currentSpend: {amount: '', unit: ''},
    filter: {
      and: [],
      dimension: {name: '', operator: '', values: []},
      not: '',
      or: [],
      tag: {}
    },
    notifications: {},
    timeGrain: '',
    timePeriod: {endDate: '', startDate: ''}
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName',
  qs: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  body: {
    properties: {
      amount: '',
      category: '',
      currentSpend: {amount: '', unit: ''},
      filter: {
        and: [],
        dimension: {name: '', operator: '', values: []},
        not: '',
        or: [],
        tag: {}
      },
      notifications: {},
      timeGrain: '',
      timePeriod: {endDate: '', startDate: ''}
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName');

req.query({
  'api-version': ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  properties: {
    amount: '',
    category: '',
    currentSpend: {
      amount: '',
      unit: ''
    },
    filter: {
      and: [],
      dimension: {
        name: '',
        operator: '',
        values: []
      },
      not: '',
      or: [],
      tag: {}
    },
    notifications: {},
    timeGrain: '',
    timePeriod: {
      endDate: '',
      startDate: ''
    }
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName',
  params: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  data: {
    properties: {
      amount: '',
      category: '',
      currentSpend: {amount: '', unit: ''},
      filter: {
        and: [],
        dimension: {name: '', operator: '', values: []},
        not: '',
        or: [],
        tag: {}
      },
      notifications: {},
      timeGrain: '',
      timePeriod: {endDate: '', startDate: ''}
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"properties":{"amount":"","category":"","currentSpend":{"amount":"","unit":""},"filter":{"and":[],"dimension":{"name":"","operator":"","values":[]},"not":"","or":[],"tag":{}},"notifications":{},"timeGrain":"","timePeriod":{"endDate":"","startDate":""}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"properties": @{ @"amount": @"", @"category": @"", @"currentSpend": @{ @"amount": @"", @"unit": @"" }, @"filter": @{ @"and": @[  ], @"dimension": @{ @"name": @"", @"operator": @"", @"values": @[  ] }, @"not": @"", @"or": @[  ], @"tag": @{  } }, @"notifications": @{  }, @"timeGrain": @"", @"timePeriod": @{ @"endDate": @"", @"startDate": @"" } } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'properties' => [
        'amount' => '',
        'category' => '',
        'currentSpend' => [
                'amount' => '',
                'unit' => ''
        ],
        'filter' => [
                'and' => [
                                
                ],
                'dimension' => [
                                'name' => '',
                                'operator' => '',
                                'values' => [
                                                                
                                ]
                ],
                'not' => '',
                'or' => [
                                
                ],
                'tag' => [
                                
                ]
        ],
        'notifications' => [
                
        ],
        'timeGrain' => '',
        'timePeriod' => [
                'endDate' => '',
                'startDate' => ''
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=', [
  'body' => '{
  "properties": {
    "amount": "",
    "category": "",
    "currentSpend": {
      "amount": "",
      "unit": ""
    },
    "filter": {
      "and": [],
      "dimension": {
        "name": "",
        "operator": "",
        "values": []
      },
      "not": "",
      "or": [],
      "tag": {}
    },
    "notifications": {},
    "timeGrain": "",
    "timePeriod": {
      "endDate": "",
      "startDate": ""
    }
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'api-version' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'properties' => [
    'amount' => '',
    'category' => '',
    'currentSpend' => [
        'amount' => '',
        'unit' => ''
    ],
    'filter' => [
        'and' => [
                
        ],
        'dimension' => [
                'name' => '',
                'operator' => '',
                'values' => [
                                
                ]
        ],
        'not' => '',
        'or' => [
                
        ],
        'tag' => [
                
        ]
    ],
    'notifications' => [
        
    ],
    'timeGrain' => '',
    'timePeriod' => [
        'endDate' => '',
        'startDate' => ''
    ]
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'properties' => [
    'amount' => '',
    'category' => '',
    'currentSpend' => [
        'amount' => '',
        'unit' => ''
    ],
    'filter' => [
        'and' => [
                
        ],
        'dimension' => [
                'name' => '',
                'operator' => '',
                'values' => [
                                
                ]
        ],
        'not' => '',
        'or' => [
                
        ],
        'tag' => [
                
        ]
    ],
    'notifications' => [
        
    ],
    'timeGrain' => '',
    'timePeriod' => [
        'endDate' => '',
        'startDate' => ''
    ]
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "properties": {
    "amount": "",
    "category": "",
    "currentSpend": {
      "amount": "",
      "unit": ""
    },
    "filter": {
      "and": [],
      "dimension": {
        "name": "",
        "operator": "",
        "values": []
      },
      "not": "",
      "or": [],
      "tag": {}
    },
    "notifications": {},
    "timeGrain": "",
    "timePeriod": {
      "endDate": "",
      "startDate": ""
    }
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "properties": {
    "amount": "",
    "category": "",
    "currentSpend": {
      "amount": "",
      "unit": ""
    },
    "filter": {
      "and": [],
      "dimension": {
        "name": "",
        "operator": "",
        "values": []
      },
      "not": "",
      "or": [],
      "tag": {}
    },
    "notifications": {},
    "timeGrain": "",
    "timePeriod": {
      "endDate": "",
      "startDate": ""
    }
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName"

querystring = {"api-version":""}

payload = { "properties": {
        "amount": "",
        "category": "",
        "currentSpend": {
            "amount": "",
            "unit": ""
        },
        "filter": {
            "and": [],
            "dimension": {
                "name": "",
                "operator": "",
                "values": []
            },
            "not": "",
            "or": [],
            "tag": {}
        },
        "notifications": {},
        "timeGrain": "",
        "timePeriod": {
            "endDate": "",
            "startDate": ""
        }
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName"

queryString <- list(api-version = "")

payload <- "{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:scope/providers/Microsoft.CostManagement/budgets/:budgetName') do |req|
  req.params['api-version'] = ''
  req.body = "{\n  \"properties\": {\n    \"amount\": \"\",\n    \"category\": \"\",\n    \"currentSpend\": {\n      \"amount\": \"\",\n      \"unit\": \"\"\n    },\n    \"filter\": {\n      \"and\": [],\n      \"dimension\": {\n        \"name\": \"\",\n        \"operator\": \"\",\n        \"values\": []\n      },\n      \"not\": \"\",\n      \"or\": [],\n      \"tag\": {}\n    },\n    \"notifications\": {},\n    \"timeGrain\": \"\",\n    \"timePeriod\": {\n      \"endDate\": \"\",\n      \"startDate\": \"\"\n    }\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName";

    let querystring = [
        ("api-version", ""),
    ];

    let payload = json!({"properties": json!({
            "amount": "",
            "category": "",
            "currentSpend": json!({
                "amount": "",
                "unit": ""
            }),
            "filter": json!({
                "and": (),
                "dimension": json!({
                    "name": "",
                    "operator": "",
                    "values": ()
                }),
                "not": "",
                "or": (),
                "tag": json!({})
            }),
            "notifications": json!({}),
            "timeGrain": "",
            "timePeriod": json!({
                "endDate": "",
                "startDate": ""
            })
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=' \
  --header 'content-type: application/json' \
  --data '{
  "properties": {
    "amount": "",
    "category": "",
    "currentSpend": {
      "amount": "",
      "unit": ""
    },
    "filter": {
      "and": [],
      "dimension": {
        "name": "",
        "operator": "",
        "values": []
      },
      "not": "",
      "or": [],
      "tag": {}
    },
    "notifications": {},
    "timeGrain": "",
    "timePeriod": {
      "endDate": "",
      "startDate": ""
    }
  }
}'
echo '{
  "properties": {
    "amount": "",
    "category": "",
    "currentSpend": {
      "amount": "",
      "unit": ""
    },
    "filter": {
      "and": [],
      "dimension": {
        "name": "",
        "operator": "",
        "values": []
      },
      "not": "",
      "or": [],
      "tag": {}
    },
    "notifications": {},
    "timeGrain": "",
    "timePeriod": {
      "endDate": "",
      "startDate": ""
    }
  }
}' |  \
  http PUT '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "properties": {\n    "amount": "",\n    "category": "",\n    "currentSpend": {\n      "amount": "",\n      "unit": ""\n    },\n    "filter": {\n      "and": [],\n      "dimension": {\n        "name": "",\n        "operator": "",\n        "values": []\n      },\n      "not": "",\n      "or": [],\n      "tag": {}\n    },\n    "notifications": {},\n    "timeGrain": "",\n    "timePeriod": {\n      "endDate": "",\n      "startDate": ""\n    }\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["properties": [
    "amount": "",
    "category": "",
    "currentSpend": [
      "amount": "",
      "unit": ""
    ],
    "filter": [
      "and": [],
      "dimension": [
        "name": "",
        "operator": "",
        "values": []
      ],
      "not": "",
      "or": [],
      "tag": []
    ],
    "notifications": [],
    "timeGrain": "",
    "timePeriod": [
      "endDate": "",
      "startDate": ""
    ]
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Budget_Delete
{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName
QUERY PARAMS

api-version
scope
budgetName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName" {:query-params {:api-version ""}})
require "http/client"

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName',
  qs: {'api-version': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName');

req.query({
  'api-version': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=');

echo $response->getBody();
setUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'api-version' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName"

querystring = {"api-version":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName"

queryString <- list(api-version = "")

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/:scope/providers/Microsoft.CostManagement/budgets/:budgetName') do |req|
  req.params['api-version'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName";

    let querystring = [
        ("api-version", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version='
http DELETE '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Budget_Get
{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName
QUERY PARAMS

api-version
scope
budgetName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName" {:query-params {:api-version ""}})
require "http/client"

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName',
  qs: {'api-version': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName');

req.query({
  'api-version': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=');

echo $response->getBody();
setUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'api-version' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName"

querystring = {"api-version":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName"

queryString <- list(api-version = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:scope/providers/Microsoft.CostManagement/budgets/:budgetName') do |req|
  req.params['api-version'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName";

    let querystring = [
        ("api-version", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version='
http GET '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets/:budgetName?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Budgets_List
{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets
QUERY PARAMS

api-version
scope
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets" {:query-params {:api-version ""}})
require "http/client"

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:scope/providers/Microsoft.CostManagement/budgets?api-version= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:scope/providers/Microsoft.CostManagement/budgets?api-version=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets',
  qs: {'api-version': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets');

req.query({
  'api-version': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=');

echo $response->getBody();
setUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'api-version' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:scope/providers/Microsoft.CostManagement/budgets?api-version=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets"

querystring = {"api-version":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets"

queryString <- list(api-version = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:scope/providers/Microsoft.CostManagement/budgets') do |req|
  req.params['api-version'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets";

    let querystring = [
        ("api-version", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version='
http GET '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/budgets?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Operations_List
{{baseUrl}}/providers/Microsoft.CostManagement/operations
QUERY PARAMS

api-version
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/providers/Microsoft.CostManagement/operations" {:query-params {:api-version ""}})
require "http/client"

url = "{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/providers/Microsoft.CostManagement/operations?api-version= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/operations',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/providers/Microsoft.CostManagement/operations?api-version=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/operations',
  qs: {'api-version': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/providers/Microsoft.CostManagement/operations');

req.query({
  'api-version': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/operations',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=');

echo $response->getBody();
setUrl('{{baseUrl}}/providers/Microsoft.CostManagement/operations');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'api-version' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/providers/Microsoft.CostManagement/operations');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/providers/Microsoft.CostManagement/operations?api-version=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/providers/Microsoft.CostManagement/operations"

querystring = {"api-version":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/providers/Microsoft.CostManagement/operations"

queryString <- list(api-version = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/providers/Microsoft.CostManagement/operations') do |req|
  req.params['api-version'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/providers/Microsoft.CostManagement/operations";

    let querystring = [
        ("api-version", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version='
http GET '{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/providers/Microsoft.CostManagement/operations?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Views_CreateOrUpdate
{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName
QUERY PARAMS

api-version
viewName
BODY json

{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName" {:query-params {:api-version ""}
                                                                                              :content-type :json
                                                                                              :form-params {:properties {:accumulated ""
                                                                                                                         :chart ""
                                                                                                                         :createdOn ""
                                                                                                                         :displayName ""
                                                                                                                         :kpis [{:enabled false
                                                                                                                                 :id ""
                                                                                                                                 :type ""}]
                                                                                                                         :metric ""
                                                                                                                         :modifiedOn ""
                                                                                                                         :pivots [{:name ""
                                                                                                                                   :type ""}]
                                                                                                                         :query {:dataset {:aggregation {}
                                                                                                                                           :configuration {:columns []}
                                                                                                                                           :filter {:and []
                                                                                                                                                    :dimension {:name ""
                                                                                                                                                                :operator ""
                                                                                                                                                                :values []}
                                                                                                                                                    :not ""
                                                                                                                                                    :or []
                                                                                                                                                    :tag {}}
                                                                                                                                           :granularity ""
                                                                                                                                           :grouping [{:name ""
                                                                                                                                                       :type ""}]
                                                                                                                                           :sorting [{:direction ""
                                                                                                                                                      :name ""}]}
                                                                                                                                 :timePeriod {:from ""
                                                                                                                                              :to ""}
                                                                                                                                 :timeframe ""
                                                                                                                                 :type ""}
                                                                                                                         :scope ""}}})
require "http/client"

url = "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="),
    Content = new StringContent("{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="

	payload := strings.NewReader("{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/providers/Microsoft.CostManagement/views/:viewName?api-version= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1056

{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .header("content-type", "application/json")
  .body("{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  properties: {
    accumulated: '',
    chart: '',
    createdOn: '',
    displayName: '',
    kpis: [
      {
        enabled: false,
        id: '',
        type: ''
      }
    ],
    metric: '',
    modifiedOn: '',
    pivots: [
      {
        name: '',
        type: ''
      }
    ],
    query: {
      dataset: {
        aggregation: {},
        configuration: {
          columns: []
        },
        filter: {
          and: [],
          dimension: {
            name: '',
            operator: '',
            values: []
          },
          not: '',
          or: [],
          tag: {}
        },
        granularity: '',
        grouping: [
          {
            name: '',
            type: ''
          }
        ],
        sorting: [
          {
            direction: '',
            name: ''
          }
        ]
      },
      timePeriod: {
        from: '',
        to: ''
      },
      timeframe: '',
      type: ''
    },
    scope: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName',
  params: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  data: {
    properties: {
      accumulated: '',
      chart: '',
      createdOn: '',
      displayName: '',
      kpis: [{enabled: false, id: '', type: ''}],
      metric: '',
      modifiedOn: '',
      pivots: [{name: '', type: ''}],
      query: {
        dataset: {
          aggregation: {},
          configuration: {columns: []},
          filter: {
            and: [],
            dimension: {name: '', operator: '', values: []},
            not: '',
            or: [],
            tag: {}
          },
          granularity: '',
          grouping: [{name: '', type: ''}],
          sorting: [{direction: '', name: ''}]
        },
        timePeriod: {from: '', to: ''},
        timeframe: '',
        type: ''
      },
      scope: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"properties":{"accumulated":"","chart":"","createdOn":"","displayName":"","kpis":[{"enabled":false,"id":"","type":""}],"metric":"","modifiedOn":"","pivots":[{"name":"","type":""}],"query":{"dataset":{"aggregation":{},"configuration":{"columns":[]},"filter":{"and":[],"dimension":{"name":"","operator":"","values":[]},"not":"","or":[],"tag":{}},"granularity":"","grouping":[{"name":"","type":""}],"sorting":[{"direction":"","name":""}]},"timePeriod":{"from":"","to":""},"timeframe":"","type":""},"scope":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "properties": {\n    "accumulated": "",\n    "chart": "",\n    "createdOn": "",\n    "displayName": "",\n    "kpis": [\n      {\n        "enabled": false,\n        "id": "",\n        "type": ""\n      }\n    ],\n    "metric": "",\n    "modifiedOn": "",\n    "pivots": [\n      {\n        "name": "",\n        "type": ""\n      }\n    ],\n    "query": {\n      "dataset": {\n        "aggregation": {},\n        "configuration": {\n          "columns": []\n        },\n        "filter": {\n          "and": [],\n          "dimension": {\n            "name": "",\n            "operator": "",\n            "values": []\n          },\n          "not": "",\n          "or": [],\n          "tag": {}\n        },\n        "granularity": "",\n        "grouping": [\n          {\n            "name": "",\n            "type": ""\n          }\n        ],\n        "sorting": [\n          {\n            "direction": "",\n            "name": ""\n          }\n        ]\n      },\n      "timePeriod": {\n        "from": "",\n        "to": ""\n      },\n      "timeframe": "",\n      "type": ""\n    },\n    "scope": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/providers/Microsoft.CostManagement/views/:viewName?api-version=',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  properties: {
    accumulated: '',
    chart: '',
    createdOn: '',
    displayName: '',
    kpis: [{enabled: false, id: '', type: ''}],
    metric: '',
    modifiedOn: '',
    pivots: [{name: '', type: ''}],
    query: {
      dataset: {
        aggregation: {},
        configuration: {columns: []},
        filter: {
          and: [],
          dimension: {name: '', operator: '', values: []},
          not: '',
          or: [],
          tag: {}
        },
        granularity: '',
        grouping: [{name: '', type: ''}],
        sorting: [{direction: '', name: ''}]
      },
      timePeriod: {from: '', to: ''},
      timeframe: '',
      type: ''
    },
    scope: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName',
  qs: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  body: {
    properties: {
      accumulated: '',
      chart: '',
      createdOn: '',
      displayName: '',
      kpis: [{enabled: false, id: '', type: ''}],
      metric: '',
      modifiedOn: '',
      pivots: [{name: '', type: ''}],
      query: {
        dataset: {
          aggregation: {},
          configuration: {columns: []},
          filter: {
            and: [],
            dimension: {name: '', operator: '', values: []},
            not: '',
            or: [],
            tag: {}
          },
          granularity: '',
          grouping: [{name: '', type: ''}],
          sorting: [{direction: '', name: ''}]
        },
        timePeriod: {from: '', to: ''},
        timeframe: '',
        type: ''
      },
      scope: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName');

req.query({
  'api-version': ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  properties: {
    accumulated: '',
    chart: '',
    createdOn: '',
    displayName: '',
    kpis: [
      {
        enabled: false,
        id: '',
        type: ''
      }
    ],
    metric: '',
    modifiedOn: '',
    pivots: [
      {
        name: '',
        type: ''
      }
    ],
    query: {
      dataset: {
        aggregation: {},
        configuration: {
          columns: []
        },
        filter: {
          and: [],
          dimension: {
            name: '',
            operator: '',
            values: []
          },
          not: '',
          or: [],
          tag: {}
        },
        granularity: '',
        grouping: [
          {
            name: '',
            type: ''
          }
        ],
        sorting: [
          {
            direction: '',
            name: ''
          }
        ]
      },
      timePeriod: {
        from: '',
        to: ''
      },
      timeframe: '',
      type: ''
    },
    scope: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName',
  params: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  data: {
    properties: {
      accumulated: '',
      chart: '',
      createdOn: '',
      displayName: '',
      kpis: [{enabled: false, id: '', type: ''}],
      metric: '',
      modifiedOn: '',
      pivots: [{name: '', type: ''}],
      query: {
        dataset: {
          aggregation: {},
          configuration: {columns: []},
          filter: {
            and: [],
            dimension: {name: '', operator: '', values: []},
            not: '',
            or: [],
            tag: {}
          },
          granularity: '',
          grouping: [{name: '', type: ''}],
          sorting: [{direction: '', name: ''}]
        },
        timePeriod: {from: '', to: ''},
        timeframe: '',
        type: ''
      },
      scope: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"properties":{"accumulated":"","chart":"","createdOn":"","displayName":"","kpis":[{"enabled":false,"id":"","type":""}],"metric":"","modifiedOn":"","pivots":[{"name":"","type":""}],"query":{"dataset":{"aggregation":{},"configuration":{"columns":[]},"filter":{"and":[],"dimension":{"name":"","operator":"","values":[]},"not":"","or":[],"tag":{}},"granularity":"","grouping":[{"name":"","type":""}],"sorting":[{"direction":"","name":""}]},"timePeriod":{"from":"","to":""},"timeframe":"","type":""},"scope":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"properties": @{ @"accumulated": @"", @"chart": @"", @"createdOn": @"", @"displayName": @"", @"kpis": @[ @{ @"enabled": @NO, @"id": @"", @"type": @"" } ], @"metric": @"", @"modifiedOn": @"", @"pivots": @[ @{ @"name": @"", @"type": @"" } ], @"query": @{ @"dataset": @{ @"aggregation": @{  }, @"configuration": @{ @"columns": @[  ] }, @"filter": @{ @"and": @[  ], @"dimension": @{ @"name": @"", @"operator": @"", @"values": @[  ] }, @"not": @"", @"or": @[  ], @"tag": @{  } }, @"granularity": @"", @"grouping": @[ @{ @"name": @"", @"type": @"" } ], @"sorting": @[ @{ @"direction": @"", @"name": @"" } ] }, @"timePeriod": @{ @"from": @"", @"to": @"" }, @"timeframe": @"", @"type": @"" }, @"scope": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'properties' => [
        'accumulated' => '',
        'chart' => '',
        'createdOn' => '',
        'displayName' => '',
        'kpis' => [
                [
                                'enabled' => null,
                                'id' => '',
                                'type' => ''
                ]
        ],
        'metric' => '',
        'modifiedOn' => '',
        'pivots' => [
                [
                                'name' => '',
                                'type' => ''
                ]
        ],
        'query' => [
                'dataset' => [
                                'aggregation' => [
                                                                
                                ],
                                'configuration' => [
                                                                'columns' => [
                                                                                                                                
                                                                ]
                                ],
                                'filter' => [
                                                                'and' => [
                                                                                                                                
                                                                ],
                                                                'dimension' => [
                                                                                                                                'name' => '',
                                                                                                                                'operator' => '',
                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'not' => '',
                                                                'or' => [
                                                                                                                                
                                                                ],
                                                                'tag' => [
                                                                                                                                
                                                                ]
                                ],
                                'granularity' => '',
                                'grouping' => [
                                                                [
                                                                                                                                'name' => '',
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'sorting' => [
                                                                [
                                                                                                                                'direction' => '',
                                                                                                                                'name' => ''
                                                                ]
                                ]
                ],
                'timePeriod' => [
                                'from' => '',
                                'to' => ''
                ],
                'timeframe' => '',
                'type' => ''
        ],
        'scope' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=', [
  'body' => '{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'api-version' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'properties' => [
    'accumulated' => '',
    'chart' => '',
    'createdOn' => '',
    'displayName' => '',
    'kpis' => [
        [
                'enabled' => null,
                'id' => '',
                'type' => ''
        ]
    ],
    'metric' => '',
    'modifiedOn' => '',
    'pivots' => [
        [
                'name' => '',
                'type' => ''
        ]
    ],
    'query' => [
        'dataset' => [
                'aggregation' => [
                                
                ],
                'configuration' => [
                                'columns' => [
                                                                
                                ]
                ],
                'filter' => [
                                'and' => [
                                                                
                                ],
                                'dimension' => [
                                                                'name' => '',
                                                                'operator' => '',
                                                                'values' => [
                                                                                                                                
                                                                ]
                                ],
                                'not' => '',
                                'or' => [
                                                                
                                ],
                                'tag' => [
                                                                
                                ]
                ],
                'granularity' => '',
                'grouping' => [
                                [
                                                                'name' => '',
                                                                'type' => ''
                                ]
                ],
                'sorting' => [
                                [
                                                                'direction' => '',
                                                                'name' => ''
                                ]
                ]
        ],
        'timePeriod' => [
                'from' => '',
                'to' => ''
        ],
        'timeframe' => '',
        'type' => ''
    ],
    'scope' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'properties' => [
    'accumulated' => '',
    'chart' => '',
    'createdOn' => '',
    'displayName' => '',
    'kpis' => [
        [
                'enabled' => null,
                'id' => '',
                'type' => ''
        ]
    ],
    'metric' => '',
    'modifiedOn' => '',
    'pivots' => [
        [
                'name' => '',
                'type' => ''
        ]
    ],
    'query' => [
        'dataset' => [
                'aggregation' => [
                                
                ],
                'configuration' => [
                                'columns' => [
                                                                
                                ]
                ],
                'filter' => [
                                'and' => [
                                                                
                                ],
                                'dimension' => [
                                                                'name' => '',
                                                                'operator' => '',
                                                                'values' => [
                                                                                                                                
                                                                ]
                                ],
                                'not' => '',
                                'or' => [
                                                                
                                ],
                                'tag' => [
                                                                
                                ]
                ],
                'granularity' => '',
                'grouping' => [
                                [
                                                                'name' => '',
                                                                'type' => ''
                                ]
                ],
                'sorting' => [
                                [
                                                                'direction' => '',
                                                                'name' => ''
                                ]
                ]
        ],
        'timePeriod' => [
                'from' => '',
                'to' => ''
        ],
        'timeframe' => '',
        'type' => ''
    ],
    'scope' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/providers/Microsoft.CostManagement/views/:viewName?api-version=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName"

querystring = {"api-version":""}

payload = { "properties": {
        "accumulated": "",
        "chart": "",
        "createdOn": "",
        "displayName": "",
        "kpis": [
            {
                "enabled": False,
                "id": "",
                "type": ""
            }
        ],
        "metric": "",
        "modifiedOn": "",
        "pivots": [
            {
                "name": "",
                "type": ""
            }
        ],
        "query": {
            "dataset": {
                "aggregation": {},
                "configuration": { "columns": [] },
                "filter": {
                    "and": [],
                    "dimension": {
                        "name": "",
                        "operator": "",
                        "values": []
                    },
                    "not": "",
                    "or": [],
                    "tag": {}
                },
                "granularity": "",
                "grouping": [
                    {
                        "name": "",
                        "type": ""
                    }
                ],
                "sorting": [
                    {
                        "direction": "",
                        "name": ""
                    }
                ]
            },
            "timePeriod": {
                "from": "",
                "to": ""
            },
            "timeframe": "",
            "type": ""
        },
        "scope": ""
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName"

queryString <- list(api-version = "")

payload <- "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/providers/Microsoft.CostManagement/views/:viewName') do |req|
  req.params['api-version'] = ''
  req.body = "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName";

    let querystring = [
        ("api-version", ""),
    ];

    let payload = json!({"properties": json!({
            "accumulated": "",
            "chart": "",
            "createdOn": "",
            "displayName": "",
            "kpis": (
                json!({
                    "enabled": false,
                    "id": "",
                    "type": ""
                })
            ),
            "metric": "",
            "modifiedOn": "",
            "pivots": (
                json!({
                    "name": "",
                    "type": ""
                })
            ),
            "query": json!({
                "dataset": json!({
                    "aggregation": json!({}),
                    "configuration": json!({"columns": ()}),
                    "filter": json!({
                        "and": (),
                        "dimension": json!({
                            "name": "",
                            "operator": "",
                            "values": ()
                        }),
                        "not": "",
                        "or": (),
                        "tag": json!({})
                    }),
                    "granularity": "",
                    "grouping": (
                        json!({
                            "name": "",
                            "type": ""
                        })
                    ),
                    "sorting": (
                        json!({
                            "direction": "",
                            "name": ""
                        })
                    )
                }),
                "timePeriod": json!({
                    "from": "",
                    "to": ""
                }),
                "timeframe": "",
                "type": ""
            }),
            "scope": ""
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=' \
  --header 'content-type: application/json' \
  --data '{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}'
echo '{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}' |  \
  http PUT '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "properties": {\n    "accumulated": "",\n    "chart": "",\n    "createdOn": "",\n    "displayName": "",\n    "kpis": [\n      {\n        "enabled": false,\n        "id": "",\n        "type": ""\n      }\n    ],\n    "metric": "",\n    "modifiedOn": "",\n    "pivots": [\n      {\n        "name": "",\n        "type": ""\n      }\n    ],\n    "query": {\n      "dataset": {\n        "aggregation": {},\n        "configuration": {\n          "columns": []\n        },\n        "filter": {\n          "and": [],\n          "dimension": {\n            "name": "",\n            "operator": "",\n            "values": []\n          },\n          "not": "",\n          "or": [],\n          "tag": {}\n        },\n        "granularity": "",\n        "grouping": [\n          {\n            "name": "",\n            "type": ""\n          }\n        ],\n        "sorting": [\n          {\n            "direction": "",\n            "name": ""\n          }\n        ]\n      },\n      "timePeriod": {\n        "from": "",\n        "to": ""\n      },\n      "timeframe": "",\n      "type": ""\n    },\n    "scope": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["properties": [
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      [
        "enabled": false,
        "id": "",
        "type": ""
      ]
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      [
        "name": "",
        "type": ""
      ]
    ],
    "query": [
      "dataset": [
        "aggregation": [],
        "configuration": ["columns": []],
        "filter": [
          "and": [],
          "dimension": [
            "name": "",
            "operator": "",
            "values": []
          ],
          "not": "",
          "or": [],
          "tag": []
        ],
        "granularity": "",
        "grouping": [
          [
            "name": "",
            "type": ""
          ]
        ],
        "sorting": [
          [
            "direction": "",
            "name": ""
          ]
        ]
      ],
      "timePeriod": [
        "from": "",
        "to": ""
      ],
      "timeframe": "",
      "type": ""
    ],
    "scope": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
PUT Views_CreateOrUpdateByScope
{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName
QUERY PARAMS

api-version
scope
viewName
BODY json

{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/put "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName" {:query-params {:api-version ""}
                                                                                                     :content-type :json
                                                                                                     :form-params {:properties {:accumulated ""
                                                                                                                                :chart ""
                                                                                                                                :createdOn ""
                                                                                                                                :displayName ""
                                                                                                                                :kpis [{:enabled false
                                                                                                                                        :id ""
                                                                                                                                        :type ""}]
                                                                                                                                :metric ""
                                                                                                                                :modifiedOn ""
                                                                                                                                :pivots [{:name ""
                                                                                                                                          :type ""}]
                                                                                                                                :query {:dataset {:aggregation {}
                                                                                                                                                  :configuration {:columns []}
                                                                                                                                                  :filter {:and []
                                                                                                                                                           :dimension {:name ""
                                                                                                                                                                       :operator ""
                                                                                                                                                                       :values []}
                                                                                                                                                           :not ""
                                                                                                                                                           :or []
                                                                                                                                                           :tag {}}
                                                                                                                                                  :granularity ""
                                                                                                                                                  :grouping [{:name ""
                                                                                                                                                              :type ""}]
                                                                                                                                                  :sorting [{:direction ""
                                                                                                                                                             :name ""}]}
                                                                                                                                        :timePeriod {:from ""
                                                                                                                                                     :to ""}
                                                                                                                                        :timeframe ""
                                                                                                                                        :type ""}
                                                                                                                                :scope ""}}})
require "http/client"

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="
headers = HTTP::Headers{
  "content-type" => "application/json"
}
reqBody = "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}"

response = HTTP::Client.put url, headers: headers, body: reqBody
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Put,
    RequestUri = new Uri("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="),
    Content = new StringContent("{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=");
var request = new RestRequest("", Method.Put);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}", ParameterType.RequestBody);
var response = client.Execute(request);
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="

	payload := strings.NewReader("{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("content-type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
PUT /baseUrl/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version= HTTP/1.1
Content-Type: application/json
Host: example.com
Content-Length: 1056

{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("PUT", "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .setHeader("content-type", "application/json")
  .setBody("{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="))
    .header("content-type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString("{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}"))
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}");
Request request = new Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.put("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .header("content-type", "application/json")
  .body("{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}")
  .asString();
const data = JSON.stringify({
  properties: {
    accumulated: '',
    chart: '',
    createdOn: '',
    displayName: '',
    kpis: [
      {
        enabled: false,
        id: '',
        type: ''
      }
    ],
    metric: '',
    modifiedOn: '',
    pivots: [
      {
        name: '',
        type: ''
      }
    ],
    query: {
      dataset: {
        aggregation: {},
        configuration: {
          columns: []
        },
        filter: {
          and: [],
          dimension: {
            name: '',
            operator: '',
            values: []
          },
          not: '',
          or: [],
          tag: {}
        },
        granularity: '',
        grouping: [
          {
            name: '',
            type: ''
          }
        ],
        sorting: [
          {
            direction: '',
            name: ''
          }
        ]
      },
      timePeriod: {
        from: '',
        to: ''
      },
      timeframe: '',
      type: ''
    },
    scope: ''
  }
});

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('PUT', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=');
xhr.setRequestHeader('content-type', 'application/json');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName',
  params: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  data: {
    properties: {
      accumulated: '',
      chart: '',
      createdOn: '',
      displayName: '',
      kpis: [{enabled: false, id: '', type: ''}],
      metric: '',
      modifiedOn: '',
      pivots: [{name: '', type: ''}],
      query: {
        dataset: {
          aggregation: {},
          configuration: {columns: []},
          filter: {
            and: [],
            dimension: {name: '', operator: '', values: []},
            not: '',
            or: [],
            tag: {}
          },
          granularity: '',
          grouping: [{name: '', type: ''}],
          sorting: [{direction: '', name: ''}]
        },
        timePeriod: {from: '', to: ''},
        timeframe: '',
        type: ''
      },
      scope: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"properties":{"accumulated":"","chart":"","createdOn":"","displayName":"","kpis":[{"enabled":false,"id":"","type":""}],"metric":"","modifiedOn":"","pivots":[{"name":"","type":""}],"query":{"dataset":{"aggregation":{},"configuration":{"columns":[]},"filter":{"and":[],"dimension":{"name":"","operator":"","values":[]},"not":"","or":[],"tag":{}},"granularity":"","grouping":[{"name":"","type":""}],"sorting":[{"direction":"","name":""}]},"timePeriod":{"from":"","to":""},"timeframe":"","type":""},"scope":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=',
  method: 'PUT',
  headers: {
    'content-type': 'application/json'
  },
  processData: false,
  data: '{\n  "properties": {\n    "accumulated": "",\n    "chart": "",\n    "createdOn": "",\n    "displayName": "",\n    "kpis": [\n      {\n        "enabled": false,\n        "id": "",\n        "type": ""\n      }\n    ],\n    "metric": "",\n    "modifiedOn": "",\n    "pivots": [\n      {\n        "name": "",\n        "type": ""\n      }\n    ],\n    "query": {\n      "dataset": {\n        "aggregation": {},\n        "configuration": {\n          "columns": []\n        },\n        "filter": {\n          "and": [],\n          "dimension": {\n            "name": "",\n            "operator": "",\n            "values": []\n          },\n          "not": "",\n          "or": [],\n          "tag": {}\n        },\n        "granularity": "",\n        "grouping": [\n          {\n            "name": "",\n            "type": ""\n          }\n        ],\n        "sorting": [\n          {\n            "direction": "",\n            "name": ""\n          }\n        ]\n      },\n      "timePeriod": {\n        "from": "",\n        "to": ""\n      },\n      "timeframe": "",\n      "type": ""\n    },\n    "scope": ""\n  }\n}'
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}")
val request = Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .put(body)
  .addHeader("content-type", "application/json")
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'PUT',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=',
  headers: {
    'content-type': 'application/json'
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  properties: {
    accumulated: '',
    chart: '',
    createdOn: '',
    displayName: '',
    kpis: [{enabled: false, id: '', type: ''}],
    metric: '',
    modifiedOn: '',
    pivots: [{name: '', type: ''}],
    query: {
      dataset: {
        aggregation: {},
        configuration: {columns: []},
        filter: {
          and: [],
          dimension: {name: '', operator: '', values: []},
          not: '',
          or: [],
          tag: {}
        },
        granularity: '',
        grouping: [{name: '', type: ''}],
        sorting: [{direction: '', name: ''}]
      },
      timePeriod: {from: '', to: ''},
      timeframe: '',
      type: ''
    },
    scope: ''
  }
}));
req.end();
const request = require('request');

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName',
  qs: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  body: {
    properties: {
      accumulated: '',
      chart: '',
      createdOn: '',
      displayName: '',
      kpis: [{enabled: false, id: '', type: ''}],
      metric: '',
      modifiedOn: '',
      pivots: [{name: '', type: ''}],
      query: {
        dataset: {
          aggregation: {},
          configuration: {columns: []},
          filter: {
            and: [],
            dimension: {name: '', operator: '', values: []},
            not: '',
            or: [],
            tag: {}
          },
          granularity: '',
          grouping: [{name: '', type: ''}],
          sorting: [{direction: '', name: ''}]
        },
        timePeriod: {from: '', to: ''},
        timeframe: '',
        type: ''
      },
      scope: ''
    }
  },
  json: true
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('PUT', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName');

req.query({
  'api-version': ''
});

req.headers({
  'content-type': 'application/json'
});

req.type('json');
req.send({
  properties: {
    accumulated: '',
    chart: '',
    createdOn: '',
    displayName: '',
    kpis: [
      {
        enabled: false,
        id: '',
        type: ''
      }
    ],
    metric: '',
    modifiedOn: '',
    pivots: [
      {
        name: '',
        type: ''
      }
    ],
    query: {
      dataset: {
        aggregation: {},
        configuration: {
          columns: []
        },
        filter: {
          and: [],
          dimension: {
            name: '',
            operator: '',
            values: []
          },
          not: '',
          or: [],
          tag: {}
        },
        granularity: '',
        grouping: [
          {
            name: '',
            type: ''
          }
        ],
        sorting: [
          {
            direction: '',
            name: ''
          }
        ]
      },
      timePeriod: {
        from: '',
        to: ''
      },
      timeframe: '',
      type: ''
    },
    scope: ''
  }
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'PUT',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName',
  params: {'api-version': ''},
  headers: {'content-type': 'application/json'},
  data: {
    properties: {
      accumulated: '',
      chart: '',
      createdOn: '',
      displayName: '',
      kpis: [{enabled: false, id: '', type: ''}],
      metric: '',
      modifiedOn: '',
      pivots: [{name: '', type: ''}],
      query: {
        dataset: {
          aggregation: {},
          configuration: {columns: []},
          filter: {
            and: [],
            dimension: {name: '', operator: '', values: []},
            not: '',
            or: [],
            tag: {}
          },
          granularity: '',
          grouping: [{name: '', type: ''}],
          sorting: [{direction: '', name: ''}]
        },
        timePeriod: {from: '', to: ''},
        timeframe: '',
        type: ''
      },
      scope: ''
    }
  }
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=';
const options = {
  method: 'PUT',
  headers: {'content-type': 'application/json'},
  body: '{"properties":{"accumulated":"","chart":"","createdOn":"","displayName":"","kpis":[{"enabled":false,"id":"","type":""}],"metric":"","modifiedOn":"","pivots":[{"name":"","type":""}],"query":{"dataset":{"aggregation":{},"configuration":{"columns":[]},"filter":{"and":[],"dimension":{"name":"","operator":"","values":[]},"not":"","or":[],"tag":{}},"granularity":"","grouping":[{"name":"","type":""}],"sorting":[{"direction":"","name":""}]},"timePeriod":{"from":"","to":""},"timeframe":"","type":""},"scope":""}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSDictionary *headers = @{ @"content-type": @"application/json" };
NSDictionary *parameters = @{ @"properties": @{ @"accumulated": @"", @"chart": @"", @"createdOn": @"", @"displayName": @"", @"kpis": @[ @{ @"enabled": @NO, @"id": @"", @"type": @"" } ], @"metric": @"", @"modifiedOn": @"", @"pivots": @[ @{ @"name": @"", @"type": @"" } ], @"query": @{ @"dataset": @{ @"aggregation": @{  }, @"configuration": @{ @"columns": @[  ] }, @"filter": @{ @"and": @[  ], @"dimension": @{ @"name": @"", @"operator": @"", @"values": @[  ] }, @"not": @"", @"or": @[  ], @"tag": @{  } }, @"granularity": @"", @"grouping": @[ @{ @"name": @"", @"type": @"" } ], @"sorting": @[ @{ @"direction": @"", @"name": @"" } ] }, @"timePeriod": @{ @"from": @"", @"to": @"" }, @"timeframe": @"", @"type": @"" }, @"scope": @"" } };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"PUT"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=" in
let headers = Header.add (Header.init ()) "content-type" "application/json" in
let body = Cohttp_lwt_body.of_string "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}" in

Client.call ~headers ~body `PUT uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'properties' => [
        'accumulated' => '',
        'chart' => '',
        'createdOn' => '',
        'displayName' => '',
        'kpis' => [
                [
                                'enabled' => null,
                                'id' => '',
                                'type' => ''
                ]
        ],
        'metric' => '',
        'modifiedOn' => '',
        'pivots' => [
                [
                                'name' => '',
                                'type' => ''
                ]
        ],
        'query' => [
                'dataset' => [
                                'aggregation' => [
                                                                
                                ],
                                'configuration' => [
                                                                'columns' => [
                                                                                                                                
                                                                ]
                                ],
                                'filter' => [
                                                                'and' => [
                                                                                                                                
                                                                ],
                                                                'dimension' => [
                                                                                                                                'name' => '',
                                                                                                                                'operator' => '',
                                                                                                                                'values' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ],
                                                                'not' => '',
                                                                'or' => [
                                                                                                                                
                                                                ],
                                                                'tag' => [
                                                                                                                                
                                                                ]
                                ],
                                'granularity' => '',
                                'grouping' => [
                                                                [
                                                                                                                                'name' => '',
                                                                                                                                'type' => ''
                                                                ]
                                ],
                                'sorting' => [
                                                                [
                                                                                                                                'direction' => '',
                                                                                                                                'name' => ''
                                                                ]
                                ]
                ],
                'timePeriod' => [
                                'from' => '',
                                'to' => ''
                ],
                'timeframe' => '',
                'type' => ''
        ],
        'scope' => ''
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('PUT', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=', [
  'body' => '{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}',
  'headers' => [
    'content-type' => 'application/json',
  ],
]);

echo $response->getBody();
setUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName');
$request->setMethod(HTTP_METH_PUT);

$request->setQueryData([
  'api-version' => ''
]);

$request->setHeaders([
  'content-type' => 'application/json'
]);

$request->setContentType('application/json');
$request->setBody(json_encode([
  'properties' => [
    'accumulated' => '',
    'chart' => '',
    'createdOn' => '',
    'displayName' => '',
    'kpis' => [
        [
                'enabled' => null,
                'id' => '',
                'type' => ''
        ]
    ],
    'metric' => '',
    'modifiedOn' => '',
    'pivots' => [
        [
                'name' => '',
                'type' => ''
        ]
    ],
    'query' => [
        'dataset' => [
                'aggregation' => [
                                
                ],
                'configuration' => [
                                'columns' => [
                                                                
                                ]
                ],
                'filter' => [
                                'and' => [
                                                                
                                ],
                                'dimension' => [
                                                                'name' => '',
                                                                'operator' => '',
                                                                'values' => [
                                                                                                                                
                                                                ]
                                ],
                                'not' => '',
                                'or' => [
                                                                
                                ],
                                'tag' => [
                                                                
                                ]
                ],
                'granularity' => '',
                'grouping' => [
                                [
                                                                'name' => '',
                                                                'type' => ''
                                ]
                ],
                'sorting' => [
                                [
                                                                'direction' => '',
                                                                'name' => ''
                                ]
                ]
        ],
        'timePeriod' => [
                'from' => '',
                'to' => ''
        ],
        'timeframe' => '',
        'type' => ''
    ],
    'scope' => ''
  ]
]));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
append(json_encode([
  'properties' => [
    'accumulated' => '',
    'chart' => '',
    'createdOn' => '',
    'displayName' => '',
    'kpis' => [
        [
                'enabled' => null,
                'id' => '',
                'type' => ''
        ]
    ],
    'metric' => '',
    'modifiedOn' => '',
    'pivots' => [
        [
                'name' => '',
                'type' => ''
        ]
    ],
    'query' => [
        'dataset' => [
                'aggregation' => [
                                
                ],
                'configuration' => [
                                'columns' => [
                                                                
                                ]
                ],
                'filter' => [
                                'and' => [
                                                                
                                ],
                                'dimension' => [
                                                                'name' => '',
                                                                'operator' => '',
                                                                'values' => [
                                                                                                                                
                                                                ]
                                ],
                                'not' => '',
                                'or' => [
                                                                
                                ],
                                'tag' => [
                                                                
                                ]
                ],
                'granularity' => '',
                'grouping' => [
                                [
                                                                'name' => '',
                                                                'type' => ''
                                ]
                ],
                'sorting' => [
                                [
                                                                'direction' => '',
                                                                'name' => ''
                                ]
                ]
        ],
        'timePeriod' => [
                'from' => '',
                'to' => ''
        ],
        'timeframe' => '',
        'type' => ''
    ],
    'scope' => ''
  ]
]));
$request->setRequestUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName');
$request->setRequestMethod('PUT');
$request->setBody($body);

$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$request->setHeaders([
  'content-type' => 'application/json'
]);

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}'
$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}'
import http.client

conn = http.client.HTTPSConnection("example.com")

payload = "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}"

headers = { 'content-type': "application/json" }

conn.request("PUT", "/baseUrl/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName"

querystring = {"api-version":""}

payload = { "properties": {
        "accumulated": "",
        "chart": "",
        "createdOn": "",
        "displayName": "",
        "kpis": [
            {
                "enabled": False,
                "id": "",
                "type": ""
            }
        ],
        "metric": "",
        "modifiedOn": "",
        "pivots": [
            {
                "name": "",
                "type": ""
            }
        ],
        "query": {
            "dataset": {
                "aggregation": {},
                "configuration": { "columns": [] },
                "filter": {
                    "and": [],
                    "dimension": {
                        "name": "",
                        "operator": "",
                        "values": []
                    },
                    "not": "",
                    "or": [],
                    "tag": {}
                },
                "granularity": "",
                "grouping": [
                    {
                        "name": "",
                        "type": ""
                    }
                ],
                "sorting": [
                    {
                        "direction": "",
                        "name": ""
                    }
                ]
            },
            "timePeriod": {
                "from": "",
                "to": ""
            },
            "timeframe": "",
            "type": ""
        },
        "scope": ""
    } }
headers = {"content-type": "application/json"}

response = requests.put(url, json=payload, headers=headers, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName"

queryString <- list(api-version = "")

payload <- "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}"

encode <- "json"

response <- VERB("PUT", url, body = payload, query = queryString, content_type("application/json"), encode = encode)

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["content-type"] = 'application/json'
request.body = "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}"

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
  headers: {'Content-Type' => 'application/json'}
)

response = conn.put('/baseUrl/:scope/providers/Microsoft.CostManagement/views/:viewName') do |req|
  req.params['api-version'] = ''
  req.body = "{\n  \"properties\": {\n    \"accumulated\": \"\",\n    \"chart\": \"\",\n    \"createdOn\": \"\",\n    \"displayName\": \"\",\n    \"kpis\": [\n      {\n        \"enabled\": false,\n        \"id\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"metric\": \"\",\n    \"modifiedOn\": \"\",\n    \"pivots\": [\n      {\n        \"name\": \"\",\n        \"type\": \"\"\n      }\n    ],\n    \"query\": {\n      \"dataset\": {\n        \"aggregation\": {},\n        \"configuration\": {\n          \"columns\": []\n        },\n        \"filter\": {\n          \"and\": [],\n          \"dimension\": {\n            \"name\": \"\",\n            \"operator\": \"\",\n            \"values\": []\n          },\n          \"not\": \"\",\n          \"or\": [],\n          \"tag\": {}\n        },\n        \"granularity\": \"\",\n        \"grouping\": [\n          {\n            \"name\": \"\",\n            \"type\": \"\"\n          }\n        ],\n        \"sorting\": [\n          {\n            \"direction\": \"\",\n            \"name\": \"\"\n          }\n        ]\n      },\n      \"timePeriod\": {\n        \"from\": \"\",\n        \"to\": \"\"\n      },\n      \"timeframe\": \"\",\n      \"type\": \"\"\n    },\n    \"scope\": \"\"\n  }\n}"
end

puts response.status
puts response.body
use std::str::FromStr;
use serde_json::json;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName";

    let querystring = [
        ("api-version", ""),
    ];

    let payload = json!({"properties": json!({
            "accumulated": "",
            "chart": "",
            "createdOn": "",
            "displayName": "",
            "kpis": (
                json!({
                    "enabled": false,
                    "id": "",
                    "type": ""
                })
            ),
            "metric": "",
            "modifiedOn": "",
            "pivots": (
                json!({
                    "name": "",
                    "type": ""
                })
            ),
            "query": json!({
                "dataset": json!({
                    "aggregation": json!({}),
                    "configuration": json!({"columns": ()}),
                    "filter": json!({
                        "and": (),
                        "dimension": json!({
                            "name": "",
                            "operator": "",
                            "values": ()
                        }),
                        "not": "",
                        "or": (),
                        "tag": json!({})
                    }),
                    "granularity": "",
                    "grouping": (
                        json!({
                            "name": "",
                            "type": ""
                        })
                    ),
                    "sorting": (
                        json!({
                            "direction": "",
                            "name": ""
                        })
                    )
                }),
                "timePeriod": json!({
                    "from": "",
                    "to": ""
                }),
                "timeframe": "",
                "type": ""
            }),
            "scope": ""
        })});

    let mut headers = reqwest::header::HeaderMap::new();
    headers.insert("content-type", "application/json".parse().unwrap());

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("PUT").unwrap(), url)
        .query(&querystring)
        .headers(headers)
        .json(&payload)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request PUT \
  --url '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=' \
  --header 'content-type: application/json' \
  --data '{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}'
echo '{
  "properties": {
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      {
        "enabled": false,
        "id": "",
        "type": ""
      }
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      {
        "name": "",
        "type": ""
      }
    ],
    "query": {
      "dataset": {
        "aggregation": {},
        "configuration": {
          "columns": []
        },
        "filter": {
          "and": [],
          "dimension": {
            "name": "",
            "operator": "",
            "values": []
          },
          "not": "",
          "or": [],
          "tag": {}
        },
        "granularity": "",
        "grouping": [
          {
            "name": "",
            "type": ""
          }
        ],
        "sorting": [
          {
            "direction": "",
            "name": ""
          }
        ]
      },
      "timePeriod": {
        "from": "",
        "to": ""
      },
      "timeframe": "",
      "type": ""
    },
    "scope": ""
  }
}' |  \
  http PUT '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=' \
  content-type:application/json
wget --quiet \
  --method PUT \
  --header 'content-type: application/json' \
  --body-data '{\n  "properties": {\n    "accumulated": "",\n    "chart": "",\n    "createdOn": "",\n    "displayName": "",\n    "kpis": [\n      {\n        "enabled": false,\n        "id": "",\n        "type": ""\n      }\n    ],\n    "metric": "",\n    "modifiedOn": "",\n    "pivots": [\n      {\n        "name": "",\n        "type": ""\n      }\n    ],\n    "query": {\n      "dataset": {\n        "aggregation": {},\n        "configuration": {\n          "columns": []\n        },\n        "filter": {\n          "and": [],\n          "dimension": {\n            "name": "",\n            "operator": "",\n            "values": []\n          },\n          "not": "",\n          "or": [],\n          "tag": {}\n        },\n        "granularity": "",\n        "grouping": [\n          {\n            "name": "",\n            "type": ""\n          }\n        ],\n        "sorting": [\n          {\n            "direction": "",\n            "name": ""\n          }\n        ]\n      },\n      "timePeriod": {\n        "from": "",\n        "to": ""\n      },\n      "timeframe": "",\n      "type": ""\n    },\n    "scope": ""\n  }\n}' \
  --output-document \
  - '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version='
import Foundation

let headers = ["content-type": "application/json"]
let parameters = ["properties": [
    "accumulated": "",
    "chart": "",
    "createdOn": "",
    "displayName": "",
    "kpis": [
      [
        "enabled": false,
        "id": "",
        "type": ""
      ]
    ],
    "metric": "",
    "modifiedOn": "",
    "pivots": [
      [
        "name": "",
        "type": ""
      ]
    ],
    "query": [
      "dataset": [
        "aggregation": [],
        "configuration": ["columns": []],
        "filter": [
          "and": [],
          "dimension": [
            "name": "",
            "operator": "",
            "values": []
          ],
          "not": "",
          "or": [],
          "tag": []
        ],
        "granularity": "",
        "grouping": [
          [
            "name": "",
            "type": ""
          ]
        ],
        "sorting": [
          [
            "direction": "",
            "name": ""
          ]
        ]
      ],
      "timePeriod": [
        "from": "",
        "to": ""
      ],
      "timeframe": "",
      "type": ""
    ],
    "scope": ""
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Views_Delete
{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName
QUERY PARAMS

api-version
viewName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName" {:query-params {:api-version ""}})
require "http/client"

url = "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/providers/Microsoft.CostManagement/views/:viewName?api-version= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/providers/Microsoft.CostManagement/views/:viewName?api-version=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName',
  qs: {'api-version': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName');

req.query({
  'api-version': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=');

echo $response->getBody();
setUrl('{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'api-version' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/providers/Microsoft.CostManagement/views/:viewName?api-version=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName"

querystring = {"api-version":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName"

queryString <- list(api-version = "")

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/providers/Microsoft.CostManagement/views/:viewName') do |req|
  req.params['api-version'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName";

    let querystring = [
        ("api-version", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version='
http DELETE '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
DELETE Views_DeleteByScope
{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName
QUERY PARAMS

api-version
scope
viewName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/delete "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName" {:query-params {:api-version ""}})
require "http/client"

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="

response = HTTP::Client.delete url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Delete,
    RequestUri = new Uri("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=");
var request = new RestRequest("", Method.Delete);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
DELETE /baseUrl/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("DELETE", "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="))
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .delete(null)
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.delete("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('DELETE', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=',
  method: 'DELETE',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .delete(null)
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'DELETE',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName',
  qs: {'api-version': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('DELETE', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName');

req.query({
  'api-version': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'DELETE',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=';
const options = {method: 'DELETE'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"DELETE"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=" in

Client.call `DELETE uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "DELETE",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('DELETE', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=');

echo $response->getBody();
setUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName');
$request->setMethod(HTTP_METH_DELETE);

$request->setQueryData([
  'api-version' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName');
$request->setRequestMethod('DELETE');
$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=' -Method DELETE 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=' -Method DELETE 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("DELETE", "/baseUrl/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName"

querystring = {"api-version":""}

response = requests.delete(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName"

queryString <- list(api-version = "")

response <- VERB("DELETE", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Delete.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.delete('/baseUrl/:scope/providers/Microsoft.CostManagement/views/:viewName') do |req|
  req.params['api-version'] = ''
end

puts response.status
puts response.body
use std::str::FromStr;
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName";

    let querystring = [
        ("api-version", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.request(reqwest::Method::from_str("DELETE").unwrap(), url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request DELETE \
  --url '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version='
http DELETE '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version='
wget --quiet \
  --method DELETE \
  --output-document \
  - '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "DELETE"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Views_Get
{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName
QUERY PARAMS

api-version
viewName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName" {:query-params {:api-version ""}})
require "http/client"

url = "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/providers/Microsoft.CostManagement/views/:viewName?api-version= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/providers/Microsoft.CostManagement/views/:viewName?api-version=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName',
  qs: {'api-version': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName');

req.query({
  'api-version': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=');

echo $response->getBody();
setUrl('{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'api-version' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/providers/Microsoft.CostManagement/views/:viewName?api-version=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName"

querystring = {"api-version":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName"

queryString <- list(api-version = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/providers/Microsoft.CostManagement/views/:viewName') do |req|
  req.params['api-version'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName";

    let querystring = [
        ("api-version", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version='
http GET '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/providers/Microsoft.CostManagement/views/:viewName?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Views_GetByScope
{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName
QUERY PARAMS

api-version
scope
viewName
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName" {:query-params {:api-version ""}})
require "http/client"

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName',
  qs: {'api-version': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName');

req.query({
  'api-version': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=');

echo $response->getBody();
setUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'api-version' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName"

querystring = {"api-version":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName"

queryString <- list(api-version = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:scope/providers/Microsoft.CostManagement/views/:viewName') do |req|
  req.params['api-version'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName";

    let querystring = [
        ("api-version", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version='
http GET '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views/:viewName?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Views_List
{{baseUrl}}/providers/Microsoft.CostManagement/views
QUERY PARAMS

api-version
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/providers/Microsoft.CostManagement/views" {:query-params {:api-version ""}})
require "http/client"

url = "{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/providers/Microsoft.CostManagement/views?api-version= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/providers/Microsoft.CostManagement/views?api-version=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views',
  qs: {'api-version': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/providers/Microsoft.CostManagement/views');

req.query({
  'api-version': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/providers/Microsoft.CostManagement/views',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=');

echo $response->getBody();
setUrl('{{baseUrl}}/providers/Microsoft.CostManagement/views');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'api-version' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/providers/Microsoft.CostManagement/views');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/providers/Microsoft.CostManagement/views?api-version=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/providers/Microsoft.CostManagement/views"

querystring = {"api-version":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/providers/Microsoft.CostManagement/views"

queryString <- list(api-version = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/providers/Microsoft.CostManagement/views') do |req|
  req.params['api-version'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/providers/Microsoft.CostManagement/views";

    let querystring = [
        ("api-version", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version='
http GET '{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/providers/Microsoft.CostManagement/views?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
GET Views_ListByScope
{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views
QUERY PARAMS

api-version
scope
Examples
REQUEST

CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=");

CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])

(client/get "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views" {:query-params {:api-version ""}})
require "http/client"

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version="

response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Get,
    RequestUri = new Uri("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version="),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version="

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
GET /baseUrl/:scope/providers/Microsoft.CostManagement/views?api-version= HTTP/1.1
Host: example.com

AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=")
  .execute()
  .toCompletableFuture()
  .thenAccept(System.out::println)
  .join();

client.close();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version="))
    .method("GET", HttpRequest.BodyPublishers.noBody())
    .build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=")
  .get()
  .build();

Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=")
  .asString();
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=');

xhr.send(data);
import axios from 'axios';

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
const settings = {
  async: true,
  crossDomain: true,
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=',
  method: 'GET',
  headers: {}
};

$.ajax(settings).done(function (response) {
  console.log(response);
});
val client = OkHttpClient()

val request = Request.Builder()
  .url("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=")
  .get()
  .build()

val response = client.newCall(request).execute()
const http = require('https');

const options = {
  method: 'GET',
  hostname: 'example.com',
  port: null,
  path: '/baseUrl/:scope/providers/Microsoft.CostManagement/views?api-version=',
  headers: {}
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on('data', function (chunk) {
    chunks.push(chunk);
  });

  res.on('end', function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();
const request = require('request');

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views',
  qs: {'api-version': ''}
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
const unirest = require('unirest');

const req = unirest('GET', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views');

req.query({
  'api-version': ''
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
const axios = require('axios').default;

const options = {
  method: 'GET',
  url: '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views',
  params: {'api-version': ''}
};

try {
  const { data } = await axios.request(options);
  console.log(data);
} catch (error) {
  console.error(error);
}
const fetch = require('node-fetch');

const url = '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
#import 

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version="]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt

let uri = Uri.of_string "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=" in

Client.call `GET uri
>>= fun (res, body_stream) ->
  (* Do stuff with the result *)
 "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
request('GET', '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=');

echo $response->getBody();
setUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData([
  'api-version' => ''
]);

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
setRequestUrl('{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
  'api-version' => ''
]));

$client->enqueue($request)->send();
$response = $client->getResponse();

echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=' -Method GET 
$response = Invoke-RestMethod -Uri '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=' -Method GET 
import http.client

conn = http.client.HTTPSConnection("example.com")

conn.request("GET", "/baseUrl/:scope/providers/Microsoft.CostManagement/views?api-version=")

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
import requests

url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views"

querystring = {"api-version":""}

response = requests.get(url, params=querystring)

print(response.json())
library(httr)

url <- "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views"

queryString <- list(api-version = "")

response <- VERB("GET", url, query = queryString, content_type("application/octet-stream"))

content(response, "text")
require 'uri'
require 'net/http'

url = URI("{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
require 'faraday'

conn = Faraday.new(
  url: 'https://example.com',
)

response = conn.get('/baseUrl/:scope/providers/Microsoft.CostManagement/views') do |req|
  req.params['api-version'] = ''
end

puts response.status
puts response.body
use reqwest;

#[tokio::main]
pub async fn main() {
    let url = "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views";

    let querystring = [
        ("api-version", ""),
    ];

    let client = reqwest::Client::new();
    let response = client.get(url)
        .query(&querystring)
        .send()
        .await;

    let results = response.unwrap()
        .json::()
        .await
        .unwrap();

    dbg!(results);
}
curl --request GET \
  --url '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version='
http GET '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version='
wget --quiet \
  --method GET \
  --output-document \
  - '{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version='
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/:scope/providers/Microsoft.CostManagement/views?api-version=")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()