diff --git a/api/services/beci/setup/schemas/BERegisteredSetupAccountGcpBillingConfig.yaml b/api/services/beci/setup/schemas/BERegisteredSetupAccountGcpBillingConfig.yaml new file mode 100644 index 00000000..e2c72a2a --- /dev/null +++ b/api/services/beci/setup/schemas/BERegisteredSetupAccountGcpBillingConfig.yaml @@ -0,0 +1,16 @@ +properties: + tableId: + type: string + description: ID of the BigQuery table which contains the billing data. + datasetId: + type: string + description: ID of the BigQuery dataset to which the billing data is exported. + projectId: + type: string + description: ID of the Google project to which the billing data is exported. +type: object +required: + - tableId + - datasetId + - projectId +title: BERegisteredSetupAccountGcpBillingConfig diff --git a/api/services/beci/setup/schemas/BERegisteredSetupAccountGcpConfig.yaml b/api/services/beci/setup/schemas/BERegisteredSetupAccountGcpConfig.yaml new file mode 100644 index 00000000..53cca79f --- /dev/null +++ b/api/services/beci/setup/schemas/BERegisteredSetupAccountGcpConfig.yaml @@ -0,0 +1,9 @@ +properties: + googleBillingConfiguration: + $ref: BERegisteredSetupAccountGcpBillingConfig.yaml + description: Configuration settings used to collect Google billing data. +type: object +required: + - googleBillingConfiguration +title: BERegisteredSetupAccountGcpConfig +description: Configuration settings used to collect Google billing data. Requires that the target Spot account is linked to a Google project to which the billing data is exported. diff --git a/api/services/beci/setup/schemas/BERegisteredSetupAccountUpdateRequest.yaml b/api/services/beci/setup/schemas/BERegisteredSetupAccountUpdateRequest.yaml index 37ef161e..9b039e0e 100644 --- a/api/services/beci/setup/schemas/BERegisteredSetupAccountUpdateRequest.yaml +++ b/api/services/beci/setup/schemas/BERegisteredSetupAccountUpdateRequest.yaml @@ -8,6 +8,7 @@ properties: - type: object - $ref: BERegisteredSetupAccountAwsConfig.yaml - $ref: BERegisteredSetupAccountAzureConfig.yaml + - $ref: BERegisteredSetupAccountGcpConfig.yaml description: Configuration for the Billing Engine (e.g. location of the billing data) nullable: true type: object