diff --git a/connection-coordinator/schemas/common.yaml b/connection-coordinator/schemas/common.yaml index 014ae16..8870440 100644 --- a/connection-coordinator/schemas/common.yaml +++ b/connection-coordinator/schemas/common.yaml @@ -38,3 +38,30 @@ Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. 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 2 per + interconnect (not per environment), one created by each provider, to + enable monitoring across all underlying links from either side. A + monitoring connection may not have a customer resource or key associated + with it. The local provider may apply provider-specific routing behavior + to enable the agreed-upon monitoring for the remote provider; the exact + routing configuration is left to each provider. + enum: + - CONNECTION_TYPE_STANDARD + - CONNECTION_TYPE_TEST + - CONNECTION_TYPE_MONITORING + type: string diff --git a/connection-coordinator/schemas/connection.yaml b/connection-coordinator/schemas/connection.yaml index 8681898..c5fb755 100644 --- a/connection-coordinator/schemas/connection.yaml +++ b/connection-coordinator/schemas/connection.yaml @@ -67,6 +67,13 @@ Connection: - $ref: "#/EncodedKey" - $ref: "#/SourceConnectionName" type: object + 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 FeatureGuidance: