Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingService ¶
type BillingService struct {
Options []option.RequestOption
Profiles *ProfileService
}
BillingService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewBillingService method instead.
func NewBillingService ¶
func NewBillingService(opts ...option.RequestOption) (r *BillingService)
NewBillingService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
type ProfileGetResponse ¶
type ProfileGetResponse interface {
ImplementsBillingProfileGetResponse()
}
Union satisfied by billing.ProfileGetResponseUnknown or shared.UnionString.
type ProfileGetResponseEnvelope ¶
type ProfileGetResponseEnvelope struct {
Errors []ProfileGetResponseEnvelopeErrors `json:"errors,required"`
Messages []ProfileGetResponseEnvelopeMessages `json:"messages,required"`
Result ProfileGetResponse `json:"result,required"`
// Whether the API call was successful
Success ProfileGetResponseEnvelopeSuccess `json:"success,required"`
JSON profileGetResponseEnvelopeJSON `json:"-"`
}
func (*ProfileGetResponseEnvelope) UnmarshalJSON ¶
func (r *ProfileGetResponseEnvelope) UnmarshalJSON(data []byte) (err error)
type ProfileGetResponseEnvelopeErrors ¶
type ProfileGetResponseEnvelopeErrors struct {
Code int64 `json:"code,required"`
Message string `json:"message,required"`
JSON profileGetResponseEnvelopeErrorsJSON `json:"-"`
}
func (*ProfileGetResponseEnvelopeErrors) UnmarshalJSON ¶
func (r *ProfileGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error)
type ProfileGetResponseEnvelopeMessages ¶
type ProfileGetResponseEnvelopeMessages struct {
Code int64 `json:"code,required"`
Message string `json:"message,required"`
JSON profileGetResponseEnvelopeMessagesJSON `json:"-"`
}
func (*ProfileGetResponseEnvelopeMessages) UnmarshalJSON ¶
func (r *ProfileGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error)
type ProfileGetResponseEnvelopeSuccess ¶
type ProfileGetResponseEnvelopeSuccess bool
Whether the API call was successful
const (
ProfileGetResponseEnvelopeSuccessTrue ProfileGetResponseEnvelopeSuccess = true
)
type ProfileService ¶
type ProfileService struct {
Options []option.RequestOption
}
ProfileService contains methods and other services that help with interacting with the cloudflare API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewProfileService method instead.
func NewProfileService ¶
func NewProfileService(opts ...option.RequestOption) (r *ProfileService)
NewProfileService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*ProfileService) Get ¶
func (r *ProfileService) Get(ctx context.Context, accountIdentifier interface{}, opts ...option.RequestOption) (res *ProfileGetResponse, err error)
Gets the current billing profile for the account.