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

Commit

Permalink
auth: Make expires_at field optional (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
cinaglia authored Jan 18, 2023
1 parent 3c743cd commit 23a328d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ Contributions to this library offering support for the [Terraform provider for G
To run the tests:

```
go test
make test
```
24 changes: 12 additions & 12 deletions cloud_access_policy_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ import (
)

type CreateCloudAccessPolicyTokenInput struct {
AccessPolicyID string `json:"accessPolicyId"`
Name string `json:"name"`
DisplayName string `json:"displayName"`
ExpiresAt time.Time `json:"expiresAt"`
AccessPolicyID string `json:"accessPolicyId"`
Name string `json:"name"`
DisplayName string `json:"displayName,omitempty"`
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
}

type UpdateCloudAccessPolicyTokenInput struct {
DisplayName string `json:"displayName"`
}

type CloudAccessPolicyToken struct {
ID string `json:"id"`
AccessPolicyID string `json:"accessPolicyId"`
Name string `json:"name"`
DisplayName string `json:"displayName"`
ExpiresAt time.Time `json:"expiresAt"`
FirstUsedAt time.Time `json:"firstUsedAt"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
ID string `json:"id"`
AccessPolicyID string `json:"accessPolicyId"`
Name string `json:"name"`
DisplayName string `json:"displayName"`
ExpiresAt *time.Time `json:"expiresAt"`
FirstUsedAt time.Time `json:"firstUsedAt"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`

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

0 comments on commit 23a328d

Please sign in to comment.