Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/comms/src/services/wsResources.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ResourcesServiceBase, WsResources } from "./wsdl/WsResources/v1.01/WsResources.ts";
import { ResourcesServiceBase, WsResources } from "./wsdl/WsResources/v1.04/WsResources.ts";

export {
type WsResources
Expand Down
178 changes: 178 additions & 0 deletions packages/comms/src/services/wsdl/WsResources/current/WsResources.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
import { IConnection, IOptions } from "../../../../connection.ts";
import { Service } from "../../../../espConnection.ts";

export namespace WsResources {

export type unsignedInt = number;

export enum HPCCQueueType {
Thor = "Thor",
HThor = "HThor",
Roxie = "Roxie",
All = "All"
}

export enum ExternalIPStatus {
Unknown = "Unknown",
None = "None",
Pending = "Pending"
}

export enum ResourceType {
UNKNOWN = "UNKNOWN",
TRACES = "TRACES",
LOGS = "LOGS",
METRICS = "METRICS"
}

export interface WsResourcesPingRequest {

}

export interface WsResourcesPingResponse {

}

export interface ServiceQueryRequest {
Type?: string;
Name?: string;
}

export interface Exception {
Code?: string;
Audience?: string;
Source?: string;
Message?: string;
}

export interface Exceptions {
Source?: string;
Exception?: Exception[];
}

export interface Service {
Name?: string;
Type?: string;
Port?: unsignedInt;
TLSSecure?: boolean;
}

export interface Services {
Service?: Service[];
}

export interface ServiceQueryResponse {
Exceptions?: Exceptions;
Services?: Services;
}

export interface TargetQueryRequest {
Type?: HPCCQueueType;
}

export interface HPCCQueue {
Name?: string;
Type?: HPCCQueueType;
}

export interface Queues {
HPCCQueue?: HPCCQueue[];
}

export interface Roxies {
Item?: string[];
}

export interface TargetQueryResponse {
Exceptions?: Exceptions;
Queues?: Queues;
Roxies?: Roxies;
}

export interface WebLinksQueryRequest {

}

export interface NamedValue {
Name?: string;
Value?: string;
}

export interface Annotations {
NamedValue?: NamedValue[];
}

export interface ExternalIPs {
Item?: string[];
}

export interface ServicePorts {
Name?: string;
Protocol?: string;
Port?: unsignedInt;
}

export interface Ports {
ServicePorts?: ServicePorts[];
}

export interface Connection {
Type?: string;
ExternalIPs?: ExternalIPs;
ExternalIPStatus?: ExternalIPStatus;
Ports?: Ports;
}

export interface DiscoveredWebLink {
ServiceName?: string;
NameSpace?: string;
Annotations?: Annotations;
Connection?: Connection;
}

export interface DiscoveredWebLinks {
DiscoveredWebLink?: DiscoveredWebLink[];
}

export interface ConfiguredWebLink {
Name?: string;
Description?: string;
URL?: string;
ResourceType?: ResourceType;
}

export interface ConfiguredWebLinks {
ConfiguredWebLink?: ConfiguredWebLink[];
}

export interface WebLinksQueryResponse {
Exceptions?: Exceptions;
DiscoveredWebLinks?: DiscoveredWebLinks;
ConfiguredWebLinks?: ConfiguredWebLinks;
}

}

export class ResourcesServiceBase extends Service {

constructor(optsConnection: IOptions | IConnection) {
super(optsConnection, "WsResources", "1.04");
}

Ping(request: WsResources.WsResourcesPingRequest, abortSignal?: AbortSignal): Promise<WsResources.WsResourcesPingResponse> {
return this._connection.send("Ping", request, "json", false, abortSignal, "WsResourcesPingResponse");
}

ServiceQuery(request: WsResources.ServiceQueryRequest, abortSignal?: AbortSignal): Promise<WsResources.ServiceQueryResponse> {
return this._connection.send("ServiceQuery", request, "json", false, abortSignal, "ServiceQueryResponse");
}

TargetQuery(request: WsResources.TargetQueryRequest, abortSignal?: AbortSignal): Promise<WsResources.TargetQueryResponse> {
return this._connection.send("TargetQuery", request, "json", false, abortSignal, "TargetQueryResponse");
}

WebLinksQuery(request: WsResources.WebLinksQueryRequest, abortSignal?: AbortSignal): Promise<WsResources.WebLinksQueryResponse> {
return this._connection.send("WebLinksQuery", request, "json", false, abortSignal, "WebLinksQueryResponse");
}

}
178 changes: 178 additions & 0 deletions packages/comms/src/services/wsdl/WsResources/v1.04/WsResources.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
import { IConnection, IOptions } from "../../../../connection.ts";
import { Service } from "../../../../espConnection.ts";

export namespace WsResources {

export type unsignedInt = number;

export enum HPCCQueueType {
Thor = "Thor",
HThor = "HThor",
Roxie = "Roxie",
All = "All"
}

export enum ExternalIPStatus {
Unknown = "Unknown",
None = "None",
Pending = "Pending"
}

export enum ResourceType {
UNKNOWN = "UNKNOWN",
TRACES = "TRACES",
LOGS = "LOGS",
METRICS = "METRICS"
}

export interface WsResourcesPingRequest {

}

export interface WsResourcesPingResponse {

}

export interface ServiceQueryRequest {
Type?: string;
Name?: string;
}

export interface Exception {
Code?: string;
Audience?: string;
Source?: string;
Message?: string;
}

export interface Exceptions {
Source?: string;
Exception?: Exception[];
}

export interface Service {
Name?: string;
Type?: string;
Port?: unsignedInt;
TLSSecure?: boolean;
}

export interface Services {
Service?: Service[];
}

export interface ServiceQueryResponse {
Exceptions?: Exceptions;
Services?: Services;
}

export interface TargetQueryRequest {
Type?: HPCCQueueType;
}

export interface HPCCQueue {
Name?: string;
Type?: HPCCQueueType;
}

export interface Queues {
HPCCQueue?: HPCCQueue[];
}

export interface Roxies {
Item?: string[];
}

export interface TargetQueryResponse {
Exceptions?: Exceptions;
Queues?: Queues;
Roxies?: Roxies;
}

export interface WebLinksQueryRequest {

}

export interface NamedValue {
Name?: string;
Value?: string;
}

export interface Annotations {
NamedValue?: NamedValue[];
}

export interface ExternalIPs {
Item?: string[];
}

export interface ServicePorts {
Name?: string;
Protocol?: string;
Port?: unsignedInt;
}

export interface Ports {
ServicePorts?: ServicePorts[];
}

export interface Connection {
Type?: string;
ExternalIPs?: ExternalIPs;
ExternalIPStatus?: ExternalIPStatus;
Ports?: Ports;
}

export interface DiscoveredWebLink {
ServiceName?: string;
NameSpace?: string;
Annotations?: Annotations;
Connection?: Connection;
}

export interface DiscoveredWebLinks {
DiscoveredWebLink?: DiscoveredWebLink[];
}

export interface ConfiguredWebLink {
Name?: string;
Description?: string;
URL?: string;
ResourceType?: ResourceType;
}

export interface ConfiguredWebLinks {
ConfiguredWebLink?: ConfiguredWebLink[];
}

export interface WebLinksQueryResponse {
Exceptions?: Exceptions;
DiscoveredWebLinks?: DiscoveredWebLinks;
ConfiguredWebLinks?: ConfiguredWebLinks;
}

}

export class ResourcesServiceBase extends Service {

constructor(optsConnection: IOptions | IConnection) {
super(optsConnection, "WsResources", "1.04");
}

Ping(request: WsResources.WsResourcesPingRequest, abortSignal?: AbortSignal): Promise<WsResources.WsResourcesPingResponse> {
return this._connection.send("Ping", request, "json", false, abortSignal, "WsResourcesPingResponse");
}

ServiceQuery(request: WsResources.ServiceQueryRequest, abortSignal?: AbortSignal): Promise<WsResources.ServiceQueryResponse> {
return this._connection.send("ServiceQuery", request, "json", false, abortSignal, "ServiceQueryResponse");
}

TargetQuery(request: WsResources.TargetQueryRequest, abortSignal?: AbortSignal): Promise<WsResources.TargetQueryResponse> {
return this._connection.send("TargetQuery", request, "json", false, abortSignal, "TargetQueryResponse");
}

WebLinksQuery(request: WsResources.WebLinksQueryRequest, abortSignal?: AbortSignal): Promise<WsResources.WebLinksQueryResponse> {
return this._connection.send("WebLinksQuery", request, "json", false, abortSignal, "WebLinksQueryResponse");
}

}
Loading