Skip to content

Commit

Permalink
Add missing parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jcieslak committed Dec 11, 2023
1 parent 962b1b6 commit 84ebf2c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/resources/grant_privileges_to_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ var grantPrivilegesToRoleSchema = map[string]*schema.Schema{
"TASKS",
"VIEWS",
"MATERIALIZED VIEWS",
"ICEBERG TABLES",
"EXTERNAL VOLUMES",
"CATALOG INTEGRATIONS",
}, true),
},
"in_database": {
Expand Down Expand Up @@ -245,6 +248,9 @@ var grantPrivilegesToRoleSchema = map[string]*schema.Schema{
"TASKS",
"VIEWS",
"MATERIALIZED VIEWS",
"ICEBERG TABLES",
"EXTERNAL VOLUMES",
"CATALOG INTEGRATIONS",
}, true),
},
"in_database": {
Expand Down
9 changes: 9 additions & 0 deletions pkg/sdk/object_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ const (
ObjectTypeApplicationRole ObjectType = "APPLICATION ROLE"
ObjectTypeStreamlit ObjectType = "STREAMLIT"
ObjectTypeColumn ObjectType = "COLUMN"
ObjectTypeIcebergTable ObjectType = "ICEBERG TABLE"
ObjectTypeExternalVolume ObjectType = "EXTERNAL VOLUME"
ObjectTypeCatalogIntegration ObjectType = "CATALOG INTEGRATION"
)

func (o ObjectType) String() string {
Expand Down Expand Up @@ -109,6 +112,9 @@ func objectTypeSingularToPluralMap() map[ObjectType]PluralObjectType {
ObjectTypeApplicationPackage: PluralObjectTypeApplicationPackages,
ObjectTypeApplicationRole: PluralObjectTypeApplicationRoles,
ObjectTypeStreamlit: PluralObjectTypeStreamlits,
ObjectTypeIcebergTable: PluralObjectTypeIcebergTables,
ObjectTypeExternalVolume: PluralObjectTypeExternalVolumes,
ObjectTypeCatalogIntegration: PluralObjectTypeCatalogIntegrations,
}
}

Expand Down Expand Up @@ -199,6 +205,9 @@ const (
PluralObjectTypeApplicationPackages PluralObjectType = "APPLICATION PACKAGES"
PluralObjectTypeApplicationRoles PluralObjectType = "APPLICATION ROLES"
PluralObjectTypeStreamlits PluralObjectType = "STREAMLITS"
PluralObjectTypeIcebergTables PluralObjectType = "ICEBERG TABLES"
PluralObjectTypeExternalVolumes PluralObjectType = "EXTERNAL VOLUMES"
PluralObjectTypeCatalogIntegrations PluralObjectType = "CATALOG INTEGRATIONS"
)

func (p PluralObjectType) String() string {
Expand Down

0 comments on commit 84ebf2c

Please sign in to comment.