Skip to content

Commit

Permalink
chore: upgrade provider
Browse files Browse the repository at this point in the history
  • Loading branch information
skorfmann authored Apr 30, 2021
1 parent 0b40082 commit af9f1d2
Show file tree
Hide file tree
Showing 58 changed files with 9,338 additions and 407 deletions.
4,735 changes: 4,415 additions & 320 deletions API.md

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions src/app-service-slot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,26 @@ function appServiceSlotLogsToTerraform(struct?: AppServiceSlotLogs): any {
}
}

export interface AppServiceSlotSiteConfigIpRestrictionHeaders {
readonly xAzureFdid?: string[];
readonly xFdHealthProbe?: string[];
readonly xForwardedFor?: string[];
readonly xForwardedHost?: string[];
}

function appServiceSlotSiteConfigIpRestrictionHeadersToTerraform(struct?: AppServiceSlotSiteConfigIpRestrictionHeaders): any {
if (!cdktf.canInspect(struct)) { return struct; }
return {
x_azure_fdid: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xAzureFdid),
x_fd_health_probe: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xFdHealthProbe),
x_forwarded_for: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xForwardedFor),
x_forwarded_host: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xForwardedHost),
}
}

export interface AppServiceSlotSiteConfigIpRestriction {
readonly action?: string;
readonly headers?: AppServiceSlotSiteConfigIpRestrictionHeaders[];
readonly ipAddress?: string;
readonly name?: string;
readonly priority?: number;
Expand All @@ -287,6 +305,7 @@ function appServiceSlotSiteConfigIpRestrictionToTerraform(struct?: AppServiceSlo
if (!cdktf.canInspect(struct)) { return struct; }
return {
action: cdktf.stringToTerraform(struct!.action),
headers: cdktf.listMapper(appServiceSlotSiteConfigIpRestrictionHeadersToTerraform)(struct!.headers),
ip_address: cdktf.stringToTerraform(struct!.ipAddress),
name: cdktf.stringToTerraform(struct!.name),
priority: cdktf.numberToTerraform(struct!.priority),
Expand All @@ -295,8 +314,26 @@ function appServiceSlotSiteConfigIpRestrictionToTerraform(struct?: AppServiceSlo
}
}

export interface AppServiceSlotSiteConfigScmIpRestrictionHeaders {
readonly xAzureFdid?: string[];
readonly xFdHealthProbe?: string[];
readonly xForwardedFor?: string[];
readonly xForwardedHost?: string[];
}

function appServiceSlotSiteConfigScmIpRestrictionHeadersToTerraform(struct?: AppServiceSlotSiteConfigScmIpRestrictionHeaders): any {
if (!cdktf.canInspect(struct)) { return struct; }
return {
x_azure_fdid: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xAzureFdid),
x_fd_health_probe: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xFdHealthProbe),
x_forwarded_for: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xForwardedFor),
x_forwarded_host: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xForwardedHost),
}
}

export interface AppServiceSlotSiteConfigScmIpRestriction {
readonly action?: string;
readonly headers?: AppServiceSlotSiteConfigScmIpRestrictionHeaders[];
readonly ipAddress?: string;
readonly name?: string;
readonly priority?: number;
Expand All @@ -308,6 +345,7 @@ function appServiceSlotSiteConfigScmIpRestrictionToTerraform(struct?: AppService
if (!cdktf.canInspect(struct)) { return struct; }
return {
action: cdktf.stringToTerraform(struct!.action),
headers: cdktf.listMapper(appServiceSlotSiteConfigScmIpRestrictionHeadersToTerraform)(struct!.headers),
ip_address: cdktf.stringToTerraform(struct!.ipAddress),
name: cdktf.stringToTerraform(struct!.name),
priority: cdktf.numberToTerraform(struct!.priority),
Expand Down
38 changes: 38 additions & 0 deletions src/app-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,26 @@ function appServiceLogsToTerraform(struct?: AppServiceLogs): any {
}
}

export interface AppServiceSiteConfigIpRestrictionHeaders {
readonly xAzureFdid?: string[];
readonly xFdHealthProbe?: string[];
readonly xForwardedFor?: string[];
readonly xForwardedHost?: string[];
}

function appServiceSiteConfigIpRestrictionHeadersToTerraform(struct?: AppServiceSiteConfigIpRestrictionHeaders): any {
if (!cdktf.canInspect(struct)) { return struct; }
return {
x_azure_fdid: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xAzureFdid),
x_fd_health_probe: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xFdHealthProbe),
x_forwarded_for: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xForwardedFor),
x_forwarded_host: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xForwardedHost),
}
}

export interface AppServiceSiteConfigIpRestriction {
readonly action?: string;
readonly headers?: AppServiceSiteConfigIpRestrictionHeaders[];
readonly ipAddress?: string;
readonly name?: string;
readonly priority?: number;
Expand All @@ -330,6 +348,7 @@ function appServiceSiteConfigIpRestrictionToTerraform(struct?: AppServiceSiteCon
if (!cdktf.canInspect(struct)) { return struct; }
return {
action: cdktf.stringToTerraform(struct!.action),
headers: cdktf.listMapper(appServiceSiteConfigIpRestrictionHeadersToTerraform)(struct!.headers),
ip_address: cdktf.stringToTerraform(struct!.ipAddress),
name: cdktf.stringToTerraform(struct!.name),
priority: cdktf.numberToTerraform(struct!.priority),
Expand All @@ -338,8 +357,26 @@ function appServiceSiteConfigIpRestrictionToTerraform(struct?: AppServiceSiteCon
}
}

export interface AppServiceSiteConfigScmIpRestrictionHeaders {
readonly xAzureFdid?: string[];
readonly xFdHealthProbe?: string[];
readonly xForwardedFor?: string[];
readonly xForwardedHost?: string[];
}

function appServiceSiteConfigScmIpRestrictionHeadersToTerraform(struct?: AppServiceSiteConfigScmIpRestrictionHeaders): any {
if (!cdktf.canInspect(struct)) { return struct; }
return {
x_azure_fdid: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xAzureFdid),
x_fd_health_probe: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xFdHealthProbe),
x_forwarded_for: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xForwardedFor),
x_forwarded_host: cdktf.listMapper(cdktf.stringToTerraform)(struct!.xForwardedHost),
}
}

export interface AppServiceSiteConfigScmIpRestriction {
readonly action?: string;
readonly headers?: AppServiceSiteConfigScmIpRestrictionHeaders[];
readonly ipAddress?: string;
readonly name?: string;
readonly priority?: number;
Expand All @@ -351,6 +388,7 @@ function appServiceSiteConfigScmIpRestrictionToTerraform(struct?: AppServiceSite
if (!cdktf.canInspect(struct)) { return struct; }
return {
action: cdktf.stringToTerraform(struct!.action),
headers: cdktf.listMapper(appServiceSiteConfigScmIpRestrictionHeadersToTerraform)(struct!.headers),
ip_address: cdktf.stringToTerraform(struct!.ipAddress),
name: cdktf.stringToTerraform(struct!.name),
priority: cdktf.numberToTerraform(struct!.priority),
Expand Down
124 changes: 124 additions & 0 deletions src/backup-policy-file-share.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,18 @@ export interface BackupPolicyFileShareConfig extends cdktf.TerraformMetaArgument
readonly name: string;
readonly recoveryVaultName: string;
readonly resourceGroupName: string;
readonly tags?: { [key: string]: string };
readonly timezone?: string;
/** backup block */
readonly backup: BackupPolicyFileShareBackup[];
/** retention_daily block */
readonly retentionDaily: BackupPolicyFileShareRetentionDaily[];
/** retention_monthly block */
readonly retentionMonthly?: BackupPolicyFileShareRetentionMonthly[];
/** retention_weekly block */
readonly retentionWeekly?: BackupPolicyFileShareRetentionWeekly[];
/** retention_yearly block */
readonly retentionYearly?: BackupPolicyFileShareRetentionYearly[];
/** timeouts block */
readonly timeouts?: BackupPolicyFileShareTimeouts;
}
Expand Down Expand Up @@ -42,6 +49,51 @@ function backupPolicyFileShareRetentionDailyToTerraform(struct?: BackupPolicyFil
}
}

export interface BackupPolicyFileShareRetentionMonthly {
readonly count: number;
readonly weekdays: string[];
readonly weeks: string[];
}

function backupPolicyFileShareRetentionMonthlyToTerraform(struct?: BackupPolicyFileShareRetentionMonthly): any {
if (!cdktf.canInspect(struct)) { return struct; }
return {
count: cdktf.numberToTerraform(struct!.count),
weekdays: cdktf.listMapper(cdktf.stringToTerraform)(struct!.weekdays),
weeks: cdktf.listMapper(cdktf.stringToTerraform)(struct!.weeks),
}
}

export interface BackupPolicyFileShareRetentionWeekly {
readonly count: number;
readonly weekdays: string[];
}

function backupPolicyFileShareRetentionWeeklyToTerraform(struct?: BackupPolicyFileShareRetentionWeekly): any {
if (!cdktf.canInspect(struct)) { return struct; }
return {
count: cdktf.numberToTerraform(struct!.count),
weekdays: cdktf.listMapper(cdktf.stringToTerraform)(struct!.weekdays),
}
}

export interface BackupPolicyFileShareRetentionYearly {
readonly count: number;
readonly months: string[];
readonly weekdays: string[];
readonly weeks: string[];
}

function backupPolicyFileShareRetentionYearlyToTerraform(struct?: BackupPolicyFileShareRetentionYearly): any {
if (!cdktf.canInspect(struct)) { return struct; }
return {
count: cdktf.numberToTerraform(struct!.count),
months: cdktf.listMapper(cdktf.stringToTerraform)(struct!.months),
weekdays: cdktf.listMapper(cdktf.stringToTerraform)(struct!.weekdays),
weeks: cdktf.listMapper(cdktf.stringToTerraform)(struct!.weeks),
}
}

export interface BackupPolicyFileShareTimeouts {
readonly create?: string;
readonly delete?: string;
Expand Down Expand Up @@ -82,9 +134,13 @@ export class BackupPolicyFileShare extends cdktf.TerraformResource {
this._name = config.name;
this._recoveryVaultName = config.recoveryVaultName;
this._resourceGroupName = config.resourceGroupName;
this._tags = config.tags;
this._timezone = config.timezone;
this._backup = config.backup;
this._retentionDaily = config.retentionDaily;
this._retentionMonthly = config.retentionMonthly;
this._retentionWeekly = config.retentionWeekly;
this._retentionYearly = config.retentionYearly;
this._timeouts = config.timeouts;
}

Expand Down Expand Up @@ -136,6 +192,22 @@ export class BackupPolicyFileShare extends cdktf.TerraformResource {
return this._resourceGroupName
}

// tags - computed: false, optional: true, required: false
private _tags?: { [key: string]: string };
public get tags() {
return this.interpolationForAttribute('tags') as any;
}
public set tags(value: { [key: string]: string } ) {
this._tags = value;
}
public resetTags() {
this._tags = undefined;
}
// Temporarily expose input value. Use with caution.
public get tagsInput() {
return this._tags
}

// timezone - computed: false, optional: true, required: false
private _timezone?: string;
public get timezone() {
Expand Down Expand Up @@ -178,6 +250,54 @@ export class BackupPolicyFileShare extends cdktf.TerraformResource {
return this._retentionDaily
}

// retention_monthly - computed: false, optional: true, required: false
private _retentionMonthly?: BackupPolicyFileShareRetentionMonthly[];
public get retentionMonthly() {
return this.interpolationForAttribute('retention_monthly') as any;
}
public set retentionMonthly(value: BackupPolicyFileShareRetentionMonthly[] ) {
this._retentionMonthly = value;
}
public resetRetentionMonthly() {
this._retentionMonthly = undefined;
}
// Temporarily expose input value. Use with caution.
public get retentionMonthlyInput() {
return this._retentionMonthly
}

// retention_weekly - computed: false, optional: true, required: false
private _retentionWeekly?: BackupPolicyFileShareRetentionWeekly[];
public get retentionWeekly() {
return this.interpolationForAttribute('retention_weekly') as any;
}
public set retentionWeekly(value: BackupPolicyFileShareRetentionWeekly[] ) {
this._retentionWeekly = value;
}
public resetRetentionWeekly() {
this._retentionWeekly = undefined;
}
// Temporarily expose input value. Use with caution.
public get retentionWeeklyInput() {
return this._retentionWeekly
}

// retention_yearly - computed: false, optional: true, required: false
private _retentionYearly?: BackupPolicyFileShareRetentionYearly[];
public get retentionYearly() {
return this.interpolationForAttribute('retention_yearly') as any;
}
public set retentionYearly(value: BackupPolicyFileShareRetentionYearly[] ) {
this._retentionYearly = value;
}
public resetRetentionYearly() {
this._retentionYearly = undefined;
}
// Temporarily expose input value. Use with caution.
public get retentionYearlyInput() {
return this._retentionYearly
}

// timeouts - computed: false, optional: true, required: false
private _timeouts?: BackupPolicyFileShareTimeouts;
public get timeouts() {
Expand All @@ -203,9 +323,13 @@ export class BackupPolicyFileShare extends cdktf.TerraformResource {
name: cdktf.stringToTerraform(this._name),
recovery_vault_name: cdktf.stringToTerraform(this._recoveryVaultName),
resource_group_name: cdktf.stringToTerraform(this._resourceGroupName),
tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags),
timezone: cdktf.stringToTerraform(this._timezone),
backup: cdktf.listMapper(backupPolicyFileShareBackupToTerraform)(this._backup),
retention_daily: cdktf.listMapper(backupPolicyFileShareRetentionDailyToTerraform)(this._retentionDaily),
retention_monthly: cdktf.listMapper(backupPolicyFileShareRetentionMonthlyToTerraform)(this._retentionMonthly),
retention_weekly: cdktf.listMapper(backupPolicyFileShareRetentionWeeklyToTerraform)(this._retentionWeekly),
retention_yearly: cdktf.listMapper(backupPolicyFileShareRetentionYearlyToTerraform)(this._retentionYearly),
timeouts: backupPolicyFileShareTimeoutsToTerraform(this._timeouts),
};
}
Expand Down
32 changes: 32 additions & 0 deletions src/container-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import * as cdktf from 'cdktf';

export interface ContainerGroupConfig extends cdktf.TerraformMetaArguments {
readonly dnsNameLabel?: string;
readonly exposedPort?: ContainerGroupExposedPort[];
readonly ipAddressType?: string;
readonly location: string;
readonly name: string;
Expand All @@ -29,6 +30,19 @@ export interface ContainerGroupConfig extends cdktf.TerraformMetaArguments {
/** timeouts block */
readonly timeouts?: ContainerGroupTimeouts;
}
export interface ContainerGroupExposedPort {
readonly port?: number;
readonly protocol?: string;
}

function containerGroupExposedPortToTerraform(struct?: ContainerGroupExposedPort): any {
if (!cdktf.canInspect(struct)) { return struct; }
return {
port: cdktf.numberToTerraform(struct!.port),
protocol: cdktf.stringToTerraform(struct!.protocol),
}
}

export interface ContainerGroupContainerGpu {
readonly count?: number;
readonly sku?: string;
Expand Down Expand Up @@ -324,6 +338,7 @@ export class ContainerGroup extends cdktf.TerraformResource {
lifecycle: config.lifecycle
});
this._dnsNameLabel = config.dnsNameLabel;
this._exposedPort = config.exposedPort;
this._ipAddressType = config.ipAddressType;
this._location = config.location;
this._name = config.name;
Expand Down Expand Up @@ -360,6 +375,22 @@ export class ContainerGroup extends cdktf.TerraformResource {
return this._dnsNameLabel
}

// exposed_port - computed: true, optional: true, required: false
private _exposedPort?: ContainerGroupExposedPort[]
public get exposedPort(): ContainerGroupExposedPort[] {
return this.interpolationForAttribute('exposed_port') as any; // Getting the computed value is not yet implemented
}
public set exposedPort(value: ContainerGroupExposedPort[]) {
this._exposedPort = value;
}
public resetExposedPort() {
this._exposedPort = undefined;
}
// Temporarily expose input value. Use with caution.
public get exposedPortInput() {
return this._exposedPort
}

// fqdn - computed: true, optional: false, required: false
public get fqdn() {
return this.getStringAttribute('fqdn');
Expand Down Expand Up @@ -591,6 +622,7 @@ export class ContainerGroup extends cdktf.TerraformResource {
protected synthesizeAttributes(): { [name: string]: any } {
return {
dns_name_label: cdktf.stringToTerraform(this._dnsNameLabel),
exposed_port: cdktf.listMapper(containerGroupExposedPortToTerraform)(this._exposedPort),
ip_address_type: cdktf.stringToTerraform(this._ipAddressType),
location: cdktf.stringToTerraform(this._location),
name: cdktf.stringToTerraform(this._name),
Expand Down
Loading

0 comments on commit af9f1d2

Please sign in to comment.