UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,134 lines 556 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3; Object.defineProperty(exports, "__esModule", { value: true }); exports.BigqueryJob = exports.BigqueryJobTimeoutsOutputReference = exports.BigqueryJobQueryOutputReference = exports.BigqueryJobQueryUserDefinedFunctionResourcesList = exports.BigqueryJobQueryUserDefinedFunctionResourcesOutputReference = exports.BigqueryJobQueryScriptOptionsOutputReference = exports.BigqueryJobQueryDestinationTableOutputReference = exports.BigqueryJobQueryDestinationEncryptionConfigurationOutputReference = exports.BigqueryJobQueryDefaultDatasetOutputReference = exports.BigqueryJobLoadOutputReference = exports.BigqueryJobLoadTimePartitioningOutputReference = exports.BigqueryJobLoadParquetOptionsOutputReference = exports.BigqueryJobLoadDestinationTableOutputReference = exports.BigqueryJobLoadDestinationEncryptionConfigurationOutputReference = exports.BigqueryJobExtractOutputReference = exports.BigqueryJobExtractSourceTableOutputReference = exports.BigqueryJobExtractSourceModelOutputReference = exports.BigqueryJobCopyOutputReference = exports.BigqueryJobCopySourceTablesList = exports.BigqueryJobCopySourceTablesOutputReference = exports.BigqueryJobCopyDestinationTableOutputReference = exports.BigqueryJobCopyDestinationEncryptionConfigurationOutputReference = exports.BigqueryJobStatusList = exports.BigqueryJobStatusOutputReference = exports.BigqueryJobStatusErrorsList = exports.BigqueryJobStatusErrorsOutputReference = exports.BigqueryJobStatusErrorResultList = exports.BigqueryJobStatusErrorResultOutputReference = void 0; exports.bigqueryJobStatusErrorResultToTerraform = bigqueryJobStatusErrorResultToTerraform; exports.bigqueryJobStatusErrorResultToHclTerraform = bigqueryJobStatusErrorResultToHclTerraform; exports.bigqueryJobStatusErrorsToTerraform = bigqueryJobStatusErrorsToTerraform; exports.bigqueryJobStatusErrorsToHclTerraform = bigqueryJobStatusErrorsToHclTerraform; exports.bigqueryJobStatusToTerraform = bigqueryJobStatusToTerraform; exports.bigqueryJobStatusToHclTerraform = bigqueryJobStatusToHclTerraform; exports.bigqueryJobCopyDestinationEncryptionConfigurationToTerraform = bigqueryJobCopyDestinationEncryptionConfigurationToTerraform; exports.bigqueryJobCopyDestinationEncryptionConfigurationToHclTerraform = bigqueryJobCopyDestinationEncryptionConfigurationToHclTerraform; exports.bigqueryJobCopyDestinationTableToTerraform = bigqueryJobCopyDestinationTableToTerraform; exports.bigqueryJobCopyDestinationTableToHclTerraform = bigqueryJobCopyDestinationTableToHclTerraform; exports.bigqueryJobCopySourceTablesToTerraform = bigqueryJobCopySourceTablesToTerraform; exports.bigqueryJobCopySourceTablesToHclTerraform = bigqueryJobCopySourceTablesToHclTerraform; exports.bigqueryJobCopyToTerraform = bigqueryJobCopyToTerraform; exports.bigqueryJobCopyToHclTerraform = bigqueryJobCopyToHclTerraform; exports.bigqueryJobExtractSourceModelToTerraform = bigqueryJobExtractSourceModelToTerraform; exports.bigqueryJobExtractSourceModelToHclTerraform = bigqueryJobExtractSourceModelToHclTerraform; exports.bigqueryJobExtractSourceTableToTerraform = bigqueryJobExtractSourceTableToTerraform; exports.bigqueryJobExtractSourceTableToHclTerraform = bigqueryJobExtractSourceTableToHclTerraform; exports.bigqueryJobExtractToTerraform = bigqueryJobExtractToTerraform; exports.bigqueryJobExtractToHclTerraform = bigqueryJobExtractToHclTerraform; exports.bigqueryJobLoadDestinationEncryptionConfigurationToTerraform = bigqueryJobLoadDestinationEncryptionConfigurationToTerraform; exports.bigqueryJobLoadDestinationEncryptionConfigurationToHclTerraform = bigqueryJobLoadDestinationEncryptionConfigurationToHclTerraform; exports.bigqueryJobLoadDestinationTableToTerraform = bigqueryJobLoadDestinationTableToTerraform; exports.bigqueryJobLoadDestinationTableToHclTerraform = bigqueryJobLoadDestinationTableToHclTerraform; exports.bigqueryJobLoadParquetOptionsToTerraform = bigqueryJobLoadParquetOptionsToTerraform; exports.bigqueryJobLoadParquetOptionsToHclTerraform = bigqueryJobLoadParquetOptionsToHclTerraform; exports.bigqueryJobLoadTimePartitioningToTerraform = bigqueryJobLoadTimePartitioningToTerraform; exports.bigqueryJobLoadTimePartitioningToHclTerraform = bigqueryJobLoadTimePartitioningToHclTerraform; exports.bigqueryJobLoadToTerraform = bigqueryJobLoadToTerraform; exports.bigqueryJobLoadToHclTerraform = bigqueryJobLoadToHclTerraform; exports.bigqueryJobQueryDefaultDatasetToTerraform = bigqueryJobQueryDefaultDatasetToTerraform; exports.bigqueryJobQueryDefaultDatasetToHclTerraform = bigqueryJobQueryDefaultDatasetToHclTerraform; exports.bigqueryJobQueryDestinationEncryptionConfigurationToTerraform = bigqueryJobQueryDestinationEncryptionConfigurationToTerraform; exports.bigqueryJobQueryDestinationEncryptionConfigurationToHclTerraform = bigqueryJobQueryDestinationEncryptionConfigurationToHclTerraform; exports.bigqueryJobQueryDestinationTableToTerraform = bigqueryJobQueryDestinationTableToTerraform; exports.bigqueryJobQueryDestinationTableToHclTerraform = bigqueryJobQueryDestinationTableToHclTerraform; exports.bigqueryJobQueryScriptOptionsToTerraform = bigqueryJobQueryScriptOptionsToTerraform; exports.bigqueryJobQueryScriptOptionsToHclTerraform = bigqueryJobQueryScriptOptionsToHclTerraform; exports.bigqueryJobQueryUserDefinedFunctionResourcesToTerraform = bigqueryJobQueryUserDefinedFunctionResourcesToTerraform; exports.bigqueryJobQueryUserDefinedFunctionResourcesToHclTerraform = bigqueryJobQueryUserDefinedFunctionResourcesToHclTerraform; exports.bigqueryJobQueryToTerraform = bigqueryJobQueryToTerraform; exports.bigqueryJobQueryToHclTerraform = bigqueryJobQueryToHclTerraform; exports.bigqueryJobTimeoutsToTerraform = bigqueryJobTimeoutsToTerraform; exports.bigqueryJobTimeoutsToHclTerraform = bigqueryJobTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function bigqueryJobStatusErrorResultToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function bigqueryJobStatusErrorResultToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class BigqueryJobStatusErrorResultOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // location - computed: true, optional: false, required: false get location() { return this.getStringAttribute('location'); } // message - computed: true, optional: false, required: false get message() { return this.getStringAttribute('message'); } // reason - computed: true, optional: false, required: false get reason() { return this.getStringAttribute('reason'); } } exports.BigqueryJobStatusErrorResultOutputReference = BigqueryJobStatusErrorResultOutputReference; _a = JSII_RTTI_SYMBOL_1; BigqueryJobStatusErrorResultOutputReference[_a] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobStatusErrorResultOutputReference", version: "14.35.0" }; class BigqueryJobStatusErrorResultList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new BigqueryJobStatusErrorResultOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BigqueryJobStatusErrorResultList = BigqueryJobStatusErrorResultList; _b = JSII_RTTI_SYMBOL_1; BigqueryJobStatusErrorResultList[_b] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobStatusErrorResultList", version: "14.35.0" }; function bigqueryJobStatusErrorsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function bigqueryJobStatusErrorsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class BigqueryJobStatusErrorsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // location - computed: true, optional: false, required: false get location() { return this.getStringAttribute('location'); } // message - computed: true, optional: false, required: false get message() { return this.getStringAttribute('message'); } // reason - computed: true, optional: false, required: false get reason() { return this.getStringAttribute('reason'); } } exports.BigqueryJobStatusErrorsOutputReference = BigqueryJobStatusErrorsOutputReference; _c = JSII_RTTI_SYMBOL_1; BigqueryJobStatusErrorsOutputReference[_c] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobStatusErrorsOutputReference", version: "14.35.0" }; class BigqueryJobStatusErrorsList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new BigqueryJobStatusErrorsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BigqueryJobStatusErrorsList = BigqueryJobStatusErrorsList; _d = JSII_RTTI_SYMBOL_1; BigqueryJobStatusErrorsList[_d] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobStatusErrorsList", version: "14.35.0" }; function bigqueryJobStatusToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } function bigqueryJobStatusToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } class BigqueryJobStatusOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // error_result - computed: true, optional: false, required: false this._errorResult = new BigqueryJobStatusErrorResultList(this, "error_result", false); // errors - computed: true, optional: false, required: false this._errors = new BigqueryJobStatusErrorsList(this, "errors", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } get errorResult() { return this._errorResult; } get errors() { return this._errors; } // state - computed: true, optional: false, required: false get state() { return this.getStringAttribute('state'); } } exports.BigqueryJobStatusOutputReference = BigqueryJobStatusOutputReference; _e = JSII_RTTI_SYMBOL_1; BigqueryJobStatusOutputReference[_e] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobStatusOutputReference", version: "14.35.0" }; class BigqueryJobStatusList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new BigqueryJobStatusOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BigqueryJobStatusList = BigqueryJobStatusList; _f = JSII_RTTI_SYMBOL_1; BigqueryJobStatusList[_f] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobStatusList", version: "14.35.0" }; function bigqueryJobCopyDestinationEncryptionConfigurationToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { kms_key_name: cdktf.stringToTerraform(struct.kmsKeyName), }; } function bigqueryJobCopyDestinationEncryptionConfigurationToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { kms_key_name: { value: cdktf.stringToHclTerraform(struct.kmsKeyName), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryJobCopyDestinationEncryptionConfigurationOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._kmsKeyName !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyName = this._kmsKeyName; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._kmsKeyName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kmsKeyName = value.kmsKeyName; } } get kmsKeyName() { return this.getStringAttribute('kms_key_name'); } set kmsKeyName(value) { this._kmsKeyName = value; } // Temporarily expose input value. Use with caution. get kmsKeyNameInput() { return this._kmsKeyName; } // kms_key_version - computed: true, optional: false, required: false get kmsKeyVersion() { return this.getStringAttribute('kms_key_version'); } } exports.BigqueryJobCopyDestinationEncryptionConfigurationOutputReference = BigqueryJobCopyDestinationEncryptionConfigurationOutputReference; _g = JSII_RTTI_SYMBOL_1; BigqueryJobCopyDestinationEncryptionConfigurationOutputReference[_g] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobCopyDestinationEncryptionConfigurationOutputReference", version: "14.35.0" }; function bigqueryJobCopyDestinationTableToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { dataset_id: cdktf.stringToTerraform(struct.datasetId), project_id: cdktf.stringToTerraform(struct.projectId), table_id: cdktf.stringToTerraform(struct.tableId), }; } function bigqueryJobCopyDestinationTableToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { dataset_id: { value: cdktf.stringToHclTerraform(struct.datasetId), isBlock: false, type: "simple", storageClassType: "string", }, project_id: { value: cdktf.stringToHclTerraform(struct.projectId), isBlock: false, type: "simple", storageClassType: "string", }, table_id: { value: cdktf.stringToHclTerraform(struct.tableId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryJobCopyDestinationTableOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._datasetId !== undefined) { hasAnyValues = true; internalValueResult.datasetId = this._datasetId; } if (this._projectId !== undefined) { hasAnyValues = true; internalValueResult.projectId = this._projectId; } if (this._tableId !== undefined) { hasAnyValues = true; internalValueResult.tableId = this._tableId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._datasetId = undefined; this._projectId = undefined; this._tableId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._datasetId = value.datasetId; this._projectId = value.projectId; this._tableId = value.tableId; } } get datasetId() { return this.getStringAttribute('dataset_id'); } set datasetId(value) { this._datasetId = value; } resetDatasetId() { this._datasetId = undefined; } // Temporarily expose input value. Use with caution. get datasetIdInput() { return this._datasetId; } get projectId() { return this.getStringAttribute('project_id'); } set projectId(value) { this._projectId = value; } resetProjectId() { this._projectId = undefined; } // Temporarily expose input value. Use with caution. get projectIdInput() { return this._projectId; } get tableId() { return this.getStringAttribute('table_id'); } set tableId(value) { this._tableId = value; } // Temporarily expose input value. Use with caution. get tableIdInput() { return this._tableId; } } exports.BigqueryJobCopyDestinationTableOutputReference = BigqueryJobCopyDestinationTableOutputReference; _h = JSII_RTTI_SYMBOL_1; BigqueryJobCopyDestinationTableOutputReference[_h] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobCopyDestinationTableOutputReference", version: "14.35.0" }; function bigqueryJobCopySourceTablesToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { dataset_id: cdktf.stringToTerraform(struct.datasetId), project_id: cdktf.stringToTerraform(struct.projectId), table_id: cdktf.stringToTerraform(struct.tableId), }; } function bigqueryJobCopySourceTablesToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { dataset_id: { value: cdktf.stringToHclTerraform(struct.datasetId), isBlock: false, type: "simple", storageClassType: "string", }, project_id: { value: cdktf.stringToHclTerraform(struct.projectId), isBlock: false, type: "simple", storageClassType: "string", }, table_id: { value: cdktf.stringToHclTerraform(struct.tableId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryJobCopySourceTablesOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._datasetId !== undefined) { hasAnyValues = true; internalValueResult.datasetId = this._datasetId; } if (this._projectId !== undefined) { hasAnyValues = true; internalValueResult.projectId = this._projectId; } if (this._tableId !== undefined) { hasAnyValues = true; internalValueResult.tableId = this._tableId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._datasetId = undefined; this._projectId = undefined; this._tableId = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._datasetId = value.datasetId; this._projectId = value.projectId; this._tableId = value.tableId; } } get datasetId() { return this.getStringAttribute('dataset_id'); } set datasetId(value) { this._datasetId = value; } resetDatasetId() { this._datasetId = undefined; } // Temporarily expose input value. Use with caution. get datasetIdInput() { return this._datasetId; } get projectId() { return this.getStringAttribute('project_id'); } set projectId(value) { this._projectId = value; } resetProjectId() { this._projectId = undefined; } // Temporarily expose input value. Use with caution. get projectIdInput() { return this._projectId; } get tableId() { return this.getStringAttribute('table_id'); } set tableId(value) { this._tableId = value; } // Temporarily expose input value. Use with caution. get tableIdInput() { return this._tableId; } } exports.BigqueryJobCopySourceTablesOutputReference = BigqueryJobCopySourceTablesOutputReference; _j = JSII_RTTI_SYMBOL_1; BigqueryJobCopySourceTablesOutputReference[_j] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobCopySourceTablesOutputReference", version: "14.35.0" }; class BigqueryJobCopySourceTablesList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new BigqueryJobCopySourceTablesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BigqueryJobCopySourceTablesList = BigqueryJobCopySourceTablesList; _k = JSII_RTTI_SYMBOL_1; BigqueryJobCopySourceTablesList[_k] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobCopySourceTablesList", version: "14.35.0" }; function bigqueryJobCopyToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { create_disposition: cdktf.stringToTerraform(struct.createDisposition), write_disposition: cdktf.stringToTerraform(struct.writeDisposition), destination_encryption_configuration: bigqueryJobCopyDestinationEncryptionConfigurationToTerraform(struct.destinationEncryptionConfiguration), destination_table: bigqueryJobCopyDestinationTableToTerraform(struct.destinationTable), source_tables: cdktf.listMapper(bigqueryJobCopySourceTablesToTerraform, true)(struct.sourceTables), }; } function bigqueryJobCopyToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { create_disposition: { value: cdktf.stringToHclTerraform(struct.createDisposition), isBlock: false, type: "simple", storageClassType: "string", }, write_disposition: { value: cdktf.stringToHclTerraform(struct.writeDisposition), isBlock: false, type: "simple", storageClassType: "string", }, destination_encryption_configuration: { value: bigqueryJobCopyDestinationEncryptionConfigurationToHclTerraform(struct.destinationEncryptionConfiguration), isBlock: true, type: "list", storageClassType: "BigqueryJobCopyDestinationEncryptionConfigurationList", }, destination_table: { value: bigqueryJobCopyDestinationTableToHclTerraform(struct.destinationTable), isBlock: true, type: "list", storageClassType: "BigqueryJobCopyDestinationTableList", }, source_tables: { value: cdktf.listMapperHcl(bigqueryJobCopySourceTablesToHclTerraform, true)(struct.sourceTables), isBlock: true, type: "list", storageClassType: "BigqueryJobCopySourceTablesList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryJobCopyOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // destination_encryption_configuration - computed: false, optional: true, required: false this._destinationEncryptionConfiguration = new BigqueryJobCopyDestinationEncryptionConfigurationOutputReference(this, "destination_encryption_configuration"); // destination_table - computed: false, optional: true, required: false this._destinationTable = new BigqueryJobCopyDestinationTableOutputReference(this, "destination_table"); // source_tables - computed: false, optional: false, required: true this._sourceTables = new BigqueryJobCopySourceTablesList(this, "source_tables", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._createDisposition !== undefined) { hasAnyValues = true; internalValueResult.createDisposition = this._createDisposition; } if (this._writeDisposition !== undefined) { hasAnyValues = true; internalValueResult.writeDisposition = this._writeDisposition; } if (this._destinationEncryptionConfiguration?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.destinationEncryptionConfiguration = this._destinationEncryptionConfiguration?.internalValue; } if (this._destinationTable?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.destinationTable = this._destinationTable?.internalValue; } if (this._sourceTables?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.sourceTables = this._sourceTables?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._createDisposition = undefined; this._writeDisposition = undefined; this._destinationEncryptionConfiguration.internalValue = undefined; this._destinationTable.internalValue = undefined; this._sourceTables.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._createDisposition = value.createDisposition; this._writeDisposition = value.writeDisposition; this._destinationEncryptionConfiguration.internalValue = value.destinationEncryptionConfiguration; this._destinationTable.internalValue = value.destinationTable; this._sourceTables.internalValue = value.sourceTables; } } get createDisposition() { return this.getStringAttribute('create_disposition'); } set createDisposition(value) { this._createDisposition = value; } resetCreateDisposition() { this._createDisposition = undefined; } // Temporarily expose input value. Use with caution. get createDispositionInput() { return this._createDisposition; } get writeDisposition() { return this.getStringAttribute('write_disposition'); } set writeDisposition(value) { this._writeDisposition = value; } resetWriteDisposition() { this._writeDisposition = undefined; } // Temporarily expose input value. Use with caution. get writeDispositionInput() { return this._writeDisposition; } get destinationEncryptionConfiguration() { return this._destinationEncryptionConfiguration; } putDestinationEncryptionConfiguration(value) { this._destinationEncryptionConfiguration.internalValue = value; } resetDestinationEncryptionConfiguration() { this._destinationEncryptionConfiguration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get destinationEncryptionConfigurationInput() { return this._destinationEncryptionConfiguration.internalValue; } get destinationTable() { return this._destinationTable; } putDestinationTable(value) { this._destinationTable.internalValue = value; } resetDestinationTable() { this._destinationTable.internalValue = undefined; } // Temporarily expose input value. Use with caution. get destinationTableInput() { return this._destinationTable.internalValue; } get sourceTables() { return this._sourceTables; } putSourceTables(value) { this._sourceTables.internalValue = value; } // Temporarily expose input value. Use with caution. get sourceTablesInput() { return this._sourceTables.internalValue; } } exports.BigqueryJobCopyOutputReference = BigqueryJobCopyOutputReference; _l = JSII_RTTI_SYMBOL_1; BigqueryJobCopyOutputReference[_l] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobCopyOutputReference", version: "14.35.0" }; function bigqueryJobExtractSourceModelToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { dataset_id: cdktf.stringToTerraform(struct.datasetId), model_id: cdktf.stringToTerraform(struct.modelId), project_id: cdktf.stringToTerraform(struct.projectId), }; } function bigqueryJobExtractSourceModelToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { dataset_id: { value: cdktf.stringToHclTerraform(struct.datasetId), isBlock: false, type: "simple", storageClassType: "string", }, model_id: { value: cdktf.stringToHclTerraform(struct.modelId), isBlock: false, type: "simple", storageClassType: "string", }, project_id: { value: cdktf.stringToHclTerraform(struct.projectId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryJobExtractSourceModelOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._datasetId !== undefined) { hasAnyValues = true; internalValueResult.datasetId = this._datasetId; } if (this._modelId !== undefined) { hasAnyValues = true; internalValueResult.modelId = this._modelId; } if (this._projectId !== undefined) { hasAnyValues = true; internalValueResult.projectId = this._projectId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._datasetId = undefined; this._modelId = undefined; this._projectId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._datasetId = value.datasetId; this._modelId = value.modelId; this._projectId = value.projectId; } } get datasetId() { return this.getStringAttribute('dataset_id'); } set datasetId(value) { this._datasetId = value; } // Temporarily expose input value. Use with caution. get datasetIdInput() { return this._datasetId; } get modelId() { return this.getStringAttribute('model_id'); } set modelId(value) { this._modelId = value; } // Temporarily expose input value. Use with caution. get modelIdInput() { return this._modelId; } get projectId() { return this.getStringAttribute('project_id'); } set projectId(value) { this._projectId = value; } // Temporarily expose input value. Use with caution. get projectIdInput() { return this._projectId; } } exports.BigqueryJobExtractSourceModelOutputReference = BigqueryJobExtractSourceModelOutputReference; _m = JSII_RTTI_SYMBOL_1; BigqueryJobExtractSourceModelOutputReference[_m] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobExtractSourceModelOutputReference", version: "14.35.0" }; function bigqueryJobExtractSourceTableToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { dataset_id: cdktf.stringToTerraform(struct.datasetId), project_id: cdktf.stringToTerraform(struct.projectId), table_id: cdktf.stringToTerraform(struct.tableId), }; } function bigqueryJobExtractSourceTableToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { dataset_id: { value: cdktf.stringToHclTerraform(struct.datasetId), isBlock: false, type: "simple", storageClassType: "string", }, project_id: { value: cdktf.stringToHclTerraform(struct.projectId), isBlock: false, type: "simple", storageClassType: "string", }, table_id: { value: cdktf.stringToHclTerraform(struct.tableId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryJobExtractSourceTableOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._datasetId !== undefined) { hasAnyValues = true; internalValueResult.datasetId = this._datasetId; } if (this._projectId !== undefined) { hasAnyValues = true; internalValueResult.projectId = this._projectId; } if (this._tableId !== undefined) { hasAnyValues = true; internalValueResult.tableId = this._tableId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._datasetId = undefined; this._projectId = undefined; this._tableId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._datasetId = value.datasetId; this._projectId = value.projectId; this._tableId = value.tableId; } } get datasetId() { return this.getStringAttribute('dataset_id'); } set datasetId(value) { this._datasetId = value; } resetDatasetId() { this._datasetId = undefined; } // Temporarily expose input value. Use with caution. get datasetIdInput() { return this._datasetId; } get projectId() { return this.getStringAttribute('project_id'); } set projectId(value) { this._projectId = value; } resetProjectId() { this._projectId = undefined; } // Temporarily expose input value. Use with caution. get projectIdInput() { return this._projectId; } get tableId() { return this.getStringAttribute('table_id'); } set tableId(value) { this._tableId = value; } // Temporarily expose input value. Use with caution. get tableIdInput() { return this._tableId; } } exports.BigqueryJobExtractSourceTableOutputReference = BigqueryJobExtractSourceTableOutputReference; _o = JSII_RTTI_SYMBOL_1; BigqueryJobExtractSourceTableOutputReference[_o] = { fqn: "@cdktf/provider-google.bigqueryJob.BigqueryJobExtractSourceTableOutputReference", version: "14.35.0" }; function bigqueryJobExtractToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { compression: cdktf.stringToTerraform(struct.compression), destination_format: cdktf.stringToTerraform(struct.destinationFormat), destination_uris: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.destinationUris), field_delimiter: cdktf.stringToTerraform(struct.fieldDelimiter), print_header: cdktf.booleanToTerraform(struct.printHeader), use_avro_logical_types: cdktf.booleanToTerraform(struct.useAvroLogicalTypes), source_model: bigqueryJobExtractSourceModelToTerraform(struct.sourceModel), source_table: bigqueryJobExtractSourceTableToTerraform(struct.sourceTable), }; } function bigqueryJobExtractToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { compression: { value: cdktf.stringToHclTerraform(struct.compression), isBlock: false, type: "simple", storageClassType: "string", }, destination_format: { value: cdktf.stringToHclTerraform(struct.destinationFormat), isBlock: false, type: "simple", storageClassType: "string", }, destination_uris: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.destinationUris), isBlock: false, type: "list", storageClassType: "stringList", }, field_delimiter: { value: cdktf.stringToHclTerraform(struct.fieldDelimiter), isBlock: false, type: "simple", storageClassType: "string", }, print_header: { value: cdktf.booleanToHclTerraform(struct.printHeader), isBlock: false, type: "simple", storageClassType: "boolean", }, use_avro_logical_types: { value: cdktf.booleanToHclTerraform(struct.useAvroLogicalTypes), isBlock: false, type: "simple", storageClassType: "boolean", }, source_model: { value: bigqueryJobExtract