Skip to content

Commit

Permalink
azurerm_data_factory_dataset_parquet - mark path as optional (#19009
Browse files Browse the repository at this point in the history
)

* `azurerm_data_factory_dataset_parquet` - mark `path` as optional

* add test
  • Loading branch information
ms-henglu authored Oct 27, 2022
1 parent 4fe3db3 commit df78c9e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ func resourceDataFactoryDatasetParquet() *pluginsdk.Resource {
Optional: true,
Default: false,
},
"path": {
Type: pluginsdk.TypeString,
Required: true,
ValidateFunc: validation.StringIsNotEmpty,
},
"dynamic_path_enabled": {
Type: pluginsdk.TypeBool,
Optional: true,
Expand All @@ -110,6 +105,11 @@ func resourceDataFactoryDatasetParquet() *pluginsdk.Resource {
Optional: true,
Default: false,
},
"path": {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: validation.StringIsNotEmpty,
},
},
},
},
Expand Down Expand Up @@ -163,11 +163,6 @@ func resourceDataFactoryDatasetParquet() *pluginsdk.Resource {
Required: true,
ValidateFunc: validation.StringIsNotEmpty,
},
"path": {
Type: pluginsdk.TypeString,
Required: true,
ValidateFunc: validation.StringIsNotEmpty,
},
"dynamic_path_enabled": {
Type: pluginsdk.TypeBool,
Optional: true,
Expand All @@ -183,6 +178,11 @@ func resourceDataFactoryDatasetParquet() *pluginsdk.Resource {
Optional: true,
Default: false,
},
"path": {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: validation.StringIsNotEmpty,
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ resource "azurerm_data_factory_dataset_parquet" "test" {
http_server_location {
relative_url = "/fizz/buzz/"
path = "foo/bar/"
filename = "foo.txt"
}
}
Expand Down Expand Up @@ -335,7 +334,6 @@ resource "azurerm_data_factory_dataset_parquet" "test" {
azure_blob_storage_location {
container = azurerm_storage_container.test.name
path = "@concat('foo/bar/',formatDateTime(convertTimeZone(utcnow(),'UTC','W. Europe Standard Time'),'yyyy-MM-dd'))"
dynamic_path_enabled = true
}
}
Expand Down
7 changes: 3 additions & 4 deletions website/docs/r/data_factory_dataset_parquet.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,19 @@ A `http_server_location` block supports the following:

* `relative_url` - (Required) The base URL to the web server hosting the file.

* `path` - (Required) The folder path to the file on the web server.

* `filename` - (Optional) The filename of the file on the web server.

* `dynamic_path_enabled` - (Optional) Is the `path` using dynamic expression, function or system variables? Defaults to `false`.

* `dynamic_filename_enabled` - (Optional) Is the `filename` using dynamic expression, function or system variables? Defaults to `false`.

* `path` - (Optional) The folder path to the file on the web server.
---

A `azure_blob_storage_location` block supports the following:

* `container` - (Required) The container on the Azure Blob Storage Account hosting the file.

* `path` - (Required) The folder path to the file on the web server.

* `filename` - (Required) The filename of the file on the web server.

* `dynamic_container_enabled` - (Optional) Is the `container` using dynamic expression, function or system variables? Defaults to `false`.
Expand All @@ -116,6 +113,8 @@ A `azure_blob_storage_location` block supports the following:

* `dynamic_filename_enabled` - (Optional) Is the `filename` using dynamic expression, function or system variables? Defaults to `false`.

* `path` - (Optional) The folder path to the file on the web server.

## Attributes Reference

The following attributes are exported:
Expand Down

0 comments on commit df78c9e

Please sign in to comment.