@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,051 lines • 592 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;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OsConfigPatchDeployment = exports.OsConfigPatchDeploymentTimeoutsOutputReference = exports.OsConfigPatchDeploymentRolloutOutputReference = exports.OsConfigPatchDeploymentRolloutDisruptionBudgetOutputReference = exports.OsConfigPatchDeploymentRecurringScheduleOutputReference = exports.OsConfigPatchDeploymentRecurringScheduleWeeklyOutputReference = exports.OsConfigPatchDeploymentRecurringScheduleTimeZoneOutputReference = exports.OsConfigPatchDeploymentRecurringScheduleTimeOfDayOutputReference = exports.OsConfigPatchDeploymentRecurringScheduleMonthlyOutputReference = exports.OsConfigPatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthOutputReference = exports.OsConfigPatchDeploymentPatchConfigOutputReference = exports.OsConfigPatchDeploymentPatchConfigZypperOutputReference = exports.OsConfigPatchDeploymentPatchConfigYumOutputReference = exports.OsConfigPatchDeploymentPatchConfigWindowsUpdateOutputReference = exports.OsConfigPatchDeploymentPatchConfigPreStepOutputReference = exports.OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigOutputReference = exports.OsConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObjectOutputReference = exports.OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigOutputReference = exports.OsConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObjectOutputReference = exports.OsConfigPatchDeploymentPatchConfigPostStepOutputReference = exports.OsConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigOutputReference = exports.OsConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectOutputReference = exports.OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigOutputReference = exports.OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectOutputReference = exports.OsConfigPatchDeploymentPatchConfigGooOutputReference = exports.OsConfigPatchDeploymentPatchConfigAptOutputReference = exports.OsConfigPatchDeploymentOneTimeScheduleOutputReference = exports.OsConfigPatchDeploymentInstanceFilterOutputReference = exports.OsConfigPatchDeploymentInstanceFilterGroupLabelsList = exports.OsConfigPatchDeploymentInstanceFilterGroupLabelsOutputReference = void 0;
exports.osConfigPatchDeploymentInstanceFilterGroupLabelsToTerraform = osConfigPatchDeploymentInstanceFilterGroupLabelsToTerraform;
exports.osConfigPatchDeploymentInstanceFilterGroupLabelsToHclTerraform = osConfigPatchDeploymentInstanceFilterGroupLabelsToHclTerraform;
exports.osConfigPatchDeploymentInstanceFilterToTerraform = osConfigPatchDeploymentInstanceFilterToTerraform;
exports.osConfigPatchDeploymentInstanceFilterToHclTerraform = osConfigPatchDeploymentInstanceFilterToHclTerraform;
exports.osConfigPatchDeploymentOneTimeScheduleToTerraform = osConfigPatchDeploymentOneTimeScheduleToTerraform;
exports.osConfigPatchDeploymentOneTimeScheduleToHclTerraform = osConfigPatchDeploymentOneTimeScheduleToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigAptToTerraform = osConfigPatchDeploymentPatchConfigAptToTerraform;
exports.osConfigPatchDeploymentPatchConfigAptToHclTerraform = osConfigPatchDeploymentPatchConfigAptToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigGooToTerraform = osConfigPatchDeploymentPatchConfigGooToTerraform;
exports.osConfigPatchDeploymentPatchConfigGooToHclTerraform = osConfigPatchDeploymentPatchConfigGooToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectToTerraform = osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectToTerraform;
exports.osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectToHclTerraform = osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigToTerraform = osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigToTerraform;
exports.osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigToHclTerraform = osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectToTerraform = osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectToTerraform;
exports.osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectToHclTerraform = osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigToTerraform = osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigToTerraform;
exports.osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigToHclTerraform = osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigPostStepToTerraform = osConfigPatchDeploymentPatchConfigPostStepToTerraform;
exports.osConfigPatchDeploymentPatchConfigPostStepToHclTerraform = osConfigPatchDeploymentPatchConfigPostStepToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObjectToTerraform = osConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObjectToTerraform;
exports.osConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObjectToHclTerraform = osConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigGcsObjectToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigToTerraform = osConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigToTerraform;
exports.osConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigToHclTerraform = osConfigPatchDeploymentPatchConfigPreStepLinuxExecStepConfigToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObjectToTerraform = osConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObjectToTerraform;
exports.osConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObjectToHclTerraform = osConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigGcsObjectToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigToTerraform = osConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigToTerraform;
exports.osConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigToHclTerraform = osConfigPatchDeploymentPatchConfigPreStepWindowsExecStepConfigToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigPreStepToTerraform = osConfigPatchDeploymentPatchConfigPreStepToTerraform;
exports.osConfigPatchDeploymentPatchConfigPreStepToHclTerraform = osConfigPatchDeploymentPatchConfigPreStepToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigWindowsUpdateToTerraform = osConfigPatchDeploymentPatchConfigWindowsUpdateToTerraform;
exports.osConfigPatchDeploymentPatchConfigWindowsUpdateToHclTerraform = osConfigPatchDeploymentPatchConfigWindowsUpdateToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigYumToTerraform = osConfigPatchDeploymentPatchConfigYumToTerraform;
exports.osConfigPatchDeploymentPatchConfigYumToHclTerraform = osConfigPatchDeploymentPatchConfigYumToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigZypperToTerraform = osConfigPatchDeploymentPatchConfigZypperToTerraform;
exports.osConfigPatchDeploymentPatchConfigZypperToHclTerraform = osConfigPatchDeploymentPatchConfigZypperToHclTerraform;
exports.osConfigPatchDeploymentPatchConfigToTerraform = osConfigPatchDeploymentPatchConfigToTerraform;
exports.osConfigPatchDeploymentPatchConfigToHclTerraform = osConfigPatchDeploymentPatchConfigToHclTerraform;
exports.osConfigPatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthToTerraform = osConfigPatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthToTerraform;
exports.osConfigPatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthToHclTerraform = osConfigPatchDeploymentRecurringScheduleMonthlyWeekDayOfMonthToHclTerraform;
exports.osConfigPatchDeploymentRecurringScheduleMonthlyToTerraform = osConfigPatchDeploymentRecurringScheduleMonthlyToTerraform;
exports.osConfigPatchDeploymentRecurringScheduleMonthlyToHclTerraform = osConfigPatchDeploymentRecurringScheduleMonthlyToHclTerraform;
exports.osConfigPatchDeploymentRecurringScheduleTimeOfDayToTerraform = osConfigPatchDeploymentRecurringScheduleTimeOfDayToTerraform;
exports.osConfigPatchDeploymentRecurringScheduleTimeOfDayToHclTerraform = osConfigPatchDeploymentRecurringScheduleTimeOfDayToHclTerraform;
exports.osConfigPatchDeploymentRecurringScheduleTimeZoneToTerraform = osConfigPatchDeploymentRecurringScheduleTimeZoneToTerraform;
exports.osConfigPatchDeploymentRecurringScheduleTimeZoneToHclTerraform = osConfigPatchDeploymentRecurringScheduleTimeZoneToHclTerraform;
exports.osConfigPatchDeploymentRecurringScheduleWeeklyToTerraform = osConfigPatchDeploymentRecurringScheduleWeeklyToTerraform;
exports.osConfigPatchDeploymentRecurringScheduleWeeklyToHclTerraform = osConfigPatchDeploymentRecurringScheduleWeeklyToHclTerraform;
exports.osConfigPatchDeploymentRecurringScheduleToTerraform = osConfigPatchDeploymentRecurringScheduleToTerraform;
exports.osConfigPatchDeploymentRecurringScheduleToHclTerraform = osConfigPatchDeploymentRecurringScheduleToHclTerraform;
exports.osConfigPatchDeploymentRolloutDisruptionBudgetToTerraform = osConfigPatchDeploymentRolloutDisruptionBudgetToTerraform;
exports.osConfigPatchDeploymentRolloutDisruptionBudgetToHclTerraform = osConfigPatchDeploymentRolloutDisruptionBudgetToHclTerraform;
exports.osConfigPatchDeploymentRolloutToTerraform = osConfigPatchDeploymentRolloutToTerraform;
exports.osConfigPatchDeploymentRolloutToHclTerraform = osConfigPatchDeploymentRolloutToHclTerraform;
exports.osConfigPatchDeploymentTimeoutsToTerraform = osConfigPatchDeploymentTimeoutsToTerraform;
exports.osConfigPatchDeploymentTimeoutsToHclTerraform = osConfigPatchDeploymentTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function osConfigPatchDeploymentInstanceFilterGroupLabelsToTerraform(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 {
labels: cdktf.hashMapper(cdktf.stringToTerraform)(struct.labels),
};
}
function osConfigPatchDeploymentInstanceFilterGroupLabelsToHclTerraform(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 = {
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 OsConfigPatchDeploymentInstanceFilterGroupLabelsOutputReference 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._labels !== undefined) {
hasAnyValues = true;
internalValueResult.labels = this._labels;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._labels = 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._labels = value.labels;
}
}
get labels() {
return this.getStringMapAttribute('labels');
}
set labels(value) {
this._labels = value;
}
// Temporarily expose input value. Use with caution.
get labelsInput() {
return this._labels;
}
}
exports.OsConfigPatchDeploymentInstanceFilterGroupLabelsOutputReference = OsConfigPatchDeploymentInstanceFilterGroupLabelsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
OsConfigPatchDeploymentInstanceFilterGroupLabelsOutputReference[_a] = { fqn: "@cdktf/provider-google.osConfigPatchDeployment.OsConfigPatchDeploymentInstanceFilterGroupLabelsOutputReference", version: "14.35.0" };
class OsConfigPatchDeploymentInstanceFilterGroupLabelsList 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 OsConfigPatchDeploymentInstanceFilterGroupLabelsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.OsConfigPatchDeploymentInstanceFilterGroupLabelsList = OsConfigPatchDeploymentInstanceFilterGroupLabelsList;
_b = JSII_RTTI_SYMBOL_1;
OsConfigPatchDeploymentInstanceFilterGroupLabelsList[_b] = { fqn: "@cdktf/provider-google.osConfigPatchDeployment.OsConfigPatchDeploymentInstanceFilterGroupLabelsList", version: "14.35.0" };
function osConfigPatchDeploymentInstanceFilterToTerraform(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 {
all: cdktf.booleanToTerraform(struct.all),
instance_name_prefixes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.instanceNamePrefixes),
instances: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.instances),
zones: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.zones),
group_labels: cdktf.listMapper(osConfigPatchDeploymentInstanceFilterGroupLabelsToTerraform, true)(struct.groupLabels),
};
}
function osConfigPatchDeploymentInstanceFilterToHclTerraform(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 = {
all: {
value: cdktf.booleanToHclTerraform(struct.all),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
instance_name_prefixes: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.instanceNamePrefixes),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
instances: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.instances),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
zones: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.zones),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
group_labels: {
value: cdktf.listMapperHcl(osConfigPatchDeploymentInstanceFilterGroupLabelsToHclTerraform, true)(struct.groupLabels),
isBlock: true,
type: "list",
storageClassType: "OsConfigPatchDeploymentInstanceFilterGroupLabelsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class OsConfigPatchDeploymentInstanceFilterOutputReference 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;
// group_labels - computed: false, optional: true, required: false
this._groupLabels = new OsConfigPatchDeploymentInstanceFilterGroupLabelsList(this, "group_labels", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._all !== undefined) {
hasAnyValues = true;
internalValueResult.all = this._all;
}
if (this._instanceNamePrefixes !== undefined) {
hasAnyValues = true;
internalValueResult.instanceNamePrefixes = this._instanceNamePrefixes;
}
if (this._instances !== undefined) {
hasAnyValues = true;
internalValueResult.instances = this._instances;
}
if (this._zones !== undefined) {
hasAnyValues = true;
internalValueResult.zones = this._zones;
}
if (this._groupLabels?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.groupLabels = this._groupLabels?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._all = undefined;
this._instanceNamePrefixes = undefined;
this._instances = undefined;
this._zones = undefined;
this._groupLabels.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._all = value.all;
this._instanceNamePrefixes = value.instanceNamePrefixes;
this._instances = value.instances;
this._zones = value.zones;
this._groupLabels.internalValue = value.groupLabels;
}
}
get all() {
return this.getBooleanAttribute('all');
}
set all(value) {
this._all = value;
}
resetAll() {
this._all = undefined;
}
// Temporarily expose input value. Use with caution.
get allInput() {
return this._all;
}
get instanceNamePrefixes() {
return this.getListAttribute('instance_name_prefixes');
}
set instanceNamePrefixes(value) {
this._instanceNamePrefixes = value;
}
resetInstanceNamePrefixes() {
this._instanceNamePrefixes = undefined;
}
// Temporarily expose input value. Use with caution.
get instanceNamePrefixesInput() {
return this._instanceNamePrefixes;
}
get instances() {
return this.getListAttribute('instances');
}
set instances(value) {
this._instances = value;
}
resetInstances() {
this._instances = undefined;
}
// Temporarily expose input value. Use with caution.
get instancesInput() {
return this._instances;
}
get zones() {
return this.getListAttribute('zones');
}
set zones(value) {
this._zones = value;
}
resetZones() {
this._zones = undefined;
}
// Temporarily expose input value. Use with caution.
get zonesInput() {
return this._zones;
}
get groupLabels() {
return this._groupLabels;
}
putGroupLabels(value) {
this._groupLabels.internalValue = value;
}
resetGroupLabels() {
this._groupLabels.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get groupLabelsInput() {
return this._groupLabels.internalValue;
}
}
exports.OsConfigPatchDeploymentInstanceFilterOutputReference = OsConfigPatchDeploymentInstanceFilterOutputReference;
_c = JSII_RTTI_SYMBOL_1;
OsConfigPatchDeploymentInstanceFilterOutputReference[_c] = { fqn: "@cdktf/provider-google.osConfigPatchDeployment.OsConfigPatchDeploymentInstanceFilterOutputReference", version: "14.35.0" };
function osConfigPatchDeploymentOneTimeScheduleToTerraform(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 {
execute_time: cdktf.stringToTerraform(struct.executeTime),
};
}
function osConfigPatchDeploymentOneTimeScheduleToHclTerraform(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 = {
execute_time: {
value: cdktf.stringToHclTerraform(struct.executeTime),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class OsConfigPatchDeploymentOneTimeScheduleOutputReference 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._executeTime !== undefined) {
hasAnyValues = true;
internalValueResult.executeTime = this._executeTime;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._executeTime = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._executeTime = value.executeTime;
}
}
get executeTime() {
return this.getStringAttribute('execute_time');
}
set executeTime(value) {
this._executeTime = value;
}
// Temporarily expose input value. Use with caution.
get executeTimeInput() {
return this._executeTime;
}
}
exports.OsConfigPatchDeploymentOneTimeScheduleOutputReference = OsConfigPatchDeploymentOneTimeScheduleOutputReference;
_d = JSII_RTTI_SYMBOL_1;
OsConfigPatchDeploymentOneTimeScheduleOutputReference[_d] = { fqn: "@cdktf/provider-google.osConfigPatchDeployment.OsConfigPatchDeploymentOneTimeScheduleOutputReference", version: "14.35.0" };
function osConfigPatchDeploymentPatchConfigAptToTerraform(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 {
excludes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.excludes),
exclusive_packages: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.exclusivePackages),
type: cdktf.stringToTerraform(struct.type),
};
}
function osConfigPatchDeploymentPatchConfigAptToHclTerraform(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 = {
excludes: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.excludes),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
exclusive_packages: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.exclusivePackages),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
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 OsConfigPatchDeploymentPatchConfigAptOutputReference 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._excludes !== undefined) {
hasAnyValues = true;
internalValueResult.excludes = this._excludes;
}
if (this._exclusivePackages !== undefined) {
hasAnyValues = true;
internalValueResult.exclusivePackages = this._exclusivePackages;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._excludes = undefined;
this._exclusivePackages = undefined;
this._type = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._excludes = value.excludes;
this._exclusivePackages = value.exclusivePackages;
this._type = value.type;
}
}
get excludes() {
return this.getListAttribute('excludes');
}
set excludes(value) {
this._excludes = value;
}
resetExcludes() {
this._excludes = undefined;
}
// Temporarily expose input value. Use with caution.
get excludesInput() {
return this._excludes;
}
get exclusivePackages() {
return this.getListAttribute('exclusive_packages');
}
set exclusivePackages(value) {
this._exclusivePackages = value;
}
resetExclusivePackages() {
this._exclusivePackages = undefined;
}
// Temporarily expose input value. Use with caution.
get exclusivePackagesInput() {
return this._exclusivePackages;
}
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.OsConfigPatchDeploymentPatchConfigAptOutputReference = OsConfigPatchDeploymentPatchConfigAptOutputReference;
_e = JSII_RTTI_SYMBOL_1;
OsConfigPatchDeploymentPatchConfigAptOutputReference[_e] = { fqn: "@cdktf/provider-google.osConfigPatchDeployment.OsConfigPatchDeploymentPatchConfigAptOutputReference", version: "14.35.0" };
function osConfigPatchDeploymentPatchConfigGooToTerraform(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 {
enabled: cdktf.booleanToTerraform(struct.enabled),
};
}
function osConfigPatchDeploymentPatchConfigGooToHclTerraform(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 = {
enabled: {
value: cdktf.booleanToHclTerraform(struct.enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class OsConfigPatchDeploymentPatchConfigGooOutputReference 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._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
}
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
}
exports.OsConfigPatchDeploymentPatchConfigGooOutputReference = OsConfigPatchDeploymentPatchConfigGooOutputReference;
_f = JSII_RTTI_SYMBOL_1;
OsConfigPatchDeploymentPatchConfigGooOutputReference[_f] = { fqn: "@cdktf/provider-google.osConfigPatchDeployment.OsConfigPatchDeploymentPatchConfigGooOutputReference", version: "14.35.0" };
function osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectToTerraform(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),
generation_number: cdktf.stringToTerraform(struct.generationNumber),
object: cdktf.stringToTerraform(struct.object),
};
}
function osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectToHclTerraform(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",
},
generation_number: {
value: cdktf.stringToHclTerraform(struct.generationNumber),
isBlock: false,
type: "simple",
storageClassType: "string",
},
object: {
value: cdktf.stringToHclTerraform(struct.object),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectOutputReference 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._bucket !== undefined) {
hasAnyValues = true;
internalValueResult.bucket = this._bucket;
}
if (this._generationNumber !== undefined) {
hasAnyValues = true;
internalValueResult.generationNumber = this._generationNumber;
}
if (this._object !== undefined) {
hasAnyValues = true;
internalValueResult.object = this._object;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._bucket = undefined;
this._generationNumber = undefined;
this._object = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._bucket = value.bucket;
this._generationNumber = value.generationNumber;
this._object = value.object;
}
}
get bucket() {
return this.getStringAttribute('bucket');
}
set bucket(value) {
this._bucket = value;
}
// Temporarily expose input value. Use with caution.
get bucketInput() {
return this._bucket;
}
get generationNumber() {
return this.getStringAttribute('generation_number');
}
set generationNumber(value) {
this._generationNumber = value;
}
// Temporarily expose input value. Use with caution.
get generationNumberInput() {
return this._generationNumber;
}
get object() {
return this.getStringAttribute('object');
}
set object(value) {
this._object = value;
}
// Temporarily expose input value. Use with caution.
get objectInput() {
return this._object;
}
}
exports.OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectOutputReference = OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectOutputReference;
_g = JSII_RTTI_SYMBOL_1;
OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectOutputReference[_g] = { fqn: "@cdktf/provider-google.osConfigPatchDeployment.OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectOutputReference", version: "14.35.0" };
function osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigToTerraform(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 {
allowed_success_codes: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.allowedSuccessCodes),
interpreter: cdktf.stringToTerraform(struct.interpreter),
local_path: cdktf.stringToTerraform(struct.localPath),
gcs_object: osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectToTerraform(struct.gcsObject),
};
}
function osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigToHclTerraform(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 = {
allowed_success_codes: {
value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.allowedSuccessCodes),
isBlock: false,
type: "list",
storageClassType: "numberList",
},
interpreter: {
value: cdktf.stringToHclTerraform(struct.interpreter),
isBlock: false,
type: "simple",
storageClassType: "string",
},
local_path: {
value: cdktf.stringToHclTerraform(struct.localPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
gcs_object: {
value: osConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectToHclTerraform(struct.gcsObject),
isBlock: true,
type: "list",
storageClassType: "OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigOutputReference 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;
// gcs_object - computed: false, optional: true, required: false
this._gcsObject = new OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigGcsObjectOutputReference(this, "gcs_object");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._allowedSuccessCodes !== undefined) {
hasAnyValues = true;
internalValueResult.allowedSuccessCodes = this._allowedSuccessCodes;
}
if (this._interpreter !== undefined) {
hasAnyValues = true;
internalValueResult.interpreter = this._interpreter;
}
if (this._localPath !== undefined) {
hasAnyValues = true;
internalValueResult.localPath = this._localPath;
}
if (this._gcsObject?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.gcsObject = this._gcsObject?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._allowedSuccessCodes = undefined;
this._interpreter = undefined;
this._localPath = undefined;
this._gcsObject.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._allowedSuccessCodes = value.allowedSuccessCodes;
this._interpreter = value.interpreter;
this._localPath = value.localPath;
this._gcsObject.internalValue = value.gcsObject;
}
}
get allowedSuccessCodes() {
return this.getNumberListAttribute('allowed_success_codes');
}
set allowedSuccessCodes(value) {
this._allowedSuccessCodes = value;
}
resetAllowedSuccessCodes() {
this._allowedSuccessCodes = undefined;
}
// Temporarily expose input value. Use with caution.
get allowedSuccessCodesInput() {
return this._allowedSuccessCodes;
}
get interpreter() {
return this.getStringAttribute('interpreter');
}
set interpreter(value) {
this._interpreter = value;
}
resetInterpreter() {
this._interpreter = undefined;
}
// Temporarily expose input value. Use with caution.
get interpreterInput() {
return this._interpreter;
}
get localPath() {
return this.getStringAttribute('local_path');
}
set localPath(value) {
this._localPath = value;
}
resetLocalPath() {
this._localPath = undefined;
}
// Temporarily expose input value. Use with caution.
get localPathInput() {
return this._localPath;
}
get gcsObject() {
return this._gcsObject;
}
putGcsObject(value) {
this._gcsObject.internalValue = value;
}
resetGcsObject() {
this._gcsObject.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get gcsObjectInput() {
return this._gcsObject.internalValue;
}
}
exports.OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigOutputReference = OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigOutputReference;
_h = JSII_RTTI_SYMBOL_1;
OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigOutputReference[_h] = { fqn: "@cdktf/provider-google.osConfigPatchDeployment.OsConfigPatchDeploymentPatchConfigPostStepLinuxExecStepConfigOutputReference", version: "14.35.0" };
function osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectToTerraform(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),
generation_number: cdktf.stringToTerraform(struct.generationNumber),
object: cdktf.stringToTerraform(struct.object),
};
}
function osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectToHclTerraform(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",
},
generation_number: {
value: cdktf.stringToHclTerraform(struct.generationNumber),
isBlock: false,
type: "simple",
storageClassType: "string",
},
object: {
value: cdktf.stringToHclTerraform(struct.object),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class OsConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectOutputReference 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._bucket !== undefined) {
hasAnyValues = true;
internalValueResult.bucket = this._bucket;
}
if (this._generationNumber !== undefined) {
hasAnyValues = true;
internalValueResult.generationNumber = this._generationNumber;
}
if (this._object !== undefined) {
hasAnyValues = true;
internalValueResult.object = this._object;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._bucket = undefined;
this._generationNumber = undefined;
this._object = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._bucket = value.bucket;
this._generationNumber = value.generationNumber;
this._object = value.object;
}
}
get bucket() {
return this.getStringAttribute('bucket');
}
set bucket(value) {
this._bucket = value;
}
// Temporarily expose input value. Use with caution.
get bucketInput() {
return this._bucket;
}
get generationNumber() {
return this.getStringAttribute('generation_number');
}
set generationNumber(value) {
this._generationNumber = value;
}
// Temporarily expose input value. Use with caution.
get generationNumberInput() {
return this._generationNumber;
}
get object() {
return this.getStringAttribute('object');
}
set object(value) {
this._object = value;
}
// Temporarily expose input value. Use with caution.
get objectInput() {
return this._object;
}
}
exports.OsConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectOutputReference = OsConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectOutputReference;
_j = JSII_RTTI_SYMBOL_1;
OsConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectOutputReference[_j] = { fqn: "@cdktf/provider-google.osConfigPatchDeployment.OsConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectOutputReference", version: "14.35.0" };
function osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigToTerraform(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 {
allowed_success_codes: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.allowedSuccessCodes),
interpreter: cdktf.stringToTerraform(struct.interpreter),
local_path: cdktf.stringToTerraform(struct.localPath),
gcs_object: osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectToTerraform(struct.gcsObject),
};
}
function osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigToHclTerraform(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 = {
allowed_success_codes: {
value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.allowedSuccessCodes),
isBlock: false,
type: "list",
storageClassType: "numberList",
},
interpreter: {
value: cdktf.stringToHclTerraform(struct.interpreter),
isBlock: false,
type: "simple",
storageClassType: "string",
},
local_path: {
value: cdktf.stringToHclTerraform(struct.localPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
gcs_object: {
value: osConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectToHclTerraform(struct.gcsObject),
isBlock: true,
type: "list",
storageClassType: "OsConfigPatchDeploymentPatchConfigPostStepWindowsExecStepConfigGcsObjectList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs)