UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,177 lines 343 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; Object.defineProperty(exports, "__esModule", { value: true }); exports.NotebooksRuntime = exports.NotebooksRuntimeVirtualMachineOutputReference = exports.NotebooksRuntimeVirtualMachineVirtualMachineConfigOutputReference = exports.NotebooksRuntimeVirtualMachineVirtualMachineConfigShieldedInstanceConfigOutputReference = exports.NotebooksRuntimeVirtualMachineVirtualMachineConfigEncryptionConfigOutputReference = exports.NotebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskOutputReference = exports.NotebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsOutputReference = exports.NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesList = exports.NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesOutputReference = exports.NotebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigOutputReference = exports.NotebooksRuntimeTimeoutsOutputReference = exports.NotebooksRuntimeSoftwareConfigOutputReference = exports.NotebooksRuntimeSoftwareConfigKernelsList = exports.NotebooksRuntimeSoftwareConfigKernelsOutputReference = exports.NotebooksRuntimeAccessConfigOutputReference = exports.NotebooksRuntimeMetricsList = exports.NotebooksRuntimeMetricsOutputReference = void 0; exports.notebooksRuntimeMetricsToTerraform = notebooksRuntimeMetricsToTerraform; exports.notebooksRuntimeMetricsToHclTerraform = notebooksRuntimeMetricsToHclTerraform; exports.notebooksRuntimeAccessConfigToTerraform = notebooksRuntimeAccessConfigToTerraform; exports.notebooksRuntimeAccessConfigToHclTerraform = notebooksRuntimeAccessConfigToHclTerraform; exports.notebooksRuntimeSoftwareConfigKernelsToTerraform = notebooksRuntimeSoftwareConfigKernelsToTerraform; exports.notebooksRuntimeSoftwareConfigKernelsToHclTerraform = notebooksRuntimeSoftwareConfigKernelsToHclTerraform; exports.notebooksRuntimeSoftwareConfigToTerraform = notebooksRuntimeSoftwareConfigToTerraform; exports.notebooksRuntimeSoftwareConfigToHclTerraform = notebooksRuntimeSoftwareConfigToHclTerraform; exports.notebooksRuntimeTimeoutsToTerraform = notebooksRuntimeTimeoutsToTerraform; exports.notebooksRuntimeTimeoutsToHclTerraform = notebooksRuntimeTimeoutsToHclTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigToTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigToTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigToHclTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigToHclTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesToTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesToTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesToHclTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesToHclTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsToTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsToTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsToHclTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsToHclTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskToTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskToTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskToHclTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskToHclTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigEncryptionConfigToTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigEncryptionConfigToTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigEncryptionConfigToHclTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigEncryptionConfigToHclTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigShieldedInstanceConfigToTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigShieldedInstanceConfigToTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigShieldedInstanceConfigToHclTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigShieldedInstanceConfigToHclTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigToTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigToTerraform; exports.notebooksRuntimeVirtualMachineVirtualMachineConfigToHclTerraform = notebooksRuntimeVirtualMachineVirtualMachineConfigToHclTerraform; exports.notebooksRuntimeVirtualMachineToTerraform = notebooksRuntimeVirtualMachineToTerraform; exports.notebooksRuntimeVirtualMachineToHclTerraform = notebooksRuntimeVirtualMachineToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function notebooksRuntimeMetricsToTerraform(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 notebooksRuntimeMetricsToHclTerraform(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 NotebooksRuntimeMetricsOutputReference 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; // system_metrics - computed: true, optional: false, required: false this._systemMetrics = new cdktf.StringMap(this, "system_metrics"); } 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 systemMetrics() { return this._systemMetrics; } } exports.NotebooksRuntimeMetricsOutputReference = NotebooksRuntimeMetricsOutputReference; _a = JSII_RTTI_SYMBOL_1; NotebooksRuntimeMetricsOutputReference[_a] = { fqn: "@cdktf/provider-google.notebooksRuntime.NotebooksRuntimeMetricsOutputReference", version: "14.35.0" }; class NotebooksRuntimeMetricsList 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 NotebooksRuntimeMetricsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.NotebooksRuntimeMetricsList = NotebooksRuntimeMetricsList; _b = JSII_RTTI_SYMBOL_1; NotebooksRuntimeMetricsList[_b] = { fqn: "@cdktf/provider-google.notebooksRuntime.NotebooksRuntimeMetricsList", version: "14.35.0" }; function notebooksRuntimeAccessConfigToTerraform(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 { access_type: cdktf.stringToTerraform(struct.accessType), runtime_owner: cdktf.stringToTerraform(struct.runtimeOwner), }; } function notebooksRuntimeAccessConfigToHclTerraform(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 = { access_type: { value: cdktf.stringToHclTerraform(struct.accessType), isBlock: false, type: "simple", storageClassType: "string", }, runtime_owner: { value: cdktf.stringToHclTerraform(struct.runtimeOwner), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class NotebooksRuntimeAccessConfigOutputReference 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._accessType !== undefined) { hasAnyValues = true; internalValueResult.accessType = this._accessType; } if (this._runtimeOwner !== undefined) { hasAnyValues = true; internalValueResult.runtimeOwner = this._runtimeOwner; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._accessType = undefined; this._runtimeOwner = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._accessType = value.accessType; this._runtimeOwner = value.runtimeOwner; } } get accessType() { return this.getStringAttribute('access_type'); } set accessType(value) { this._accessType = value; } resetAccessType() { this._accessType = undefined; } // Temporarily expose input value. Use with caution. get accessTypeInput() { return this._accessType; } // proxy_uri - computed: true, optional: false, required: false get proxyUri() { return this.getStringAttribute('proxy_uri'); } get runtimeOwner() { return this.getStringAttribute('runtime_owner'); } set runtimeOwner(value) { this._runtimeOwner = value; } resetRuntimeOwner() { this._runtimeOwner = undefined; } // Temporarily expose input value. Use with caution. get runtimeOwnerInput() { return this._runtimeOwner; } } exports.NotebooksRuntimeAccessConfigOutputReference = NotebooksRuntimeAccessConfigOutputReference; _c = JSII_RTTI_SYMBOL_1; NotebooksRuntimeAccessConfigOutputReference[_c] = { fqn: "@cdktf/provider-google.notebooksRuntime.NotebooksRuntimeAccessConfigOutputReference", version: "14.35.0" }; function notebooksRuntimeSoftwareConfigKernelsToTerraform(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 { repository: cdktf.stringToTerraform(struct.repository), tag: cdktf.stringToTerraform(struct.tag), }; } function notebooksRuntimeSoftwareConfigKernelsToHclTerraform(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 = { repository: { value: cdktf.stringToHclTerraform(struct.repository), isBlock: false, type: "simple", storageClassType: "string", }, tag: { value: cdktf.stringToHclTerraform(struct.tag), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class NotebooksRuntimeSoftwareConfigKernelsOutputReference 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._repository !== undefined) { hasAnyValues = true; internalValueResult.repository = this._repository; } if (this._tag !== undefined) { hasAnyValues = true; internalValueResult.tag = this._tag; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._repository = undefined; this._tag = 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._repository = value.repository; this._tag = value.tag; } } get repository() { return this.getStringAttribute('repository'); } set repository(value) { this._repository = value; } // Temporarily expose input value. Use with caution. get repositoryInput() { return this._repository; } get tag() { return this.getStringAttribute('tag'); } set tag(value) { this._tag = value; } resetTag() { this._tag = undefined; } // Temporarily expose input value. Use with caution. get tagInput() { return this._tag; } } exports.NotebooksRuntimeSoftwareConfigKernelsOutputReference = NotebooksRuntimeSoftwareConfigKernelsOutputReference; _d = JSII_RTTI_SYMBOL_1; NotebooksRuntimeSoftwareConfigKernelsOutputReference[_d] = { fqn: "@cdktf/provider-google.notebooksRuntime.NotebooksRuntimeSoftwareConfigKernelsOutputReference", version: "14.35.0" }; class NotebooksRuntimeSoftwareConfigKernelsList 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 NotebooksRuntimeSoftwareConfigKernelsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.NotebooksRuntimeSoftwareConfigKernelsList = NotebooksRuntimeSoftwareConfigKernelsList; _e = JSII_RTTI_SYMBOL_1; NotebooksRuntimeSoftwareConfigKernelsList[_e] = { fqn: "@cdktf/provider-google.notebooksRuntime.NotebooksRuntimeSoftwareConfigKernelsList", version: "14.35.0" }; function notebooksRuntimeSoftwareConfigToTerraform(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_gpu_driver_path: cdktf.stringToTerraform(struct.customGpuDriverPath), enable_health_monitoring: cdktf.booleanToTerraform(struct.enableHealthMonitoring), idle_shutdown: cdktf.booleanToTerraform(struct.idleShutdown), idle_shutdown_timeout: cdktf.numberToTerraform(struct.idleShutdownTimeout), install_gpu_driver: cdktf.booleanToTerraform(struct.installGpuDriver), notebook_upgrade_schedule: cdktf.stringToTerraform(struct.notebookUpgradeSchedule), post_startup_script: cdktf.stringToTerraform(struct.postStartupScript), post_startup_script_behavior: cdktf.stringToTerraform(struct.postStartupScriptBehavior), kernels: cdktf.listMapper(notebooksRuntimeSoftwareConfigKernelsToTerraform, true)(struct.kernels), }; } function notebooksRuntimeSoftwareConfigToHclTerraform(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_gpu_driver_path: { value: cdktf.stringToHclTerraform(struct.customGpuDriverPath), isBlock: false, type: "simple", storageClassType: "string", }, enable_health_monitoring: { value: cdktf.booleanToHclTerraform(struct.enableHealthMonitoring), isBlock: false, type: "simple", storageClassType: "boolean", }, idle_shutdown: { value: cdktf.booleanToHclTerraform(struct.idleShutdown), isBlock: false, type: "simple", storageClassType: "boolean", }, idle_shutdown_timeout: { value: cdktf.numberToHclTerraform(struct.idleShutdownTimeout), isBlock: false, type: "simple", storageClassType: "number", }, install_gpu_driver: { value: cdktf.booleanToHclTerraform(struct.installGpuDriver), isBlock: false, type: "simple", storageClassType: "boolean", }, notebook_upgrade_schedule: { value: cdktf.stringToHclTerraform(struct.notebookUpgradeSchedule), isBlock: false, type: "simple", storageClassType: "string", }, post_startup_script: { value: cdktf.stringToHclTerraform(struct.postStartupScript), isBlock: false, type: "simple", storageClassType: "string", }, post_startup_script_behavior: { value: cdktf.stringToHclTerraform(struct.postStartupScriptBehavior), isBlock: false, type: "simple", storageClassType: "string", }, kernels: { value: cdktf.listMapperHcl(notebooksRuntimeSoftwareConfigKernelsToHclTerraform, true)(struct.kernels), isBlock: true, type: "list", storageClassType: "NotebooksRuntimeSoftwareConfigKernelsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class NotebooksRuntimeSoftwareConfigOutputReference 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; // kernels - computed: false, optional: true, required: false this._kernels = new NotebooksRuntimeSoftwareConfigKernelsList(this, "kernels", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._customGpuDriverPath !== undefined) { hasAnyValues = true; internalValueResult.customGpuDriverPath = this._customGpuDriverPath; } if (this._enableHealthMonitoring !== undefined) { hasAnyValues = true; internalValueResult.enableHealthMonitoring = this._enableHealthMonitoring; } if (this._idleShutdown !== undefined) { hasAnyValues = true; internalValueResult.idleShutdown = this._idleShutdown; } if (this._idleShutdownTimeout !== undefined) { hasAnyValues = true; internalValueResult.idleShutdownTimeout = this._idleShutdownTimeout; } if (this._installGpuDriver !== undefined) { hasAnyValues = true; internalValueResult.installGpuDriver = this._installGpuDriver; } if (this._notebookUpgradeSchedule !== undefined) { hasAnyValues = true; internalValueResult.notebookUpgradeSchedule = this._notebookUpgradeSchedule; } if (this._postStartupScript !== undefined) { hasAnyValues = true; internalValueResult.postStartupScript = this._postStartupScript; } if (this._postStartupScriptBehavior !== undefined) { hasAnyValues = true; internalValueResult.postStartupScriptBehavior = this._postStartupScriptBehavior; } if (this._kernels?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.kernels = this._kernels?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._customGpuDriverPath = undefined; this._enableHealthMonitoring = undefined; this._idleShutdown = undefined; this._idleShutdownTimeout = undefined; this._installGpuDriver = undefined; this._notebookUpgradeSchedule = undefined; this._postStartupScript = undefined; this._postStartupScriptBehavior = undefined; this._kernels.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._customGpuDriverPath = value.customGpuDriverPath; this._enableHealthMonitoring = value.enableHealthMonitoring; this._idleShutdown = value.idleShutdown; this._idleShutdownTimeout = value.idleShutdownTimeout; this._installGpuDriver = value.installGpuDriver; this._notebookUpgradeSchedule = value.notebookUpgradeSchedule; this._postStartupScript = value.postStartupScript; this._postStartupScriptBehavior = value.postStartupScriptBehavior; this._kernels.internalValue = value.kernels; } } get customGpuDriverPath() { return this.getStringAttribute('custom_gpu_driver_path'); } set customGpuDriverPath(value) { this._customGpuDriverPath = value; } resetCustomGpuDriverPath() { this._customGpuDriverPath = undefined; } // Temporarily expose input value. Use with caution. get customGpuDriverPathInput() { return this._customGpuDriverPath; } get enableHealthMonitoring() { return this.getBooleanAttribute('enable_health_monitoring'); } set enableHealthMonitoring(value) { this._enableHealthMonitoring = value; } resetEnableHealthMonitoring() { this._enableHealthMonitoring = undefined; } // Temporarily expose input value. Use with caution. get enableHealthMonitoringInput() { return this._enableHealthMonitoring; } get idleShutdown() { return this.getBooleanAttribute('idle_shutdown'); } set idleShutdown(value) { this._idleShutdown = value; } resetIdleShutdown() { this._idleShutdown = undefined; } // Temporarily expose input value. Use with caution. get idleShutdownInput() { return this._idleShutdown; } get idleShutdownTimeout() { return this.getNumberAttribute('idle_shutdown_timeout'); } set idleShutdownTimeout(value) { this._idleShutdownTimeout = value; } resetIdleShutdownTimeout() { this._idleShutdownTimeout = undefined; } // Temporarily expose input value. Use with caution. get idleShutdownTimeoutInput() { return this._idleShutdownTimeout; } get installGpuDriver() { return this.getBooleanAttribute('install_gpu_driver'); } set installGpuDriver(value) { this._installGpuDriver = value; } resetInstallGpuDriver() { this._installGpuDriver = undefined; } // Temporarily expose input value. Use with caution. get installGpuDriverInput() { return this._installGpuDriver; } get notebookUpgradeSchedule() { return this.getStringAttribute('notebook_upgrade_schedule'); } set notebookUpgradeSchedule(value) { this._notebookUpgradeSchedule = value; } resetNotebookUpgradeSchedule() { this._notebookUpgradeSchedule = undefined; } // Temporarily expose input value. Use with caution. get notebookUpgradeScheduleInput() { return this._notebookUpgradeSchedule; } get postStartupScript() { return this.getStringAttribute('post_startup_script'); } set postStartupScript(value) { this._postStartupScript = value; } resetPostStartupScript() { this._postStartupScript = undefined; } // Temporarily expose input value. Use with caution. get postStartupScriptInput() { return this._postStartupScript; } get postStartupScriptBehavior() { return this.getStringAttribute('post_startup_script_behavior'); } set postStartupScriptBehavior(value) { this._postStartupScriptBehavior = value; } resetPostStartupScriptBehavior() { this._postStartupScriptBehavior = undefined; } // Temporarily expose input value. Use with caution. get postStartupScriptBehaviorInput() { return this._postStartupScriptBehavior; } // upgradeable - computed: true, optional: false, required: false get upgradeable() { return this.getBooleanAttribute('upgradeable'); } get kernels() { return this._kernels; } putKernels(value) { this._kernels.internalValue = value; } resetKernels() { this._kernels.internalValue = undefined; } // Temporarily expose input value. Use with caution. get kernelsInput() { return this._kernels.internalValue; } } exports.NotebooksRuntimeSoftwareConfigOutputReference = NotebooksRuntimeSoftwareConfigOutputReference; _f = JSII_RTTI_SYMBOL_1; NotebooksRuntimeSoftwareConfigOutputReference[_f] = { fqn: "@cdktf/provider-google.notebooksRuntime.NotebooksRuntimeSoftwareConfigOutputReference", version: "14.35.0" }; function notebooksRuntimeTimeoutsToTerraform(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 notebooksRuntimeTimeoutsToHclTerraform(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 NotebooksRuntimeTimeoutsOutputReference 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; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._update = 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._create = value.create; this._delete = value.delete; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.NotebooksRuntimeTimeoutsOutputReference = NotebooksRuntimeTimeoutsOutputReference; _g = JSII_RTTI_SYMBOL_1; NotebooksRuntimeTimeoutsOutputReference[_g] = { fqn: "@cdktf/provider-google.notebooksRuntime.NotebooksRuntimeTimeoutsOutputReference", version: "14.35.0" }; function notebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigToTerraform(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 { core_count: cdktf.numberToTerraform(struct.coreCount), type: cdktf.stringToTerraform(struct.type), }; } function notebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigToHclTerraform(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 = { core_count: { value: cdktf.numberToHclTerraform(struct.coreCount), isBlock: false, type: "simple", storageClassType: "number", }, 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)); } class NotebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigOutputReference 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._coreCount !== undefined) { hasAnyValues = true; internalValueResult.coreCount = this._coreCount; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._coreCount = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._coreCount = value.coreCount; this._type = value.type; } } get coreCount() { return this.getNumberAttribute('core_count'); } set coreCount(value) { this._coreCount = value; } resetCoreCount() { this._coreCount = undefined; } // Temporarily expose input value. Use with caution. get coreCountInput() { return this._coreCount; } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } resetType() { this._type = undefined; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.NotebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigOutputReference = NotebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigOutputReference; _h = JSII_RTTI_SYMBOL_1; NotebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigOutputReference[_h] = { fqn: "@cdktf/provider-google.notebooksRuntime.NotebooksRuntimeVirtualMachineVirtualMachineConfigAcceleratorConfigOutputReference", version: "14.35.0" }; function notebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesToTerraform(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 { repository: cdktf.stringToTerraform(struct.repository), tag: cdktf.stringToTerraform(struct.tag), }; } function notebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesToHclTerraform(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 = { repository: { value: cdktf.stringToHclTerraform(struct.repository), isBlock: false, type: "simple", storageClassType: "string", }, tag: { value: cdktf.stringToHclTerraform(struct.tag), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesOutputReference 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._repository !== undefined) { hasAnyValues = true; internalValueResult.repository = this._repository; } if (this._tag !== undefined) { hasAnyValues = true; internalValueResult.tag = this._tag; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._repository = undefined; this._tag = 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._repository = value.repository; this._tag = value.tag; } } get repository() { return this.getStringAttribute('repository'); } set repository(value) { this._repository = value; } // Temporarily expose input value. Use with caution. get repositoryInput() { return this._repository; } get tag() { return this.getStringAttribute('tag'); } set tag(value) { this._tag = value; } resetTag() { this._tag = undefined; } // Temporarily expose input value. Use with caution. get tagInput() { return this._tag; } } exports.NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesOutputReference = NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesOutputReference; _j = JSII_RTTI_SYMBOL_1; NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesOutputReference[_j] = { fqn: "@cdktf/provider-google.notebooksRuntime.NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesOutputReference", version: "14.35.0" }; class NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesList 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 NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesList = NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesList; _k = JSII_RTTI_SYMBOL_1; NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesList[_k] = { fqn: "@cdktf/provider-google.notebooksRuntime.NotebooksRuntimeVirtualMachineVirtualMachineConfigContainerImagesList", version: "14.35.0" }; function notebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsToTerraform(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), disk_name: cdktf.stringToTerraform(struct.diskName), disk_size_gb: cdktf.numberToTerraform(struct.diskSizeGb), disk_type: cdktf.stringToTerraform(struct.diskType), labels: cdktf.hashMapper(cdktf.stringToTerraform)(struct.labels), }; } function notebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsToHclTerraform(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", }, disk_name: { value: cdktf.stringToHclTerraform(struct.diskName), isBlock: false, type: "simple", storageClassType: "string", }, disk_size_gb: { value: cdktf.numberToHclTerraform(struct.diskSizeGb), isBlock: false, type: "simple", storageClassType: "number", }, disk_type: { value: cdktf.stringToHclTerraform(struct.diskType), isBlock: false, type: "simple", storageClassType: "string", }, labels: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.labels), isBlock: false, type: "map", storageClassType: "stringMap", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class NotebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsOutputReference 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._diskName !== undefined) { hasAnyValues = true; internalValueResult.diskName = this._diskName; } if (this._diskSizeGb !== undefined) { hasAnyValues = true; internalValueResult.diskSizeGb = this._diskSizeGb; } if (this._diskType !== undefined) { hasAnyValues = true; internalValueResult.diskType = this._diskType; } if (this._labels !== undefined) { hasAnyValues = true; internalValueResult.labels = this._labels; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._description = undefined; this._diskName = undefined; this._diskSizeGb = undefined; this._diskType = undefined; this._labels = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._description = value.description; this._diskName = value.diskName; this._diskSizeGb = value.diskSizeGb; this._diskType = value.diskType; this._labels = value.labels; } } 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 diskName() { return this.getStringAttribute('disk_name'); } set diskName(value) { this._diskName = value; } resetDiskName() { this._diskName = undefined; } // Temporarily expose input value. Use with caution. get diskNameInput() { return this._diskName; } get diskSizeGb() { return this.getNumberAttribute('disk_size_gb'); } set diskSizeGb(value) { this._diskSizeGb = value; } resetDiskSizeGb() { this._diskSizeGb = undefined; } // Temporarily expose input value. Use with caution. get diskSizeGbInput() { return this._diskSizeGb; } get diskType() { return this.getStringAttribute('disk_type'); } set diskType(value) { this._diskType = value; } resetDiskType() { this._diskType = undefined; } // Temporarily expose input value. Use with caution. get diskTypeInput() { return this._diskType; } get labels() { return this.getStringMapAttribute('labels'); } set labels(value) { this._labels = value; } resetLabels() { this._labels = undefined; } // Temporarily expose input value. Use with caution. get labelsInput() { return this._labels; } } exports.NotebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsOutputReference = NotebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsOutputReference; _l = JSII_RTTI_SYMBOL_1; NotebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsOutputReference[_l] = { fqn: "@cdktf/provider-google.notebooksRuntime.NotebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskInitializeParamsOutputReference", version: "14.35.0" }; function notebooksRuntimeVirtualMachineVirtualMachineConfigDataDiskToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw ne