func (r *GetGithubActionsBillingOrgResponse) ReadResponse(resp *http.Response) error {
	r.httpResponse = resp
	err := responseErrorCheck(resp, []int{200})
	if err != nil {
		return err
	}
	if intInSlice(resp.StatusCode, []int{200}) {
		err = unmarshalResponseBody(resp, &r.Data)
		if err != nil {
			return err
		}
	}
	return nil
}
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
package billing
import (
	"context"
	"fmt"
	components "github.com/willabides/octo-go/components"
	requests "github.com/willabides/octo-go/requests"
	"net/http"
)
func GetGithubActionsBillingGhe(ctx context.Context, req *GetGithubActionsBillingGheReq, opt ...requests.Option) (*GetGithubActionsBillingGheResponse, error) {
	opts := requests.BuildOptions(opt...)
	if req == nil {
		req = new(GetGithubActionsBillingGheReq)
	}
	resp := &GetGithubActionsBillingGheResponse{}
	httpReq, err := req.HTTPRequest(ctx, opt...)
	if err != nil {
		return nil, err
	}
	r, err := opts.HttpClient().Do(httpReq)
	if err != nil {
		return nil, err
	}
	err = resp.ReadResponse(r)
	if err != nil {
		return nil, err
	}
	return resp, nil
}
func (c Client) GetGithubActionsBillingGhe(ctx context.Context, req *GetGithubActionsBillingGheReq, opt ...requests.Option) (*GetGithubActionsBillingGheResponse, error) {
	return GetGithubActionsBillingGhe(ctx, req, append(c, opt...)...)
}
type GetGithubActionsBillingGheReq struct {
	_url string
	EnterpriseId string
}
func (r *GetGithubActionsBillingGheReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error) {
	return buildHTTPRequest(ctx, buildHTTPRequestOptions{
		ExplicitURL: r._url,
		HeaderVals:  map[string]*string{"accept": strPtr("application/json")},
		Method:      "GET",
		Options:     opt,
		URLPath:     fmt.Sprintf("/enterprises/%v/settings/billing/actions", r.EnterpriseId),
	})
}
func (r *GetGithubActionsBillingGheReq) Rel(link string, resp *GetGithubActionsBillingGheResponse) bool {
	u := getRelLink(resp.HTTPResponse(), link)
	if u == "" {
		return false
	}
	r._url = u
	return true
}
type GetGithubActionsBillingGheResponse struct {
	httpResponse *http.Response
	Data         components.ActionsBillingUsage
}
func (r *GetGithubActionsBillingGheResponse) HTTPResponse() *http.Response {
	return r.httpResponse
}
func (r *GetGithubActionsBillingGheResponse) ReadResponse(resp *http.Response) error {
	r.httpResponse = resp
	err := responseErrorCheck(resp, []int{200})
	if err != nil {
		return err
	}
	if intInSlice(resp.StatusCode, []int{200}) {
		err = unmarshalResponseBody(resp, &r.Data)
		if err != nil {
			return err
		}
	}
	return nil
}
func GetGithubActionsBillingOrg(ctx context.Context, req *GetGithubActionsBillingOrgReq, opt ...requests.Option) (*GetGithubActionsBillingOrgResponse, error) {
	opts := requests.BuildOptions(opt...)
	if req == nil {
		req = new(GetGithubActionsBillingOrgReq)
	}
	resp := &GetGithubActionsBillingOrgResponse{}
	httpReq, err := req.HTTPRequest(ctx, opt...)
	if err != nil {
		return nil, err
	}
	r, err := opts.HttpClient().Do(httpReq)
	if err != nil {
		return nil, err
	}
	err = resp.ReadResponse(r)
	if err != nil {
		return nil, err
	}
	return resp, nil
}
func (c Client) GetGithubActionsBillingOrg(ctx context.Context, req *GetGithubActionsBillingOrgReq, opt ...requests.Option) (*GetGithubActionsBillingOrgResponse, error) {
	return GetGithubActionsBillingOrg(ctx, req, append(c, opt...)...)
}
type GetGithubActionsBillingOrgReq struct {
	_url string
	Org  string
}
func (r *GetGithubActionsBillingOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error) {
	return buildHTTPRequest(ctx, buildHTTPRequestOptions{
		ExplicitURL: r._url,
		HeaderVals:  map[string]*string{"accept": strPtr("application/json")},
		Method:      "GET",
		Options:     opt,
		URLPath:     fmt.Sprintf("/orgs/%v/settings/billing/actions", r.Org),
	})
}
func (r *GetGithubActionsBillingOrgReq) Rel(link string, resp *GetGithubActionsBillingOrgResponse) bool {
	u := getRelLink(resp.HTTPResponse(), link)
	if u == "" {
		return false
	}
	r._url = u
	return true
}
type GetGithubActionsBillingOrgResponse struct {
	httpResponse *http.Response
	Data         components.ActionsBillingUsage
}
func (r *GetGithubActionsBillingOrgResponse) HTTPResponse() *http.Response {
	return r.httpResponse
}