You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[#266](https://github.com/dbt-labs/terraform-provider-dbtcloud/issues/266) Add env level permissions for `dbtcloud_group` and `dbtcloud_group_partial_permissions`. As of June 5 this feature is not yet active for all customers.
12
+
13
+
### Docs
14
+
15
+
- Fix description of fields for some datasources
16
+
17
+
### Internals
18
+
19
+
- Move the `dbcloud_group` resource and datasource from the SDKv2 to the Framework
20
+
- Create new helpers for comparing Go structs
21
+
- Update all SDKv2 tests to run on the muxed provider to work when some resources have moved to the Plugin Framework
Copy file name to clipboardExpand all lines: docs/data-sources/environments.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -28,13 +28,13 @@ Retrieve data for multiple environments
28
28
29
29
Read-Only:
30
30
31
-
-`credentials_id` (Number) The project ID to which the environment belong
32
-
-`custom_branch` (String) The type of deployment environment (currently 'production', 'staging' or empty)
33
-
-`dbt_version` (String) Version number of dbt to use in this environment, usually in the format 1.2.0-latest rather than core versions
34
-
-`deployment_type` (String) The name of the environment
31
+
-`credentials_id` (Number) Credential ID to create the environment with. A credential is not required for development environments but is required for deployment environments
32
+
-`custom_branch` (String) The custom branch name to use
33
+
-`dbt_version` (String) Version number of dbt to use in this environment.
34
+
-`deployment_type` (String) The type of deployment environment (currently 'production', 'staging' or empty)
35
35
-`environment_id` (Number) The ID of the environment
36
36
-`extended_attributes_id` (Number) The ID of the extended attributes applied
37
37
-`name` (String) The name of the environment
38
38
-`project_id` (Number) The project ID to which the environment belong
39
-
-`type` (String) The name of the environment
39
+
-`type` (String) The type of environment (must be either development or deployment)
40
40
-`use_custom_branch` (Boolean) Whether to use a custom git branch in this environment
Copy file name to clipboardExpand all lines: docs/data-sources/group.md
+17-7
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@
3
3
page_title: "dbtcloud_group Data Source - dbtcloud"
4
4
subcategory: ""
5
5
description: |-
6
-
6
+
Retrieve group details
7
7
---
8
8
9
9
# dbtcloud_group (Data Source)
10
10
11
-
11
+
Retrieve group details
12
12
13
13
14
14
@@ -17,12 +17,22 @@ description: |-
17
17
18
18
### Required
19
19
20
-
-`group_id` (Number) ID of the group
20
+
-`group_id` (Number) The ID of the group
21
21
22
22
### Read-Only
23
23
24
-
-`assign_by_default` (Boolean) Whether or not to assign this group to users by default
25
-
-`id` (String) The ID of this resource.
26
-
-`is_active` (Boolean) Whether the group is active
24
+
-`assign_by_default` (Boolean) Whether the group will be assigned by default to users. The value needs to be the same for all partial permissions for the same group.
25
+
-`group_permissions` (Attributes Set) Partial permissions for the group. Those permissions will be added/removed when config is added/removed. (see [below for nested schema](#nestedatt--group_permissions))
26
+
-`id` (Number) The ID of this resource
27
27
-`name` (String) Group name
28
-
-`sso_mapping_groups` (List of String) SSO mapping group names for this group
28
+
-`sso_mapping_groups` (Set of String) SSO mapping group names for this group
29
+
30
+
<aid="nestedatt--group_permissions"></a>
31
+
### Nested Schema for `group_permissions`
32
+
33
+
Read-Only:
34
+
35
+
-`all_projects` (Boolean) Whether access should be provided for all projects or not.
36
+
-`permission_set` (String) Set of permissions to apply. The permissions allowed are the same as the ones for the `dbtcloud_group` resource.
37
+
-`project_id` (Number) Project ID to apply this permission to for this group.
38
+
-`writable_environment_categories` (Set of String) What types of environments to apply Write permissions to.
-`name` (String) The name of the group. This is used to identify an existing group
62
65
63
66
### Optional
64
67
65
-
-`assign_by_default` (Boolean) Whether or not to assign this group to users by default
66
-
-`group_permissions` (Block Set) (see [below for nested schema](#nestedblock--group_permissions))
67
-
-`is_active` (Boolean) Whether the group is active
68
-
-`sso_mapping_groups` (List of String) SSO mapping group names for this group
68
+
-`assign_by_default` (Boolean) Whether the group will be assigned by default to users. The value needs to be the same for all partial permissions for the same group.
69
+
-`group_permissions` (Block Set) Partial permissions for the group. Those permissions will be added/removed when config is added/removed. (see [below for nested schema](#nestedblock--group_permissions))
70
+
-`sso_mapping_groups` (Set of String) Mapping groups from the IdP. At the moment the complete list needs to be provided in each partial permission for the same group.
69
71
70
72
### Read-Only
71
73
72
-
-`id` (String) The ID of this resource.
74
+
-`id` (Number) The ID of the group
73
75
74
76
<aid="nestedblock--group_permissions"></a>
75
77
### Nested Schema for `group_permissions`
76
78
77
79
Required:
78
80
79
-
-`all_projects` (Boolean) Whether or not to apply this permission to all projects for this group
80
-
-`permission_set` (String) Set of permissions to apply
81
+
-`all_projects` (Boolean) Whether access should be provided for all projects or not.
82
+
-`permission_set` (String) Set of permissions to apply. The permissions allowed are the same as the ones for the `dbtcloud_group` resource.
81
83
82
84
Optional:
83
85
84
-
-`project_id` (Number) Project ID to apply this permission to for this group
86
+
-`project_id` (Number) Project ID to apply this permission to for this group.
87
+
-`writable_environment_categories` (Set of String) What types of environments to apply Write permissions to.
88
+
Even if Write access is restricted to some environment types, the permission set will have Read access to all environments.
89
+
The values allowed are `all`, `development`, `staging`, `production` and `other`.
90
+
Not setting a value is the same as selecting `all`.
91
+
Not all permission sets support environment level write settings, only `analyst`, `database_admin`, `developer`, `git_admin` and `team_admin`.
Description: "The project ID to which the environment belong",
89
+
Description: "Credential ID to create the environment with. A credential is not required for development environments but is required for deployment environments",
90
90
},
91
91
"name": schema.StringAttribute{
92
92
Computed: true,
93
93
Description: "The name of the environment",
94
94
},
95
95
"dbt_version": schema.StringAttribute{
96
96
Computed: true,
97
-
Description: "Version number of dbt to use in this environment, usually in the format 1.2.0-latest rather than core versions",
97
+
Description: "Version number of dbt to use in this environment.",
98
98
},
99
99
"type": schema.StringAttribute{
100
100
Computed: true,
101
-
Description: "The name of the environment",
101
+
Description: "The type of environment (must be either development or deployment)",
102
102
},
103
103
"use_custom_branch": schema.BoolAttribute{
104
104
Computed: true,
105
105
Description: "Whether to use a custom git branch in this environment",
106
106
},
107
107
"custom_branch": schema.StringAttribute{
108
108
Computed: true,
109
-
Description: "The type of deployment environment (currently 'production', 'staging' or empty)",
109
+
Description: "The custom branch name to use",
110
110
},
111
111
"deployment_type": schema.StringAttribute{
112
112
Computed: true,
113
-
Description: "The name of the environment",
113
+
Description: "The type of deployment environment (currently 'production', 'staging' or empty)",
0 commit comments