Skip to content

Commit

Permalink
AccountExternalIdInfo/Accounts.GetAccountExternalIDs: Adjusted docs a…
Browse files Browse the repository at this point in the history
…ccording the official documentation
  • Loading branch information
andygrunwald committed Aug 20, 2023
1 parent 8a06083 commit 4f1401b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ type AccountDetailInfo struct {
RegisteredOn Timestamp `json:"registered_on"`
}

// AccountExternalIdInfo contains informations to link to external ID providers
// AccountExternalIdInfo entity contains information for an external id of an account.
type AccountExternalIdInfo struct {
Identity string `json:"identity"`
EmailAddress string `json:"email_address,omitempty"`
Expand Down Expand Up @@ -325,7 +325,10 @@ func (s *AccountsService) GetAccountDetails(accountID string) (*AccountDetailInf
return v, resp, err
}

// GetAccountExternalIDs returns AccountExternalIdInfo for the account
// GetAccountExternalIDs retrieves the external ids of a user account.
//
// Only external ids belonging to the caller may be requested.
// Users that have Modify Account can request external ids that belong to other accounts.
//
// Gerrit API docs: https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#get-account-external-ids
func (s *AccountsService) GetAccountExternalIDs(accountID string) (*[]AccountExternalIdInfo, *Response, error) {
Expand Down

0 comments on commit 4f1401b

Please sign in to comment.