@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,132 lines • 351 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;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClouddeployDeployPolicy = exports.ClouddeployDeployPolicyTimeoutsOutputReference = exports.ClouddeployDeployPolicySelectorsList = exports.ClouddeployDeployPolicySelectorsOutputReference = exports.ClouddeployDeployPolicySelectorsTargetOutputReference = exports.ClouddeployDeployPolicySelectorsDeliveryPipelineOutputReference = exports.ClouddeployDeployPolicyRulesList = exports.ClouddeployDeployPolicyRulesOutputReference = exports.ClouddeployDeployPolicyRulesRolloutRestrictionOutputReference = exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOutputReference = exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsList = exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsOutputReference = exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeOutputReference = exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeOutputReference = exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsList = exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsOutputReference = exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeOutputReference = exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateOutputReference = exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeOutputReference = exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateOutputReference = void 0;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateToTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateToTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateToHclTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateToHclTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeToTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeToTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeToHclTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeToHclTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateToTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateToTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateToHclTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateToHclTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeToTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeToTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeToHclTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeToHclTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsToTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsToTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsToHclTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsToHclTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeToTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeToTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeToHclTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeToHclTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeToTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeToTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeToHclTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeToHclTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsToTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsToTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsToHclTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsToHclTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsToTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsToTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsToHclTerraform = clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsToHclTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionToTerraform = clouddeployDeployPolicyRulesRolloutRestrictionToTerraform;
exports.clouddeployDeployPolicyRulesRolloutRestrictionToHclTerraform = clouddeployDeployPolicyRulesRolloutRestrictionToHclTerraform;
exports.clouddeployDeployPolicyRulesToTerraform = clouddeployDeployPolicyRulesToTerraform;
exports.clouddeployDeployPolicyRulesToHclTerraform = clouddeployDeployPolicyRulesToHclTerraform;
exports.clouddeployDeployPolicySelectorsDeliveryPipelineToTerraform = clouddeployDeployPolicySelectorsDeliveryPipelineToTerraform;
exports.clouddeployDeployPolicySelectorsDeliveryPipelineToHclTerraform = clouddeployDeployPolicySelectorsDeliveryPipelineToHclTerraform;
exports.clouddeployDeployPolicySelectorsTargetToTerraform = clouddeployDeployPolicySelectorsTargetToTerraform;
exports.clouddeployDeployPolicySelectorsTargetToHclTerraform = clouddeployDeployPolicySelectorsTargetToHclTerraform;
exports.clouddeployDeployPolicySelectorsToTerraform = clouddeployDeployPolicySelectorsToTerraform;
exports.clouddeployDeployPolicySelectorsToHclTerraform = clouddeployDeployPolicySelectorsToHclTerraform;
exports.clouddeployDeployPolicyTimeoutsToTerraform = clouddeployDeployPolicyTimeoutsToTerraform;
exports.clouddeployDeployPolicyTimeoutsToHclTerraform = clouddeployDeployPolicyTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateToTerraform(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 {
day: cdktf.numberToTerraform(struct.day),
month: cdktf.numberToTerraform(struct.month),
year: cdktf.numberToTerraform(struct.year),
};
}
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateToHclTerraform(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 = {
day: {
value: cdktf.numberToHclTerraform(struct.day),
isBlock: false,
type: "simple",
storageClassType: "number",
},
month: {
value: cdktf.numberToHclTerraform(struct.month),
isBlock: false,
type: "simple",
storageClassType: "number",
},
year: {
value: cdktf.numberToHclTerraform(struct.year),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateOutputReference 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._day !== undefined) {
hasAnyValues = true;
internalValueResult.day = this._day;
}
if (this._month !== undefined) {
hasAnyValues = true;
internalValueResult.month = this._month;
}
if (this._year !== undefined) {
hasAnyValues = true;
internalValueResult.year = this._year;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._day = undefined;
this._month = undefined;
this._year = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._day = value.day;
this._month = value.month;
this._year = value.year;
}
}
get day() {
return this.getNumberAttribute('day');
}
set day(value) {
this._day = value;
}
resetDay() {
this._day = undefined;
}
// Temporarily expose input value. Use with caution.
get dayInput() {
return this._day;
}
get month() {
return this.getNumberAttribute('month');
}
set month(value) {
this._month = value;
}
resetMonth() {
this._month = undefined;
}
// Temporarily expose input value. Use with caution.
get monthInput() {
return this._month;
}
get year() {
return this.getNumberAttribute('year');
}
set year(value) {
this._year = value;
}
resetYear() {
this._year = undefined;
}
// Temporarily expose input value. Use with caution.
get yearInput() {
return this._year;
}
}
exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateOutputReference = ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateOutputReference;
_a = JSII_RTTI_SYMBOL_1;
ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateOutputReference[_a] = { fqn: "@cdktf/provider-google.clouddeployDeployPolicy.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateOutputReference", version: "14.35.0" };
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeToTerraform(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 {
hours: cdktf.numberToTerraform(struct.hours),
minutes: cdktf.numberToTerraform(struct.minutes),
nanos: cdktf.numberToTerraform(struct.nanos),
seconds: cdktf.numberToTerraform(struct.seconds),
};
}
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeToHclTerraform(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 = {
hours: {
value: cdktf.numberToHclTerraform(struct.hours),
isBlock: false,
type: "simple",
storageClassType: "number",
},
minutes: {
value: cdktf.numberToHclTerraform(struct.minutes),
isBlock: false,
type: "simple",
storageClassType: "number",
},
nanos: {
value: cdktf.numberToHclTerraform(struct.nanos),
isBlock: false,
type: "simple",
storageClassType: "number",
},
seconds: {
value: cdktf.numberToHclTerraform(struct.seconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeOutputReference 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._hours !== undefined) {
hasAnyValues = true;
internalValueResult.hours = this._hours;
}
if (this._minutes !== undefined) {
hasAnyValues = true;
internalValueResult.minutes = this._minutes;
}
if (this._nanos !== undefined) {
hasAnyValues = true;
internalValueResult.nanos = this._nanos;
}
if (this._seconds !== undefined) {
hasAnyValues = true;
internalValueResult.seconds = this._seconds;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._hours = undefined;
this._minutes = undefined;
this._nanos = undefined;
this._seconds = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._hours = value.hours;
this._minutes = value.minutes;
this._nanos = value.nanos;
this._seconds = value.seconds;
}
}
get hours() {
return this.getNumberAttribute('hours');
}
set hours(value) {
this._hours = value;
}
resetHours() {
this._hours = undefined;
}
// Temporarily expose input value. Use with caution.
get hoursInput() {
return this._hours;
}
get minutes() {
return this.getNumberAttribute('minutes');
}
set minutes(value) {
this._minutes = value;
}
resetMinutes() {
this._minutes = undefined;
}
// Temporarily expose input value. Use with caution.
get minutesInput() {
return this._minutes;
}
get nanos() {
return this.getNumberAttribute('nanos');
}
set nanos(value) {
this._nanos = value;
}
resetNanos() {
this._nanos = undefined;
}
// Temporarily expose input value. Use with caution.
get nanosInput() {
return this._nanos;
}
get seconds() {
return this.getNumberAttribute('seconds');
}
set seconds(value) {
this._seconds = value;
}
resetSeconds() {
this._seconds = undefined;
}
// Temporarily expose input value. Use with caution.
get secondsInput() {
return this._seconds;
}
}
exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeOutputReference = ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeOutputReference;
_b = JSII_RTTI_SYMBOL_1;
ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeOutputReference[_b] = { fqn: "@cdktf/provider-google.clouddeployDeployPolicy.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeOutputReference", version: "14.35.0" };
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateToTerraform(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 {
day: cdktf.numberToTerraform(struct.day),
month: cdktf.numberToTerraform(struct.month),
year: cdktf.numberToTerraform(struct.year),
};
}
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateToHclTerraform(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 = {
day: {
value: cdktf.numberToHclTerraform(struct.day),
isBlock: false,
type: "simple",
storageClassType: "number",
},
month: {
value: cdktf.numberToHclTerraform(struct.month),
isBlock: false,
type: "simple",
storageClassType: "number",
},
year: {
value: cdktf.numberToHclTerraform(struct.year),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateOutputReference 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._day !== undefined) {
hasAnyValues = true;
internalValueResult.day = this._day;
}
if (this._month !== undefined) {
hasAnyValues = true;
internalValueResult.month = this._month;
}
if (this._year !== undefined) {
hasAnyValues = true;
internalValueResult.year = this._year;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._day = undefined;
this._month = undefined;
this._year = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._day = value.day;
this._month = value.month;
this._year = value.year;
}
}
get day() {
return this.getNumberAttribute('day');
}
set day(value) {
this._day = value;
}
resetDay() {
this._day = undefined;
}
// Temporarily expose input value. Use with caution.
get dayInput() {
return this._day;
}
get month() {
return this.getNumberAttribute('month');
}
set month(value) {
this._month = value;
}
resetMonth() {
this._month = undefined;
}
// Temporarily expose input value. Use with caution.
get monthInput() {
return this._month;
}
get year() {
return this.getNumberAttribute('year');
}
set year(value) {
this._year = value;
}
resetYear() {
this._year = undefined;
}
// Temporarily expose input value. Use with caution.
get yearInput() {
return this._year;
}
}
exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateOutputReference = ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateOutputReference;
_c = JSII_RTTI_SYMBOL_1;
ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateOutputReference[_c] = { fqn: "@cdktf/provider-google.clouddeployDeployPolicy.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateOutputReference", version: "14.35.0" };
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeToTerraform(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 {
hours: cdktf.numberToTerraform(struct.hours),
minutes: cdktf.numberToTerraform(struct.minutes),
nanos: cdktf.numberToTerraform(struct.nanos),
seconds: cdktf.numberToTerraform(struct.seconds),
};
}
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeToHclTerraform(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 = {
hours: {
value: cdktf.numberToHclTerraform(struct.hours),
isBlock: false,
type: "simple",
storageClassType: "number",
},
minutes: {
value: cdktf.numberToHclTerraform(struct.minutes),
isBlock: false,
type: "simple",
storageClassType: "number",
},
nanos: {
value: cdktf.numberToHclTerraform(struct.nanos),
isBlock: false,
type: "simple",
storageClassType: "number",
},
seconds: {
value: cdktf.numberToHclTerraform(struct.seconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeOutputReference 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._hours !== undefined) {
hasAnyValues = true;
internalValueResult.hours = this._hours;
}
if (this._minutes !== undefined) {
hasAnyValues = true;
internalValueResult.minutes = this._minutes;
}
if (this._nanos !== undefined) {
hasAnyValues = true;
internalValueResult.nanos = this._nanos;
}
if (this._seconds !== undefined) {
hasAnyValues = true;
internalValueResult.seconds = this._seconds;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._hours = undefined;
this._minutes = undefined;
this._nanos = undefined;
this._seconds = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._hours = value.hours;
this._minutes = value.minutes;
this._nanos = value.nanos;
this._seconds = value.seconds;
}
}
get hours() {
return this.getNumberAttribute('hours');
}
set hours(value) {
this._hours = value;
}
resetHours() {
this._hours = undefined;
}
// Temporarily expose input value. Use with caution.
get hoursInput() {
return this._hours;
}
get minutes() {
return this.getNumberAttribute('minutes');
}
set minutes(value) {
this._minutes = value;
}
resetMinutes() {
this._minutes = undefined;
}
// Temporarily expose input value. Use with caution.
get minutesInput() {
return this._minutes;
}
get nanos() {
return this.getNumberAttribute('nanos');
}
set nanos(value) {
this._nanos = value;
}
resetNanos() {
this._nanos = undefined;
}
// Temporarily expose input value. Use with caution.
get nanosInput() {
return this._nanos;
}
get seconds() {
return this.getNumberAttribute('seconds');
}
set seconds(value) {
this._seconds = value;
}
resetSeconds() {
this._seconds = undefined;
}
// Temporarily expose input value. Use with caution.
get secondsInput() {
return this._seconds;
}
}
exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeOutputReference = ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeOutputReference;
_d = JSII_RTTI_SYMBOL_1;
ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeOutputReference[_d] = { fqn: "@cdktf/provider-google.clouddeployDeployPolicy.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeOutputReference", version: "14.35.0" };
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsToTerraform(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 {
end_date: clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateToTerraform(struct.endDate),
end_time: clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeToTerraform(struct.endTime),
start_date: clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateToTerraform(struct.startDate),
start_time: clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeToTerraform(struct.startTime),
};
}
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsToHclTerraform(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 = {
end_date: {
value: clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateToHclTerraform(struct.endDate),
isBlock: true,
type: "list",
storageClassType: "ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateList",
},
end_time: {
value: clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeToHclTerraform(struct.endTime),
isBlock: true,
type: "list",
storageClassType: "ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeList",
},
start_date: {
value: clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateToHclTerraform(struct.startDate),
isBlock: true,
type: "list",
storageClassType: "ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateList",
},
start_time: {
value: clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeToHclTerraform(struct.startTime),
isBlock: true,
type: "list",
storageClassType: "ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsOutputReference 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;
// end_date - computed: false, optional: false, required: true
this._endDate = new ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndDateOutputReference(this, "end_date");
// end_time - computed: false, optional: false, required: true
this._endTime = new ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsEndTimeOutputReference(this, "end_time");
// start_date - computed: false, optional: false, required: true
this._startDate = new ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartDateOutputReference(this, "start_date");
// start_time - computed: false, optional: false, required: true
this._startTime = new ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsStartTimeOutputReference(this, "start_time");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._endDate?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.endDate = this._endDate?.internalValue;
}
if (this._endTime?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.endTime = this._endTime?.internalValue;
}
if (this._startDate?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.startDate = this._startDate?.internalValue;
}
if (this._startTime?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.startTime = this._startTime?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._endDate.internalValue = undefined;
this._endTime.internalValue = undefined;
this._startDate.internalValue = undefined;
this._startTime.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._endDate.internalValue = value.endDate;
this._endTime.internalValue = value.endTime;
this._startDate.internalValue = value.startDate;
this._startTime.internalValue = value.startTime;
}
}
get endDate() {
return this._endDate;
}
putEndDate(value) {
this._endDate.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get endDateInput() {
return this._endDate.internalValue;
}
get endTime() {
return this._endTime;
}
putEndTime(value) {
this._endTime.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get endTimeInput() {
return this._endTime.internalValue;
}
get startDate() {
return this._startDate;
}
putStartDate(value) {
this._startDate.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get startDateInput() {
return this._startDate.internalValue;
}
get startTime() {
return this._startTime;
}
putStartTime(value) {
this._startTime.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get startTimeInput() {
return this._startTime.internalValue;
}
}
exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsOutputReference = ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsOutputReference[_e] = { fqn: "@cdktf/provider-google.clouddeployDeployPolicy.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsOutputReference", version: "14.35.0" };
class ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsList 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 ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsList = ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsList;
_f = JSII_RTTI_SYMBOL_1;
ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsList[_f] = { fqn: "@cdktf/provider-google.clouddeployDeployPolicy.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsOneTimeWindowsList", version: "14.35.0" };
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeToTerraform(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 {
hours: cdktf.numberToTerraform(struct.hours),
minutes: cdktf.numberToTerraform(struct.minutes),
nanos: cdktf.numberToTerraform(struct.nanos),
seconds: cdktf.numberToTerraform(struct.seconds),
};
}
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeToHclTerraform(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 = {
hours: {
value: cdktf.numberToHclTerraform(struct.hours),
isBlock: false,
type: "simple",
storageClassType: "number",
},
minutes: {
value: cdktf.numberToHclTerraform(struct.minutes),
isBlock: false,
type: "simple",
storageClassType: "number",
},
nanos: {
value: cdktf.numberToHclTerraform(struct.nanos),
isBlock: false,
type: "simple",
storageClassType: "number",
},
seconds: {
value: cdktf.numberToHclTerraform(struct.seconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeOutputReference 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._hours !== undefined) {
hasAnyValues = true;
internalValueResult.hours = this._hours;
}
if (this._minutes !== undefined) {
hasAnyValues = true;
internalValueResult.minutes = this._minutes;
}
if (this._nanos !== undefined) {
hasAnyValues = true;
internalValueResult.nanos = this._nanos;
}
if (this._seconds !== undefined) {
hasAnyValues = true;
internalValueResult.seconds = this._seconds;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._hours = undefined;
this._minutes = undefined;
this._nanos = undefined;
this._seconds = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._hours = value.hours;
this._minutes = value.minutes;
this._nanos = value.nanos;
this._seconds = value.seconds;
}
}
get hours() {
return this.getNumberAttribute('hours');
}
set hours(value) {
this._hours = value;
}
resetHours() {
this._hours = undefined;
}
// Temporarily expose input value. Use with caution.
get hoursInput() {
return this._hours;
}
get minutes() {
return this.getNumberAttribute('minutes');
}
set minutes(value) {
this._minutes = value;
}
resetMinutes() {
this._minutes = undefined;
}
// Temporarily expose input value. Use with caution.
get minutesInput() {
return this._minutes;
}
get nanos() {
return this.getNumberAttribute('nanos');
}
set nanos(value) {
this._nanos = value;
}
resetNanos() {
this._nanos = undefined;
}
// Temporarily expose input value. Use with caution.
get nanosInput() {
return this._nanos;
}
get seconds() {
return this.getNumberAttribute('seconds');
}
set seconds(value) {
this._seconds = value;
}
resetSeconds() {
this._seconds = undefined;
}
// Temporarily expose input value. Use with caution.
get secondsInput() {
return this._seconds;
}
}
exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeOutputReference = ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeOutputReference;
_g = JSII_RTTI_SYMBOL_1;
ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeOutputReference[_g] = { fqn: "@cdktf/provider-google.clouddeployDeployPolicy.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeOutputReference", version: "14.35.0" };
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeToTerraform(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 {
hours: cdktf.numberToTerraform(struct.hours),
minutes: cdktf.numberToTerraform(struct.minutes),
nanos: cdktf.numberToTerraform(struct.nanos),
seconds: cdktf.numberToTerraform(struct.seconds),
};
}
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeToHclTerraform(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 = {
hours: {
value: cdktf.numberToHclTerraform(struct.hours),
isBlock: false,
type: "simple",
storageClassType: "number",
},
minutes: {
value: cdktf.numberToHclTerraform(struct.minutes),
isBlock: false,
type: "simple",
storageClassType: "number",
},
nanos: {
value: cdktf.numberToHclTerraform(struct.nanos),
isBlock: false,
type: "simple",
storageClassType: "number",
},
seconds: {
value: cdktf.numberToHclTerraform(struct.seconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeOutputReference 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._hours !== undefined) {
hasAnyValues = true;
internalValueResult.hours = this._hours;
}
if (this._minutes !== undefined) {
hasAnyValues = true;
internalValueResult.minutes = this._minutes;
}
if (this._nanos !== undefined) {
hasAnyValues = true;
internalValueResult.nanos = this._nanos;
}
if (this._seconds !== undefined) {
hasAnyValues = true;
internalValueResult.seconds = this._seconds;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._hours = undefined;
this._minutes = undefined;
this._nanos = undefined;
this._seconds = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._hours = value.hours;
this._minutes = value.minutes;
this._nanos = value.nanos;
this._seconds = value.seconds;
}
}
get hours() {
return this.getNumberAttribute('hours');
}
set hours(value) {
this._hours = value;
}
resetHours() {
this._hours = undefined;
}
// Temporarily expose input value. Use with caution.
get hoursInput() {
return this._hours;
}
get minutes() {
return this.getNumberAttribute('minutes');
}
set minutes(value) {
this._minutes = value;
}
resetMinutes() {
this._minutes = undefined;
}
// Temporarily expose input value. Use with caution.
get minutesInput() {
return this._minutes;
}
get nanos() {
return this.getNumberAttribute('nanos');
}
set nanos(value) {
this._nanos = value;
}
resetNanos() {
this._nanos = undefined;
}
// Temporarily expose input value. Use with caution.
get nanosInput() {
return this._nanos;
}
get seconds() {
return this.getNumberAttribute('seconds');
}
set seconds(value) {
this._seconds = value;
}
resetSeconds() {
this._seconds = undefined;
}
// Temporarily expose input value. Use with caution.
get secondsInput() {
return this._seconds;
}
}
exports.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeOutputReference = ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeOutputReference;
_h = JSII_RTTI_SYMBOL_1;
ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeOutputReference[_h] = { fqn: "@cdktf/provider-google.clouddeployDeployPolicy.ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeOutputReference", version: "14.35.0" };
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsToTerraform(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 {
days_of_week: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.daysOfWeek),
end_time: clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeToTerraform(struct.endTime),
start_time: clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeToTerraform(struct.startTime),
};
}
function clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsToHclTerraform(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 = {
days_of_week: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.daysOfWeek),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
end_time: {
value: clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeToHclTerraform(struct.endTime),
isBlock: true,
type: "list",
storageClassType: "ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsEndTimeList",
},
start_time: {
value: clouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeToHclTerraform(struct.startTime),
isBlock: true,
type: "list",
storageClassType: "ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsStartTimeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ClouddeployDeployPolicyRulesRolloutRestrictionTimeWindowsWeeklyWindowsOutputReference 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;
// end_time - computed: false, optional: true, required: false
this._endTime = new ClouddeployDeployPolicyRulesRolloutR