You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by oc...@apache.org on 2023/01/27 20:33:07 UTC
[trafficcontrol-trafficops-types] 01/02: Add multiple_server_capabilities request/response types
This is an automated email from the ASF dual-hosted git repository.
ocket8888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol-trafficops-types.git
commit 4d0ab61463b4059e0865d7940f9e7e24bf93306c
Author: ocket8888 <oc...@apache.org>
AuthorDate: Wed Jan 25 08:46:14 2023 -0700
Add multiple_server_capabilities request/response types
---
src/server.capability.ts | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/src/server.capability.ts b/src/server.capability.ts
index be6fb11..4d634bc 100644
--- a/src/server.capability.ts
+++ b/src/server.capability.ts
@@ -126,3 +126,30 @@ export interface ResponseServerServerCapability {
* a Server Capability it ostensibly possesses.
*/
export type ServerServerCapability = RequestServerServerCapability | RequestServerServerCapabilityResponse | ResponseServerServerCapability;
+
+/**
+ * Represents a response to a request to simultaneously create multiple
+ * associations between servers and Server Capabilities they now possess.
+ */
+export interface ResponseMultipleServerCapabilities {
+ serverIds: Array<number>;
+ serverCapabilities: Array<string>;
+}
+
+/**
+ * Represents a request to simultaneously create multiple associations between
+ * servers and Server Capabilities they will then possess.
+ */
+export interface RequestMultipleServerCapabilities extends ResponseMultipleServerCapabilities{
+ /**
+ * The purpose of this property is unknown, and it may be removed before
+ * 4.1's release.
+ */
+ pageType: "server" | "sc";
+}
+
+/**
+ * Generically represents multiple simultaneously created server-and-Server
+ * Capability associations in the context of either a request or a response.
+ */
+export type MultipleServerCapabilities = RequestMultipleServerCapabilities | ResponseMultipleServerCapabilities;