@@ -173,9 +173,8 @@ type PremiumRequestUsageReport struct {
173173
174174// GetOrganizationPackagesBilling returns the free and paid storage used for GitHub Packages in gigabytes for an Org.
175175//
176- // GitHub API docs: https://docs.github.com/rest/billing/billing#get-github-packages-billing-for-an-organization
177- //
178- //meta:operation GET /orgs/{org}/settings/billing/packages
176+ // This endpoint appears to have disappeared from the official GitHub v3 API documentation website.
177+ // See https://github.com/google/go-github/issues/3894 for details.
179178func (s * BillingService ) GetOrganizationPackagesBilling (ctx context.Context , org string ) (* PackagesBilling , * Response , error ) {
180179 u := fmt .Sprintf ("orgs/%v/settings/billing/packages" , org )
181180 req , err := s .client .NewRequest ("GET" , u , nil )
@@ -195,9 +194,8 @@ func (s *BillingService) GetOrganizationPackagesBilling(ctx context.Context, org
195194// GetOrganizationStorageBilling returns the estimated paid and estimated total storage used for GitHub Actions
196195// and GitHub Packages in gigabytes for an Org.
197196//
198- // GitHub API docs: https://docs.github.com/rest/billing/billing#get-shared-storage-billing-for-an-organization
199- //
200- //meta:operation GET /orgs/{org}/settings/billing/shared-storage
197+ // This endpoint appears to have disappeared from the official GitHub v3 API documentation website.
198+ // See https://github.com/google/go-github/issues/3894 for details.
201199func (s * BillingService ) GetOrganizationStorageBilling (ctx context.Context , org string ) (* StorageBilling , * Response , error ) {
202200 u := fmt .Sprintf ("orgs/%v/settings/billing/shared-storage" , org )
203201 req , err := s .client .NewRequest ("GET" , u , nil )
@@ -242,9 +240,8 @@ func (s *BillingService) GetOrganizationAdvancedSecurityActiveCommitters(ctx con
242240
243241// GetPackagesBilling returns the free and paid storage used for GitHub Packages in gigabytes for a user.
244242//
245- // GitHub API docs: https://docs.github.com/rest/billing/billing#get-github-packages-billing-for-a-user
246- //
247- //meta:operation GET /users/{username}/settings/billing/packages
243+ // This endpoint appears to have disappeared from the official GitHub v3 API documentation website.
244+ // See https://github.com/google/go-github/issues/3894 for details.
248245func (s * BillingService ) GetPackagesBilling (ctx context.Context , user string ) (* PackagesBilling , * Response , error ) {
249246 u := fmt .Sprintf ("users/%v/settings/billing/packages" , user )
250247 req , err := s .client .NewRequest ("GET" , u , nil )
@@ -264,9 +261,8 @@ func (s *BillingService) GetPackagesBilling(ctx context.Context, user string) (*
264261// GetStorageBilling returns the estimated paid and estimated total storage used for GitHub Actions
265262// and GitHub Packages in gigabytes for a user.
266263//
267- // GitHub API docs: https://docs.github.com/rest/billing/billing#get-shared-storage-billing-for-a-user
268- //
269- //meta:operation GET /users/{username}/settings/billing/shared-storage
264+ // This endpoint appears to have disappeared from the official GitHub v3 API documentation website.
265+ // See https://github.com/google/go-github/issues/3894 for details.
270266func (s * BillingService ) GetStorageBilling (ctx context.Context , user string ) (* StorageBilling , * Response , error ) {
271267 u := fmt .Sprintf ("users/%v/settings/billing/shared-storage" , user )
272268 req , err := s .client .NewRequest ("GET" , u , nil )
@@ -287,7 +283,7 @@ func (s *BillingService) GetStorageBilling(ctx context.Context, user string) (*S
287283//
288284// Note: This endpoint is only available to organizations with access to the enhanced billing platform.
289285//
290- // GitHub API docs: https://docs.github.com/rest/billing/enhanced-billing #get-billing-usage-report-for-an-organization
286+ // GitHub API docs: https://docs.github.com/rest/billing/usage #get-billing-usage-report-for-an-organization
291287//
292288//meta:operation GET /organizations/{org}/settings/billing/usage
293289func (s * BillingService ) GetOrganizationUsageReport (ctx context.Context , org string , opts * UsageReportOptions ) (* UsageReport , * Response , error ) {
@@ -315,7 +311,7 @@ func (s *BillingService) GetOrganizationUsageReport(ctx context.Context, org str
315311//
316312// Note: This endpoint is only available to users with access to the enhanced billing platform.
317313//
318- // GitHub API docs: https://docs.github.com/rest/billing/enhanced-billing #get-billing-usage-report-for-a-user
314+ // GitHub API docs: https://docs.github.com/rest/billing/usage #get-billing-usage-report-for-a-user
319315//
320316//meta:operation GET /users/{username}/settings/billing/usage
321317func (s * BillingService ) GetUsageReport (ctx context.Context , user string , opts * UsageReportOptions ) (* UsageReport , * Response , error ) {
@@ -344,7 +340,7 @@ func (s *BillingService) GetUsageReport(ctx context.Context, user string, opts *
344340//
345341// Note: This endpoint is only available to organizations with access to the enhanced billing platform.
346342//
347- // GitHub API docs: https://docs.github.com/rest/billing/enhanced-billing #get-billing-premium-request-usage-report-for-an-organization
343+ // GitHub API docs: https://docs.github.com/rest/billing/usage #get-billing-premium-request-usage-report-for-an-organization
348344//
349345//meta:operation GET /organizations/{org}/settings/billing/premium_request/usage
350346func (s * BillingService ) GetOrganizationPremiumRequestUsageReport (ctx context.Context , org string , opts * PremiumRequestUsageReportOptions ) (* PremiumRequestUsageReport , * Response , error ) {
@@ -373,7 +369,7 @@ func (s *BillingService) GetOrganizationPremiumRequestUsageReport(ctx context.Co
373369//
374370// Note: This endpoint is only available to users with access to the enhanced billing platform.
375371//
376- // GitHub API docs: https://docs.github.com/rest/billing/enhanced-billing #get-billing-premium-request-usage-report-for-a-user
372+ // GitHub API docs: https://docs.github.com/rest/billing/usage #get-billing-premium-request-usage-report-for-a-user
377373//
378374//meta:operation GET /users/{username}/settings/billing/premium_request/usage
379375func (s * BillingService ) GetPremiumRequestUsageReport (ctx context.Context , user string , opts * PremiumRequestUsageReportOptions ) (* PremiumRequestUsageReport , * Response , error ) {
0 commit comments