Hook up MIAA dashboard overview (#10890)

* Hook up MIAA dashboard overview

* Fix merge conflicts

* Fix links

* Remove extra &
This commit is contained in:
Charles Gagnon
2020-06-15 11:25:31 -07:00
committed by GitHub
parent ff8b03aa5e
commit d9e70731f4
16 changed files with 335 additions and 126 deletions

View File

@@ -17,6 +17,7 @@ import http = require('http');
import { CreateSqlInstanceMessage } from '../model/createSqlInstanceMessage';
import { Authentication, HttpBasicAuth, HttpBearerAuth, Interceptor, ObjectSerializer, VoidAuth } from '../model/models';
import { HttpError } from './apis';
import { HybridSqlNsNameGetResponse } from '../model/hybridSqlNsNameGetResponse';
@@ -307,7 +308,7 @@ export class SqlInstanceRouterApi {
* @param ns
* @param name
*/
public async apiV1HybridSqlNsNameGet (ns: string, name: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
public async apiV1HybridSqlNsNameGet (ns: string, name: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: HybridSqlNsNameGetResponse; }> {
const localVarPath = this.basePath + '/api/v1/hybrid/sql/{ns}/{name}'
.replace('{' + 'ns' + '}', encodeURIComponent(String(ns)))
.replace('{' + 'name' + '}', encodeURIComponent(String(name)));
@@ -360,11 +361,12 @@ export class SqlInstanceRouterApi {
localVarRequestOptions.form = localVarFormParams;
}
}
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
return new Promise<{ response: http.IncomingMessage; body: HybridSqlNsNameGetResponse; }>((resolve, reject) => {
localVarRequest(localVarRequestOptions, (error, response, body) => {
if (error) {
reject(error);
} else {
body = ObjectSerializer.deserialize(body, "HybridSqlNsNameGetResponse");
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
resolve({ response: response, body: body });
} else {

View File

@@ -0,0 +1,22 @@
/**
* SQL Server Big Data Cluster API
* OpenAPI specification for **SQL Server Big Data Cluster**.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export class HybridSqlNsNameGetResponse {
'name'?: string;
'status'?: string;
'cluster_endpoint'?: string;
'external_endpoint'?: string;
'service_name'?: string;
'vcores'?: string;
}