UNPKG

@cdktf/provider-googleworkspace

Version:

Prebuilt googleworkspace Provider for Terraform CDK (cdktf)

1,301 lines 542 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, _4, _5, _6; Object.defineProperty(exports, "__esModule", { value: true }); exports.UserRelationsOutputReference = exports.userRelationsToHclTerraform = exports.userRelationsToTerraform = exports.UserPosixAccountsList = exports.UserPosixAccountsOutputReference = exports.userPosixAccountsToHclTerraform = exports.userPosixAccountsToTerraform = exports.UserPhonesList = exports.UserPhonesOutputReference = exports.userPhonesToHclTerraform = exports.userPhonesToTerraform = exports.UserOrganizationsList = exports.UserOrganizationsOutputReference = exports.userOrganizationsToHclTerraform = exports.userOrganizationsToTerraform = exports.UserNameOutputReference = exports.userNameToHclTerraform = exports.userNameToTerraform = exports.UserLocationsList = exports.UserLocationsOutputReference = exports.userLocationsToHclTerraform = exports.userLocationsToTerraform = exports.UserLanguagesList = exports.UserLanguagesOutputReference = exports.userLanguagesToHclTerraform = exports.userLanguagesToTerraform = exports.UserKeywordsList = exports.UserKeywordsOutputReference = exports.userKeywordsToHclTerraform = exports.userKeywordsToTerraform = exports.UserImsList = exports.UserImsOutputReference = exports.userImsToHclTerraform = exports.userImsToTerraform = exports.UserExternalIdsList = exports.UserExternalIdsOutputReference = exports.userExternalIdsToHclTerraform = exports.userExternalIdsToTerraform = exports.UserEmailsList = exports.UserEmailsOutputReference = exports.userEmailsToHclTerraform = exports.userEmailsToTerraform = exports.UserCustomSchemasList = exports.UserCustomSchemasOutputReference = exports.userCustomSchemasToHclTerraform = exports.userCustomSchemasToTerraform = exports.UserAddressesList = exports.UserAddressesOutputReference = exports.userAddressesToHclTerraform = exports.userAddressesToTerraform = void 0; exports.User = exports.UserWebsitesList = exports.UserWebsitesOutputReference = exports.userWebsitesToHclTerraform = exports.userWebsitesToTerraform = exports.UserTimeoutsOutputReference = exports.userTimeoutsToHclTerraform = exports.userTimeoutsToTerraform = exports.UserSshPublicKeysList = exports.UserSshPublicKeysOutputReference = exports.userSshPublicKeysToHclTerraform = exports.userSshPublicKeysToTerraform = exports.UserRelationsList = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function userAddressesToTerraform(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 { country: cdktf.stringToTerraform(struct.country), country_code: cdktf.stringToTerraform(struct.countryCode), custom_type: cdktf.stringToTerraform(struct.customType), extended_address: cdktf.stringToTerraform(struct.extendedAddress), formatted: cdktf.stringToTerraform(struct.formatted), locality: cdktf.stringToTerraform(struct.locality), po_box: cdktf.stringToTerraform(struct.poBox), postal_code: cdktf.stringToTerraform(struct.postalCode), primary: cdktf.booleanToTerraform(struct.primary), region: cdktf.stringToTerraform(struct.region), source_is_structured: cdktf.booleanToTerraform(struct.sourceIsStructured), street_address: cdktf.stringToTerraform(struct.streetAddress), type: cdktf.stringToTerraform(struct.type), }; } exports.userAddressesToTerraform = userAddressesToTerraform; function userAddressesToHclTerraform(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 = { country: { value: cdktf.stringToHclTerraform(struct.country), isBlock: false, type: "simple", storageClassType: "string", }, country_code: { value: cdktf.stringToHclTerraform(struct.countryCode), isBlock: false, type: "simple", storageClassType: "string", }, custom_type: { value: cdktf.stringToHclTerraform(struct.customType), isBlock: false, type: "simple", storageClassType: "string", }, extended_address: { value: cdktf.stringToHclTerraform(struct.extendedAddress), isBlock: false, type: "simple", storageClassType: "string", }, formatted: { value: cdktf.stringToHclTerraform(struct.formatted), isBlock: false, type: "simple", storageClassType: "string", }, locality: { value: cdktf.stringToHclTerraform(struct.locality), isBlock: false, type: "simple", storageClassType: "string", }, po_box: { value: cdktf.stringToHclTerraform(struct.poBox), isBlock: false, type: "simple", storageClassType: "string", }, postal_code: { value: cdktf.stringToHclTerraform(struct.postalCode), isBlock: false, type: "simple", storageClassType: "string", }, primary: { value: cdktf.booleanToHclTerraform(struct.primary), isBlock: false, type: "simple", storageClassType: "boolean", }, region: { value: cdktf.stringToHclTerraform(struct.region), isBlock: false, type: "simple", storageClassType: "string", }, source_is_structured: { value: cdktf.booleanToHclTerraform(struct.sourceIsStructured), isBlock: false, type: "simple", storageClassType: "boolean", }, street_address: { value: cdktf.stringToHclTerraform(struct.streetAddress), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.userAddressesToHclTerraform = userAddressesToHclTerraform; class UserAddressesOutputReference 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._country !== undefined) { hasAnyValues = true; internalValueResult.country = this._country; } if (this._countryCode !== undefined) { hasAnyValues = true; internalValueResult.countryCode = this._countryCode; } if (this._customType !== undefined) { hasAnyValues = true; internalValueResult.customType = this._customType; } if (this._extendedAddress !== undefined) { hasAnyValues = true; internalValueResult.extendedAddress = this._extendedAddress; } if (this._formatted !== undefined) { hasAnyValues = true; internalValueResult.formatted = this._formatted; } if (this._locality !== undefined) { hasAnyValues = true; internalValueResult.locality = this._locality; } if (this._poBox !== undefined) { hasAnyValues = true; internalValueResult.poBox = this._poBox; } if (this._postalCode !== undefined) { hasAnyValues = true; internalValueResult.postalCode = this._postalCode; } if (this._primary !== undefined) { hasAnyValues = true; internalValueResult.primary = this._primary; } if (this._region !== undefined) { hasAnyValues = true; internalValueResult.region = this._region; } if (this._sourceIsStructured !== undefined) { hasAnyValues = true; internalValueResult.sourceIsStructured = this._sourceIsStructured; } if (this._streetAddress !== undefined) { hasAnyValues = true; internalValueResult.streetAddress = this._streetAddress; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._country = undefined; this._countryCode = undefined; this._customType = undefined; this._extendedAddress = undefined; this._formatted = undefined; this._locality = undefined; this._poBox = undefined; this._postalCode = undefined; this._primary = undefined; this._region = undefined; this._sourceIsStructured = undefined; this._streetAddress = undefined; this._type = 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._country = value.country; this._countryCode = value.countryCode; this._customType = value.customType; this._extendedAddress = value.extendedAddress; this._formatted = value.formatted; this._locality = value.locality; this._poBox = value.poBox; this._postalCode = value.postalCode; this._primary = value.primary; this._region = value.region; this._sourceIsStructured = value.sourceIsStructured; this._streetAddress = value.streetAddress; this._type = value.type; } } get country() { return this.getStringAttribute('country'); } set country(value) { this._country = value; } resetCountry() { this._country = undefined; } // Temporarily expose input value. Use with caution. get countryInput() { return this._country; } get countryCode() { return this.getStringAttribute('country_code'); } set countryCode(value) { this._countryCode = value; } resetCountryCode() { this._countryCode = undefined; } // Temporarily expose input value. Use with caution. get countryCodeInput() { return this._countryCode; } get customType() { return this.getStringAttribute('custom_type'); } set customType(value) { this._customType = value; } resetCustomType() { this._customType = undefined; } // Temporarily expose input value. Use with caution. get customTypeInput() { return this._customType; } get extendedAddress() { return this.getStringAttribute('extended_address'); } set extendedAddress(value) { this._extendedAddress = value; } resetExtendedAddress() { this._extendedAddress = undefined; } // Temporarily expose input value. Use with caution. get extendedAddressInput() { return this._extendedAddress; } get formatted() { return this.getStringAttribute('formatted'); } set formatted(value) { this._formatted = value; } resetFormatted() { this._formatted = undefined; } // Temporarily expose input value. Use with caution. get formattedInput() { return this._formatted; } get locality() { return this.getStringAttribute('locality'); } set locality(value) { this._locality = value; } resetLocality() { this._locality = undefined; } // Temporarily expose input value. Use with caution. get localityInput() { return this._locality; } get poBox() { return this.getStringAttribute('po_box'); } set poBox(value) { this._poBox = value; } resetPoBox() { this._poBox = undefined; } // Temporarily expose input value. Use with caution. get poBoxInput() { return this._poBox; } get postalCode() { return this.getStringAttribute('postal_code'); } set postalCode(value) { this._postalCode = value; } resetPostalCode() { this._postalCode = undefined; } // Temporarily expose input value. Use with caution. get postalCodeInput() { return this._postalCode; } get primary() { return this.getBooleanAttribute('primary'); } set primary(value) { this._primary = value; } resetPrimary() { this._primary = undefined; } // Temporarily expose input value. Use with caution. get primaryInput() { return this._primary; } get region() { return this.getStringAttribute('region'); } set region(value) { this._region = value; } resetRegion() { this._region = undefined; } // Temporarily expose input value. Use with caution. get regionInput() { return this._region; } get sourceIsStructured() { return this.getBooleanAttribute('source_is_structured'); } set sourceIsStructured(value) { this._sourceIsStructured = value; } resetSourceIsStructured() { this._sourceIsStructured = undefined; } // Temporarily expose input value. Use with caution. get sourceIsStructuredInput() { return this._sourceIsStructured; } get streetAddress() { return this.getStringAttribute('street_address'); } set streetAddress(value) { this._streetAddress = value; } resetStreetAddress() { this._streetAddress = undefined; } // Temporarily expose input value. Use with caution. get streetAddressInput() { return this._streetAddress; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.UserAddressesOutputReference = UserAddressesOutputReference; _a = JSII_RTTI_SYMBOL_1; UserAddressesOutputReference[_a] = { fqn: "@cdktf/provider-googleworkspace.user.UserAddressesOutputReference", version: "8.0.1" }; class UserAddressesList 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 UserAddressesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.UserAddressesList = UserAddressesList; _b = JSII_RTTI_SYMBOL_1; UserAddressesList[_b] = { fqn: "@cdktf/provider-googleworkspace.user.UserAddressesList", version: "8.0.1" }; function userCustomSchemasToTerraform(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 { schema_name: cdktf.stringToTerraform(struct.schemaName), schema_values: cdktf.hashMapper(cdktf.stringToTerraform)(struct.schemaValues), }; } exports.userCustomSchemasToTerraform = userCustomSchemasToTerraform; function userCustomSchemasToHclTerraform(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 = { schema_name: { value: cdktf.stringToHclTerraform(struct.schemaName), isBlock: false, type: "simple", storageClassType: "string", }, schema_values: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.schemaValues), isBlock: false, type: "map", storageClassType: "stringMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.userCustomSchemasToHclTerraform = userCustomSchemasToHclTerraform; class UserCustomSchemasOutputReference 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._schemaName !== undefined) { hasAnyValues = true; internalValueResult.schemaName = this._schemaName; } if (this._schemaValues !== undefined) { hasAnyValues = true; internalValueResult.schemaValues = this._schemaValues; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._schemaName = undefined; this._schemaValues = 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._schemaName = value.schemaName; this._schemaValues = value.schemaValues; } } get schemaName() { return this.getStringAttribute('schema_name'); } set schemaName(value) { this._schemaName = value; } // Temporarily expose input value. Use with caution. get schemaNameInput() { return this._schemaName; } get schemaValues() { return this.getStringMapAttribute('schema_values'); } set schemaValues(value) { this._schemaValues = value; } // Temporarily expose input value. Use with caution. get schemaValuesInput() { return this._schemaValues; } } exports.UserCustomSchemasOutputReference = UserCustomSchemasOutputReference; _c = JSII_RTTI_SYMBOL_1; UserCustomSchemasOutputReference[_c] = { fqn: "@cdktf/provider-googleworkspace.user.UserCustomSchemasOutputReference", version: "8.0.1" }; class UserCustomSchemasList 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 UserCustomSchemasOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.UserCustomSchemasList = UserCustomSchemasList; _d = JSII_RTTI_SYMBOL_1; UserCustomSchemasList[_d] = { fqn: "@cdktf/provider-googleworkspace.user.UserCustomSchemasList", version: "8.0.1" }; function userEmailsToTerraform(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 { address: cdktf.stringToTerraform(struct.address), custom_type: cdktf.stringToTerraform(struct.customType), primary: cdktf.booleanToTerraform(struct.primary), type: cdktf.stringToTerraform(struct.type), }; } exports.userEmailsToTerraform = userEmailsToTerraform; function userEmailsToHclTerraform(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 = { address: { value: cdktf.stringToHclTerraform(struct.address), isBlock: false, type: "simple", storageClassType: "string", }, custom_type: { value: cdktf.stringToHclTerraform(struct.customType), isBlock: false, type: "simple", storageClassType: "string", }, primary: { value: cdktf.booleanToHclTerraform(struct.primary), isBlock: false, type: "simple", storageClassType: "boolean", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.userEmailsToHclTerraform = userEmailsToHclTerraform; class UserEmailsOutputReference 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._address !== undefined) { hasAnyValues = true; internalValueResult.address = this._address; } if (this._customType !== undefined) { hasAnyValues = true; internalValueResult.customType = this._customType; } if (this._primary !== undefined) { hasAnyValues = true; internalValueResult.primary = this._primary; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._address = undefined; this._customType = undefined; this._primary = undefined; this._type = 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._address = value.address; this._customType = value.customType; this._primary = value.primary; this._type = value.type; } } get address() { return this.getStringAttribute('address'); } set address(value) { this._address = value; } resetAddress() { this._address = undefined; } // Temporarily expose input value. Use with caution. get addressInput() { return this._address; } get customType() { return this.getStringAttribute('custom_type'); } set customType(value) { this._customType = value; } resetCustomType() { this._customType = undefined; } // Temporarily expose input value. Use with caution. get customTypeInput() { return this._customType; } get primary() { return this.getBooleanAttribute('primary'); } set primary(value) { this._primary = value; } resetPrimary() { this._primary = undefined; } // Temporarily expose input value. Use with caution. get primaryInput() { return this._primary; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.UserEmailsOutputReference = UserEmailsOutputReference; _e = JSII_RTTI_SYMBOL_1; UserEmailsOutputReference[_e] = { fqn: "@cdktf/provider-googleworkspace.user.UserEmailsOutputReference", version: "8.0.1" }; class UserEmailsList 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 UserEmailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.UserEmailsList = UserEmailsList; _f = JSII_RTTI_SYMBOL_1; UserEmailsList[_f] = { fqn: "@cdktf/provider-googleworkspace.user.UserEmailsList", version: "8.0.1" }; function userExternalIdsToTerraform(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 { custom_type: cdktf.stringToTerraform(struct.customType), type: cdktf.stringToTerraform(struct.type), value: cdktf.stringToTerraform(struct.value), }; } exports.userExternalIdsToTerraform = userExternalIdsToTerraform; function userExternalIdsToHclTerraform(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 = { custom_type: { value: cdktf.stringToHclTerraform(struct.customType), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.userExternalIdsToHclTerraform = userExternalIdsToHclTerraform; class UserExternalIdsOutputReference 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._customType !== undefined) { hasAnyValues = true; internalValueResult.customType = this._customType; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._customType = undefined; this._type = undefined; this._value = 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._customType = value.customType; this._type = value.type; this._value = value.value; } } get customType() { return this.getStringAttribute('custom_type'); } set customType(value) { this._customType = value; } resetCustomType() { this._customType = undefined; } // Temporarily expose input value. Use with caution. get customTypeInput() { return this._customType; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.UserExternalIdsOutputReference = UserExternalIdsOutputReference; _g = JSII_RTTI_SYMBOL_1; UserExternalIdsOutputReference[_g] = { fqn: "@cdktf/provider-googleworkspace.user.UserExternalIdsOutputReference", version: "8.0.1" }; class UserExternalIdsList 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 UserExternalIdsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.UserExternalIdsList = UserExternalIdsList; _h = JSII_RTTI_SYMBOL_1; UserExternalIdsList[_h] = { fqn: "@cdktf/provider-googleworkspace.user.UserExternalIdsList", version: "8.0.1" }; function userImsToTerraform(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 { custom_protocol: cdktf.stringToTerraform(struct.customProtocol), custom_type: cdktf.stringToTerraform(struct.customType), im: cdktf.stringToTerraform(struct.im), primary: cdktf.booleanToTerraform(struct.primary), protocol: cdktf.stringToTerraform(struct.protocol), type: cdktf.stringToTerraform(struct.type), }; } exports.userImsToTerraform = userImsToTerraform; function userImsToHclTerraform(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 = { custom_protocol: { value: cdktf.stringToHclTerraform(struct.customProtocol), isBlock: false, type: "simple", storageClassType: "string", }, custom_type: { value: cdktf.stringToHclTerraform(struct.customType), isBlock: false, type: "simple", storageClassType: "string", }, im: { value: cdktf.stringToHclTerraform(struct.im), isBlock: false, type: "simple", storageClassType: "string", }, primary: { value: cdktf.booleanToHclTerraform(struct.primary), isBlock: false, type: "simple", storageClassType: "boolean", }, protocol: { value: cdktf.stringToHclTerraform(struct.protocol), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.userImsToHclTerraform = userImsToHclTerraform; class UserImsOutputReference 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._customProtocol !== undefined) { hasAnyValues = true; internalValueResult.customProtocol = this._customProtocol; } if (this._customType !== undefined) { hasAnyValues = true; internalValueResult.customType = this._customType; } if (this._im !== undefined) { hasAnyValues = true; internalValueResult.im = this._im; } if (this._primary !== undefined) { hasAnyValues = true; internalValueResult.primary = this._primary; } if (this._protocol !== undefined) { hasAnyValues = true; internalValueResult.protocol = this._protocol; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._customProtocol = undefined; this._customType = undefined; this._im = undefined; this._primary = undefined; this._protocol = undefined; this._type = 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._customProtocol = value.customProtocol; this._customType = value.customType; this._im = value.im; this._primary = value.primary; this._protocol = value.protocol; this._type = value.type; } } get customProtocol() { return this.getStringAttribute('custom_protocol'); } set customProtocol(value) { this._customProtocol = value; } resetCustomProtocol() { this._customProtocol = undefined; } // Temporarily expose input value. Use with caution. get customProtocolInput() { return this._customProtocol; } get customType() { return this.getStringAttribute('custom_type'); } set customType(value) { this._customType = value; } resetCustomType() { this._customType = undefined; } // Temporarily expose input value. Use with caution. get customTypeInput() { return this._customType; } get im() { return this.getStringAttribute('im'); } set im(value) { this._im = value; } resetIm() { this._im = undefined; } // Temporarily expose input value. Use with caution. get imInput() { return this._im; } get primary() { return this.getBooleanAttribute('primary'); } set primary(value) { this._primary = value; } resetPrimary() { this._primary = undefined; } // Temporarily expose input value. Use with caution. get primaryInput() { return this._primary; } get protocol() { return this.getStringAttribute('protocol'); } set protocol(value) { this._protocol = value; } // Temporarily expose input value. Use with caution. get protocolInput() { return this._protocol; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.UserImsOutputReference = UserImsOutputReference; _j = JSII_RTTI_SYMBOL_1; UserImsOutputReference[_j] = { fqn: "@cdktf/provider-googleworkspace.user.UserImsOutputReference", version: "8.0.1" }; class UserImsList 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 UserImsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.UserImsList = UserImsList; _k = JSII_RTTI_SYMBOL_1; UserImsList[_k] = { fqn: "@cdktf/provider-googleworkspace.user.UserImsList", version: "8.0.1" }; function userKeywordsToTerraform(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 { custom_type: cdktf.stringToTerraform(struct.customType), type: cdktf.stringToTerraform(struct.type), value: cdktf.stringToTerraform(struct.value), }; } exports.userKeywordsToTerraform = userKeywordsToTerraform; function userKeywordsToHclTerraform(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 = { custom_type: { value: cdktf.stringToHclTerraform(struct.customType), isBlock: false, type: "simple", storageClassType: "string", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.userKeywordsToHclTerraform = userKeywordsToHclTerraform; class UserKeywordsOutputReference 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._customType !== undefined) { hasAnyValues = true; internalValueResult.customType = this._customType; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._customType = undefined; this._type = undefined; this._value = 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._customType = value.customType; this._type = value.type; this._value = value.value; } } get customType() { return this.getStringAttribute('custom_type'); } set customType(value) { this._customType = value; } resetCustomType() { this._customType = undefined; } // Temporarily expose input value. Use with caution. get customTypeInput() { return this._customType; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.UserKeywordsOutputReference = UserKeywordsOutputReference; _l = JSII_RTTI_SYMBOL_1; UserKeywordsOutputReference[_l] = { fqn: "@cdktf/provider-googleworkspace.user.UserKeywordsOutputReference", version: "8.0.1" }; class UserKeywordsList 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 UserKeywordsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.UserKeywordsList = UserKeywordsList; _m = JSII_RTTI_SYMBOL_1; UserKeywordsList[_m] = { fqn: "@cdktf/provider-googleworkspace.user.UserKeywordsList", version: "8.0.1" }; function userLanguagesToTerraform(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 { custom_language: cdktf.stringToTerraform(struct.customLanguage), language_code: cdktf.stringToTerraform(struct.languageCode), preference: cdktf.stringToTerraform(struct.preference), }; } exports.userLanguagesToTerraform = userLanguagesToTerraform; function userLanguagesToHclTerraform(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: http