managed_headers

package
v2.0.0-beta.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error = apierror.Error

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 ManagedHeaderListParams struct {
	// Identifier
	ZoneID param.Field[string] `path:"zone_id,required"`
}

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

Updates the status of one or more Managed Transforms.

func (*ManagedHeaderService) List

Fetches a list of all Managed Transforms.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL