shared

package
v1.79.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagination added in v1.21.0

type Pagination struct {
	NextCursor     string `json:"next_cursor" api:"required"`
	PreviousCursor string `json:"previous_cursor" api:"required"`
	TotalCount     int64  `json:"total_count" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		NextCursor     respjson.Field
		PreviousCursor respjson.Field
		TotalCount     respjson.Field
		ExtraFields    map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

Pagination response details.

func (Pagination) RawJSON added in v1.21.0

func (r Pagination) RawJSON() string

Returns the unmodified JSON received from the API

func (*Pagination) UnmarshalJSON added in v1.21.0

func (r *Pagination) UnmarshalJSON(data []byte) error

type RegionName

type RegionName string

Region the resource is in.

const (
	RegionNameUsSva1 RegionName = "us-sva-1"
	RegionNameUsSva2 RegionName = "us-sva-2"
	RegionNameUsChi1 RegionName = "us-chi-1"
)

type ResourceStatus

type ResourceStatus string

Status of the resource.

const (
	ResourceStatusPending  ResourceStatus = "pending"
	ResourceStatusCreating ResourceStatus = "creating"
	ResourceStatusUpdating ResourceStatus = "updating"
	ResourceStatusReady    ResourceStatus = "ready"
	ResourceStatusDeleting ResourceStatus = "deleting"
	ResourceStatusDeleted  ResourceStatus = "deleted"
	ResourceStatusError    ResourceStatus = "error"
)

type SourceIPRuleParam added in v1.35.0

type SourceIPRuleParam struct {
	// List of IPv4 CIDR addresses to allow.
	Allowed []string `json:"allowed,omitzero"`
	// List of IPv4 CIDR addresses to deny.
	Blocked []string `json:"blocked,omitzero"`
	// contains filtered or unexported fields
}

IP filter rules.

func (SourceIPRuleParam) MarshalJSON added in v1.35.0

func (r SourceIPRuleParam) MarshalJSON() (data []byte, err error)

func (*SourceIPRuleParam) UnmarshalJSON added in v1.35.0

func (r *SourceIPRuleParam) UnmarshalJSON(data []byte) error

type SourceIPRuleResponse added in v1.54.0

type SourceIPRuleResponse struct {
	// List of IPv4 CIDR addresses to allow.
	Allowed []string `json:"allowed" api:"required"`
	// List of IPv4 CIDR addresses to deny.
	Blocked []string `json:"blocked" api:"required"`
	// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
	JSON struct {
		Allowed     respjson.Field
		Blocked     respjson.Field
		ExtraFields map[string]respjson.Field
		// contains filtered or unexported fields
	} `json:"-"`
}

IP filter rules.

func (SourceIPRuleResponse) RawJSON added in v1.54.0

func (r SourceIPRuleResponse) RawJSON() string

Returns the unmodified JSON received from the API

func (*SourceIPRuleResponse) UnmarshalJSON added in v1.54.0

func (r *SourceIPRuleResponse) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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