ipam_models

package
v2.0.1-0...-670b387 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIStatus

type APIStatus struct {

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
	// contains filtered or unexported fields
}

APIStatus api status

swagger:model apiStatus

func (*APIStatus) ContextValidate

func (m *APIStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this api status based on the context it is used

func (*APIStatus) Details

func (m *APIStatus) Details() []APIStatusDetail

Details gets the details of this base type

func (*APIStatus) MarshalBinary

func (m *APIStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (APIStatus) MarshalJSON

func (m APIStatus) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*APIStatus) SetDetails

func (m *APIStatus) SetDetails(val []APIStatusDetail)

SetDetails sets the details of this base type

func (*APIStatus) UnmarshalBinary

func (m *APIStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIStatus) UnmarshalJSON

func (m *APIStatus) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*APIStatus) Validate

func (m *APIStatus) Validate(formats strfmt.Registry) error

Validate validates this api status

type APIStatusDetail

type APIStatusDetail interface {
	runtime.Validatable
	runtime.ContextValidatable

	// at type
	// Required: true
	AtType() string
	SetAtType(string)
}

APIStatusDetail api status detail

swagger:discriminator apiStatusDetail @type

func UnmarshalAPIStatusDetail

func UnmarshalAPIStatusDetail(reader io.Reader, consumer runtime.Consumer) (APIStatusDetail, error)

UnmarshalAPIStatusDetail unmarshals polymorphic APIStatusDetail

func UnmarshalAPIStatusDetailSlice

func UnmarshalAPIStatusDetailSlice(reader io.Reader, consumer runtime.Consumer) ([]APIStatusDetail, error)

UnmarshalAPIStatusDetailSlice unmarshals polymorphic slices of APIStatusDetail

type NetworkCreateNetworkRequest

type NetworkCreateNetworkRequest struct {

	// IPFamilies of IPs which will be assigned to network interface
	IPFamilies []*V1IPFamily `json:"ipFamilies"`

	// ipv6 subnet
	IPV6Subnet string `json:"ipv6Subnet,omitempty"`

	// metadata
	Metadata *NetworkMetadata `json:"metadata,omitempty"`

	// The network's human-readable name
	Name string `json:"name,omitempty"`

	// The network's primary subnet, in CIDR notation format
	RootSubnet string `json:"rootSubnet,omitempty"`

	// The network's machine-readable name
	Slug string `json:"slug,omitempty"`
}

NetworkCreateNetworkRequest network create network request

swagger:model networkCreateNetworkRequest

func (*NetworkCreateNetworkRequest) ContextValidate

func (m *NetworkCreateNetworkRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network create network request based on the context it is used

func (*NetworkCreateNetworkRequest) MarshalBinary

func (m *NetworkCreateNetworkRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkCreateNetworkRequest) UnmarshalBinary

func (m *NetworkCreateNetworkRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkCreateNetworkRequest) Validate

func (m *NetworkCreateNetworkRequest) Validate(formats strfmt.Registry) error

Validate validates this network create network request

type NetworkCreateNetworkResponse

type NetworkCreateNetworkResponse struct {

	// network
	Network *NetworkNetwork `json:"network,omitempty"`
}

NetworkCreateNetworkResponse A response from a request to create a network

swagger:model networkCreateNetworkResponse

func (*NetworkCreateNetworkResponse) ContextValidate

func (m *NetworkCreateNetworkResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network create network response based on the context it is used

func (*NetworkCreateNetworkResponse) MarshalBinary

func (m *NetworkCreateNetworkResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkCreateNetworkResponse) UnmarshalBinary

func (m *NetworkCreateNetworkResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkCreateNetworkResponse) Validate

func (m *NetworkCreateNetworkResponse) Validate(formats strfmt.Registry) error

Validate validates this network create network response

type NetworkCreateNetworkSubnetRequest

type NetworkCreateNetworkSubnetRequest struct {

	// subnet
	Subnet *NetworkNetworkSubnet `json:"subnet,omitempty"`
}

NetworkCreateNetworkSubnetRequest network create network subnet request

swagger:model networkCreateNetworkSubnetRequest

func (*NetworkCreateNetworkSubnetRequest) ContextValidate

func (m *NetworkCreateNetworkSubnetRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network create network subnet request based on the context it is used

func (*NetworkCreateNetworkSubnetRequest) MarshalBinary

func (m *NetworkCreateNetworkSubnetRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkCreateNetworkSubnetRequest) UnmarshalBinary

func (m *NetworkCreateNetworkSubnetRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkCreateNetworkSubnetRequest) Validate

Validate validates this network create network subnet request

type NetworkCreateNetworkSubnetResponse

type NetworkCreateNetworkSubnetResponse struct {

	// subnet
	Subnet *NetworkNetworkSubnet `json:"subnet,omitempty"`
}

NetworkCreateNetworkSubnetResponse network create network subnet response

swagger:model networkCreateNetworkSubnetResponse

func (*NetworkCreateNetworkSubnetResponse) ContextValidate

func (m *NetworkCreateNetworkSubnetResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network create network subnet response based on the context it is used

func (*NetworkCreateNetworkSubnetResponse) MarshalBinary

func (m *NetworkCreateNetworkSubnetResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkCreateNetworkSubnetResponse) UnmarshalBinary

func (m *NetworkCreateNetworkSubnetResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkCreateNetworkSubnetResponse) Validate

Validate validates this network create network subnet response

type NetworkCreateRouteRequest

type NetworkCreateRouteRequest struct {

	// route
	Route *NetworkRoute `json:"route,omitempty"`
}

NetworkCreateRouteRequest network create route request

swagger:model networkCreateRouteRequest

func (*NetworkCreateRouteRequest) ContextValidate

func (m *NetworkCreateRouteRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network create route request based on the context it is used

func (*NetworkCreateRouteRequest) MarshalBinary

func (m *NetworkCreateRouteRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkCreateRouteRequest) UnmarshalBinary

func (m *NetworkCreateRouteRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkCreateRouteRequest) Validate

func (m *NetworkCreateRouteRequest) Validate(formats strfmt.Registry) error

Validate validates this network create route request

type NetworkCreateRouteResponse

type NetworkCreateRouteResponse struct {

	// route
	Route *NetworkRoute `json:"route,omitempty"`
}

NetworkCreateRouteResponse A response from a request to create a route on a network

swagger:model networkCreateRouteResponse

func (*NetworkCreateRouteResponse) ContextValidate

func (m *NetworkCreateRouteResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network create route response based on the context it is used

func (*NetworkCreateRouteResponse) MarshalBinary

func (m *NetworkCreateRouteResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkCreateRouteResponse) UnmarshalBinary

func (m *NetworkCreateRouteResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkCreateRouteResponse) Validate

func (m *NetworkCreateRouteResponse) Validate(formats strfmt.Registry) error

Validate validates this network create route response

type NetworkGetNetworkResponse

type NetworkGetNetworkResponse struct {

	// network
	Network *NetworkNetwork `json:"network,omitempty"`
}

NetworkGetNetworkResponse The requested VPC network

swagger:model networkGetNetworkResponse

func (*NetworkGetNetworkResponse) ContextValidate

func (m *NetworkGetNetworkResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network get network response based on the context it is used

func (*NetworkGetNetworkResponse) MarshalBinary

func (m *NetworkGetNetworkResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkGetNetworkResponse) UnmarshalBinary

func (m *NetworkGetNetworkResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkGetNetworkResponse) Validate

func (m *NetworkGetNetworkResponse) Validate(formats strfmt.Registry) error

Validate validates this network get network response

type NetworkGetNetworkSubnetResponse

type NetworkGetNetworkSubnetResponse struct {

	// subnet
	Subnet *NetworkNetworkSubnet `json:"subnet,omitempty"`
}

NetworkGetNetworkSubnetResponse network get network subnet response

swagger:model networkGetNetworkSubnetResponse

func (*NetworkGetNetworkSubnetResponse) ContextValidate

func (m *NetworkGetNetworkSubnetResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network get network subnet response based on the context it is used

func (*NetworkGetNetworkSubnetResponse) MarshalBinary

func (m *NetworkGetNetworkSubnetResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkGetNetworkSubnetResponse) UnmarshalBinary

func (m *NetworkGetNetworkSubnetResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkGetNetworkSubnetResponse) Validate

Validate validates this network get network subnet response

type NetworkGetNetworkSubnetsResponse

type NetworkGetNetworkSubnetsResponse struct {

	// page info
	PageInfo *PaginationPageInfo `json:"pageInfo,omitempty"`

	// results
	Results []*NetworkNetworkSubnet `json:"results"`
}

NetworkGetNetworkSubnetsResponse network get network subnets response

swagger:model networkGetNetworkSubnetsResponse

func (*NetworkGetNetworkSubnetsResponse) ContextValidate

func (m *NetworkGetNetworkSubnetsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network get network subnets response based on the context it is used

func (*NetworkGetNetworkSubnetsResponse) MarshalBinary

func (m *NetworkGetNetworkSubnetsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkGetNetworkSubnetsResponse) UnmarshalBinary

func (m *NetworkGetNetworkSubnetsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkGetNetworkSubnetsResponse) Validate

Validate validates this network get network subnets response

type NetworkGetNetworksResponse

type NetworkGetNetworksResponse struct {

	// page info
	PageInfo *PaginationPageInfo `json:"pageInfo,omitempty"`

	// results
	Results []*NetworkNetwork `json:"results"`
}

NetworkGetNetworksResponse The requested VPC networks

swagger:model networkGetNetworksResponse

func (*NetworkGetNetworksResponse) ContextValidate

func (m *NetworkGetNetworksResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network get networks response based on the context it is used

func (*NetworkGetNetworksResponse) MarshalBinary

func (m *NetworkGetNetworksResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkGetNetworksResponse) UnmarshalBinary

func (m *NetworkGetNetworksResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkGetNetworksResponse) Validate

func (m *NetworkGetNetworksResponse) Validate(formats strfmt.Registry) error

Validate validates this network get networks response

type NetworkGetRouteResponse

type NetworkGetRouteResponse struct {

	// route
	Route *NetworkRoute `json:"route,omitempty"`
}

NetworkGetRouteResponse A response to retrieve an individual route on a network

swagger:model networkGetRouteResponse

func (*NetworkGetRouteResponse) ContextValidate

func (m *NetworkGetRouteResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network get route response based on the context it is used

func (*NetworkGetRouteResponse) MarshalBinary

func (m *NetworkGetRouteResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkGetRouteResponse) UnmarshalBinary

func (m *NetworkGetRouteResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkGetRouteResponse) Validate

func (m *NetworkGetRouteResponse) Validate(formats strfmt.Registry) error

Validate validates this network get route response

type NetworkGetRoutesResponse

type NetworkGetRoutesResponse struct {

	// page info
	PageInfo *PaginationPageInfo `json:"pageInfo,omitempty"`

	// results
	Results []*NetworkRoute `json:"results"`
}

NetworkGetRoutesResponse A response to retrieve any routes on a given network

swagger:model networkGetRoutesResponse

func (*NetworkGetRoutesResponse) ContextValidate

func (m *NetworkGetRoutesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network get routes response based on the context it is used

func (*NetworkGetRoutesResponse) MarshalBinary

func (m *NetworkGetRoutesResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkGetRoutesResponse) UnmarshalBinary

func (m *NetworkGetRoutesResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkGetRoutesResponse) Validate

func (m *NetworkGetRoutesResponse) Validate(formats strfmt.Registry) error

Validate validates this network get routes response

type NetworkMatchExpression

type NetworkMatchExpression struct {

	// The name of the selector to perform a match against
	//
	// Provide the key `workload.platform.stackpath.net/workload-slug` to select EdgeCompute workloads by their slug. All network interfaces in the workload are used as the route's gateway.
	Key string `json:"key,omitempty"`

	// The operation to perform to match a selector
	//
	// Valid values are "in" with support for more possible in the future
	Operator string `json:"operator,omitempty"`

	// The values to match in the selector
	Values []string `json:"values"`
}

NetworkMatchExpression An expression to match selectors against a set of values

swagger:model networkMatchExpression

func (*NetworkMatchExpression) ContextValidate

func (m *NetworkMatchExpression) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this network match expression based on context it is used

func (*NetworkMatchExpression) MarshalBinary

func (m *NetworkMatchExpression) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkMatchExpression) UnmarshalBinary

func (m *NetworkMatchExpression) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkMatchExpression) Validate

func (m *NetworkMatchExpression) Validate(formats strfmt.Registry) error

Validate validates this network match expression

type NetworkMetadata

type NetworkMetadata struct {

	// annotations
	Annotations NetworkStringMapEntry `json:"annotations,omitempty"`

	// The date that a metadata entry was created
	// Read Only: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"createdAt,omitempty"`

	// The date that an entity was requested for deletion
	// Read Only: true
	// Format: date-time
	DeleteRequestedAt *strfmt.DateTime `json:"deleteRequestedAt,omitempty"`

	// labels
	Labels NetworkStringMapEntry `json:"labels,omitempty"`

	// The date that a metadata entry was last updated
	// Read Only: true
	// Format: date-time
	UpdatedAt *strfmt.DateTime `json:"updatedAt,omitempty"`

	// An entity's version number
	//
	// Versions start at 1 when they are created and increment by 1 every time they are updated.
	Version string `json:"version,omitempty"`
}

NetworkMetadata Metadata associated with an entity

swagger:model networkMetadata

func (*NetworkMetadata) ContextValidate

func (m *NetworkMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network metadata based on the context it is used

func (*NetworkMetadata) MarshalBinary

func (m *NetworkMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkMetadata) UnmarshalBinary

func (m *NetworkMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkMetadata) Validate

func (m *NetworkMetadata) Validate(formats strfmt.Registry) error

Validate validates this network metadata

type NetworkNetwork

type NetworkNetwork struct {

	// A network's unique identifier
	ID string `json:"id,omitempty"`

	// ip families
	IPFamilies []string `json:"ipFamilies"`

	// ipv6 subnet
	IPV6Subnet string `json:"ipv6Subnet,omitempty"`

	// metadata
	Metadata *NetworkMetadata `json:"metadata,omitempty"`

	// A network's human-readable name
	Name string `json:"name,omitempty"`

	// A subnet identifier and network mask in CIDR notation format
	//
	// A network's root subnet is its primary subnet.
	RootSubnet string `json:"rootSubnet,omitempty"`

	// A network's machine-readable name
	Slug string `json:"slug,omitempty"`

	// The ID of the stack that a network belongs to
	StackID string `json:"stackId,omitempty"`

	// A network's VLAN identifier
	VirtualNetworkIdentifier int32 `json:"virtualNetworkIdentifier,omitempty"`
}

NetworkNetwork A network defined within a Virtual Private Cloud

swagger:model networkNetwork

func (*NetworkNetwork) ContextValidate

func (m *NetworkNetwork) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network network based on the context it is used

func (*NetworkNetwork) MarshalBinary

func (m *NetworkNetwork) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkNetwork) UnmarshalBinary

func (m *NetworkNetwork) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkNetwork) Validate

func (m *NetworkNetwork) Validate(formats strfmt.Registry) error

Validate validates this network network

type NetworkNetworkSubnet

type NetworkNetworkSubnet struct {

	// id
	ID string `json:"id,omitempty"`

	// metadata
	Metadata *NetworkMetadata `json:"metadata,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// network Id
	NetworkID string `json:"networkId,omitempty"`

	// prefix
	Prefix string `json:"prefix,omitempty"`

	// slug
	Slug string `json:"slug,omitempty"`

	// stack Id
	StackID string `json:"stackId,omitempty"`
}

NetworkNetworkSubnet network network subnet

swagger:model networkNetworkSubnet

func (*NetworkNetworkSubnet) ContextValidate

func (m *NetworkNetworkSubnet) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network network subnet based on the context it is used

func (*NetworkNetworkSubnet) MarshalBinary

func (m *NetworkNetworkSubnet) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkNetworkSubnet) UnmarshalBinary

func (m *NetworkNetworkSubnet) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkNetworkSubnet) Validate

func (m *NetworkNetworkSubnet) Validate(formats strfmt.Registry) error

Validate validates this network network subnet

type NetworkPolicySpecPolicyType

type NetworkPolicySpecPolicyType string

NetworkPolicySpecPolicyType network policy spec policy type

swagger:model NetworkPolicySpecPolicyType

const (

	// NetworkPolicySpecPolicyTypePOLICYTYPENOTSPECIFIED captures enum value "POLICY_TYPE_NOT_SPECIFIED"
	NetworkPolicySpecPolicyTypePOLICYTYPENOTSPECIFIED NetworkPolicySpecPolicyType = "POLICY_TYPE_NOT_SPECIFIED"

	// NetworkPolicySpecPolicyTypeINGRESS captures enum value "INGRESS"
	NetworkPolicySpecPolicyTypeINGRESS NetworkPolicySpecPolicyType = "INGRESS"

	// NetworkPolicySpecPolicyTypeEGRESS captures enum value "EGRESS"
	NetworkPolicySpecPolicyTypeEGRESS NetworkPolicySpecPolicyType = "EGRESS"
)

func (NetworkPolicySpecPolicyType) ContextValidate

func (m NetworkPolicySpecPolicyType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this network policy spec policy type based on context it is used

func (NetworkPolicySpecPolicyType) Validate

func (m NetworkPolicySpecPolicyType) Validate(formats strfmt.Registry) error

Validate validates this network policy spec policy type

type NetworkRoute

type NetworkRoute struct {

	// A route's destination network prefix, in CIDR format
	DestinationPrefixes []string `json:"destinationPrefixes"`

	// Selectors that determine which EdgeCompute workload network interfaces should be be used as the route's gateway
	//
	// Selectors are applied to the route in order, with the highest priority assigned to the first gateway.
	GatewaySelectors []*RouteGatewaySelector `json:"gatewaySelectors"`

	// A route's unique identifier
	// Read Only: true
	ID string `json:"id,omitempty"`

	// metadata
	Metadata *NetworkMetadata `json:"metadata,omitempty"`

	// A route's human-readable name
	Name string `json:"name,omitempty"`

	// The ID or slug of the VPC network that a route belongs to
	// Read Only: true
	NetworkID string `json:"networkId,omitempty"`

	// A route's machine-readable name
	Slug string `json:"slug,omitempty"`

	// The ID of the stack that a route belongs to
	// Read Only: true
	StackID string `json:"stackId,omitempty"`

	// The status of a route in different regions
	// Read Only: true
	Statuses []*NetworkRouteStatus `json:"statuses"`
}

NetworkRoute network route

swagger:model networkRoute

func (*NetworkRoute) ContextValidate

func (m *NetworkRoute) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network route based on the context it is used

func (*NetworkRoute) MarshalBinary

func (m *NetworkRoute) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkRoute) UnmarshalBinary

func (m *NetworkRoute) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkRoute) Validate

func (m *NetworkRoute) Validate(formats strfmt.Registry) error

Validate validates this network route

type NetworkRouteStatus

type NetworkRouteStatus struct {

	// A list of route gateway IPs in the region
	// Read Only: true
	GatewayIps []string `json:"gatewayIps"`

	// The region in which a route's status resides
	//
	// Regions take the form `<pop name>-<cluster name>`, where `pop` is a StackPath EdgeCompute POP and `cluster` is a networking cluster within that POP.
	// Read Only: true
	Region string `json:"region,omitempty"`

	// state
	// Read Only: true
	State *RouteStatusState `json:"state,omitempty"`
}

NetworkRouteStatus network route status

swagger:model networkRouteStatus

func (*NetworkRouteStatus) ContextValidate

func (m *NetworkRouteStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network route status based on the context it is used

func (*NetworkRouteStatus) MarshalBinary

func (m *NetworkRouteStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkRouteStatus) UnmarshalBinary

func (m *NetworkRouteStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkRouteStatus) Validate

func (m *NetworkRouteStatus) Validate(formats strfmt.Registry) error

Validate validates this network route status

type NetworkStringMapEntry

type NetworkStringMapEntry map[string]string

NetworkStringMapEntry A string to string key/value pair

swagger:model networkStringMapEntry

func (NetworkStringMapEntry) ContextValidate

func (m NetworkStringMapEntry) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this network string map entry based on context it is used

func (NetworkStringMapEntry) Validate

func (m NetworkStringMapEntry) Validate(formats strfmt.Registry) error

Validate validates this network string map entry

type NetworkUpdateNetworkRequest

type NetworkUpdateNetworkRequest struct {

	// metadata
	Metadata *NetworkMetadata `json:"metadata,omitempty"`

	// The network's new name
	Name string `json:"name,omitempty"`
}

NetworkUpdateNetworkRequest network update network request

swagger:model networkUpdateNetworkRequest

func (*NetworkUpdateNetworkRequest) ContextValidate

func (m *NetworkUpdateNetworkRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network update network request based on the context it is used

func (*NetworkUpdateNetworkRequest) MarshalBinary

func (m *NetworkUpdateNetworkRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkUpdateNetworkRequest) UnmarshalBinary

func (m *NetworkUpdateNetworkRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkUpdateNetworkRequest) Validate

func (m *NetworkUpdateNetworkRequest) Validate(formats strfmt.Registry) error

Validate validates this network update network request

type NetworkUpdateNetworkResponse

type NetworkUpdateNetworkResponse struct {

	// network
	Network *NetworkNetwork `json:"network,omitempty"`
}

NetworkUpdateNetworkResponse A response from a request to update a network

swagger:model networkUpdateNetworkResponse

func (*NetworkUpdateNetworkResponse) ContextValidate

func (m *NetworkUpdateNetworkResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network update network response based on the context it is used

func (*NetworkUpdateNetworkResponse) MarshalBinary

func (m *NetworkUpdateNetworkResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkUpdateNetworkResponse) UnmarshalBinary

func (m *NetworkUpdateNetworkResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkUpdateNetworkResponse) Validate

func (m *NetworkUpdateNetworkResponse) Validate(formats strfmt.Registry) error

Validate validates this network update network response

type NetworkUpdateNetworkSubnetRequest

type NetworkUpdateNetworkSubnetRequest struct {

	// subnet
	Subnet *NetworkNetworkSubnet `json:"subnet,omitempty"`
}

NetworkUpdateNetworkSubnetRequest network update network subnet request

swagger:model networkUpdateNetworkSubnetRequest

func (*NetworkUpdateNetworkSubnetRequest) ContextValidate

func (m *NetworkUpdateNetworkSubnetRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network update network subnet request based on the context it is used

func (*NetworkUpdateNetworkSubnetRequest) MarshalBinary

func (m *NetworkUpdateNetworkSubnetRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkUpdateNetworkSubnetRequest) UnmarshalBinary

func (m *NetworkUpdateNetworkSubnetRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkUpdateNetworkSubnetRequest) Validate

Validate validates this network update network subnet request

type NetworkUpdateNetworkSubnetResponse

type NetworkUpdateNetworkSubnetResponse struct {

	// subnet
	Subnet *NetworkNetworkSubnet `json:"subnet,omitempty"`
}

NetworkUpdateNetworkSubnetResponse network update network subnet response

swagger:model networkUpdateNetworkSubnetResponse

func (*NetworkUpdateNetworkSubnetResponse) ContextValidate

func (m *NetworkUpdateNetworkSubnetResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network update network subnet response based on the context it is used

func (*NetworkUpdateNetworkSubnetResponse) MarshalBinary

func (m *NetworkUpdateNetworkSubnetResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkUpdateNetworkSubnetResponse) UnmarshalBinary

func (m *NetworkUpdateNetworkSubnetResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkUpdateNetworkSubnetResponse) Validate

Validate validates this network update network subnet response

type NetworkUpdateRouteRequest

type NetworkUpdateRouteRequest struct {

	// route
	Route *NetworkRoute `json:"route,omitempty"`
}

NetworkUpdateRouteRequest network update route request

swagger:model networkUpdateRouteRequest

func (*NetworkUpdateRouteRequest) ContextValidate

func (m *NetworkUpdateRouteRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network update route request based on the context it is used

func (*NetworkUpdateRouteRequest) MarshalBinary

func (m *NetworkUpdateRouteRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkUpdateRouteRequest) UnmarshalBinary

func (m *NetworkUpdateRouteRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkUpdateRouteRequest) Validate

func (m *NetworkUpdateRouteRequest) Validate(formats strfmt.Registry) error

Validate validates this network update route request

type NetworkUpdateRouteResponse

type NetworkUpdateRouteResponse struct {

	// route
	Route *NetworkRoute `json:"route,omitempty"`
}

NetworkUpdateRouteResponse A response from an update to a route on a network

swagger:model networkUpdateRouteResponse

func (*NetworkUpdateRouteResponse) ContextValidate

func (m *NetworkUpdateRouteResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this network update route response based on the context it is used

func (*NetworkUpdateRouteResponse) MarshalBinary

func (m *NetworkUpdateRouteResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NetworkUpdateRouteResponse) UnmarshalBinary

func (m *NetworkUpdateRouteResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NetworkUpdateRouteResponse) Validate

func (m *NetworkUpdateRouteResponse) Validate(formats strfmt.Registry) error

Validate validates this network update route response

type PaginationPageInfo

type PaginationPageInfo struct {

	// The cursor for the last item in the set of data returned
	EndCursor string `json:"endCursor,omitempty"`

	// Whether or not another page of data is available
	HasNextPage bool `json:"hasNextPage,omitempty"`

	// Whether or not a previous page of data exists
	HasPreviousPage bool `json:"hasPreviousPage,omitempty"`

	// The cursor for the first item in the set of data returned
	StartCursor string `json:"startCursor,omitempty"`

	// The total number of items in the dataset
	TotalCount string `json:"totalCount,omitempty"`
}

PaginationPageInfo Information about a paginated response

This is modeled after the GraphQL Relay spec to support both cursor based pagination and traditional offset based pagination.

swagger:model paginationPageInfo

func (*PaginationPageInfo) ContextValidate

func (m *PaginationPageInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this pagination page info based on context it is used

func (*PaginationPageInfo) MarshalBinary

func (m *PaginationPageInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PaginationPageInfo) UnmarshalBinary

func (m *PaginationPageInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PaginationPageInfo) Validate

func (m *PaginationPageInfo) Validate(formats strfmt.Registry) error

Validate validates this pagination page info

type PaginationPageRequest

type PaginationPageRequest struct {

	// The cursor value after which data will be returned
	After string `json:"after,omitempty"`

	// SQL-style constraint filters
	Filter string `json:"filter,omitempty"`

	// The number of items desired
	First string `json:"first,omitempty"`

	// Sort the response by the given field
	SortBy string `json:"sortBy,omitempty"`
}

PaginationPageRequest Pagination request information

This is modeled after the GraphQL Relay spec to support both cursor based pagination and traditional offset based pagination.

swagger:model paginationPageRequest

func (*PaginationPageRequest) ContextValidate

func (m *PaginationPageRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this pagination page request based on context it is used

func (*PaginationPageRequest) MarshalBinary

func (m *PaginationPageRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PaginationPageRequest) UnmarshalBinary

func (m *PaginationPageRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PaginationPageRequest) Validate

func (m *PaginationPageRequest) Validate(formats strfmt.Registry) error

Validate validates this pagination page request

type RouteGatewaySelector

type RouteGatewaySelector struct {

	// List of match expressions that must all match a single interface
	InterfaceSelectors []*NetworkMatchExpression `json:"interfaceSelectors"`
}

RouteGatewaySelector route gateway selector

swagger:model RouteGatewaySelector

func (*RouteGatewaySelector) ContextValidate

func (m *RouteGatewaySelector) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this route gateway selector based on the context it is used

func (*RouteGatewaySelector) MarshalBinary

func (m *RouteGatewaySelector) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RouteGatewaySelector) UnmarshalBinary

func (m *RouteGatewaySelector) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RouteGatewaySelector) Validate

func (m *RouteGatewaySelector) Validate(formats strfmt.Registry) error

Validate validates this route gateway selector

type RouteStatusState

type RouteStatusState string

RouteStatusState - ROUTE_STATUS_UNSPECIFIED: Route in this region is in an undefined state

  • RUNNING: Route has 1 or more assigned gateways and is correctly configured in this region
  • NO_GATEWAY: Route does not have any assigned gateways but is configured in this region
  • DELETING: Route is being deleted from the region

swagger:model RouteStatusState

const (

	// RouteStatusStateROUTESTATUSUNSPECIFIED captures enum value "ROUTE_STATUS_UNSPECIFIED"
	RouteStatusStateROUTESTATUSUNSPECIFIED RouteStatusState = "ROUTE_STATUS_UNSPECIFIED"

	// RouteStatusStateRUNNING captures enum value "RUNNING"
	RouteStatusStateRUNNING RouteStatusState = "RUNNING"

	// RouteStatusStateNOGATEWAY captures enum value "NO_GATEWAY"
	RouteStatusStateNOGATEWAY RouteStatusState = "NO_GATEWAY"

	// RouteStatusStateDELETING captures enum value "DELETING"
	RouteStatusStateDELETING RouteStatusState = "DELETING"
)

func NewRouteStatusState

func NewRouteStatusState(value RouteStatusState) *RouteStatusState

func (RouteStatusState) ContextValidate

func (m RouteStatusState) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this route status state based on context it is used

func (RouteStatusState) Validate

func (m RouteStatusState) Validate(formats strfmt.Registry) error

Validate validates this route status state

type StackpathRPCBadRequest

type StackpathRPCBadRequest struct {

	// field violations
	FieldViolations []*StackpathRPCBadRequestFieldViolation `json:"fieldViolations"`
}

StackpathRPCBadRequest stackpath rpc bad request

swagger:model stackpath.rpc.BadRequest

func (*StackpathRPCBadRequest) AtType

func (m *StackpathRPCBadRequest) AtType() string

AtType gets the at type of this subtype

func (*StackpathRPCBadRequest) ContextValidate

func (m *StackpathRPCBadRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stackpath rpc bad request based on the context it is used

func (*StackpathRPCBadRequest) MarshalBinary

func (m *StackpathRPCBadRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (StackpathRPCBadRequest) MarshalJSON

func (m StackpathRPCBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCBadRequest) SetAtType

func (m *StackpathRPCBadRequest) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCBadRequest) UnmarshalBinary

func (m *StackpathRPCBadRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StackpathRPCBadRequest) UnmarshalJSON

func (m *StackpathRPCBadRequest) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCBadRequest) Validate

func (m *StackpathRPCBadRequest) Validate(formats strfmt.Registry) error

Validate validates this stackpath rpc bad request

type StackpathRPCBadRequestFieldViolation

type StackpathRPCBadRequestFieldViolation struct {

	// description
	Description string `json:"description,omitempty"`

	// field
	Field string `json:"field,omitempty"`
}

StackpathRPCBadRequestFieldViolation stackpath rpc bad request field violation

swagger:model stackpath.rpc.BadRequest.FieldViolation

func (*StackpathRPCBadRequestFieldViolation) ContextValidate

func (m *StackpathRPCBadRequestFieldViolation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this stackpath rpc bad request field violation based on context it is used

func (*StackpathRPCBadRequestFieldViolation) MarshalBinary

func (m *StackpathRPCBadRequestFieldViolation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StackpathRPCBadRequestFieldViolation) UnmarshalBinary

func (m *StackpathRPCBadRequestFieldViolation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StackpathRPCBadRequestFieldViolation) Validate

Validate validates this stackpath rpc bad request field violation

type StackpathRPCHelp

type StackpathRPCHelp struct {

	// links
	Links []*StackpathRPCHelpLink `json:"links"`
}

StackpathRPCHelp stackpath rpc help

swagger:model stackpath.rpc.Help

func (*StackpathRPCHelp) AtType

func (m *StackpathRPCHelp) AtType() string

AtType gets the at type of this subtype

func (*StackpathRPCHelp) ContextValidate

func (m *StackpathRPCHelp) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stackpath rpc help based on the context it is used

func (*StackpathRPCHelp) MarshalBinary

func (m *StackpathRPCHelp) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (StackpathRPCHelp) MarshalJSON

func (m StackpathRPCHelp) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCHelp) SetAtType

func (m *StackpathRPCHelp) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCHelp) UnmarshalBinary

func (m *StackpathRPCHelp) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StackpathRPCHelp) UnmarshalJSON

func (m *StackpathRPCHelp) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCHelp) Validate

func (m *StackpathRPCHelp) Validate(formats strfmt.Registry) error

Validate validates this stackpath rpc help

type StackpathRPCHelpLink struct {

	// description
	Description string `json:"description,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

StackpathRPCHelpLink stackpath rpc help link

swagger:model stackpath.rpc.Help.Link

func (*StackpathRPCHelpLink) ContextValidate

func (m *StackpathRPCHelpLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this stackpath rpc help link based on context it is used

func (*StackpathRPCHelpLink) MarshalBinary

func (m *StackpathRPCHelpLink) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StackpathRPCHelpLink) UnmarshalBinary

func (m *StackpathRPCHelpLink) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StackpathRPCHelpLink) Validate

func (m *StackpathRPCHelpLink) Validate(formats strfmt.Registry) error

Validate validates this stackpath rpc help link

type StackpathRPCLocalizedMessage

type StackpathRPCLocalizedMessage struct {

	// locale
	Locale string `json:"locale,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

StackpathRPCLocalizedMessage stackpath rpc localized message

swagger:model stackpath.rpc.LocalizedMessage

func (*StackpathRPCLocalizedMessage) AtType

AtType gets the at type of this subtype

func (*StackpathRPCLocalizedMessage) ContextValidate

func (m *StackpathRPCLocalizedMessage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stackpath rpc localized message based on the context it is used

func (*StackpathRPCLocalizedMessage) MarshalBinary

func (m *StackpathRPCLocalizedMessage) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (StackpathRPCLocalizedMessage) MarshalJSON

func (m StackpathRPCLocalizedMessage) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCLocalizedMessage) SetAtType

func (m *StackpathRPCLocalizedMessage) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCLocalizedMessage) UnmarshalBinary

func (m *StackpathRPCLocalizedMessage) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StackpathRPCLocalizedMessage) UnmarshalJSON

func (m *StackpathRPCLocalizedMessage) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCLocalizedMessage) Validate

func (m *StackpathRPCLocalizedMessage) Validate(formats strfmt.Registry) error

Validate validates this stackpath rpc localized message

type StackpathRPCPreconditionFailure

type StackpathRPCPreconditionFailure struct {

	// violations
	Violations []*StackpathRPCPreconditionFailureViolation `json:"violations"`
}

StackpathRPCPreconditionFailure stackpath rpc precondition failure

swagger:model stackpath.rpc.PreconditionFailure

func (*StackpathRPCPreconditionFailure) AtType

AtType gets the at type of this subtype

func (*StackpathRPCPreconditionFailure) ContextValidate

func (m *StackpathRPCPreconditionFailure) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stackpath rpc precondition failure based on the context it is used

func (*StackpathRPCPreconditionFailure) MarshalBinary

func (m *StackpathRPCPreconditionFailure) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (StackpathRPCPreconditionFailure) MarshalJSON

func (m StackpathRPCPreconditionFailure) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCPreconditionFailure) SetAtType

func (m *StackpathRPCPreconditionFailure) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCPreconditionFailure) UnmarshalBinary

func (m *StackpathRPCPreconditionFailure) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StackpathRPCPreconditionFailure) UnmarshalJSON

func (m *StackpathRPCPreconditionFailure) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCPreconditionFailure) Validate

Validate validates this stackpath rpc precondition failure

type StackpathRPCPreconditionFailureViolation

type StackpathRPCPreconditionFailureViolation struct {

	// description
	Description string `json:"description,omitempty"`

	// subject
	Subject string `json:"subject,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

StackpathRPCPreconditionFailureViolation stackpath rpc precondition failure violation

swagger:model stackpath.rpc.PreconditionFailure.Violation

func (*StackpathRPCPreconditionFailureViolation) ContextValidate

ContextValidate validates this stackpath rpc precondition failure violation based on context it is used

func (*StackpathRPCPreconditionFailureViolation) MarshalBinary

func (m *StackpathRPCPreconditionFailureViolation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StackpathRPCPreconditionFailureViolation) UnmarshalBinary

func (m *StackpathRPCPreconditionFailureViolation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StackpathRPCPreconditionFailureViolation) Validate

Validate validates this stackpath rpc precondition failure violation

type StackpathRPCQuotaFailure

type StackpathRPCQuotaFailure struct {

	// violations
	Violations []*StackpathRPCQuotaFailureViolation `json:"violations"`
}

StackpathRPCQuotaFailure stackpath rpc quota failure

swagger:model stackpath.rpc.QuotaFailure

func (*StackpathRPCQuotaFailure) AtType

func (m *StackpathRPCQuotaFailure) AtType() string

AtType gets the at type of this subtype

func (*StackpathRPCQuotaFailure) ContextValidate

func (m *StackpathRPCQuotaFailure) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stackpath rpc quota failure based on the context it is used

func (*StackpathRPCQuotaFailure) MarshalBinary

func (m *StackpathRPCQuotaFailure) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (StackpathRPCQuotaFailure) MarshalJSON

func (m StackpathRPCQuotaFailure) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCQuotaFailure) SetAtType

func (m *StackpathRPCQuotaFailure) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCQuotaFailure) UnmarshalBinary

func (m *StackpathRPCQuotaFailure) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StackpathRPCQuotaFailure) UnmarshalJSON

func (m *StackpathRPCQuotaFailure) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCQuotaFailure) Validate

func (m *StackpathRPCQuotaFailure) Validate(formats strfmt.Registry) error

Validate validates this stackpath rpc quota failure

type StackpathRPCQuotaFailureViolation

type StackpathRPCQuotaFailureViolation struct {

	// description
	Description string `json:"description,omitempty"`

	// subject
	Subject string `json:"subject,omitempty"`
}

StackpathRPCQuotaFailureViolation stackpath rpc quota failure violation

swagger:model stackpath.rpc.QuotaFailure.Violation

func (*StackpathRPCQuotaFailureViolation) ContextValidate

func (m *StackpathRPCQuotaFailureViolation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this stackpath rpc quota failure violation based on context it is used

func (*StackpathRPCQuotaFailureViolation) MarshalBinary

func (m *StackpathRPCQuotaFailureViolation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StackpathRPCQuotaFailureViolation) UnmarshalBinary

func (m *StackpathRPCQuotaFailureViolation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StackpathRPCQuotaFailureViolation) Validate

Validate validates this stackpath rpc quota failure violation

type StackpathRPCRequestInfo

type StackpathRPCRequestInfo struct {

	// request Id
	RequestID string `json:"requestId,omitempty"`

	// serving data
	ServingData string `json:"servingData,omitempty"`
}

StackpathRPCRequestInfo stackpath rpc request info

swagger:model stackpath.rpc.RequestInfo

func (*StackpathRPCRequestInfo) AtType

func (m *StackpathRPCRequestInfo) AtType() string

AtType gets the at type of this subtype

func (*StackpathRPCRequestInfo) ContextValidate

func (m *StackpathRPCRequestInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stackpath rpc request info based on the context it is used

func (*StackpathRPCRequestInfo) MarshalBinary

func (m *StackpathRPCRequestInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (StackpathRPCRequestInfo) MarshalJSON

func (m StackpathRPCRequestInfo) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCRequestInfo) SetAtType

func (m *StackpathRPCRequestInfo) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCRequestInfo) UnmarshalBinary

func (m *StackpathRPCRequestInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StackpathRPCRequestInfo) UnmarshalJSON

func (m *StackpathRPCRequestInfo) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCRequestInfo) Validate

func (m *StackpathRPCRequestInfo) Validate(formats strfmt.Registry) error

Validate validates this stackpath rpc request info

type StackpathRPCResourceInfo

type StackpathRPCResourceInfo struct {

	// description
	Description string `json:"description,omitempty"`

	// owner
	Owner string `json:"owner,omitempty"`

	// resource name
	ResourceName string `json:"resourceName,omitempty"`

	// resource type
	ResourceType string `json:"resourceType,omitempty"`
}

StackpathRPCResourceInfo stackpath rpc resource info

swagger:model stackpath.rpc.ResourceInfo

func (*StackpathRPCResourceInfo) AtType

func (m *StackpathRPCResourceInfo) AtType() string

AtType gets the at type of this subtype

func (*StackpathRPCResourceInfo) ContextValidate

func (m *StackpathRPCResourceInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stackpath rpc resource info based on the context it is used

func (*StackpathRPCResourceInfo) MarshalBinary

func (m *StackpathRPCResourceInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (StackpathRPCResourceInfo) MarshalJSON

func (m StackpathRPCResourceInfo) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCResourceInfo) SetAtType

func (m *StackpathRPCResourceInfo) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCResourceInfo) UnmarshalBinary

func (m *StackpathRPCResourceInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StackpathRPCResourceInfo) UnmarshalJSON

func (m *StackpathRPCResourceInfo) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCResourceInfo) Validate

func (m *StackpathRPCResourceInfo) Validate(formats strfmt.Registry) error

Validate validates this stackpath rpc resource info

type StackpathRPCRetryInfo

type StackpathRPCRetryInfo struct {

	// retry delay
	RetryDelay string `json:"retryDelay,omitempty"`
}

StackpathRPCRetryInfo stackpath rpc retry info

swagger:model stackpath.rpc.RetryInfo

func (*StackpathRPCRetryInfo) AtType

func (m *StackpathRPCRetryInfo) AtType() string

AtType gets the at type of this subtype

func (*StackpathRPCRetryInfo) ContextValidate

func (m *StackpathRPCRetryInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this stackpath rpc retry info based on the context it is used

func (*StackpathRPCRetryInfo) MarshalBinary

func (m *StackpathRPCRetryInfo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (StackpathRPCRetryInfo) MarshalJSON

func (m StackpathRPCRetryInfo) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with a polymorphic type to a JSON structure

func (*StackpathRPCRetryInfo) SetAtType

func (m *StackpathRPCRetryInfo) SetAtType(val string)

SetAtType sets the at type of this subtype

func (*StackpathRPCRetryInfo) UnmarshalBinary

func (m *StackpathRPCRetryInfo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StackpathRPCRetryInfo) UnmarshalJSON

func (m *StackpathRPCRetryInfo) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure

func (*StackpathRPCRetryInfo) Validate

func (m *StackpathRPCRetryInfo) Validate(formats strfmt.Registry) error

Validate validates this stackpath rpc retry info

type V1Action

type V1Action string

V1Action Which action to apply

swagger:model v1Action

const (

	// V1ActionUNDEFINED captures enum value "UNDEFINED"
	V1ActionUNDEFINED V1Action = "UNDEFINED"

	// V1ActionBLOCK captures enum value "BLOCK"
	V1ActionBLOCK V1Action = "BLOCK"

	// V1ActionALLOW captures enum value "ALLOW"
	V1ActionALLOW V1Action = "ALLOW"
)

func NewV1Action

func NewV1Action(value V1Action) *V1Action

func (V1Action) ContextValidate

func (m V1Action) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 action based on context it is used

func (V1Action) Validate

func (m V1Action) Validate(formats strfmt.Registry) error

Validate validates this v1 action

type V1CreateNetworkPolicyRequest

type V1CreateNetworkPolicyRequest struct {

	// network policy
	NetworkPolicy *V1NetworkPolicy `json:"networkPolicy,omitempty"`
}

V1CreateNetworkPolicyRequest v1 create network policy request

swagger:model v1CreateNetworkPolicyRequest

func (*V1CreateNetworkPolicyRequest) ContextValidate

func (m *V1CreateNetworkPolicyRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 create network policy request based on the context it is used

func (*V1CreateNetworkPolicyRequest) MarshalBinary

func (m *V1CreateNetworkPolicyRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1CreateNetworkPolicyRequest) UnmarshalBinary

func (m *V1CreateNetworkPolicyRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1CreateNetworkPolicyRequest) Validate

func (m *V1CreateNetworkPolicyRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 create network policy request

type V1CreateNetworkPolicyResponse

type V1CreateNetworkPolicyResponse struct {

	// network policy
	NetworkPolicy *V1NetworkPolicy `json:"networkPolicy,omitempty"`
}

V1CreateNetworkPolicyResponse A response from a request to add a network policy to a stack

swagger:model v1CreateNetworkPolicyResponse

func (*V1CreateNetworkPolicyResponse) ContextValidate

func (m *V1CreateNetworkPolicyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 create network policy response based on the context it is used

func (*V1CreateNetworkPolicyResponse) MarshalBinary

func (m *V1CreateNetworkPolicyResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1CreateNetworkPolicyResponse) UnmarshalBinary

func (m *V1CreateNetworkPolicyResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1CreateNetworkPolicyResponse) Validate

func (m *V1CreateNetworkPolicyResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 create network policy response

type V1Egress

type V1Egress struct {

	// action
	Action *V1Action `json:"action,omitempty"`

	// Detailed summary of what the egress rule does
	Description string `json:"description,omitempty"`

	// protocols
	Protocols *V1Protocols `json:"protocols,omitempty"`

	// to
	To *V1HostRule `json:"to,omitempty"`
}

V1Egress An outbound rule from workload instances

swagger:model v1Egress

func (*V1Egress) ContextValidate

func (m *V1Egress) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 egress based on the context it is used

func (*V1Egress) MarshalBinary

func (m *V1Egress) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Egress) UnmarshalBinary

func (m *V1Egress) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Egress) Validate

func (m *V1Egress) Validate(formats strfmt.Registry) error

Validate validates this v1 egress

type V1GetNetworkPoliciesResponse

type V1GetNetworkPoliciesResponse struct {

	// page info
	PageInfo *PaginationPageInfo `json:"pageInfo,omitempty"`

	// The requested network policies
	Results []*V1NetworkPolicy `json:"results"`
}

V1GetNetworkPoliciesResponse A response from a request to retrieve a stack's network policies

swagger:model v1GetNetworkPoliciesResponse

func (*V1GetNetworkPoliciesResponse) ContextValidate

func (m *V1GetNetworkPoliciesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 get network policies response based on the context it is used

func (*V1GetNetworkPoliciesResponse) MarshalBinary

func (m *V1GetNetworkPoliciesResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GetNetworkPoliciesResponse) UnmarshalBinary

func (m *V1GetNetworkPoliciesResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GetNetworkPoliciesResponse) Validate

func (m *V1GetNetworkPoliciesResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 get network policies response

type V1GetNetworkPolicyResponse

type V1GetNetworkPolicyResponse struct {

	// network policy
	NetworkPolicy *V1NetworkPolicy `json:"networkPolicy,omitempty"`
}

V1GetNetworkPolicyResponse A response from a request to get a network policy to a stack

swagger:model v1GetNetworkPolicyResponse

func (*V1GetNetworkPolicyResponse) ContextValidate

func (m *V1GetNetworkPolicyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 get network policy response based on the context it is used

func (*V1GetNetworkPolicyResponse) MarshalBinary

func (m *V1GetNetworkPolicyResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GetNetworkPolicyResponse) UnmarshalBinary

func (m *V1GetNetworkPolicyResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GetNetworkPolicyResponse) Validate

func (m *V1GetNetworkPolicyResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 get network policy response

type V1HostRule

type V1HostRule struct {

	// List of instance selectors
	InstanceSelectors []*NetworkMatchExpression `json:"instanceSelectors"`

	// List of ip blocks
	IPBlock []*V1IPBlock `json:"ipBlock"`

	// List of network selectors
	NetworkSelectors []*NetworkMatchExpression `json:"networkSelectors"`
}

V1HostRule Defines IPs, instances, or networks

swagger:model v1HostRule

func (*V1HostRule) ContextValidate

func (m *V1HostRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 host rule based on the context it is used

func (*V1HostRule) MarshalBinary

func (m *V1HostRule) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1HostRule) UnmarshalBinary

func (m *V1HostRule) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1HostRule) Validate

func (m *V1HostRule) Validate(formats strfmt.Registry) error

Validate validates this v1 host rule

type V1IPBlock

type V1IPBlock struct {

	// A subnet that will define all the IPs allowed by a rule
	Cidr string `json:"cidr,omitempty"`

	// A list of subnets that will be excluded from the above subnet
	//
	// This allows a convenient way to allow multiple ip ranges in a single expression
	Except []string `json:"except"`
}

V1IPBlock Defines an IP block

swagger:model v1IpBlock

func (*V1IPBlock) ContextValidate

func (m *V1IPBlock) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 Ip block based on context it is used

func (*V1IPBlock) MarshalBinary

func (m *V1IPBlock) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1IPBlock) UnmarshalBinary

func (m *V1IPBlock) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1IPBlock) Validate

func (m *V1IPBlock) Validate(formats strfmt.Registry) error

Validate validates this v1 Ip block

type V1IPFamily

type V1IPFamily string

V1IPFamily v1 IP family

swagger:model v1IPFamily

const (

	// V1IPFamilyUNSPECIFIED captures enum value "UNSPECIFIED"
	V1IPFamilyUNSPECIFIED V1IPFamily = "UNSPECIFIED"

	// V1IPFamilyIPV4 captures enum value "IPv4"
	V1IPFamilyIPV4 V1IPFamily = "IPv4"

	// V1IPFamilyIPV6 captures enum value "IPv6"
	V1IPFamilyIPV6 V1IPFamily = "IPv6"
)

func NewV1IPFamily

func NewV1IPFamily(value V1IPFamily) *V1IPFamily

func (V1IPFamily) ContextValidate

func (m V1IPFamily) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 IP family based on context it is used

func (V1IPFamily) Validate

func (m V1IPFamily) Validate(formats strfmt.Registry) error

Validate validates this v1 IP family

type V1Ingress

type V1Ingress struct {

	// action
	Action *V1Action `json:"action,omitempty"`

	// Detailed summary of what the ingress rule does
	Description string `json:"description,omitempty"`

	// from
	From *V1HostRule `json:"from,omitempty"`

	// protocols
	Protocols *V1Protocols `json:"protocols,omitempty"`
}

V1Ingress An inbound rule to workload instances

swagger:model v1Ingress

func (*V1Ingress) ContextValidate

func (m *V1Ingress) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 ingress based on the context it is used

func (*V1Ingress) MarshalBinary

func (m *V1Ingress) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Ingress) UnmarshalBinary

func (m *V1Ingress) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Ingress) Validate

func (m *V1Ingress) Validate(formats strfmt.Registry) error

Validate validates this v1 ingress

type V1MatchExpression

type V1MatchExpression struct {

	// The name of the selector to perform a match against
	Key string `json:"key,omitempty"`

	// The operation to perform to match a selector
	//
	// Valid values are "in" with support for more possible in the future
	Operator string `json:"operator,omitempty"`

	// The values to match in the selector
	Values []string `json:"values"`
}

V1MatchExpression An expression to match selectors against a set of values

swagger:model v1MatchExpression

func (*V1MatchExpression) ContextValidate

func (m *V1MatchExpression) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 match expression based on context it is used

func (*V1MatchExpression) MarshalBinary

func (m *V1MatchExpression) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MatchExpression) UnmarshalBinary

func (m *V1MatchExpression) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MatchExpression) Validate

func (m *V1MatchExpression) Validate(formats strfmt.Registry) error

Validate validates this v1 match expression

type V1NetworkPolicy

type V1NetworkPolicy struct {

	// Detailed summary of what the policy does
	Description string `json:"description,omitempty"`

	// A network policy's unique identifier
	// Read Only: true
	ID string `json:"id,omitempty"`

	// metadata
	Metadata *NetworkMetadata `json:"metadata,omitempty"`

	// A network policy's name as it appears in the StackPath portal
	Name string `json:"name,omitempty"`

	// A network policy's programmatic name
	//
	// Network policy slugs are used to build its instances names
	Slug string `json:"slug,omitempty"`

	// spec
	Spec *V1NetworkPolicySpec `json:"spec,omitempty"`

	// The ID of the stack that a network policy belongs to
	// Read Only: true
	StackID string `json:"stackId,omitempty"`
}

V1NetworkPolicy A network policy

Network policies define an ACL that applies to one or many workload instances

swagger:model v1NetworkPolicy

func (*V1NetworkPolicy) ContextValidate

func (m *V1NetworkPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 network policy based on the context it is used

func (*V1NetworkPolicy) MarshalBinary

func (m *V1NetworkPolicy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NetworkPolicy) UnmarshalBinary

func (m *V1NetworkPolicy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NetworkPolicy) Validate

func (m *V1NetworkPolicy) Validate(formats strfmt.Registry) error

Validate validates this v1 network policy

type V1NetworkPolicySpec

type V1NetworkPolicySpec struct {

	// A list of rules for outbound traffic from instances
	//
	// If the egress policy type is given but not defined here the default is to allow all
	Egress []*V1Egress `json:"egress"`

	// A list of rules for inbound traffic to instances
	//
	// If the ingress policy type is given but not defined here the default is to block all
	Ingress []*V1Ingress `json:"ingress"`

	// A selector to match workload instances
	InstanceSelectors []*NetworkMatchExpression `json:"instanceSelectors"`

	// A selector to match networks
	NetworkSelectors []*NetworkMatchExpression `json:"networkSelectors"`

	// A list of policy types
	//
	// Policy types are used to specify what rules will be defined. If a policy type is given but not defined it will default. If it is not provided then no action will be used.
	PolicyTypes []*NetworkPolicySpecPolicyType `json:"policyTypes"`

	// A policy's priority among other network policies. 1 - 65000
	//
	// Network policies apply to all compute workloads on the stack. Lower values have a higher priority, and priorities must be unique across the stack. Use the special value 65534 to apply the same priority to different workload instances in the same stack, identified by their selectors.
	Priority int32 `json:"priority,omitempty"`
}

V1NetworkPolicySpec The specification for the desired state of a network policy

swagger:model v1NetworkPolicySpec

func (*V1NetworkPolicySpec) ContextValidate

func (m *V1NetworkPolicySpec) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 network policy spec based on the context it is used

func (*V1NetworkPolicySpec) MarshalBinary

func (m *V1NetworkPolicySpec) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1NetworkPolicySpec) UnmarshalBinary

func (m *V1NetworkPolicySpec) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1NetworkPolicySpec) Validate

func (m *V1NetworkPolicySpec) Validate(formats strfmt.Registry) error

Validate validates this v1 network policy spec

type V1ProtocolAh

type V1ProtocolAh struct{}

V1ProtocolAh Authentication Header (AH) protocol matching

swagger:model v1ProtocolAh

type V1ProtocolEsp

type V1ProtocolEsp struct{}

V1ProtocolEsp Encapsulating Security Payload (ESP) protocol matching

swagger:model v1ProtocolEsp

type V1ProtocolGre

type V1ProtocolGre struct{}

V1ProtocolGre Generic Routing Encapsulation (GRE) protocol matching

swagger:model v1ProtocolGre

type V1ProtocolIcmp

type V1ProtocolIcmp struct{}

V1ProtocolIcmp ICMP protocol matching

swagger:model v1ProtocolIcmp

type V1ProtocolTCP

type V1ProtocolTCP struct {

	// List of destination ports to allow 1-65535
	DestinationPorts []string `json:"destinationPorts"`

	// List of source ports to allow 1-65535, defaults to 1000-65535
	SourcePorts []string `json:"sourcePorts"`
}

V1ProtocolTCP TCP protocol matching

swagger:model v1ProtocolTcp

func (*V1ProtocolTCP) ContextValidate

func (m *V1ProtocolTCP) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 protocol Tcp based on context it is used

func (*V1ProtocolTCP) MarshalBinary

func (m *V1ProtocolTCP) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ProtocolTCP) UnmarshalBinary

func (m *V1ProtocolTCP) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ProtocolTCP) Validate

func (m *V1ProtocolTCP) Validate(formats strfmt.Registry) error

Validate validates this v1 protocol Tcp

type V1ProtocolTCPUDP

type V1ProtocolTCPUDP struct {

	// List of destination ports to allow 1-65535
	DestinationPorts []string `json:"destinationPorts"`

	// List of source ports to allow 1-65535, defaults to 1000-65535
	SourcePorts []string `json:"sourcePorts"`
}

V1ProtocolTCPUDP TCP or UDP protocol convenience matching

swagger:model v1ProtocolTcpUdp

func (*V1ProtocolTCPUDP) ContextValidate

func (m *V1ProtocolTCPUDP) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 protocol Tcp Udp based on context it is used

func (*V1ProtocolTCPUDP) MarshalBinary

func (m *V1ProtocolTCPUDP) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ProtocolTCPUDP) UnmarshalBinary

func (m *V1ProtocolTCPUDP) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ProtocolTCPUDP) Validate

func (m *V1ProtocolTCPUDP) Validate(formats strfmt.Registry) error

Validate validates this v1 protocol Tcp Udp

type V1ProtocolUDP

type V1ProtocolUDP struct {

	// List of destination ports to allow 1-65535
	DestinationPorts []string `json:"destinationPorts"`

	// List of source ports to allow 1-65535, defaults to 1000-65535
	SourcePorts []string `json:"sourcePorts"`
}

V1ProtocolUDP UDP protocol matching

swagger:model v1ProtocolUdp

func (*V1ProtocolUDP) ContextValidate

func (m *V1ProtocolUDP) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 protocol Udp based on context it is used

func (*V1ProtocolUDP) MarshalBinary

func (m *V1ProtocolUDP) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ProtocolUDP) UnmarshalBinary

func (m *V1ProtocolUDP) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ProtocolUDP) Validate

func (m *V1ProtocolUDP) Validate(formats strfmt.Registry) error

Validate validates this v1 protocol Udp

type V1Protocols

type V1Protocols struct {

	// ah
	Ah *V1ProtocolAh `json:"ah,omitempty"`

	// esp
	Esp *V1ProtocolEsp `json:"esp,omitempty"`

	// gre
	Gre *V1ProtocolGre `json:"gre,omitempty"`

	// icmp
	Icmp *V1ProtocolIcmp `json:"icmp,omitempty"`

	// tcp
	TCP *V1ProtocolTCP `json:"tcp,omitempty"`

	// tcp Udp
	TCPUDP *V1ProtocolTCPUDP `json:"tcpUdp,omitempty"`

	// udp
	UDP *V1ProtocolUDP `json:"udp,omitempty"`
}

V1Protocols An object of all supported protocols and any attributes for them

swagger:model v1Protocols

func (*V1Protocols) ContextValidate

func (m *V1Protocols) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 protocols based on the context it is used

func (*V1Protocols) MarshalBinary

func (m *V1Protocols) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Protocols) UnmarshalBinary

func (m *V1Protocols) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Protocols) Validate

func (m *V1Protocols) Validate(formats strfmt.Registry) error

Validate validates this v1 protocols

type V1UpdateNetworkPolicyRequest

type V1UpdateNetworkPolicyRequest struct {

	// network policy
	NetworkPolicy *V1NetworkPolicy `json:"networkPolicy,omitempty"`
}

V1UpdateNetworkPolicyRequest v1 update network policy request

swagger:model v1UpdateNetworkPolicyRequest

func (*V1UpdateNetworkPolicyRequest) ContextValidate

func (m *V1UpdateNetworkPolicyRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 update network policy request based on the context it is used

func (*V1UpdateNetworkPolicyRequest) MarshalBinary

func (m *V1UpdateNetworkPolicyRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1UpdateNetworkPolicyRequest) UnmarshalBinary

func (m *V1UpdateNetworkPolicyRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1UpdateNetworkPolicyRequest) Validate

func (m *V1UpdateNetworkPolicyRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 update network policy request

type V1UpdateNetworkPolicyResponse

type V1UpdateNetworkPolicyResponse struct {

	// network policy
	NetworkPolicy *V1NetworkPolicy `json:"networkPolicy,omitempty"`
}

V1UpdateNetworkPolicyResponse A response from a request to update a network policy

swagger:model v1UpdateNetworkPolicyResponse

func (*V1UpdateNetworkPolicyResponse) ContextValidate

func (m *V1UpdateNetworkPolicyResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 update network policy response based on the context it is used

func (*V1UpdateNetworkPolicyResponse) MarshalBinary

func (m *V1UpdateNetworkPolicyResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1UpdateNetworkPolicyResponse) UnmarshalBinary

func (m *V1UpdateNetworkPolicyResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1UpdateNetworkPolicyResponse) Validate

func (m *V1UpdateNetworkPolicyResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 update network policy response

Source Files

Jump to

Keyboard shortcuts

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