Skip to content

Commit

Permalink
Upgrade terraform-provider-databricks to v1.29.0 (#234)
Browse files Browse the repository at this point in the history
This PR was generated via `$ upgrade-provider pulumi/pulumi-databricks`.

---

- Upgrading terraform-provider-databricks from 1.28.1  to 1.29.0.
	Fixes #233

---------

Co-authored-by: Ian Wahbe <ian@wahbe.com>
  • Loading branch information
pulumi-bot and iwahbe authored Oct 31, 2023
1 parent 62448ad commit 2ecc1ee
Show file tree
Hide file tree
Showing 616 changed files with 8,162 additions and 3,592 deletions.
1 change: 1 addition & 0 deletions .ci-mgmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ plugins:
- name: time
version: "0.0.13"
team: ecosystem
javaGenVersion: "v0.9.8"
2 changes: 1 addition & 1 deletion .upgrade-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ upstream-provider-name: terraform-provider-databricks
pulumi-infer-version: true
remove-plugins: true
pr-reviewers: pulumi/Providers,lukehoban
javaVersion: "v0.5.4"
javaVersion: "v0.9.8"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TFGEN := pulumi-tfgen-$(PACK)
PROVIDER := pulumi-resource-$(PACK)
VERSION := $(shell pulumictl get version)
JAVA_GEN := pulumi-java-gen
JAVA_GEN_VERSION := v0.5.4
JAVA_GEN_VERSION := v0.9.8
TESTPARALLELISM := 10
WORKING_DIR := $(shell pwd)
PULUMI_CONVERT := 0
Expand Down
42 changes: 41 additions & 1 deletion provider/cmd/pulumi-resource-databricks/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
}
}
},
"databricks_artifact_allowlist": {
"current": "databricks:index/artifactAllowlist:ArtifactAllowlist",
"majorVersion": 1,
"fields": {
"artifact_matcher": {
"maxItemsOne": false
}
}
},
"databricks_catalog": {
"current": "databricks:index/catalog:Catalog",
"majorVersion": 1
Expand Down Expand Up @@ -310,6 +319,9 @@
}
}
},
"deployment": {
"maxItemsOne": true
},
"email_notifications": {
"maxItemsOne": true,
"elem": {
Expand Down Expand Up @@ -1573,8 +1585,14 @@
"current": "databricks:index/sqlTable:SqlTable",
"majorVersion": 1,
"fields": {
"cluster_keys": {
"maxItemsOne": false
},
"column": {
"maxItemsOne": false
},
"partitions": {
"maxItemsOne": false
}
}
},
Expand Down Expand Up @@ -1953,6 +1971,9 @@
}
}
},
"deployment": {
"maxItemsOne": true
},
"email_notifications": {
"maxItemsOne": true,
"elem": {
Expand Down Expand Up @@ -2738,6 +2759,7 @@
"renames": {
"resources": {
"databricks:index/accessControlRuleSet:AccessControlRuleSet": "databricks_access_control_rule_set",
"databricks:index/artifactAllowlist:ArtifactAllowlist": "databricks_artifact_allowlist",
"databricks:index/catalog:Catalog": "databricks_catalog",
"databricks:index/catalogWorkspaceBinding:CatalogWorkspaceBinding": "databricks_catalog_workspace_binding",
"databricks:index/cluster:Cluster": "databricks_cluster",
Expand Down Expand Up @@ -2851,6 +2873,9 @@
"databricks:index/getZones:getZones": "databricks_zones"
},
"renamedProperties": {
"databricks:index/ArtifactAllowlistArtifactMatcher:ArtifactAllowlistArtifactMatcher": {
"matchType": "match_type"
},
"databricks:index/ClusterAutoscale:ClusterAutoscale": {
"maxWorkers": "max_workers",
"minWorkers": "min_workers"
Expand Down Expand Up @@ -2956,6 +2981,9 @@
"projectDirectory": "project_directory",
"warehouseId": "warehouse_id"
},
"databricks:index/JobDeployment:JobDeployment": {
"metadataFilePath": "metadata_file_path"
},
"databricks:index/JobEmailNotifications:JobEmailNotifications": {
"alertOnLastAttempt": "alert_on_last_attempt",
"noAlertForSkippedRuns": "no_alert_for_skipped_runs",
Expand Down Expand Up @@ -3658,6 +3686,13 @@
"databricks:index/accessControlRuleSet:AccessControlRuleSet": {
"grantRules": "grant_rules"
},
"databricks:index/artifactAllowlist:ArtifactAllowlist": {
"artifactMatchers": "artifact_matcher",
"artifactType": "artifact_type",
"createdAt": "created_at",
"createdBy": "created_by",
"metastoreId": "metastore_id"
},
"databricks:index/catalog:Catalog": {
"connectionName": "connection_name",
"forceDestroy": "force_destroy",
Expand Down Expand Up @@ -4026,6 +4061,9 @@
"projectDirectory": "project_directory",
"warehouseId": "warehouse_id"
},
"databricks:index/getJobJobSettingsSettingsDeployment:getJobJobSettingsSettingsDeployment": {
"metadataFilePath": "metadata_file_path"
},
"databricks:index/getJobJobSettingsSettingsEmailNotifications:getJobJobSettingsSettingsEmailNotifications": {
"alertOnLastAttempt": "alert_on_last_attempt",
"noAlertForSkippedRuns": "no_alert_for_skipped_runs",
Expand Down Expand Up @@ -4947,13 +4985,15 @@
"databricks:index/sqlTable:SqlTable": {
"catalogName": "catalog_name",
"clusterId": "cluster_id",
"clusterKeys": "cluster_keys",
"columns": "column",
"dataSourceFormat": "data_source_format",
"schemaName": "schema_name",
"storageCredentialName": "storage_credential_name",
"storageLocation": "storage_location",
"tableType": "table_type",
"viewDefinition": "view_definition"
"viewDefinition": "view_definition",
"warehouseId": "warehouse_id"
},
"databricks:index/sqlVisualization:SqlVisualization": {
"queryId": "query_id",
Expand Down
264 changes: 247 additions & 17 deletions provider/cmd/pulumi-resource-databricks/schema.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.21
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20230912190043-e6d96b3b8f7e

require (
github.com/databricks/databricks-sdk-go v0.23.0
github.com/databricks/terraform-provider-databricks v1.28.1
github.com/databricks/databricks-sdk-go v0.24.0
github.com/databricks/terraform-provider-databricks v1.29.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.63.2
)

Expand Down Expand Up @@ -115,7 +115,7 @@ require (
github.com/hashicorp/golang-lru v0.6.0 // indirect
github.com/hashicorp/hc-install v0.6.1 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/hcl/v2 v2.18.1 // indirect
github.com/hashicorp/hcl/v2 v2.19.1 // indirect
github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.19.0 // indirect
Expand Down
12 changes: 6 additions & 6 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1147,10 +1147,10 @@ github.com/d2g/dhcp4 v0.0.0-20170904100407-a1d1b6c41b1c/go.mod h1:Ct2BUK8SB0YC1S
github.com/d2g/dhcp4client v1.0.0/go.mod h1:j0hNfjhrt2SxUOw55nL0ATM/z4Yt3t2Kd1mW34z5W5s=
github.com/d2g/dhcp4server v0.0.0-20181031114812-7d4a0a7f59a5/go.mod h1:Eo87+Kg/IX2hfWJfwxMzLyuSZyxSoAug2nGa1G2QAi8=
github.com/d2g/hardwareaddr v0.0.0-20190221164911-e7d9fbe030e4/go.mod h1:bMl4RjIciD2oAxI7DmWRx6gbeqrkoLqv3MV0vzNad+I=
github.com/databricks/databricks-sdk-go v0.23.0 h1:rdLMA7cDUPJiCSMyuUSufzDDmugqyp79SNiY/vc7kMI=
github.com/databricks/databricks-sdk-go v0.23.0/go.mod h1:a6rErRNh5bz+IJbO07nwW70iGyvtWidy1p/S5thepXI=
github.com/databricks/terraform-provider-databricks v1.28.1 h1:GeEsWWmCqc1EYsoLUnyraHMbUUQ14b7WibjcCYoFrzo=
github.com/databricks/terraform-provider-databricks v1.28.1/go.mod h1:7J8yGpys62B4HpPdUsOwR+/ic2nAA5+mkipgqP2rD4E=
github.com/databricks/databricks-sdk-go v0.24.0 h1:fx34MOGYXVc72QBSFnKuDa/H3ekDMqZYH4jKZF8mrXk=
github.com/databricks/databricks-sdk-go v0.24.0/go.mod h1:a6rErRNh5bz+IJbO07nwW70iGyvtWidy1p/S5thepXI=
github.com/databricks/terraform-provider-databricks v1.29.0 h1:b67ICQdhemBuYQZ/0tT2vYGJr5QlRIrww4NfgTOebik=
github.com/databricks/terraform-provider-databricks v1.29.0/go.mod h1:Qnwmjqg+TxJr+b5p2tC6ZTlpkXUPVyMgY49JH1Ae9jA=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down Expand Up @@ -1727,8 +1727,8 @@ github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/hashicorp/hcl/v2 v2.0.0/go.mod h1:oVVDG71tEinNGYCxinCYadcmKU9bglqW9pV3txagJ90=
github.com/hashicorp/hcl/v2 v2.18.0/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE=
github.com/hashicorp/hcl/v2 v2.18.1 h1:6nxnOJFku1EuSawSD81fuviYUV8DxFr3fp2dUi3ZYSo=
github.com/hashicorp/hcl/v2 v2.18.1/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE=
github.com/hashicorp/hcl/v2 v2.19.1 h1://i05Jqznmb2EXqa39Nsvyan2o5XyMowW5fnCKW5RPI=
github.com/hashicorp/hcl/v2 v2.19.1/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE=
github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 h1:T1Q6ag9tCwun16AW+XK3tAql24P4uTGUMIn1/92WsQQ=
github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93/go.mod h1:n2TSygSNwsLJ76m8qFXTSc7beTb+auJxYdqrnoqwZWE=
github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y=
Expand Down
206 changes: 206 additions & 0 deletions sdk/dotnet/ArtifactAllowlist.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Databricks
{
/// <summary>
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Databricks = Pulumi.Databricks;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var initScripts = new Databricks.ArtifactAllowlist("initScripts", new()
/// {
/// ArtifactMatchers = new[]
/// {
/// new Databricks.Inputs.ArtifactAllowlistArtifactMatcherArgs
/// {
/// Artifact = "/Volumes/inits",
/// MatchType = "PREFIX_MATCH",
/// },
/// },
/// ArtifactType = "INIT_SCRIPT",
/// });
///
/// });
/// ```
/// ## Related Resources
///
/// The following resources are used in the same context:
///
/// * databricks.Cluster to create [Databricks Clusters](https://docs.databricks.com/clusters/index.html).
/// * databricks.Library to install a [library](https://docs.databricks.com/libraries/index.html) on databricks_cluster.
///
/// ## Import
///
/// This resource can be imported by namebash
///
/// ```sh
/// $ pulumi import databricks:index/artifactAllowlist:ArtifactAllowlist this &lt;metastore_id&gt;|&lt;artifact_type&gt;
/// ```
/// </summary>
[DatabricksResourceType("databricks:index/artifactAllowlist:ArtifactAllowlist")]
public partial class ArtifactAllowlist : global::Pulumi.CustomResource
{
[Output("artifactMatchers")]
public Output<ImmutableArray<Outputs.ArtifactAllowlistArtifactMatcher>> ArtifactMatchers { get; private set; } = null!;

/// <summary>
/// The artifact type of the allowlist. Can be `INIT_SCRIPT`, `LIBRARY_JAR` or `LIBRARY_MAVEN`. Change forces creation of a new resource.
/// </summary>
[Output("artifactType")]
public Output<string> ArtifactType { get; private set; } = null!;

/// <summary>
/// Time at which this artifact allowlist was set.
/// </summary>
[Output("createdAt")]
public Output<int> CreatedAt { get; private set; } = null!;

/// <summary>
/// Identity that set the artifact allowlist.
/// </summary>
[Output("createdBy")]
public Output<string> CreatedBy { get; private set; } = null!;

/// <summary>
/// ID of the parent metastore.
/// </summary>
[Output("metastoreId")]
public Output<string> MetastoreId { get; private set; } = null!;


/// <summary>
/// Create a ArtifactAllowlist resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public ArtifactAllowlist(string name, ArtifactAllowlistArgs args, CustomResourceOptions? options = null)
: base("databricks:index/artifactAllowlist:ArtifactAllowlist", name, args ?? new ArtifactAllowlistArgs(), MakeResourceOptions(options, ""))
{
}

private ArtifactAllowlist(string name, Input<string> id, ArtifactAllowlistState? state = null, CustomResourceOptions? options = null)
: base("databricks:index/artifactAllowlist:ArtifactAllowlist", name, state, MakeResourceOptions(options, id))
{
}

private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing ArtifactAllowlist resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="state">Any extra arguments used during the lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static ArtifactAllowlist Get(string name, Input<string> id, ArtifactAllowlistState? state = null, CustomResourceOptions? options = null)
{
return new ArtifactAllowlist(name, id, state, options);
}
}

public sealed class ArtifactAllowlistArgs : global::Pulumi.ResourceArgs
{
[Input("artifactMatchers", required: true)]
private InputList<Inputs.ArtifactAllowlistArtifactMatcherArgs>? _artifactMatchers;
public InputList<Inputs.ArtifactAllowlistArtifactMatcherArgs> ArtifactMatchers
{
get => _artifactMatchers ?? (_artifactMatchers = new InputList<Inputs.ArtifactAllowlistArtifactMatcherArgs>());
set => _artifactMatchers = value;
}

/// <summary>
/// The artifact type of the allowlist. Can be `INIT_SCRIPT`, `LIBRARY_JAR` or `LIBRARY_MAVEN`. Change forces creation of a new resource.
/// </summary>
[Input("artifactType", required: true)]
public Input<string> ArtifactType { get; set; } = null!;

/// <summary>
/// Time at which this artifact allowlist was set.
/// </summary>
[Input("createdAt")]
public Input<int>? CreatedAt { get; set; }

/// <summary>
/// Identity that set the artifact allowlist.
/// </summary>
[Input("createdBy")]
public Input<string>? CreatedBy { get; set; }

/// <summary>
/// ID of the parent metastore.
/// </summary>
[Input("metastoreId")]
public Input<string>? MetastoreId { get; set; }

public ArtifactAllowlistArgs()
{
}
public static new ArtifactAllowlistArgs Empty => new ArtifactAllowlistArgs();
}

public sealed class ArtifactAllowlistState : global::Pulumi.ResourceArgs
{
[Input("artifactMatchers")]
private InputList<Inputs.ArtifactAllowlistArtifactMatcherGetArgs>? _artifactMatchers;
public InputList<Inputs.ArtifactAllowlistArtifactMatcherGetArgs> ArtifactMatchers
{
get => _artifactMatchers ?? (_artifactMatchers = new InputList<Inputs.ArtifactAllowlistArtifactMatcherGetArgs>());
set => _artifactMatchers = value;
}

/// <summary>
/// The artifact type of the allowlist. Can be `INIT_SCRIPT`, `LIBRARY_JAR` or `LIBRARY_MAVEN`. Change forces creation of a new resource.
/// </summary>
[Input("artifactType")]
public Input<string>? ArtifactType { get; set; }

/// <summary>
/// Time at which this artifact allowlist was set.
/// </summary>
[Input("createdAt")]
public Input<int>? CreatedAt { get; set; }

/// <summary>
/// Identity that set the artifact allowlist.
/// </summary>
[Input("createdBy")]
public Input<string>? CreatedBy { get; set; }

/// <summary>
/// ID of the parent metastore.
/// </summary>
[Input("metastoreId")]
public Input<string>? MetastoreId { get; set; }

public ArtifactAllowlistState()
{
}
public static new ArtifactAllowlistState Empty => new ArtifactAllowlistState();
}
}
Loading

0 comments on commit 2ecc1ee

Please sign in to comment.