Skip to content

Commit

Permalink
Merge pull request #4 from hashicorp/upgrade-provider-project-96
Browse files Browse the repository at this point in the history
  • Loading branch information
team-tf-cdk authored May 24, 2022
2 parents 6a12729 + 60abedc commit 1e1402f
Show file tree
Hide file tree
Showing 84 changed files with 45,895 additions and 14,652 deletions.
6 changes: 3 additions & 3 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { CdktfProviderProject } = require('@cdktf/provider-project');
const { CdktfProviderProject } = require("@cdktf/provider-project");
const project = new CdktfProviderProject({
terraformProvider: "databrickslabs/databricks@~> 0.5",
cdktfVersion: '^0.10.3',
cdktfVersion: "^0.11.0",
constructsVersion: "^10.0.0",
minNodeVersion: "14.17.0",
jsiiVersion: "^1.53.0",
Expand Down
54,319 changes: 39,944 additions & 14,375 deletions API.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions src/aws-s3-mount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ export interface AwsS3MountConfig extends cdktf.TerraformMetaArguments {
*/
readonly clusterId?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/databricks/r/aws_s3_mount#id AwsS3Mount#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/databricks/r/aws_s3_mount#instance_profile AwsS3Mount#instance_profile}
*/
readonly instanceProfile?: string;
Expand Down Expand Up @@ -60,6 +67,7 @@ export class AwsS3Mount extends cdktf.TerraformResource {
lifecycle: config.lifecycle
});
this._clusterId = config.clusterId;
this._id = config.id;
this._instanceProfile = config.instanceProfile;
this._mountName = config.mountName;
this._s3BucketName = config.s3BucketName;
Expand All @@ -86,9 +94,20 @@ export class AwsS3Mount extends cdktf.TerraformResource {
}

// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}

// instance_profile - computed: false, optional: true, required: false
private _instanceProfile?: string;
Expand Down Expand Up @@ -144,6 +163,7 @@ export class AwsS3Mount extends cdktf.TerraformResource {
protected synthesizeAttributes(): { [name: string]: any } {
return {
cluster_id: cdktf.stringToTerraform(this._clusterId),
id: cdktf.stringToTerraform(this._id),
instance_profile: cdktf.stringToTerraform(this._instanceProfile),
mount_name: cdktf.stringToTerraform(this._mountName),
s3_bucket_name: cdktf.stringToTerraform(this._s3BucketName),
Expand Down
20 changes: 20 additions & 0 deletions src/azure-adls-gen1-mount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ export interface AzureAdlsGen1MountConfig extends cdktf.TerraformMetaArguments {
*/
readonly directory?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/databricks/r/azure_adls_gen1_mount#id AzureAdlsGen1Mount#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/databricks/r/azure_adls_gen1_mount#mount_name AzureAdlsGen1Mount#mount_name}
*/
readonly mountName: string;
Expand Down Expand Up @@ -84,6 +91,7 @@ export class AzureAdlsGen1Mount extends cdktf.TerraformResource {
this._clientSecretScope = config.clientSecretScope;
this._clusterId = config.clusterId;
this._directory = config.directory;
this._id = config.id;
this._mountName = config.mountName;
this._sparkConfPrefix = config.sparkConfPrefix;
this._storageResourceName = config.storageResourceName;
Expand Down Expand Up @@ -166,9 +174,20 @@ export class AzureAdlsGen1Mount extends cdktf.TerraformResource {
}

// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}

// mount_name - computed: false, optional: false, required: true
private _mountName?: string;
Expand Down Expand Up @@ -241,6 +260,7 @@ export class AzureAdlsGen1Mount extends cdktf.TerraformResource {
client_secret_scope: cdktf.stringToTerraform(this._clientSecretScope),
cluster_id: cdktf.stringToTerraform(this._clusterId),
directory: cdktf.stringToTerraform(this._directory),
id: cdktf.stringToTerraform(this._id),
mount_name: cdktf.stringToTerraform(this._mountName),
spark_conf_prefix: cdktf.stringToTerraform(this._sparkConfPrefix),
storage_resource_name: cdktf.stringToTerraform(this._storageResourceName),
Expand Down
20 changes: 20 additions & 0 deletions src/azure-adls-gen2-mount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ export interface AzureAdlsGen2MountConfig extends cdktf.TerraformMetaArguments {
*/
readonly directory?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/databricks/r/azure_adls_gen2_mount#id AzureAdlsGen2Mount#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/databricks/r/azure_adls_gen2_mount#initialize_file_system AzureAdlsGen2Mount#initialize_file_system}
*/
readonly initializeFileSystem: boolean | cdktf.IResolvable;
Expand Down Expand Up @@ -89,6 +96,7 @@ export class AzureAdlsGen2Mount extends cdktf.TerraformResource {
this._clusterId = config.clusterId;
this._containerName = config.containerName;
this._directory = config.directory;
this._id = config.id;
this._initializeFileSystem = config.initializeFileSystem;
this._mountName = config.mountName;
this._storageAccountName = config.storageAccountName;
Expand Down Expand Up @@ -184,9 +192,20 @@ export class AzureAdlsGen2Mount extends cdktf.TerraformResource {
}

// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}

// initialize_file_system - computed: false, optional: false, required: true
private _initializeFileSystem?: boolean | cdktf.IResolvable;
Expand Down Expand Up @@ -257,6 +276,7 @@ export class AzureAdlsGen2Mount extends cdktf.TerraformResource {
cluster_id: cdktf.stringToTerraform(this._clusterId),
container_name: cdktf.stringToTerraform(this._containerName),
directory: cdktf.stringToTerraform(this._directory),
id: cdktf.stringToTerraform(this._id),
initialize_file_system: cdktf.booleanToTerraform(this._initializeFileSystem),
mount_name: cdktf.stringToTerraform(this._mountName),
storage_account_name: cdktf.stringToTerraform(this._storageAccountName),
Expand Down
20 changes: 20 additions & 0 deletions src/azure-blob-mount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ export interface AzureBlobMountConfig extends cdktf.TerraformMetaArguments {
*/
readonly directory?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/databricks/r/azure_blob_mount#id AzureBlobMount#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/databricks/r/azure_blob_mount#mount_name AzureBlobMount#mount_name}
*/
readonly mountName: string;
Expand Down Expand Up @@ -79,6 +86,7 @@ export class AzureBlobMount extends cdktf.TerraformResource {
this._clusterId = config.clusterId;
this._containerName = config.containerName;
this._directory = config.directory;
this._id = config.id;
this._mountName = config.mountName;
this._storageAccountName = config.storageAccountName;
this._tokenSecretKey = config.tokenSecretKey;
Expand Down Expand Up @@ -148,9 +156,20 @@ export class AzureBlobMount extends cdktf.TerraformResource {
}

// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}

// mount_name - computed: false, optional: false, required: true
private _mountName?: string;
Expand Down Expand Up @@ -219,6 +238,7 @@ export class AzureBlobMount extends cdktf.TerraformResource {
cluster_id: cdktf.stringToTerraform(this._clusterId),
container_name: cdktf.stringToTerraform(this._containerName),
directory: cdktf.stringToTerraform(this._directory),
id: cdktf.stringToTerraform(this._id),
mount_name: cdktf.stringToTerraform(this._mountName),
storage_account_name: cdktf.stringToTerraform(this._storageAccountName),
token_secret_key: cdktf.stringToTerraform(this._tokenSecretKey),
Expand Down
20 changes: 20 additions & 0 deletions src/catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ export interface CatalogConfig extends cdktf.TerraformMetaArguments {
*/
readonly comment?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/databricks/r/catalog#id Catalog#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/databricks/r/catalog#metastore_id Catalog#metastore_id}
*/
readonly metastoreId?: string;
Expand Down Expand Up @@ -64,6 +71,7 @@ export class Catalog extends cdktf.TerraformResource {
lifecycle: config.lifecycle
});
this._comment = config.comment;
this._id = config.id;
this._metastoreId = config.metastoreId;
this._name = config.name;
this._owner = config.owner;
Expand Down Expand Up @@ -91,9 +99,20 @@ export class Catalog extends cdktf.TerraformResource {
}

// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}

// metastore_id - computed: true, optional: true, required: false
private _metastoreId?: string;
Expand Down Expand Up @@ -163,6 +182,7 @@ export class Catalog extends cdktf.TerraformResource {
protected synthesizeAttributes(): { [name: string]: any } {
return {
comment: cdktf.stringToTerraform(this._comment),
id: cdktf.stringToTerraform(this._id),
metastore_id: cdktf.stringToTerraform(this._metastoreId),
name: cdktf.stringToTerraform(this._name),
owner: cdktf.stringToTerraform(this._owner),
Expand Down
20 changes: 20 additions & 0 deletions src/cluster-policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ Databricks Policy Definition Language.
*/
readonly definition?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/databricks/r/cluster_policy#id ClusterPolicy#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
/**
* Cluster policy name. This must be unique.
Length must be between 1 and 100 characters.
*
Expand Down Expand Up @@ -58,6 +65,7 @@ export class ClusterPolicy extends cdktf.TerraformResource {
lifecycle: config.lifecycle
});
this._definition = config.definition;
this._id = config.id;
this._name = config.name;
}

Expand All @@ -82,9 +90,20 @@ export class ClusterPolicy extends cdktf.TerraformResource {
}

// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}

// name - computed: false, optional: false, required: true
private _name?: string;
Expand All @@ -111,6 +130,7 @@ export class ClusterPolicy extends cdktf.TerraformResource {
protected synthesizeAttributes(): { [name: string]: any } {
return {
definition: cdktf.stringToTerraform(this._definition),
id: cdktf.stringToTerraform(this._id),
name: cdktf.stringToTerraform(this._name),
};
}
Expand Down
Loading

0 comments on commit 1e1402f

Please sign in to comment.