ipam_models

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MPL-2.0 Imports: 10 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) 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

	// 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 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 a network policy 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) 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 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) Validate

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

Validate validates this network policy spec policy type

type NetworkStringMapEntry

type NetworkStringMapEntry map[string]string

NetworkStringMapEntry A string to string key/value pair

swagger:model networkStringMapEntry

func (NetworkStringMapEntry) Validate

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

Validate validates this network string map entry

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) 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) 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 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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 (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) 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) 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) 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) 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) 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 []*V1MatchExpression `json:"instanceSelectors"`

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

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

V1HostRule Defines IPs, instances, or networks

swagger:model v1HostRule

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) 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 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) 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) 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) 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 []*V1MatchExpression `json:"instanceSelectors"`

	// A selector to match networks
	NetworkSelectors []*V1MatchExpression `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 priority for all rules in the network policy. 1-65000
	Priority int32 `json:"priority,omitempty"`
}

V1NetworkPolicySpec The specification for the desired state of a network policy

swagger:model v1NetworkPolicySpec

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) 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) 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) 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) 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) 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) 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

Jump to

Keyboard shortcuts

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