@cdktf/provider-kubernetes
Version:
Prebuilt kubernetes Provider for Terraform CDK (cdktf)
969 lines (968 loc) • 630 kB
JavaScript
"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, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HorizontalPodAutoscalerV2Beta2 = exports.HorizontalPodAutoscalerV2Beta2SpecOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecScaleTargetRefOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricList = exports.HorizontalPodAutoscalerV2Beta2SpecMetricOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricResourceOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricResourceTargetOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricPodsOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricPodsTargetOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricPodsMetricOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricPodsMetricSelectorList = exports.HorizontalPodAutoscalerV2Beta2SpecMetricPodsMetricSelectorOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricPodsMetricSelectorMatchExpressionsList = exports.HorizontalPodAutoscalerV2Beta2SpecMetricPodsMetricSelectorMatchExpressionsOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricObjectOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricObjectTargetOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricObjectMetricOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricObjectMetricSelectorList = exports.HorizontalPodAutoscalerV2Beta2SpecMetricObjectMetricSelectorOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricObjectMetricSelectorMatchExpressionsList = exports.HorizontalPodAutoscalerV2Beta2SpecMetricObjectMetricSelectorMatchExpressionsOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricObjectDescribedObjectOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricExternalOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricExternalTargetOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricExternalMetricOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricExternalMetricSelectorList = exports.HorizontalPodAutoscalerV2Beta2SpecMetricExternalMetricSelectorOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricExternalMetricSelectorMatchExpressionsList = exports.HorizontalPodAutoscalerV2Beta2SpecMetricExternalMetricSelectorMatchExpressionsOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricContainerResourceOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecMetricContainerResourceTargetOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpList = exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyList = exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownList = exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownOutputReference = exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyList = exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyOutputReference = exports.HorizontalPodAutoscalerV2Beta2MetadataOutputReference = void 0;
exports.horizontalPodAutoscalerV2Beta2MetadataToTerraform = horizontalPodAutoscalerV2Beta2MetadataToTerraform;
exports.horizontalPodAutoscalerV2Beta2MetadataToHclTerraform = horizontalPodAutoscalerV2Beta2MetadataToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyToTerraform = horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyToHclTerraform = horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownToTerraform = horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownToHclTerraform = horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyToTerraform = horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyToHclTerraform = horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpToTerraform = horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpToHclTerraform = horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecBehaviorToTerraform = horizontalPodAutoscalerV2Beta2SpecBehaviorToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecBehaviorToHclTerraform = horizontalPodAutoscalerV2Beta2SpecBehaviorToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricContainerResourceTargetToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricContainerResourceTargetToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricContainerResourceTargetToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricContainerResourceTargetToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricContainerResourceToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricContainerResourceToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricContainerResourceToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricContainerResourceToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricExternalMetricSelectorMatchExpressionsToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricExternalMetricSelectorMatchExpressionsToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricExternalMetricSelectorMatchExpressionsToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricExternalMetricSelectorMatchExpressionsToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricExternalMetricSelectorToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricExternalMetricSelectorToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricExternalMetricSelectorToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricExternalMetricSelectorToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricExternalMetricToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricExternalMetricToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricExternalMetricToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricExternalMetricToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricExternalTargetToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricExternalTargetToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricExternalTargetToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricExternalTargetToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricExternalToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricExternalToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricExternalToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricExternalToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricObjectDescribedObjectToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricObjectDescribedObjectToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricObjectDescribedObjectToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricObjectDescribedObjectToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricObjectMetricSelectorMatchExpressionsToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricObjectMetricSelectorMatchExpressionsToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricObjectMetricSelectorMatchExpressionsToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricObjectMetricSelectorMatchExpressionsToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricObjectMetricSelectorToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricObjectMetricSelectorToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricObjectMetricSelectorToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricObjectMetricSelectorToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricObjectMetricToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricObjectMetricToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricObjectMetricToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricObjectMetricToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricObjectTargetToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricObjectTargetToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricObjectTargetToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricObjectTargetToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricObjectToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricObjectToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricObjectToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricObjectToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricPodsMetricSelectorMatchExpressionsToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricPodsMetricSelectorMatchExpressionsToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricPodsMetricSelectorMatchExpressionsToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricPodsMetricSelectorMatchExpressionsToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricPodsMetricSelectorToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricPodsMetricSelectorToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricPodsMetricSelectorToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricPodsMetricSelectorToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricPodsMetricToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricPodsMetricToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricPodsMetricToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricPodsMetricToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricPodsTargetToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricPodsTargetToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricPodsTargetToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricPodsTargetToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricPodsToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricPodsToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricPodsToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricPodsToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricResourceTargetToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricResourceTargetToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricResourceTargetToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricResourceTargetToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricResourceToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricResourceToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricResourceToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricResourceToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricToTerraform = horizontalPodAutoscalerV2Beta2SpecMetricToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecMetricToHclTerraform = horizontalPodAutoscalerV2Beta2SpecMetricToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecScaleTargetRefToTerraform = horizontalPodAutoscalerV2Beta2SpecScaleTargetRefToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecScaleTargetRefToHclTerraform = horizontalPodAutoscalerV2Beta2SpecScaleTargetRefToHclTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecToTerraform = horizontalPodAutoscalerV2Beta2SpecToTerraform;
exports.horizontalPodAutoscalerV2Beta2SpecToHclTerraform = horizontalPodAutoscalerV2Beta2SpecToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function horizontalPodAutoscalerV2Beta2MetadataToTerraform(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 {
annotations: cdktf.hashMapper(cdktf.stringToTerraform)(struct.annotations),
generate_name: cdktf.stringToTerraform(struct.generateName),
labels: cdktf.hashMapper(cdktf.stringToTerraform)(struct.labels),
name: cdktf.stringToTerraform(struct.name),
namespace: cdktf.stringToTerraform(struct.namespace),
};
}
function horizontalPodAutoscalerV2Beta2MetadataToHclTerraform(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 = {
annotations: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.annotations),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
generate_name: {
value: cdktf.stringToHclTerraform(struct.generateName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
labels: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.labels),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
namespace: {
value: cdktf.stringToHclTerraform(struct.namespace),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class HorizontalPodAutoscalerV2Beta2MetadataOutputReference 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._annotations !== undefined) {
hasAnyValues = true;
internalValueResult.annotations = this._annotations;
}
if (this._generateName !== undefined) {
hasAnyValues = true;
internalValueResult.generateName = this._generateName;
}
if (this._labels !== undefined) {
hasAnyValues = true;
internalValueResult.labels = this._labels;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._namespace !== undefined) {
hasAnyValues = true;
internalValueResult.namespace = this._namespace;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._annotations = undefined;
this._generateName = undefined;
this._labels = undefined;
this._name = undefined;
this._namespace = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._annotations = value.annotations;
this._generateName = value.generateName;
this._labels = value.labels;
this._name = value.name;
this._namespace = value.namespace;
}
}
get annotations() {
return this.getStringMapAttribute('annotations');
}
set annotations(value) {
this._annotations = value;
}
resetAnnotations() {
this._annotations = undefined;
}
// Temporarily expose input value. Use with caution.
get annotationsInput() {
return this._annotations;
}
get generateName() {
return this.getStringAttribute('generate_name');
}
set generateName(value) {
this._generateName = value;
}
resetGenerateName() {
this._generateName = undefined;
}
// Temporarily expose input value. Use with caution.
get generateNameInput() {
return this._generateName;
}
// generation - computed: true, optional: false, required: false
get generation() {
return this.getNumberAttribute('generation');
}
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;
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
resetName() {
this._name = undefined;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get namespace() {
return this.getStringAttribute('namespace');
}
set namespace(value) {
this._namespace = value;
}
resetNamespace() {
this._namespace = undefined;
}
// Temporarily expose input value. Use with caution.
get namespaceInput() {
return this._namespace;
}
// resource_version - computed: true, optional: false, required: false
get resourceVersion() {
return this.getStringAttribute('resource_version');
}
// uid - computed: true, optional: false, required: false
get uid() {
return this.getStringAttribute('uid');
}
}
exports.HorizontalPodAutoscalerV2Beta2MetadataOutputReference = HorizontalPodAutoscalerV2Beta2MetadataOutputReference;
_a = JSII_RTTI_SYMBOL_1;
HorizontalPodAutoscalerV2Beta2MetadataOutputReference[_a] = { fqn: "@cdktf/provider-kubernetes.horizontalPodAutoscalerV2Beta2.HorizontalPodAutoscalerV2Beta2MetadataOutputReference", version: "12.1.1" };
function horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyToTerraform(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 {
period_seconds: cdktf.numberToTerraform(struct.periodSeconds),
type: cdktf.stringToTerraform(struct.type),
value: cdktf.numberToTerraform(struct.value),
};
}
function horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyToHclTerraform(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 = {
period_seconds: {
value: cdktf.numberToHclTerraform(struct.periodSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
value: {
value: cdktf.numberToHclTerraform(struct.value),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyOutputReference 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._periodSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.periodSeconds = this._periodSeconds;
}
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._periodSeconds = 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._periodSeconds = value.periodSeconds;
this._type = value.type;
this._value = value.value;
}
}
get periodSeconds() {
return this.getNumberAttribute('period_seconds');
}
set periodSeconds(value) {
this._periodSeconds = value;
}
// Temporarily expose input value. Use with caution.
get periodSecondsInput() {
return this._periodSeconds;
}
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.getNumberAttribute('value');
}
set value(value) {
this._value = value;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyOutputReference = HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyOutputReference;
_b = JSII_RTTI_SYMBOL_1;
HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyOutputReference[_b] = { fqn: "@cdktf/provider-kubernetes.horizontalPodAutoscalerV2Beta2.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyOutputReference", version: "12.1.1" };
class HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyList 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 HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyList = HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyList;
_c = JSII_RTTI_SYMBOL_1;
HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyList[_c] = { fqn: "@cdktf/provider-kubernetes.horizontalPodAutoscalerV2Beta2.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyList", version: "12.1.1" };
function horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownToTerraform(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 {
select_policy: cdktf.stringToTerraform(struct.selectPolicy),
stabilization_window_seconds: cdktf.numberToTerraform(struct.stabilizationWindowSeconds),
policy: cdktf.listMapper(horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyToTerraform, true)(struct.policy),
};
}
function horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownToHclTerraform(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 = {
select_policy: {
value: cdktf.stringToHclTerraform(struct.selectPolicy),
isBlock: false,
type: "simple",
storageClassType: "string",
},
stabilization_window_seconds: {
value: cdktf.numberToHclTerraform(struct.stabilizationWindowSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
policy: {
value: cdktf.listMapperHcl(horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyToHclTerraform, true)(struct.policy),
isBlock: true,
type: "list",
storageClassType: "HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownOutputReference 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;
// policy - computed: false, optional: false, required: true
this._policy = new HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownPolicyList(this, "policy", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._selectPolicy !== undefined) {
hasAnyValues = true;
internalValueResult.selectPolicy = this._selectPolicy;
}
if (this._stabilizationWindowSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.stabilizationWindowSeconds = this._stabilizationWindowSeconds;
}
if (this._policy?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.policy = this._policy?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._selectPolicy = undefined;
this._stabilizationWindowSeconds = undefined;
this._policy.internalValue = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._selectPolicy = value.selectPolicy;
this._stabilizationWindowSeconds = value.stabilizationWindowSeconds;
this._policy.internalValue = value.policy;
}
}
get selectPolicy() {
return this.getStringAttribute('select_policy');
}
set selectPolicy(value) {
this._selectPolicy = value;
}
resetSelectPolicy() {
this._selectPolicy = undefined;
}
// Temporarily expose input value. Use with caution.
get selectPolicyInput() {
return this._selectPolicy;
}
get stabilizationWindowSeconds() {
return this.getNumberAttribute('stabilization_window_seconds');
}
set stabilizationWindowSeconds(value) {
this._stabilizationWindowSeconds = value;
}
resetStabilizationWindowSeconds() {
this._stabilizationWindowSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
get stabilizationWindowSecondsInput() {
return this._stabilizationWindowSeconds;
}
get policy() {
return this._policy;
}
putPolicy(value) {
this._policy.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get policyInput() {
return this._policy.internalValue;
}
}
exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownOutputReference = HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownOutputReference;
_d = JSII_RTTI_SYMBOL_1;
HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownOutputReference[_d] = { fqn: "@cdktf/provider-kubernetes.horizontalPodAutoscalerV2Beta2.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownOutputReference", version: "12.1.1" };
class HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownList 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 HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownList = HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownList;
_e = JSII_RTTI_SYMBOL_1;
HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownList[_e] = { fqn: "@cdktf/provider-kubernetes.horizontalPodAutoscalerV2Beta2.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownList", version: "12.1.1" };
function horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyToTerraform(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 {
period_seconds: cdktf.numberToTerraform(struct.periodSeconds),
type: cdktf.stringToTerraform(struct.type),
value: cdktf.numberToTerraform(struct.value),
};
}
function horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyToHclTerraform(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 = {
period_seconds: {
value: cdktf.numberToHclTerraform(struct.periodSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
value: {
value: cdktf.numberToHclTerraform(struct.value),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyOutputReference 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._periodSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.periodSeconds = this._periodSeconds;
}
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._periodSeconds = 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._periodSeconds = value.periodSeconds;
this._type = value.type;
this._value = value.value;
}
}
get periodSeconds() {
return this.getNumberAttribute('period_seconds');
}
set periodSeconds(value) {
this._periodSeconds = value;
}
// Temporarily expose input value. Use with caution.
get periodSecondsInput() {
return this._periodSeconds;
}
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.getNumberAttribute('value');
}
set value(value) {
this._value = value;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyOutputReference = HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyOutputReference;
_f = JSII_RTTI_SYMBOL_1;
HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyOutputReference[_f] = { fqn: "@cdktf/provider-kubernetes.horizontalPodAutoscalerV2Beta2.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyOutputReference", version: "12.1.1" };
class HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyList 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 HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyList = HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyList;
_g = JSII_RTTI_SYMBOL_1;
HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyList[_g] = { fqn: "@cdktf/provider-kubernetes.horizontalPodAutoscalerV2Beta2.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyList", version: "12.1.1" };
function horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpToTerraform(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 {
select_policy: cdktf.stringToTerraform(struct.selectPolicy),
stabilization_window_seconds: cdktf.numberToTerraform(struct.stabilizationWindowSeconds),
policy: cdktf.listMapper(horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyToTerraform, true)(struct.policy),
};
}
function horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpToHclTerraform(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 = {
select_policy: {
value: cdktf.stringToHclTerraform(struct.selectPolicy),
isBlock: false,
type: "simple",
storageClassType: "string",
},
stabilization_window_seconds: {
value: cdktf.numberToHclTerraform(struct.stabilizationWindowSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
policy: {
value: cdktf.listMapperHcl(horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyToHclTerraform, true)(struct.policy),
isBlock: true,
type: "list",
storageClassType: "HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpOutputReference 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;
// policy - computed: false, optional: false, required: true
this._policy = new HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpPolicyList(this, "policy", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._selectPolicy !== undefined) {
hasAnyValues = true;
internalValueResult.selectPolicy = this._selectPolicy;
}
if (this._stabilizationWindowSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.stabilizationWindowSeconds = this._stabilizationWindowSeconds;
}
if (this._policy?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.policy = this._policy?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._selectPolicy = undefined;
this._stabilizationWindowSeconds = undefined;
this._policy.internalValue = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._selectPolicy = value.selectPolicy;
this._stabilizationWindowSeconds = value.stabilizationWindowSeconds;
this._policy.internalValue = value.policy;
}
}
get selectPolicy() {
return this.getStringAttribute('select_policy');
}
set selectPolicy(value) {
this._selectPolicy = value;
}
resetSelectPolicy() {
this._selectPolicy = undefined;
}
// Temporarily expose input value. Use with caution.
get selectPolicyInput() {
return this._selectPolicy;
}
get stabilizationWindowSeconds() {
return this.getNumberAttribute('stabilization_window_seconds');
}
set stabilizationWindowSeconds(value) {
this._stabilizationWindowSeconds = value;
}
resetStabilizationWindowSeconds() {
this._stabilizationWindowSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
get stabilizationWindowSecondsInput() {
return this._stabilizationWindowSeconds;
}
get policy() {
return this._policy;
}
putPolicy(value) {
this._policy.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get policyInput() {
return this._policy.internalValue;
}
}
exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpOutputReference = HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpOutputReference;
_h = JSII_RTTI_SYMBOL_1;
HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpOutputReference[_h] = { fqn: "@cdktf/provider-kubernetes.horizontalPodAutoscalerV2Beta2.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpOutputReference", version: "12.1.1" };
class HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpList 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 HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpList = HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpList;
_j = JSII_RTTI_SYMBOL_1;
HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpList[_j] = { fqn: "@cdktf/provider-kubernetes.horizontalPodAutoscalerV2Beta2.HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpList", version: "12.1.1" };
function horizontalPodAutoscalerV2Beta2SpecBehaviorToTerraform(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 {
scale_down: cdktf.listMapper(horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownToTerraform, true)(struct.scaleDown),
scale_up: cdktf.listMapper(horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpToTerraform, true)(struct.scaleUp),
};
}
function horizontalPodAutoscalerV2Beta2SpecBehaviorToHclTerraform(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 = {
scale_down: {
value: cdktf.listMapperHcl(horizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownToHclTerraform, true)(struct.scaleDown),
isBlock: true,
type: "list",
storageClassType: "HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownList",
},
scale_up: {
value: cdktf.listMapperHcl(horizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpToHclTerraform, true)(struct.scaleUp),
isBlock: true,
type: "list",
storageClassType: "HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class HorizontalPodAutoscalerV2Beta2SpecBehaviorOutputReference 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;
// scale_down - computed: false, optional: true, required: false
this._scaleDown = new HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleDownList(this, "scale_down", false);
// scale_up - computed: false, optional: true, required: false
this._scaleUp = new HorizontalPodAutoscalerV2Beta2SpecBehaviorScaleUpList(this, "scale_up", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._scaleDown?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.scaleDown = this._scaleDown?.internalValue;
}
if (this._scaleUp?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.scaleUp = this._scaleUp?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._scaleDown.internalValue = undefined;
this._scaleUp.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._scaleDown.internalValue = value.scaleDown;
this._scaleUp.internalValue = value.scaleUp;
}
}
get scaleDown() {
return this._scaleDown;
}
putScaleDown(value) {
this._scaleDown.internalValue = value;
}
resetScaleDown() {
this._scaleDown.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get scaleDownInput() {
return this._scaleDown.internalValue;
}
get scaleUp() {
return this._scaleUp;
}
putScaleUp(value) {
this._scaleUp.internalValue = value;
}
resetScaleUp() {
this._scaleUp.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get scaleUpInput() {