Loading group_access_tokens.go +3 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,9 @@ type ListGroupAccessTokensOptions struct { Revoked *bool `url:"revoked,omitempty" json:"revoked,omitempty"` Search *string `url:"search,omitempty" json:"search,omitempty"` State *AccessTokenState `url:"state,omitempty" json:"state,omitempty"` ExpiresAfter *ISOTime `url:"expires_after,omitempty" json:"expires_after,omitempty"` ExpiresBefore *ISOTime `url:"expires_before,omitempty" json:"expires_before,omitempty"` Sort *AccessTokenSort `url:"sort,omitempty" json:"sort,omitempty"` } // ListGroupAccessTokens gets a list of all group access tokens in a group. Loading types.go +17 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,23 @@ const ( AccessTokenStateInactive AccessTokenState = "inactive" ) // AccessTokenSort represents the available sorting options for access tokens. // // GitLab API docs: // https://docs.gitlab.com/api/group_access_tokens/#list-all-group-access-tokens type AccessTokenSort string const ( CreatedAsc AccessTokenSort = "created_asc" CreatedDesc AccessTokenSort = "created_desc" ExpiresAsc AccessTokenSort = "expires_asc" ExpiresDesc AccessTokenSort = "expires_desc" LastUsedAsc AccessTokenSort = "last_used_asc" LastUsedDesc AccessTokenSort = "last_used_desc" NameAsc AccessTokenSort = "name_asc" NameDesc AccessTokenSort = "name_desc" ) // UserIDValue represents a user ID value within GitLab. type UserIDValue string Loading Loading
group_access_tokens.go +3 −0 Original line number Diff line number Diff line Loading @@ -67,6 +67,9 @@ type ListGroupAccessTokensOptions struct { Revoked *bool `url:"revoked,omitempty" json:"revoked,omitempty"` Search *string `url:"search,omitempty" json:"search,omitempty"` State *AccessTokenState `url:"state,omitempty" json:"state,omitempty"` ExpiresAfter *ISOTime `url:"expires_after,omitempty" json:"expires_after,omitempty"` ExpiresBefore *ISOTime `url:"expires_before,omitempty" json:"expires_before,omitempty"` Sort *AccessTokenSort `url:"sort,omitempty" json:"sort,omitempty"` } // ListGroupAccessTokens gets a list of all group access tokens in a group. Loading
types.go +17 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,23 @@ const ( AccessTokenStateInactive AccessTokenState = "inactive" ) // AccessTokenSort represents the available sorting options for access tokens. // // GitLab API docs: // https://docs.gitlab.com/api/group_access_tokens/#list-all-group-access-tokens type AccessTokenSort string const ( CreatedAsc AccessTokenSort = "created_asc" CreatedDesc AccessTokenSort = "created_desc" ExpiresAsc AccessTokenSort = "expires_asc" ExpiresDesc AccessTokenSort = "expires_desc" LastUsedAsc AccessTokenSort = "last_used_asc" LastUsedDesc AccessTokenSort = "last_used_desc" NameAsc AccessTokenSort = "name_asc" NameDesc AccessTokenSort = "name_desc" ) // UserIDValue represents a user ID value within GitLab. type UserIDValue string Loading