diff --git a/connection-coordinator/schemas/common.yaml b/connection-coordinator/schemas/common.yaml index 3696190..4db20b2 100644 --- a/connection-coordinator/schemas/common.yaml +++ b/connection-coordinator/schemas/common.yaml @@ -37,4 +37,27 @@ Empty: description: |- A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. - type: object \ No newline at end of file + type: object + +ConnectionType: + description: |- + Enum that describes the type of a connection. + CONNECTION_TYPE_STANDARD - Standard connections are ordinary customer + connections. + CONNECTION_TYPE_TEST - Test connections are reserved for provider + development teams to support testing and canary workflows. Test + connections may be provisioned at bandwidths below the minimum supported + size (e.g. 50 Mbps). Bandwidth consumed by test connections must not + count against interconnect or environment capacity totals. Partners may + enforce a small quota on the number of active test connections. + CONNECTION_TYPE_MONITORING - Monitoring connections are reserved for + active monitoring sessions between providers. Monitoring connections may + be provisioned at a small bandwidth and must not tally against + interconnect or environment capacity totals. The quota is 1 per + interconnect (not per environment) to enable monitoring across all + underlying links. + enum: + - CONNECTION_TYPE_STANDARD + - CONNECTION_TYPE_TEST + - CONNECTION_TYPE_MONITORING + type: string \ No newline at end of file diff --git a/connection-coordinator/schemas/connection.yaml b/connection-coordinator/schemas/connection.yaml index 4ee5d23..4ac5450 100644 --- a/connection-coordinator/schemas/connection.yaml +++ b/connection-coordinator/schemas/connection.yaml @@ -66,7 +66,13 @@ Connection: oneOf: - $ref: "#/EncodedKey" - $ref: "#/SourceConnectionName" - + connectionType: + allOf: + - $ref: "common.yaml#/ConnectionType" + description: |- + Optional. The type of connection being created. Defaults to + CONNECTION_TYPE_STANDARD if not specified. + default: CONNECTION_TYPE_STANDARD type: object