Skip to content

Commit 97380ab

Browse files
committed
Upgrade management api library
1 parent 3318cb8 commit 97380ab

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ provider "singlestoredb" {
2525

2626
### Optional
2727

28-
- `api_key` (String, Sensitive) The SingleStore Management API key used for authentication. If not provided, the provider will attempt to read the key from the file specified in the 'api_key_path' attribute or from the environment variable 'LOCAL_KEY'. Generate your API key in the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys.
29-
- `api_key_path` (String, Sensitive) The absolute path to a file containing the SingleStore Management API key for authentication. If not provided, the provider will use the value in the 'api_key' attribute or the 'LOCAL_KEY' environment variable. Generate your API key in the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys.
28+
- `api_key` (String, Sensitive) The SingleStore Management API key used for authentication. If not provided, the provider will attempt to read the key from the file specified in the 'api_key_path' attribute or from the environment variable 'SINGLESTOREDB_API_KEY'. Generate your API key in the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys.
29+
- `api_key_path` (String, Sensitive) The absolute path to a file containing the SingleStore Management API key for authentication. If not provided, the provider will use the value in the 'api_key' attribute or the 'SINGLESTOREDB_API_KEY' environment variable. Generate your API key in the SingleStore Portal at https://portal.singlestore.com/organizations/org-id/api-keys.
3030
- `api_service_url` (String, Deprecated) The URL of the SingleStore Management API service. This URL is used by the provider to interact with the API.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/hashicorp/terraform-plugin-framework-validators v0.16.0
1212
github.com/hashicorp/terraform-plugin-go v0.25.0
1313
github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0
14-
github.com/singlestore-labs/singlestore-go/management v1.1.117
14+
github.com/singlestore-labs/singlestore-go/management v1.1.118
1515
github.com/stretchr/testify v1.8.4
1616
)
1717

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
184184
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
185185
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
186186
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
187-
github.com/singlestore-labs/singlestore-go/management v1.1.117 h1:xMrWP09+tl3U8/wUkbQ6wH0A+dRV9ocNS1fLxWqqn9U=
188-
github.com/singlestore-labs/singlestore-go/management v1.1.117/go.mod h1:pfeKQbKr6ml61j823Pi4RUnBTug1buSxLJDmGINAoKc=
187+
github.com/singlestore-labs/singlestore-go/management v1.1.118 h1:RF60/0X9l+EIGuAoJZaLuokMKfc9gTTzrGnKrigtI90=
188+
github.com/singlestore-labs/singlestore-go/management v1.1.118/go.mod h1:pfeKQbKr6ml61j823Pi4RUnBTug1buSxLJDmGINAoKc=
189189
github.com/skeema/knownhosts v1.2.2 h1:Iug2P4fLmDw9f41PB6thxUkNUkJzB5i+1/exaj40L3A=
190190
github.com/skeema/knownhosts v1.2.2/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo=
191191
github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0=

internal/provider/roles/common.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ func getUserRolesAndValidate(ctx context.Context, r management.ClientWithRespons
8484
return getRolesAndValidate(ctx, r, userIDstr, EntityTypeUser, resourceType, expectedRoles, unexpectedRoles)
8585
}
8686

87+
//nolint:unused
8788
func getTeamRolesAndValidate(ctx context.Context, r management.ClientWithResponsesInterface, teamIDstr string, resourceType *string, expectedRoles, unexpectedRoles *[]RoleAttributesModel) ([]RoleAttributesModel, error) {
8889
return getRolesAndValidate(ctx, r, teamIDstr, EntityTypeTeam, resourceType, expectedRoles, unexpectedRoles)
8990
}
@@ -183,6 +184,7 @@ func modifyUserAccessControlsForResource(ctx context.Context, r management.Clien
183184
return modifyAccessControlsForResource(ctx, r, entityIDstr, EntityTypeUser, resourceIDstr, ResourceTypeString(resourceType), grantRoles, revokeRoles)
184185
}
185186

187+
//nolint:unused
186188
func modifyTeamAccessControlsForResource(ctx context.Context, r management.ClientWithResponsesInterface, entityIDstr, resourceIDstr, resourceType types.String, grantRoles, revokeRoles *[]RoleAttributesModel) (bool, error) {
187189
return modifyAccessControlsForResource(ctx, r, entityIDstr, EntityTypeTeam, resourceIDstr, ResourceTypeString(resourceType), grantRoles, revokeRoles)
188190
}

0 commit comments

Comments
 (0)