Skip to content

Commit ca3f099

Browse files
authored
chore: support multiple columns (#147)
* chore: dependency update * fix: lint * fix: lint * chore: support multiple columns * chore: support raw_expression
1 parent 806fee8 commit ca3f099

File tree

26 files changed

+297
-160
lines changed

26 files changed

+297
-160
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.9.1
1+
3.9.2

docs/data-sources/policy.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,15 @@ Optional:
8787

8888
Required:
8989

90-
- `action` (String)
91-
- `member` (String) The member in user:{email} or group:{email} format.
90+
- `actions` (Set of String)
91+
- `members` (Set of String)
9292

9393
Optional:
9494

95-
- `column` (String)
95+
- `columns` (Set of String)
9696
- `database` (String) The database full name in instances/{instance resource id}/databases/{database name} format
9797
- `expire_timestamp` (String) The expiration timestamp in YYYY-MM-DDThh:mm:ss.000Z format
98+
- `raw_expression` (String) The raw CEL expression. We will use it as the masking exception and ignore the "database"/"schema"/"table"/"columns"/"expire_timestamp" fields if you provide the raw expression.
9899
- `reason` (String) The reason for the masking exemption
99100
- `schema` (String)
100101
- `table` (String)

docs/data-sources/policy_list.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,34 @@ The policy data source list.
2929

3030
Read-Only:
3131

32+
- `data_source_query_policy` (List of Object) (see [below for nested schema](#nestedobjatt--policies--data_source_query_policy))
33+
- `disable_copy_data_policy` (List of Object) (see [below for nested schema](#nestedobjatt--policies--disable_copy_data_policy))
3234
- `enforce` (Boolean)
3335
- `global_masking_policy` (List of Object) (see [below for nested schema](#nestedobjatt--policies--global_masking_policy))
3436
- `inherit_from_parent` (Boolean)
3537
- `masking_exception_policy` (List of Object) (see [below for nested schema](#nestedobjatt--policies--masking_exception_policy))
3638
- `name` (String)
39+
- `rollout_policy` (List of Object) (see [below for nested schema](#nestedobjatt--policies--rollout_policy))
3740
- `type` (String)
3841

42+
<a id="nestedobjatt--policies--data_source_query_policy"></a>
43+
### Nested Schema for `policies.data_source_query_policy`
44+
45+
Read-Only:
46+
47+
- `disallow_ddl` (Boolean)
48+
- `disallow_dml` (Boolean)
49+
- `restriction` (String)
50+
51+
52+
<a id="nestedobjatt--policies--disable_copy_data_policy"></a>
53+
### Nested Schema for `policies.disable_copy_data_policy`
54+
55+
Read-Only:
56+
57+
- `enable` (Boolean)
58+
59+
3960
<a id="nestedobjatt--policies--global_masking_policy"></a>
4061
### Nested Schema for `policies.global_masking_policy`
4162

@@ -67,13 +88,24 @@ Read-Only:
6788

6889
Read-Only:
6990

70-
- `action` (String)
71-
- `column` (String)
91+
- `actions` (Set of String)
92+
- `columns` (Set of String)
7293
- `database` (String)
7394
- `expire_timestamp` (String)
74-
- `member` (String)
95+
- `members` (Set of String)
96+
- `raw_expression` (String)
7597
- `reason` (String)
7698
- `schema` (String)
7799
- `table` (String)
78100

79101

102+
103+
<a id="nestedobjatt--policies--rollout_policy"></a>
104+
### Nested Schema for `policies.rollout_policy`
105+
106+
Read-Only:
107+
108+
- `automatic` (Boolean)
109+
- `roles` (Set of String)
110+
111+

docs/resources/policy.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,15 @@ Optional:
8787

8888
Required:
8989

90-
- `action` (String)
91-
- `member` (String) The member in user:{email} or group:{email} format.
90+
- `actions` (Set of String)
91+
- `members` (Set of String)
9292

9393
Optional:
9494

95-
- `column` (String)
95+
- `columns` (Set of String)
9696
- `database` (String) The database full name in instances/{instance resource id}/databases/{database name} format
9797
- `expire_timestamp` (String) The expiration timestamp in YYYY-MM-DDThh:mm:ss.000Z format
98+
- `raw_expression` (String) The raw CEL expression. We will use it as the masking exception and ignore the "database"/"schema"/"table"/"columns"/"expire_timestamp" fields if you provide the raw expression.
9899
- `reason` (String) The reason for the masking exemption
99100
- `schema` (String)
100101
- `table` (String)

examples/database/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
terraform {
33
required_providers {
44
bytebase = {
5-
version = "3.9.1"
5+
version = "3.9.2"
66
# For local development, please use "terraform.local/bytebase/bytebase" instead
77
source = "registry.terraform.io/bytebase/bytebase"
88
}

examples/database_group/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
bytebase = {
4-
version = "3.9.1"
4+
version = "3.9.2"
55
# For local development, please use "terraform.local/bytebase/bytebase" instead
66
source = "registry.terraform.io/bytebase/bytebase"
77
}

examples/environments/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
bytebase = {
4-
version = "3.9.1"
4+
version = "3.9.2"
55
# For local development, please use "terraform.local/bytebase/bytebase" instead
66
source = "registry.terraform.io/bytebase/bytebase"
77
}

examples/groups/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
bytebase = {
4-
version = "3.9.1"
4+
version = "3.9.2"
55
# For local development, please use "terraform.local/bytebase/bytebase" instead
66
source = "registry.terraform.io/bytebase/bytebase"
77
}
@@ -30,7 +30,7 @@ data "bytebase_project" "sample_project" {
3030

3131
data "bytebase_group_list" "groups_in_project" {
3232
project = data.bytebase_project.sample_project.name
33-
query = "Bytebase"
33+
query = "Bytebase"
3434
}
3535

3636
output "groups_in_project" {

examples/iamPolicy/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
bytebase = {
4-
version = "3.9.1"
4+
version = "3.9.2"
55
# For local development, please use "terraform.local/bytebase/bytebase" instead
66
source = "registry.terraform.io/bytebase/bytebase"
77
}

examples/instances/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
terraform {
33
required_providers {
44
bytebase = {
5-
version = "3.9.1"
5+
version = "3.9.2"
66
# For local development, please use "terraform.local/bytebase/bytebase" instead
77
source = "registry.terraform.io/bytebase/bytebase"
88
}

0 commit comments

Comments
 (0)