mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-06 01:25:38 -05:00
Update arc api (#11932)
This commit is contained in:
192
extensions/azdata/src/typings/azdata-ext.d.ts
vendored
192
extensions/azdata/src/typings/azdata-ext.d.ts
vendored
@@ -34,66 +34,68 @@ declare module 'azdata-ext' {
|
||||
workers: number // 1
|
||||
}
|
||||
|
||||
export type DcConfigListResult = string;
|
||||
|
||||
export interface DcConfigShowResult {
|
||||
apiVersion: string, // "arcdata.microsoft.com/v1alpha1"
|
||||
kind: string, // "DataController"
|
||||
metadata: {
|
||||
creationTimestamp: string, // "2020-08-19T17:05:39Z"
|
||||
generation: number, // /1
|
||||
name: string, // "arc"
|
||||
namespace: string, // "arc"
|
||||
resourceVersion: string, // "200369"
|
||||
selfLink: string, // "/apis/arcdata.microsoft.com/v1alpha1/namespaces/arc/datacontrollers/arc"
|
||||
uid: string// "da72ed34-ee51-4bf0-b5c9-b0753834c5c1"
|
||||
creationTimestamp: string, // "2020-08-19T17:05:39Z"
|
||||
generation: number, // /1
|
||||
name: string, // "arc"
|
||||
namespace: string, // "arc"
|
||||
resourceVersion: string, // "200369"
|
||||
selfLink: string, // "/apis/arcdata.microsoft.com/v1alpha1/namespaces/arc/datacontrollers/arc"
|
||||
uid: string// "da72ed34-ee51-4bf0-b5c9-b0753834c5c1"
|
||||
},
|
||||
spec: {
|
||||
credentials: {
|
||||
controllerAdmin: string, // "controller-login-secret"
|
||||
dockerRegistry: string, // "mssql-private-registry"
|
||||
serviceAccount: string, // "sa-mssql-controller"
|
||||
},
|
||||
docker: {
|
||||
imagePullPolicy: string, // "Always"
|
||||
imageTag: string, // "15.0.2000.41811_5"
|
||||
registry: string, // "hlsaris.azurecr.io"
|
||||
repository: string // "aris-p-master-dsmain-standard"
|
||||
},
|
||||
security: {
|
||||
allowDumps: boolean, // true,
|
||||
allowNodeMetricsCollection: boolean // true
|
||||
allowPodMetricsCollection: boolean, // true
|
||||
allowRunAsRoot: boolean // false
|
||||
},
|
||||
services: {
|
||||
name: string, // "controller"
|
||||
port: number, // 30080
|
||||
serviceType: string // "NodePort"
|
||||
}[],
|
||||
settings: {
|
||||
ElasticSearch: {
|
||||
'vm.max_map_count': string // "-1"
|
||||
credentials: {
|
||||
controllerAdmin: string, // "controller-login-secret"
|
||||
dockerRegistry: string, // "mssql-private-registry"
|
||||
serviceAccount: string, // "sa-mssql-controller"
|
||||
},
|
||||
controller: {
|
||||
'enableBilling': string, // "True"
|
||||
'logs.rotation.days': string, // "7"
|
||||
'logs.rotation.size': string, // "5000"
|
||||
}
|
||||
},
|
||||
storage: {
|
||||
data: {
|
||||
accessMode: string, // "ReadWriteOnce"
|
||||
className: string, // "local-storage"
|
||||
size: string, // "15Gi"
|
||||
docker: {
|
||||
imagePullPolicy: string, // "Always"
|
||||
imageTag: string, // "15.0.2000.41811_5"
|
||||
registry: string, // "hlsaris.azurecr.io"
|
||||
repository: string // "aris-p-master-dsmain-standard"
|
||||
},
|
||||
logs: {
|
||||
accessMode: string, // "ReadWriteOnce"
|
||||
className: string, // "local-storage"
|
||||
size: string, // "10Gi"
|
||||
security: {
|
||||
allowDumps: boolean, // true,
|
||||
allowNodeMetricsCollection: boolean // true
|
||||
allowPodMetricsCollection: boolean, // true
|
||||
allowRunAsRoot: boolean // false
|
||||
},
|
||||
services: {
|
||||
name: string, // "controller"
|
||||
port: number, // 30080
|
||||
serviceType: string // "NodePort"
|
||||
}[],
|
||||
settings: {
|
||||
ElasticSearch: {
|
||||
'vm.max_map_count': string // "-1"
|
||||
},
|
||||
controller: {
|
||||
'enableBilling': string, // "True"
|
||||
'logs.rotation.days': string, // "7"
|
||||
'logs.rotation.size': string, // "5000"
|
||||
}
|
||||
},
|
||||
storage: {
|
||||
data: {
|
||||
accessMode: string, // "ReadWriteOnce"
|
||||
className: string, // "local-storage"
|
||||
size: string, // "15Gi"
|
||||
},
|
||||
logs: {
|
||||
accessMode: string, // "ReadWriteOnce"
|
||||
className: string, // "local-storage"
|
||||
size: string, // "10Gi"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
status: {
|
||||
state: string, // "Ready"
|
||||
state: string, // "Ready"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,6 +129,20 @@ declare module 'azdata-ext' {
|
||||
}
|
||||
}
|
||||
|
||||
export interface PostgresServerShowResult {
|
||||
apiVersion: string, // "arcdata.microsoft.com/v1alpha1"
|
||||
kind: string, // "postgresql-12"
|
||||
metadata: {
|
||||
creationTimestamp: string, // "2020-08-19T20:25:11Z"
|
||||
generation: number, // 1
|
||||
name: string, // "chgagnon-pg"
|
||||
namespace: string, // "arc",
|
||||
resourceVersion: string, // "214944",
|
||||
selfLink: string, // "/apis/arcdata.microsoft.com/v1alpha1/namespaces/arc/postgresql-12s/chgagnon-pg",
|
||||
uid: string, // "26d0f5bb-0c0b-4225-a6b5-5be2bf6feac0"
|
||||
}
|
||||
}
|
||||
|
||||
export interface PostgresServerShowResult {
|
||||
apiVersion: string, // "arcdata.microsoft.com/v1alpha1"
|
||||
kind: string, // "postgresql-12"
|
||||
@@ -155,32 +171,10 @@ declare module 'azdata-ext' {
|
||||
}
|
||||
]
|
||||
},
|
||||
scale: {
|
||||
shards: number // 1
|
||||
},
|
||||
scheduling: {
|
||||
default: {
|
||||
resources: {
|
||||
requests: {
|
||||
memory: string, // "256Mi"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
storage: {
|
||||
data: {
|
||||
className: string, // "local-storage",
|
||||
size: string // "5Gi"
|
||||
},
|
||||
logs: {
|
||||
className: string, // "local-storage",
|
||||
size: string // "5Gi"
|
||||
}
|
||||
status: {
|
||||
readyPods: string, // "1/1",
|
||||
state: string // "Ready"
|
||||
}
|
||||
},
|
||||
status: {
|
||||
readyPods: string, // "1/1",
|
||||
state: string // "Ready"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,29 +186,37 @@ declare module 'azdata-ext' {
|
||||
code?: number
|
||||
}
|
||||
|
||||
export interface IExtension {
|
||||
dc: {
|
||||
endpoint: {
|
||||
list(): Promise<AzdataOutput<DcEndpointListResult[]>>
|
||||
export interface IAzdataApi {
|
||||
arc: {
|
||||
dc: {
|
||||
create(namespace: string, name: string, connectivityMode: string, resourceGroup: string, location: string, subscription: string, profileName?: string, storageClass?: string): Promise<AzdataOutput<void>>,
|
||||
endpoint: {
|
||||
list(): Promise<AzdataOutput<DcEndpointListResult[]>>
|
||||
},
|
||||
config: {
|
||||
list(): Promise<AzdataOutput<DcConfigListResult[]>>,
|
||||
show(): Promise<AzdataOutput<DcConfigShowResult>>
|
||||
}
|
||||
},
|
||||
config: {
|
||||
show(): Promise<AzdataOutput<DcConfigShowResult>>
|
||||
}
|
||||
},
|
||||
login(endpoint: string, username: string, password: string): Promise<AzdataOutput<void>>,
|
||||
postgres: {
|
||||
server: {
|
||||
list(): Promise<AzdataOutput<PostgresServerListResult[]>>,
|
||||
show(name: string): Promise<AzdataOutput<PostgresServerShowResult>>
|
||||
}
|
||||
},
|
||||
sql: {
|
||||
mi: {
|
||||
delete(name: string): Promise<AzdataOutput<void>>,
|
||||
list(): Promise<AzdataOutput<SqlMiListResult[]>>,
|
||||
show(name: string): Promise<AzdataOutput<SqlMiShowResult>>
|
||||
postgres: {
|
||||
server: {
|
||||
list(): Promise<AzdataOutput<PostgresServerListResult[]>>,
|
||||
show(name: string): Promise<AzdataOutput<PostgresServerShowResult>>
|
||||
}
|
||||
},
|
||||
sql: {
|
||||
mi: {
|
||||
delete(name: string): Promise<AzdataOutput<void>>,
|
||||
list(): Promise<AzdataOutput<SqlMiListResult[]>>,
|
||||
show(name: string): Promise<AzdataOutput<SqlMiShowResult>>
|
||||
}
|
||||
}
|
||||
}
|
||||
login(endpoint: string, username: string, password: string): Promise<AzdataOutput<any>>,
|
||||
version(): Promise<AzdataOutput<string>>
|
||||
}
|
||||
|
||||
export interface IExtension {
|
||||
azdata: IAzdataApi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user