UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,266 lines 267 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; Object.defineProperty(exports, "__esModule", { value: true }); exports.BigqueryDataset = exports.BigqueryDatasetTimeoutsOutputReference = exports.BigqueryDatasetExternalDatasetReferenceOutputReference = exports.BigqueryDatasetExternalCatalogDatasetOptionsOutputReference = exports.BigqueryDatasetDefaultEncryptionConfigurationOutputReference = exports.BigqueryDatasetAccessList = exports.BigqueryDatasetAccessOutputReference = exports.BigqueryDatasetAccessViewOutputReference = exports.BigqueryDatasetAccessRoutineOutputReference = exports.BigqueryDatasetAccessDatasetOutputReference = exports.BigqueryDatasetAccessDatasetDatasetOutputReference = exports.BigqueryDatasetAccessConditionOutputReference = void 0; exports.bigqueryDatasetAccessConditionToTerraform = bigqueryDatasetAccessConditionToTerraform; exports.bigqueryDatasetAccessConditionToHclTerraform = bigqueryDatasetAccessConditionToHclTerraform; exports.bigqueryDatasetAccessDatasetDatasetToTerraform = bigqueryDatasetAccessDatasetDatasetToTerraform; exports.bigqueryDatasetAccessDatasetDatasetToHclTerraform = bigqueryDatasetAccessDatasetDatasetToHclTerraform; exports.bigqueryDatasetAccessDatasetToTerraform = bigqueryDatasetAccessDatasetToTerraform; exports.bigqueryDatasetAccessDatasetToHclTerraform = bigqueryDatasetAccessDatasetToHclTerraform; exports.bigqueryDatasetAccessRoutineToTerraform = bigqueryDatasetAccessRoutineToTerraform; exports.bigqueryDatasetAccessRoutineToHclTerraform = bigqueryDatasetAccessRoutineToHclTerraform; exports.bigqueryDatasetAccessViewToTerraform = bigqueryDatasetAccessViewToTerraform; exports.bigqueryDatasetAccessViewToHclTerraform = bigqueryDatasetAccessViewToHclTerraform; exports.bigqueryDatasetAccessToTerraform = bigqueryDatasetAccessToTerraform; exports.bigqueryDatasetAccessToHclTerraform = bigqueryDatasetAccessToHclTerraform; exports.bigqueryDatasetDefaultEncryptionConfigurationToTerraform = bigqueryDatasetDefaultEncryptionConfigurationToTerraform; exports.bigqueryDatasetDefaultEncryptionConfigurationToHclTerraform = bigqueryDatasetDefaultEncryptionConfigurationToHclTerraform; exports.bigqueryDatasetExternalCatalogDatasetOptionsToTerraform = bigqueryDatasetExternalCatalogDatasetOptionsToTerraform; exports.bigqueryDatasetExternalCatalogDatasetOptionsToHclTerraform = bigqueryDatasetExternalCatalogDatasetOptionsToHclTerraform; exports.bigqueryDatasetExternalDatasetReferenceToTerraform = bigqueryDatasetExternalDatasetReferenceToTerraform; exports.bigqueryDatasetExternalDatasetReferenceToHclTerraform = bigqueryDatasetExternalDatasetReferenceToHclTerraform; exports.bigqueryDatasetTimeoutsToTerraform = bigqueryDatasetTimeoutsToTerraform; exports.bigqueryDatasetTimeoutsToHclTerraform = bigqueryDatasetTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function bigqueryDatasetAccessConditionToTerraform(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 { description: cdktf.stringToTerraform(struct.description), expression: cdktf.stringToTerraform(struct.expression), location: cdktf.stringToTerraform(struct.location), title: cdktf.stringToTerraform(struct.title), }; } function bigqueryDatasetAccessConditionToHclTerraform(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 = { description: { value: cdktf.stringToHclTerraform(struct.description), isBlock: false, type: "simple", storageClassType: "string", }, expression: { value: cdktf.stringToHclTerraform(struct.expression), isBlock: false, type: "simple", storageClassType: "string", }, location: { value: cdktf.stringToHclTerraform(struct.location), isBlock: false, type: "simple", storageClassType: "string", }, title: { value: cdktf.stringToHclTerraform(struct.title), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryDatasetAccessConditionOutputReference 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._description !== undefined) { hasAnyValues = true; internalValueResult.description = this._description; } if (this._expression !== undefined) { hasAnyValues = true; internalValueResult.expression = this._expression; } if (this._location !== undefined) { hasAnyValues = true; internalValueResult.location = this._location; } if (this._title !== undefined) { hasAnyValues = true; internalValueResult.title = this._title; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._description = undefined; this._expression = undefined; this._location = undefined; this._title = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._description = value.description; this._expression = value.expression; this._location = value.location; this._title = value.title; } } get description() { return this.getStringAttribute('description'); } set description(value) { this._description = value; } resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. get descriptionInput() { return this._description; } get expression() { return this.getStringAttribute('expression'); } set expression(value) { this._expression = value; } // Temporarily expose input value. Use with caution. get expressionInput() { return this._expression; } get location() { return this.getStringAttribute('location'); } set location(value) { this._location = value; } resetLocation() { this._location = undefined; } // Temporarily expose input value. Use with caution. get locationInput() { return this._location; } get title() { return this.getStringAttribute('title'); } set title(value) { this._title = value; } resetTitle() { this._title = undefined; } // Temporarily expose input value. Use with caution. get titleInput() { return this._title; } } exports.BigqueryDatasetAccessConditionOutputReference = BigqueryDatasetAccessConditionOutputReference; _a = JSII_RTTI_SYMBOL_1; BigqueryDatasetAccessConditionOutputReference[_a] = { fqn: "@cdktf/provider-google.bigqueryDataset.BigqueryDatasetAccessConditionOutputReference", version: "14.35.1" }; function bigqueryDatasetAccessDatasetDatasetToTerraform(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), }; } function bigqueryDatasetAccessDatasetDatasetToHclTerraform(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", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryDatasetAccessDatasetDatasetOutputReference 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; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._datasetId = undefined; this._projectId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._datasetId = value.datasetId; 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 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.BigqueryDatasetAccessDatasetDatasetOutputReference = BigqueryDatasetAccessDatasetDatasetOutputReference; _b = JSII_RTTI_SYMBOL_1; BigqueryDatasetAccessDatasetDatasetOutputReference[_b] = { fqn: "@cdktf/provider-google.bigqueryDataset.BigqueryDatasetAccessDatasetDatasetOutputReference", version: "14.35.1" }; function bigqueryDatasetAccessDatasetToTerraform(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 { target_types: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.targetTypes), dataset: bigqueryDatasetAccessDatasetDatasetToTerraform(struct.dataset), }; } function bigqueryDatasetAccessDatasetToHclTerraform(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 = { target_types: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.targetTypes), isBlock: false, type: "list", storageClassType: "stringList", }, dataset: { value: bigqueryDatasetAccessDatasetDatasetToHclTerraform(struct.dataset), isBlock: true, type: "list", storageClassType: "BigqueryDatasetAccessDatasetDatasetList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryDatasetAccessDatasetOutputReference 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; // dataset - computed: false, optional: false, required: true this._dataset = new BigqueryDatasetAccessDatasetDatasetOutputReference(this, "dataset"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._targetTypes !== undefined) { hasAnyValues = true; internalValueResult.targetTypes = this._targetTypes; } if (this._dataset?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.dataset = this._dataset?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._targetTypes = undefined; this._dataset.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._targetTypes = value.targetTypes; this._dataset.internalValue = value.dataset; } } get targetTypes() { return this.getListAttribute('target_types'); } set targetTypes(value) { this._targetTypes = value; } // Temporarily expose input value. Use with caution. get targetTypesInput() { return this._targetTypes; } get dataset() { return this._dataset; } putDataset(value) { this._dataset.internalValue = value; } // Temporarily expose input value. Use with caution. get datasetInput() { return this._dataset.internalValue; } } exports.BigqueryDatasetAccessDatasetOutputReference = BigqueryDatasetAccessDatasetOutputReference; _c = JSII_RTTI_SYMBOL_1; BigqueryDatasetAccessDatasetOutputReference[_c] = { fqn: "@cdktf/provider-google.bigqueryDataset.BigqueryDatasetAccessDatasetOutputReference", version: "14.35.1" }; function bigqueryDatasetAccessRoutineToTerraform(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), routine_id: cdktf.stringToTerraform(struct.routineId), }; } function bigqueryDatasetAccessRoutineToHclTerraform(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", }, routine_id: { value: cdktf.stringToHclTerraform(struct.routineId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryDatasetAccessRoutineOutputReference 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._routineId !== undefined) { hasAnyValues = true; internalValueResult.routineId = this._routineId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._datasetId = undefined; this._projectId = undefined; this._routineId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._datasetId = value.datasetId; this._projectId = value.projectId; this._routineId = value.routineId; } } 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 projectId() { return this.getStringAttribute('project_id'); } set projectId(value) { this._projectId = value; } // Temporarily expose input value. Use with caution. get projectIdInput() { return this._projectId; } get routineId() { return this.getStringAttribute('routine_id'); } set routineId(value) { this._routineId = value; } // Temporarily expose input value. Use with caution. get routineIdInput() { return this._routineId; } } exports.BigqueryDatasetAccessRoutineOutputReference = BigqueryDatasetAccessRoutineOutputReference; _d = JSII_RTTI_SYMBOL_1; BigqueryDatasetAccessRoutineOutputReference[_d] = { fqn: "@cdktf/provider-google.bigqueryDataset.BigqueryDatasetAccessRoutineOutputReference", version: "14.35.1" }; function bigqueryDatasetAccessViewToTerraform(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 bigqueryDatasetAccessViewToHclTerraform(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 BigqueryDatasetAccessViewOutputReference 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; } // 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; } // 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.BigqueryDatasetAccessViewOutputReference = BigqueryDatasetAccessViewOutputReference; _e = JSII_RTTI_SYMBOL_1; BigqueryDatasetAccessViewOutputReference[_e] = { fqn: "@cdktf/provider-google.bigqueryDataset.BigqueryDatasetAccessViewOutputReference", version: "14.35.1" }; function bigqueryDatasetAccessToTerraform(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 { domain: cdktf.stringToTerraform(struct.domain), group_by_email: cdktf.stringToTerraform(struct.groupByEmail), iam_member: cdktf.stringToTerraform(struct.iamMember), role: cdktf.stringToTerraform(struct.role), special_group: cdktf.stringToTerraform(struct.specialGroup), user_by_email: cdktf.stringToTerraform(struct.userByEmail), condition: bigqueryDatasetAccessConditionToTerraform(struct.condition), dataset: bigqueryDatasetAccessDatasetToTerraform(struct.dataset), routine: bigqueryDatasetAccessRoutineToTerraform(struct.routine), view: bigqueryDatasetAccessViewToTerraform(struct.view), }; } function bigqueryDatasetAccessToHclTerraform(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 = { domain: { value: cdktf.stringToHclTerraform(struct.domain), isBlock: false, type: "simple", storageClassType: "string", }, group_by_email: { value: cdktf.stringToHclTerraform(struct.groupByEmail), isBlock: false, type: "simple", storageClassType: "string", }, iam_member: { value: cdktf.stringToHclTerraform(struct.iamMember), isBlock: false, type: "simple", storageClassType: "string", }, role: { value: cdktf.stringToHclTerraform(struct.role), isBlock: false, type: "simple", storageClassType: "string", }, special_group: { value: cdktf.stringToHclTerraform(struct.specialGroup), isBlock: false, type: "simple", storageClassType: "string", }, user_by_email: { value: cdktf.stringToHclTerraform(struct.userByEmail), isBlock: false, type: "simple", storageClassType: "string", }, condition: { value: bigqueryDatasetAccessConditionToHclTerraform(struct.condition), isBlock: true, type: "list", storageClassType: "BigqueryDatasetAccessConditionList", }, dataset: { value: bigqueryDatasetAccessDatasetToHclTerraform(struct.dataset), isBlock: true, type: "list", storageClassType: "BigqueryDatasetAccessDatasetList", }, routine: { value: bigqueryDatasetAccessRoutineToHclTerraform(struct.routine), isBlock: true, type: "list", storageClassType: "BigqueryDatasetAccessRoutineList", }, view: { value: bigqueryDatasetAccessViewToHclTerraform(struct.view), isBlock: true, type: "list", storageClassType: "BigqueryDatasetAccessViewList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryDatasetAccessOutputReference 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; // condition - computed: false, optional: true, required: false this._condition = new BigqueryDatasetAccessConditionOutputReference(this, "condition"); // dataset - computed: false, optional: true, required: false this._dataset = new BigqueryDatasetAccessDatasetOutputReference(this, "dataset"); // routine - computed: false, optional: true, required: false this._routine = new BigqueryDatasetAccessRoutineOutputReference(this, "routine"); // view - computed: false, optional: true, required: false this._view = new BigqueryDatasetAccessViewOutputReference(this, "view"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._domain !== undefined) { hasAnyValues = true; internalValueResult.domain = this._domain; } if (this._groupByEmail !== undefined) { hasAnyValues = true; internalValueResult.groupByEmail = this._groupByEmail; } if (this._iamMember !== undefined) { hasAnyValues = true; internalValueResult.iamMember = this._iamMember; } if (this._role !== undefined) { hasAnyValues = true; internalValueResult.role = this._role; } if (this._specialGroup !== undefined) { hasAnyValues = true; internalValueResult.specialGroup = this._specialGroup; } if (this._userByEmail !== undefined) { hasAnyValues = true; internalValueResult.userByEmail = this._userByEmail; } if (this._condition?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.condition = this._condition?.internalValue; } if (this._dataset?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.dataset = this._dataset?.internalValue; } if (this._routine?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.routine = this._routine?.internalValue; } if (this._view?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.view = this._view?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._domain = undefined; this._groupByEmail = undefined; this._iamMember = undefined; this._role = undefined; this._specialGroup = undefined; this._userByEmail = undefined; this._condition.internalValue = undefined; this._dataset.internalValue = undefined; this._routine.internalValue = undefined; this._view.internalValue = 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._domain = value.domain; this._groupByEmail = value.groupByEmail; this._iamMember = value.iamMember; this._role = value.role; this._specialGroup = value.specialGroup; this._userByEmail = value.userByEmail; this._condition.internalValue = value.condition; this._dataset.internalValue = value.dataset; this._routine.internalValue = value.routine; this._view.internalValue = value.view; } } get domain() { return this.getStringAttribute('domain'); } set domain(value) { this._domain = value; } resetDomain() { this._domain = undefined; } // Temporarily expose input value. Use with caution. get domainInput() { return this._domain; } get groupByEmail() { return this.getStringAttribute('group_by_email'); } set groupByEmail(value) { this._groupByEmail = value; } resetGroupByEmail() { this._groupByEmail = undefined; } // Temporarily expose input value. Use with caution. get groupByEmailInput() { return this._groupByEmail; } get iamMember() { return this.getStringAttribute('iam_member'); } set iamMember(value) { this._iamMember = value; } resetIamMember() { this._iamMember = undefined; } // Temporarily expose input value. Use with caution. get iamMemberInput() { return this._iamMember; } get role() { return this.getStringAttribute('role'); } set role(value) { this._role = value; } resetRole() { this._role = undefined; } // Temporarily expose input value. Use with caution. get roleInput() { return this._role; } get specialGroup() { return this.getStringAttribute('special_group'); } set specialGroup(value) { this._specialGroup = value; } resetSpecialGroup() { this._specialGroup = undefined; } // Temporarily expose input value. Use with caution. get specialGroupInput() { return this._specialGroup; } get userByEmail() { return this.getStringAttribute('user_by_email'); } set userByEmail(value) { this._userByEmail = value; } resetUserByEmail() { this._userByEmail = undefined; } // Temporarily expose input value. Use with caution. get userByEmailInput() { return this._userByEmail; } get condition() { return this._condition; } putCondition(value) { this._condition.internalValue = value; } resetCondition() { this._condition.internalValue = undefined; } // Temporarily expose input value. Use with caution. get conditionInput() { return this._condition.internalValue; } get dataset() { return this._dataset; } putDataset(value) { this._dataset.internalValue = value; } resetDataset() { this._dataset.internalValue = undefined; } // Temporarily expose input value. Use with caution. get datasetInput() { return this._dataset.internalValue; } get routine() { return this._routine; } putRoutine(value) { this._routine.internalValue = value; } resetRoutine() { this._routine.internalValue = undefined; } // Temporarily expose input value. Use with caution. get routineInput() { return this._routine.internalValue; } get view() { return this._view; } putView(value) { this._view.internalValue = value; } resetView() { this._view.internalValue = undefined; } // Temporarily expose input value. Use with caution. get viewInput() { return this._view.internalValue; } } exports.BigqueryDatasetAccessOutputReference = BigqueryDatasetAccessOutputReference; _f = JSII_RTTI_SYMBOL_1; BigqueryDatasetAccessOutputReference[_f] = { fqn: "@cdktf/provider-google.bigqueryDataset.BigqueryDatasetAccessOutputReference", version: "14.35.1" }; class BigqueryDatasetAccessList 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 BigqueryDatasetAccessOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.BigqueryDatasetAccessList = BigqueryDatasetAccessList; _g = JSII_RTTI_SYMBOL_1; BigqueryDatasetAccessList[_g] = { fqn: "@cdktf/provider-google.bigqueryDataset.BigqueryDatasetAccessList", version: "14.35.1" }; function bigqueryDatasetDefaultEncryptionConfigurationToTerraform(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 bigqueryDatasetDefaultEncryptionConfigurationToHclTerraform(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 BigqueryDatasetDefaultEncryptionConfigurationOutputReference 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; } } exports.BigqueryDatasetDefaultEncryptionConfigurationOutputReference = BigqueryDatasetDefaultEncryptionConfigurationOutputReference; _h = JSII_RTTI_SYMBOL_1; BigqueryDatasetDefaultEncryptionConfigurationOutputReference[_h] = { fqn: "@cdktf/provider-google.bigqueryDataset.BigqueryDatasetDefaultEncryptionConfigurationOutputReference", version: "14.35.1" }; function bigqueryDatasetExternalCatalogDatasetOptionsToTerraform(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 { default_storage_location_uri: cdktf.stringToTerraform(struct.defaultStorageLocationUri), parameters: cdktf.hashMapper(cdktf.stringToTerraform)(struct.parameters), }; } function bigqueryDatasetExternalCatalogDatasetOptionsToHclTerraform(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 = { default_storage_location_uri: { value: cdktf.stringToHclTerraform(struct.defaultStorageLocationUri), isBlock: false, type: "simple", storageClassType: "string", }, parameters: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.parameters), isBlock: false, type: "map", storageClassType: "stringMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryDatasetExternalCatalogDatasetOptionsOutputReference 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._defaultStorageLocationUri !== undefined) { hasAnyValues = true; internalValueResult.defaultStorageLocationUri = this._defaultStorageLocationUri; } if (this._parameters !== undefined) { hasAnyValues = true; internalValueResult.parameters = this._parameters; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._defaultStorageLocationUri = undefined; this._parameters = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._defaultStorageLocationUri = value.defaultStorageLocationUri; this._parameters = value.parameters; } } get defaultStorageLocationUri() { return this.getStringAttribute('default_storage_location_uri'); } set defaultStorageLocationUri(value) { this._defaultStorageLocationUri = value; } resetDefaultStorageLocationUri() { this._defaultStorageLocationUri = undefined; } // Temporarily expose input value. Use with caution. get defaultStorageLocationUriInput() { return this._defaultStorageLocationUri; } get parameters() { return this.getStringMapAttribute('parameters'); } set parameters(value) { this._parameters = value; } resetParameters() { this._parameters = undefined; } // Temporarily expose input value. Use with caution. get parametersInput() { return this._parameters; } } exports.BigqueryDatasetExternalCatalogDatasetOptionsOutputReference = BigqueryDatasetExternalCatalogDatasetOptionsOutputReference; _j = JSII_RTTI_SYMBOL_1; BigqueryDatasetExternalCatalogDatasetOptionsOutputReference[_j] = { fqn: "@cdktf/provider-google.bigqueryDataset.BigqueryDatasetExternalCatalogDatasetOptionsOutputReference", version: "14.35.1" }; function bigqueryDatasetExternalDatasetReferenceToTerraform(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 { connection: cdktf.stringToTerraform(struct.connection), external_source: cdktf.stringToTerraform(struct.externalSource), }; } function bigqueryDatasetExternalDatasetReferenceToHclTerraform(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 = { connection: { value: cdktf.stringToHclTerraform(struct.connection), isBlock: false, type: "simple", storageClassType: "string", }, external_source: { value: cdktf.stringToHclTerraform(struct.externalSource), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryDatasetExternalDatasetReferenceOutputReference 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._connection !== undefined) { hasAnyValues = true; internalValueResult.connection = this._connection; } if (this._externalSource !== undefined) { hasAnyValues = true; internalValueResult.externalSource = this._externalSource; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._connection = undefined; this._externalSource = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._connection = value.connection; this._externalSource = value.externalSource; } } get connection() { return this.getStringAttribute('connection'); } set connection(value) { this._connection = value; } // Temporarily expose input value. Use with caution. get connectionInput() { return this._connection; } get externalSource() { return this.getStringAttribute('external_source'); } set externalSource(value) { this._externalSource = value; } // Temporarily expose input value. Use with caution. get externalSourceInput() { return this._externalSource; } } exports.BigqueryDatasetExternalDatasetReferenceOutputReference = BigqueryDatasetExternalDatasetReferenceOutputReference; _k = JSII_RTTI_SYMBOL_1; BigqueryDatasetExternalDatasetReferenceOutputReference[_k] = { fqn: "@cdktf/provider-google.bigqueryDataset.BigqueryDatasetExternalDatasetReferenceOutputReference", version: "14.35.1" }; function bigqueryDatasetTimeoutsToTerraform(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: cdktf.stringToTerraform(struct.create), delete: cdktf.stringToTerraform(struct.delete), update: cdktf.stringToTerraform(struct.update), }; } function bigqueryDatasetTimeoutsToHclTerraform(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: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class BigqueryDatasetTimeoutsOutputReference 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); this.isEmptyObject = false; } g