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

Commit 23a328d

Browse files
authored
auth: Make expires_at field optional (#132)
1 parent 3c743cd commit 23a328d

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Contributions to this library offering support for the [Terraform provider for G
1010
To run the tests:
1111

1212
```
13-
go test
13+
make test
1414
```

cloud_access_policy_token.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ import (
99
)
1010

1111
type CreateCloudAccessPolicyTokenInput struct {
12-
AccessPolicyID string `json:"accessPolicyId"`
13-
Name string `json:"name"`
14-
DisplayName string `json:"displayName"`
15-
ExpiresAt time.Time `json:"expiresAt"`
12+
AccessPolicyID string `json:"accessPolicyId"`
13+
Name string `json:"name"`
14+
DisplayName string `json:"displayName,omitempty"`
15+
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
1616
}
1717

1818
type UpdateCloudAccessPolicyTokenInput struct {
1919
DisplayName string `json:"displayName"`
2020
}
2121

2222
type CloudAccessPolicyToken struct {
23-
ID string `json:"id"`
24-
AccessPolicyID string `json:"accessPolicyId"`
25-
Name string `json:"name"`
26-
DisplayName string `json:"displayName"`
27-
ExpiresAt time.Time `json:"expiresAt"`
28-
FirstUsedAt time.Time `json:"firstUsedAt"`
29-
CreatedAt time.Time `json:"createdAt"`
30-
UpdatedAt time.Time `json:"updatedAt"`
23+
ID string `json:"id"`
24+
AccessPolicyID string `json:"accessPolicyId"`
25+
Name string `json:"name"`
26+
DisplayName string `json:"displayName"`
27+
ExpiresAt *time.Time `json:"expiresAt"`
28+
FirstUsedAt time.Time `json:"firstUsedAt"`
29+
CreatedAt time.Time `json:"createdAt"`
30+
UpdatedAt *time.Time `json:"updatedAt"`
3131

3232
Token string `json:"token,omitempty"` // Only returned when creating a token.
3333
}

0 commit comments

Comments
 (0)