Skip to content

Commit

Permalink
Rename json field in struct TokenOpts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatyana Voloshina committed Aug 4, 2020
1 parent de8b31c commit 37533f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion selvpcclient/resell/v2/tokens/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Example of creating a project-scoped token
Example of creating a domain-scoped token
createOpts := tokens.TokenOpts{
DomainName: "1122334455",
AccountName: "1122334455",
}
token, err := tokens.Create(ctx, resellClient, createOpts)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions selvpcclient/resell/v2/tokens/requests_opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ type TokenOpts struct {
// ProjectID can be used to create a project-scoped Identity token.
ProjectID string `json:"project_id,omitempty"`

// DomainName can be used to create a domain-scoped Identity token.
DomainName string `json:"domain_name,omitempty"`
// AccountName can be used to create a domain-scoped Identity token.
AccountName string `json:"account_name,omitempty"`
}

0 comments on commit 37533f5

Please sign in to comment.