Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 0f24aa2

Browse files
authored
Merge branch 'master' into alexweav/mute-timings
2 parents c6904d3 + 0a3ecde commit 0f24aa2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

service_account.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ type CreateServiceAccountTokenRequest struct {
1717

1818
// CreateServiceAccountRequest is the request body for creating a new service account.
1919
type CreateServiceAccountRequest struct {
20-
Name string `json:"name"`
20+
Name string `json:"name"`
21+
Role string `json:"role,omitempty"`
22+
IsDisabled *bool `json:"isDisabled,omitempty"`
2123
}
2224

2325
// UpdateServiceAccountRequest is the request body for modifying a service account.

service_account_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,11 @@ func TestCreateServiceAccount(t *testing.T) {
9898
server, client := gapiTestTools(t, http.StatusOK, serviceAccountJSON)
9999
defer server.Close()
100100

101+
isDisabled := true
101102
req := CreateServiceAccountRequest{
102-
Name: "newSA",
103+
Name: "newSA",
104+
Role: "Admin",
105+
IsDisabled: &isDisabled,
103106
}
104107

105108
res, err := client.CreateServiceAccount(req)

0 commit comments

Comments
 (0)