Documentation ¶
Index ¶
- type Error
- type ManagedHeaderEditParams
- type ManagedHeaderEditParamsManagedRequestHeader
- type ManagedHeaderEditParamsManagedResponseHeader
- type ManagedHeaderEditResponse
- type ManagedHeaderEditResponseManagedRequestHeader
- type ManagedHeaderEditResponseManagedResponseHeader
- type ManagedHeaderListParams
- type ManagedHeaderListResponse
- type ManagedHeaderListResponseManagedRequestHeader
- type ManagedHeaderListResponseManagedResponseHeader
- type ManagedHeaderService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagedHeaderEditParams ¶
type ManagedHeaderEditParams struct { // Identifier ZoneID param.Field[string] `path:"zone_id,required"` ManagedRequestHeaders param.Field[[]ManagedHeaderEditParamsManagedRequestHeader] `json:"managed_request_headers,required"` ManagedResponseHeaders param.Field[[]ManagedHeaderEditParamsManagedResponseHeader] `json:"managed_response_headers,required"` }
func (ManagedHeaderEditParams) MarshalJSON ¶
func (r ManagedHeaderEditParams) MarshalJSON() (data []byte, err error)
type ManagedHeaderEditParamsManagedRequestHeader ¶
type ManagedHeaderEditParamsManagedRequestHeader struct { // Human-readable identifier of the Managed Transform. ID param.Field[string] `json:"id"` // When true, the Managed Transform is enabled. Enabled param.Field[bool] `json:"enabled"` }
func (ManagedHeaderEditParamsManagedRequestHeader) MarshalJSON ¶
func (r ManagedHeaderEditParamsManagedRequestHeader) MarshalJSON() (data []byte, err error)
type ManagedHeaderEditParamsManagedResponseHeader ¶
type ManagedHeaderEditParamsManagedResponseHeader struct { // Human-readable identifier of the Managed Transform. ID param.Field[string] `json:"id"` // When true, the Managed Transform is enabled. Enabled param.Field[bool] `json:"enabled"` }
func (ManagedHeaderEditParamsManagedResponseHeader) MarshalJSON ¶
func (r ManagedHeaderEditParamsManagedResponseHeader) MarshalJSON() (data []byte, err error)
type ManagedHeaderEditResponse ¶
type ManagedHeaderEditResponse struct { ManagedRequestHeaders []ManagedHeaderEditResponseManagedRequestHeader `json:"managed_request_headers"` ManagedResponseHeaders []ManagedHeaderEditResponseManagedResponseHeader `json:"managed_response_headers"` JSON managedHeaderEditResponseJSON `json:"-"` }
func (*ManagedHeaderEditResponse) UnmarshalJSON ¶
func (r *ManagedHeaderEditResponse) UnmarshalJSON(data []byte) (err error)
type ManagedHeaderEditResponseManagedRequestHeader ¶
type ManagedHeaderEditResponseManagedRequestHeader struct { // Human-readable identifier of the Managed Transform. ID string `json:"id"` // When true, the Managed Transform is available in the current Cloudflare plan. Available bool `json:"available"` // When true, the Managed Transform is enabled. Enabled bool `json:"enabled"` JSON managedHeaderEditResponseManagedRequestHeaderJSON `json:"-"` }
func (*ManagedHeaderEditResponseManagedRequestHeader) UnmarshalJSON ¶
func (r *ManagedHeaderEditResponseManagedRequestHeader) UnmarshalJSON(data []byte) (err error)
type ManagedHeaderEditResponseManagedResponseHeader ¶
type ManagedHeaderEditResponseManagedResponseHeader struct { // Human-readable identifier of the Managed Transform. ID string `json:"id"` // When true, the Managed Transform is available in the current Cloudflare plan. Available bool `json:"available"` // When true, the Managed Transform is enabled. Enabled bool `json:"enabled"` JSON managedHeaderEditResponseManagedResponseHeaderJSON `json:"-"` }
func (*ManagedHeaderEditResponseManagedResponseHeader) UnmarshalJSON ¶
func (r *ManagedHeaderEditResponseManagedResponseHeader) UnmarshalJSON(data []byte) (err error)
type ManagedHeaderListParams ¶
type ManagedHeaderListResponse ¶
type ManagedHeaderListResponse struct { ManagedRequestHeaders []ManagedHeaderListResponseManagedRequestHeader `json:"managed_request_headers"` ManagedResponseHeaders []ManagedHeaderListResponseManagedResponseHeader `json:"managed_response_headers"` JSON managedHeaderListResponseJSON `json:"-"` }
func (*ManagedHeaderListResponse) UnmarshalJSON ¶
func (r *ManagedHeaderListResponse) UnmarshalJSON(data []byte) (err error)
type ManagedHeaderListResponseManagedRequestHeader ¶
type ManagedHeaderListResponseManagedRequestHeader struct { // Human-readable identifier of the Managed Transform. ID string `json:"id"` // When true, the Managed Transform is enabled. Enabled bool `json:"enabled"` JSON managedHeaderListResponseManagedRequestHeaderJSON `json:"-"` }
func (*ManagedHeaderListResponseManagedRequestHeader) UnmarshalJSON ¶
func (r *ManagedHeaderListResponseManagedRequestHeader) UnmarshalJSON(data []byte) (err error)
type ManagedHeaderListResponseManagedResponseHeader ¶
type ManagedHeaderListResponseManagedResponseHeader struct { // Human-readable identifier of the Managed Transform. ID string `json:"id"` // When true, the Managed Transform is enabled. Enabled bool `json:"enabled"` JSON managedHeaderListResponseManagedResponseHeaderJSON `json:"-"` }
func (*ManagedHeaderListResponseManagedResponseHeader) UnmarshalJSON ¶
func (r *ManagedHeaderListResponseManagedResponseHeader) UnmarshalJSON(data []byte) (err error)
type ManagedHeaderService ¶
type ManagedHeaderService struct {
Options []option.RequestOption
}
ManagedHeaderService 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 NewManagedHeaderService method instead.
func NewManagedHeaderService ¶
func NewManagedHeaderService(opts ...option.RequestOption) (r *ManagedHeaderService)
NewManagedHeaderService 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 (*ManagedHeaderService) Edit ¶
func (r *ManagedHeaderService) Edit(ctx context.Context, params ManagedHeaderEditParams, opts ...option.RequestOption) (res *ManagedHeaderEditResponse, err error)
Updates the status of one or more Managed Transforms.
func (*ManagedHeaderService) List ¶
func (r *ManagedHeaderService) List(ctx context.Context, query ManagedHeaderListParams, opts ...option.RequestOption) (res *ManagedHeaderListResponse, err error)
Fetches a list of all Managed Transforms.
Click to show internal directories.
Click to hide internal directories.