rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
953 lines • 251 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DatascienceNotebookSession = exports.DatascienceNotebookSessionTimeoutsOutputReference = exports.datascienceNotebookSessionTimeoutsToHclTerraform = exports.datascienceNotebookSessionTimeoutsToTerraform = exports.DatascienceNotebookSessionNotebookSessionStorageMountConfigurationDetailsListStructList = exports.DatascienceNotebookSessionNotebookSessionStorageMountConfigurationDetailsListStructOutputReference = exports.datascienceNotebookSessionNotebookSessionStorageMountConfigurationDetailsListStructToHclTerraform = exports.datascienceNotebookSessionNotebookSessionStorageMountConfigurationDetailsListStructToTerraform = exports.DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsOutputReference = exports.datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsToHclTerraform = exports.datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsToTerraform = exports.DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsOutputReference = exports.datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsToHclTerraform = exports.datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsToTerraform = exports.DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionList = exports.DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionOutputReference = exports.datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionToHclTerraform = exports.datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionToTerraform = exports.DatascienceNotebookSessionNotebookSessionConfigurationDetailsOutputReference = exports.datascienceNotebookSessionNotebookSessionConfigurationDetailsToHclTerraform = exports.datascienceNotebookSessionNotebookSessionConfigurationDetailsToTerraform = exports.DatascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsOutputReference = exports.datascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsToHclTerraform = exports.datascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsToTerraform = exports.DatascienceNotebookSessionNotebookSessionConfigDetailsOutputReference = exports.datascienceNotebookSessionNotebookSessionConfigDetailsToHclTerraform = exports.datascienceNotebookSessionNotebookSessionConfigDetailsToTerraform = exports.DatascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsOutputReference = exports.datascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsToHclTerraform = exports.datascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function datascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsToTerraform(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 {
memory_in_gbs: cdktf.numberToTerraform(struct.memoryInGbs),
ocpus: cdktf.numberToTerraform(struct.ocpus),
};
}
exports.datascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsToTerraform = datascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsToTerraform;
function datascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsToHclTerraform(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 = {
memory_in_gbs: {
value: cdktf.numberToHclTerraform(struct.memoryInGbs),
isBlock: false,
type: "simple",
storageClassType: "number",
},
ocpus: {
value: cdktf.numberToHclTerraform(struct.ocpus),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.datascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsToHclTerraform = datascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsToHclTerraform;
class DatascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsOutputReference 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._memoryInGbs !== undefined) {
hasAnyValues = true;
internalValueResult.memoryInGbs = this._memoryInGbs;
}
if (this._ocpus !== undefined) {
hasAnyValues = true;
internalValueResult.ocpus = this._ocpus;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._memoryInGbs = undefined;
this._ocpus = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._memoryInGbs = value.memoryInGbs;
this._ocpus = value.ocpus;
}
}
get memoryInGbs() {
return this.getNumberAttribute('memory_in_gbs');
}
set memoryInGbs(value) {
this._memoryInGbs = value;
}
resetMemoryInGbs() {
this._memoryInGbs = undefined;
}
// Temporarily expose input value. Use with caution.
get memoryInGbsInput() {
return this._memoryInGbs;
}
get ocpus() {
return this.getNumberAttribute('ocpus');
}
set ocpus(value) {
this._ocpus = value;
}
resetOcpus() {
this._ocpus = undefined;
}
// Temporarily expose input value. Use with caution.
get ocpusInput() {
return this._ocpus;
}
}
exports.DatascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsOutputReference = DatascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DatascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.datascienceNotebookSession.DatascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsOutputReference", version: "1.0.0" };
function datascienceNotebookSessionNotebookSessionConfigDetailsToTerraform(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 {
block_storage_size_in_gbs: cdktf.numberToTerraform(struct.blockStorageSizeInGbs),
private_endpoint_id: cdktf.stringToTerraform(struct.privateEndpointId),
shape: cdktf.stringToTerraform(struct.shape),
subnet_id: cdktf.stringToTerraform(struct.subnetId),
notebook_session_shape_config_details: datascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsToTerraform(struct.notebookSessionShapeConfigDetails),
};
}
exports.datascienceNotebookSessionNotebookSessionConfigDetailsToTerraform = datascienceNotebookSessionNotebookSessionConfigDetailsToTerraform;
function datascienceNotebookSessionNotebookSessionConfigDetailsToHclTerraform(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 = {
block_storage_size_in_gbs: {
value: cdktf.numberToHclTerraform(struct.blockStorageSizeInGbs),
isBlock: false,
type: "simple",
storageClassType: "number",
},
private_endpoint_id: {
value: cdktf.stringToHclTerraform(struct.privateEndpointId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
shape: {
value: cdktf.stringToHclTerraform(struct.shape),
isBlock: false,
type: "simple",
storageClassType: "string",
},
subnet_id: {
value: cdktf.stringToHclTerraform(struct.subnetId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
notebook_session_shape_config_details: {
value: datascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsToHclTerraform(struct.notebookSessionShapeConfigDetails),
isBlock: true,
type: "list",
storageClassType: "DatascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.datascienceNotebookSessionNotebookSessionConfigDetailsToHclTerraform = datascienceNotebookSessionNotebookSessionConfigDetailsToHclTerraform;
class DatascienceNotebookSessionNotebookSessionConfigDetailsOutputReference 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;
// notebook_session_shape_config_details - computed: false, optional: true, required: false
this._notebookSessionShapeConfigDetails = new DatascienceNotebookSessionNotebookSessionConfigDetailsNotebookSessionShapeConfigDetailsOutputReference(this, "notebook_session_shape_config_details");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._blockStorageSizeInGbs !== undefined) {
hasAnyValues = true;
internalValueResult.blockStorageSizeInGbs = this._blockStorageSizeInGbs;
}
if (this._privateEndpointId !== undefined) {
hasAnyValues = true;
internalValueResult.privateEndpointId = this._privateEndpointId;
}
if (this._shape !== undefined) {
hasAnyValues = true;
internalValueResult.shape = this._shape;
}
if (this._subnetId !== undefined) {
hasAnyValues = true;
internalValueResult.subnetId = this._subnetId;
}
if (this._notebookSessionShapeConfigDetails?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.notebookSessionShapeConfigDetails = this._notebookSessionShapeConfigDetails?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._blockStorageSizeInGbs = undefined;
this._privateEndpointId = undefined;
this._shape = undefined;
this._subnetId = undefined;
this._notebookSessionShapeConfigDetails.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._blockStorageSizeInGbs = value.blockStorageSizeInGbs;
this._privateEndpointId = value.privateEndpointId;
this._shape = value.shape;
this._subnetId = value.subnetId;
this._notebookSessionShapeConfigDetails.internalValue = value.notebookSessionShapeConfigDetails;
}
}
get blockStorageSizeInGbs() {
return this.getNumberAttribute('block_storage_size_in_gbs');
}
set blockStorageSizeInGbs(value) {
this._blockStorageSizeInGbs = value;
}
resetBlockStorageSizeInGbs() {
this._blockStorageSizeInGbs = undefined;
}
// Temporarily expose input value. Use with caution.
get blockStorageSizeInGbsInput() {
return this._blockStorageSizeInGbs;
}
get privateEndpointId() {
return this.getStringAttribute('private_endpoint_id');
}
set privateEndpointId(value) {
this._privateEndpointId = value;
}
resetPrivateEndpointId() {
this._privateEndpointId = undefined;
}
// Temporarily expose input value. Use with caution.
get privateEndpointIdInput() {
return this._privateEndpointId;
}
get shape() {
return this.getStringAttribute('shape');
}
set shape(value) {
this._shape = value;
}
// Temporarily expose input value. Use with caution.
get shapeInput() {
return this._shape;
}
get subnetId() {
return this.getStringAttribute('subnet_id');
}
set subnetId(value) {
this._subnetId = value;
}
resetSubnetId() {
this._subnetId = undefined;
}
// Temporarily expose input value. Use with caution.
get subnetIdInput() {
return this._subnetId;
}
get notebookSessionShapeConfigDetails() {
return this._notebookSessionShapeConfigDetails;
}
putNotebookSessionShapeConfigDetails(value) {
this._notebookSessionShapeConfigDetails.internalValue = value;
}
resetNotebookSessionShapeConfigDetails() {
this._notebookSessionShapeConfigDetails.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get notebookSessionShapeConfigDetailsInput() {
return this._notebookSessionShapeConfigDetails.internalValue;
}
}
exports.DatascienceNotebookSessionNotebookSessionConfigDetailsOutputReference = DatascienceNotebookSessionNotebookSessionConfigDetailsOutputReference;
_b = JSII_RTTI_SYMBOL_1;
DatascienceNotebookSessionNotebookSessionConfigDetailsOutputReference[_b] = { fqn: "rhizo-co-terraform-provider-oci.datascienceNotebookSession.DatascienceNotebookSessionNotebookSessionConfigDetailsOutputReference", version: "1.0.0" };
function datascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsToTerraform(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 {
memory_in_gbs: cdktf.numberToTerraform(struct.memoryInGbs),
ocpus: cdktf.numberToTerraform(struct.ocpus),
};
}
exports.datascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsToTerraform = datascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsToTerraform;
function datascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsToHclTerraform(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 = {
memory_in_gbs: {
value: cdktf.numberToHclTerraform(struct.memoryInGbs),
isBlock: false,
type: "simple",
storageClassType: "number",
},
ocpus: {
value: cdktf.numberToHclTerraform(struct.ocpus),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.datascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsToHclTerraform = datascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsToHclTerraform;
class DatascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsOutputReference 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._memoryInGbs !== undefined) {
hasAnyValues = true;
internalValueResult.memoryInGbs = this._memoryInGbs;
}
if (this._ocpus !== undefined) {
hasAnyValues = true;
internalValueResult.ocpus = this._ocpus;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._memoryInGbs = undefined;
this._ocpus = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._memoryInGbs = value.memoryInGbs;
this._ocpus = value.ocpus;
}
}
get memoryInGbs() {
return this.getNumberAttribute('memory_in_gbs');
}
set memoryInGbs(value) {
this._memoryInGbs = value;
}
resetMemoryInGbs() {
this._memoryInGbs = undefined;
}
// Temporarily expose input value. Use with caution.
get memoryInGbsInput() {
return this._memoryInGbs;
}
get ocpus() {
return this.getNumberAttribute('ocpus');
}
set ocpus(value) {
this._ocpus = value;
}
resetOcpus() {
this._ocpus = undefined;
}
// Temporarily expose input value. Use with caution.
get ocpusInput() {
return this._ocpus;
}
}
exports.DatascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsOutputReference = DatascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DatascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.datascienceNotebookSession.DatascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsOutputReference", version: "1.0.0" };
function datascienceNotebookSessionNotebookSessionConfigurationDetailsToTerraform(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 {
block_storage_size_in_gbs: cdktf.numberToTerraform(struct.blockStorageSizeInGbs),
private_endpoint_id: cdktf.stringToTerraform(struct.privateEndpointId),
shape: cdktf.stringToTerraform(struct.shape),
subnet_id: cdktf.stringToTerraform(struct.subnetId),
notebook_session_shape_config_details: datascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsToTerraform(struct.notebookSessionShapeConfigDetails),
};
}
exports.datascienceNotebookSessionNotebookSessionConfigurationDetailsToTerraform = datascienceNotebookSessionNotebookSessionConfigurationDetailsToTerraform;
function datascienceNotebookSessionNotebookSessionConfigurationDetailsToHclTerraform(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 = {
block_storage_size_in_gbs: {
value: cdktf.numberToHclTerraform(struct.blockStorageSizeInGbs),
isBlock: false,
type: "simple",
storageClassType: "number",
},
private_endpoint_id: {
value: cdktf.stringToHclTerraform(struct.privateEndpointId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
shape: {
value: cdktf.stringToHclTerraform(struct.shape),
isBlock: false,
type: "simple",
storageClassType: "string",
},
subnet_id: {
value: cdktf.stringToHclTerraform(struct.subnetId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
notebook_session_shape_config_details: {
value: datascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsToHclTerraform(struct.notebookSessionShapeConfigDetails),
isBlock: true,
type: "list",
storageClassType: "DatascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.datascienceNotebookSessionNotebookSessionConfigurationDetailsToHclTerraform = datascienceNotebookSessionNotebookSessionConfigurationDetailsToHclTerraform;
class DatascienceNotebookSessionNotebookSessionConfigurationDetailsOutputReference 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;
// notebook_session_shape_config_details - computed: false, optional: true, required: false
this._notebookSessionShapeConfigDetails = new DatascienceNotebookSessionNotebookSessionConfigurationDetailsNotebookSessionShapeConfigDetailsOutputReference(this, "notebook_session_shape_config_details");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._blockStorageSizeInGbs !== undefined) {
hasAnyValues = true;
internalValueResult.blockStorageSizeInGbs = this._blockStorageSizeInGbs;
}
if (this._privateEndpointId !== undefined) {
hasAnyValues = true;
internalValueResult.privateEndpointId = this._privateEndpointId;
}
if (this._shape !== undefined) {
hasAnyValues = true;
internalValueResult.shape = this._shape;
}
if (this._subnetId !== undefined) {
hasAnyValues = true;
internalValueResult.subnetId = this._subnetId;
}
if (this._notebookSessionShapeConfigDetails?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.notebookSessionShapeConfigDetails = this._notebookSessionShapeConfigDetails?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._blockStorageSizeInGbs = undefined;
this._privateEndpointId = undefined;
this._shape = undefined;
this._subnetId = undefined;
this._notebookSessionShapeConfigDetails.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._blockStorageSizeInGbs = value.blockStorageSizeInGbs;
this._privateEndpointId = value.privateEndpointId;
this._shape = value.shape;
this._subnetId = value.subnetId;
this._notebookSessionShapeConfigDetails.internalValue = value.notebookSessionShapeConfigDetails;
}
}
get blockStorageSizeInGbs() {
return this.getNumberAttribute('block_storage_size_in_gbs');
}
set blockStorageSizeInGbs(value) {
this._blockStorageSizeInGbs = value;
}
resetBlockStorageSizeInGbs() {
this._blockStorageSizeInGbs = undefined;
}
// Temporarily expose input value. Use with caution.
get blockStorageSizeInGbsInput() {
return this._blockStorageSizeInGbs;
}
get privateEndpointId() {
return this.getStringAttribute('private_endpoint_id');
}
set privateEndpointId(value) {
this._privateEndpointId = value;
}
resetPrivateEndpointId() {
this._privateEndpointId = undefined;
}
// Temporarily expose input value. Use with caution.
get privateEndpointIdInput() {
return this._privateEndpointId;
}
get shape() {
return this.getStringAttribute('shape');
}
set shape(value) {
this._shape = value;
}
// Temporarily expose input value. Use with caution.
get shapeInput() {
return this._shape;
}
get subnetId() {
return this.getStringAttribute('subnet_id');
}
set subnetId(value) {
this._subnetId = value;
}
// Temporarily expose input value. Use with caution.
get subnetIdInput() {
return this._subnetId;
}
get notebookSessionShapeConfigDetails() {
return this._notebookSessionShapeConfigDetails;
}
putNotebookSessionShapeConfigDetails(value) {
this._notebookSessionShapeConfigDetails.internalValue = value;
}
resetNotebookSessionShapeConfigDetails() {
this._notebookSessionShapeConfigDetails.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get notebookSessionShapeConfigDetailsInput() {
return this._notebookSessionShapeConfigDetails.internalValue;
}
}
exports.DatascienceNotebookSessionNotebookSessionConfigurationDetailsOutputReference = DatascienceNotebookSessionNotebookSessionConfigurationDetailsOutputReference;
_d = JSII_RTTI_SYMBOL_1;
DatascienceNotebookSessionNotebookSessionConfigurationDetailsOutputReference[_d] = { fqn: "rhizo-co-terraform-provider-oci.datascienceNotebookSession.DatascienceNotebookSessionNotebookSessionConfigurationDetailsOutputReference", version: "1.0.0" };
function datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionToTerraform(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 {
url: cdktf.stringToTerraform(struct.url),
};
}
exports.datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionToTerraform = datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionToTerraform;
function datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionToHclTerraform(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 = {
url: {
value: cdktf.stringToHclTerraform(struct.url),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionToHclTerraform = datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionToHclTerraform;
class DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionOutputReference 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._url !== undefined) {
hasAnyValues = true;
internalValueResult.url = this._url;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._url = 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._url = value.url;
}
}
get url() {
return this.getStringAttribute('url');
}
set url(value) {
this._url = value;
}
// Temporarily expose input value. Use with caution.
get urlInput() {
return this._url;
}
}
exports.DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionOutputReference = DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.datascienceNotebookSession.DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionOutputReference", version: "1.0.0" };
class DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionList 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 DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionList = DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionList;
_f = JSII_RTTI_SYMBOL_1;
DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionList[_f] = { fqn: "rhizo-co-terraform-provider-oci.datascienceNotebookSession.DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionList", version: "1.0.0" };
function datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsToTerraform(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 {
notebook_session_git_repo_config_collection: cdktf.listMapper(datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionToTerraform, true)(struct.notebookSessionGitRepoConfigCollection),
};
}
exports.datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsToTerraform = datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsToTerraform;
function datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsToHclTerraform(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 = {
notebook_session_git_repo_config_collection: {
value: cdktf.listMapperHcl(datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionToHclTerraform, true)(struct.notebookSessionGitRepoConfigCollection),
isBlock: true,
type: "list",
storageClassType: "DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsToHclTerraform = datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsToHclTerraform;
class DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsOutputReference 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;
// notebook_session_git_repo_config_collection - computed: false, optional: true, required: false
this._notebookSessionGitRepoConfigCollection = new DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsNotebookSessionGitRepoConfigCollectionList(this, "notebook_session_git_repo_config_collection", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._notebookSessionGitRepoConfigCollection?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.notebookSessionGitRepoConfigCollection = this._notebookSessionGitRepoConfigCollection?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._notebookSessionGitRepoConfigCollection.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._notebookSessionGitRepoConfigCollection.internalValue = value.notebookSessionGitRepoConfigCollection;
}
}
get notebookSessionGitRepoConfigCollection() {
return this._notebookSessionGitRepoConfigCollection;
}
putNotebookSessionGitRepoConfigCollection(value) {
this._notebookSessionGitRepoConfigCollection.internalValue = value;
}
resetNotebookSessionGitRepoConfigCollection() {
this._notebookSessionGitRepoConfigCollection.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get notebookSessionGitRepoConfigCollectionInput() {
return this._notebookSessionGitRepoConfigCollection.internalValue;
}
}
exports.DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsOutputReference = DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.datascienceNotebookSession.DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsOutputReference", version: "1.0.0" };
function datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsToTerraform(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_environment_variables: cdktf.hashMapper(cdktf.stringToTerraform)(struct.customEnvironmentVariables),
notebook_session_git_config_details: datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsToTerraform(struct.notebookSessionGitConfigDetails),
};
}
exports.datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsToTerraform = datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsToTerraform;
function datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsToHclTerraform(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_environment_variables: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.customEnvironmentVariables),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
notebook_session_git_config_details: {
value: datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsToHclTerraform(struct.notebookSessionGitConfigDetails),
isBlock: true,
type: "list",
storageClassType: "DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsToHclTerraform = datascienceNotebookSessionNotebookSessionRuntimeConfigDetailsToHclTerraform;
class DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsOutputReference 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;
// notebook_session_git_config_details - computed: false, optional: true, required: false
this._notebookSessionGitConfigDetails = new DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsNotebookSessionGitConfigDetailsOutputReference(this, "notebook_session_git_config_details");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._customEnvironmentVariables !== undefined) {
hasAnyValues = true;
internalValueResult.customEnvironmentVariables = this._customEnvironmentVariables;
}
if (this._notebookSessionGitConfigDetails?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.notebookSessionGitConfigDetails = this._notebookSessionGitConfigDetails?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._customEnvironmentVariables = undefined;
this._notebookSessionGitConfigDetails.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._customEnvironmentVariables = value.customEnvironmentVariables;
this._notebookSessionGitConfigDetails.internalValue = value.notebookSessionGitConfigDetails;
}
}
get customEnvironmentVariables() {
return this.getStringMapAttribute('custom_environment_variables');
}
set customEnvironmentVariables(value) {
this._customEnvironmentVariables = value;
}
resetCustomEnvironmentVariables() {
this._customEnvironmentVariables = undefined;
}
// Temporarily expose input value. Use with caution.
get customEnvironmentVariablesInput() {
return this._customEnvironmentVariables;
}
get notebookSessionGitConfigDetails() {
return this._notebookSessionGitConfigDetails;
}
putNotebookSessionGitConfigDetails(value) {
this._notebookSessionGitConfigDetails.internalValue = value;
}
resetNotebookSessionGitConfigDetails() {
this._notebookSessionGitConfigDetails.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get notebookSessionGitConfigDetailsInput() {
return this._notebookSessionGitConfigDetails.internalValue;
}
}
exports.DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsOutputReference = DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsOutputReference;
_h = JSII_RTTI_SYMBOL_1;
DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.datascienceNotebookSession.DatascienceNotebookSessionNotebookSessionRuntimeConfigDetailsOutputReference", version: "1.0.0" };
function datascienceNotebookSessionNotebookSessionStorageMountConfigurationDetailsListStructToTerraform(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 {
bucket: cdktf.stringToTerraform(struct.bucket),
destination_directory_name: cdktf.stringToTerraform(struct.destinationDirectoryName),
destination_path: cdktf.stringToTerraform(struct.destinationPath),
export_id: cdktf.stringToTerraform(struct.exportId),
mount_target_id: cdktf.stringToTerraform(struct.mountTargetId),
namespace: cdktf.stringToTerraform(struct.namespace),
prefix: cdktf.stringToTerraform(struct.prefix),
storage_type: cdktf.stringToTerraform(struct.storageType),
};
}
exports.datascienceNotebookSessionNotebookSessionStorageMountConfigurationDetailsListStructToTerraform = datascienceNotebookSessionNotebookSessionStorageMountConfigurationDetailsListStructToTerraform;
function datascienceNotebookSessionNotebookSessionStorageMountConfigurationDetailsListStructToHclTerraform(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 = {
bucket: {
value: cdktf.stringToHclTerraform(struct.bucket),
isBlock: false,
type: "simple",
storageClassType: "string",
},
destination_directory_name: {
value: cdktf.stringToHclTerraform(struct.destinationDirectoryName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
destination_path: {
value: cdktf.stringToHclTerraform(struct.destinationPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
export_id: {
value: cdktf.stringToHclTerraform(struct.exportId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
mount_target_id: {
value: cdktf.stringToHclTerraform(struct.mountTargetId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
namespace: {
value: cdktf.stringToHclTerraform(struct.namespace),
isBlock: false,
type: "simple",
storageClassType: "string",
},
prefix: {
value: cdktf.stringToHclTerraform(struct.prefix),
isBlock: false,
type: "simple",
storageClassType: "string",
},
storage_type: {
value: cdktf.stringToHclTerraform(struct.storageType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.datascienceNotebookSessionNotebookSessionStorageMountConfigurationDetailsListStructToHclTerraform = datascienceNotebookSessionNotebookSessionStorageMountConfigurationDetailsListStructToHclTerraform;
class DatascienceNotebookSessionNotebookSessionStorageMountConfigurationDetailsListStructOutputReference 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._bucket !== undefined) {
hasAnyValues = true;
internalValueR