Description
Add two data sources for enterprise license management:
github_enterprise_consumed_licenses — list of users consuming enterprise licenses, with details on each seat
github_enterprise_license_sync_status — license sync status between enterprise and connected server instances
go-github v84 API
func (s *EnterpriseService) GetConsumedLicenses(ctx context.Context, enterprise string, opts *ListOptions) (*EnterpriseConsumedLicenses, *Response, error)
// GET /enterprises/{enterprise}/consumed-licenses
func (s *EnterpriseService) GetLicenseSyncStatus(ctx context.Context, enterprise string) (*EnterpriseLicenseSyncStatus, *Response, error)
// GET /enterprises/{enterprise}/license-sync-status
Structs
type EnterpriseConsumedLicenses struct {
TotalSeatsConsumed *int
TotalSeatsPurchased *int
Users []*EnterpriseUserLicense
}
type EnterpriseLicenseSyncStatus struct {
// sync job state, last_sync_at, etc.
}
Acceptance Criteria
Description
Add two data sources for enterprise license management:
github_enterprise_consumed_licenses— list of users consuming enterprise licenses, with details on each seatgithub_enterprise_license_sync_status— license sync status between enterprise and connected server instancesgo-github v84 API
Structs
Acceptance Criteria
github_enterprise_consumed_licensesdata source withenterprise_slug, pagination, computed seat counts and user listgithub_enterprise_license_sync_statusdata source withenterprise_slugand computed status fieldsprovider.go