models

package
v2.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// AgentProviderTenant captures enum value "tenant"
	AgentProviderTenant string = "tenant"

	// AgentProviderCp captures enum value "cp"
	AgentProviderCp string = "cp"
)
View Source
const (

	// ServiceHealthStatusONLINE captures enum value "ONLINE"
	ServiceHealthStatusONLINE string = "ONLINE"

	// ServiceHealthStatusDEGRADED captures enum value "DEGRADED"
	ServiceHealthStatusDEGRADED string = "DEGRADED"

	// ServiceHealthStatusOFFLINE captures enum value "OFFLINE"
	ServiceHealthStatusOFFLINE string = "OFFLINE"

	// ServiceHealthStatusUNCHECKED captures enum value "UNCHECKED"
	ServiceHealthStatusUNCHECKED string = "UNCHECKED"
)
View Source
const (

	// ServiceProtocolHTTP captures enum value "HTTP"
	ServiceProtocolHTTP string = "HTTP"

	// ServiceProtocolTCP captures enum value "TCP"
	ServiceProtocolTCP string = "TCP"
)
View Source
const (

	// ServiceProviderTenant captures enum value "tenant"
	ServiceProviderTenant string = "tenant"

	// ServiceProviderCp captures enum value "cp"
	ServiceProviderCp string = "cp"
)
View Source
const (

	// ServiceVisibilityPrivate captures enum value "private"
	ServiceVisibilityPrivate string = "private"

	// ServiceVisibilityPublic captures enum value "public"
	ServiceVisibilityPublic string = "public"
)
View Source
const (

	// ServiceUpdatableProtocolHTTP captures enum value "HTTP"
	ServiceUpdatableProtocolHTTP string = "HTTP"

	// ServiceUpdatableProtocolTCP captures enum value "TCP"
	ServiceUpdatableProtocolTCP string = "TCP"
)
View Source
const (

	// ServiceUpdatableVisibilityPrivate captures enum value "private"
	ServiceUpdatableVisibilityPrivate string = "private"

	// ServiceUpdatableVisibilityPublic captures enum value "public"
	ServiceUpdatableVisibilityPublic string = "public"
)
View Source
const (

	// RbacpolicyTargetTypeProject captures enum value "project"
	RbacpolicyTargetTypeProject string = "project"
)
View Source
const (

	// RbacpolicycommonTargetTypeProject captures enum value "project"
	RbacpolicycommonTargetTypeProject string = "project"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {

	// Availability zone of this agent.
	// Example: AZ-A
	AvailabilityZone *string `json:"availability_zone"`

	// created at
	CreatedAt time.Time `json:"created_at,omitempty"`

	// Whether the agent is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// heartbeat at
	HeartbeatAt time.Time `json:"heartbeat_at,omitempty"`

	// The hostname of the agent.
	// Example: agent-host-01
	// Read Only: true
	Host string `json:"host,omitempty"`

	// Physical network the agent is connected to.
	Physnet *string `json:"physnet"`

	// Provider type of the agent.
	// Example: tenant
	// Enum: ["tenant","cp"]
	Provider string `json:"provider,omitempty"`

	// Number of services hosted by this agent.
	// Read Only: true
	Services int64 `json:"services"`

	// updated at
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

Agent agent

swagger:model Agent

func (*Agent) ContextValidate

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

ContextValidate validate this agent based on the context it is used

func (*Agent) MarshalBinary

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

MarshalBinary interface implementation

func (*Agent) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Agent) Validate

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

Validate validates this agent

type Endpoint

type Endpoint struct {

	// **Note: This option currently only affects endpoints for services with provider type `tenant`.**
	//
	// Enable BIG-IP connection mirroring for high availability failover.
	// When enabled, connection and persistence information is mirrored to
	// the standby device in a DSC configuration.
	// Enabling mirroring can increase latency of the endpoint.
	//
	ConnectionMirroring *bool `json:"connection_mirroring,omitempty"`

	// created at
	CreatedAt time.Time `json:"created_at,omitempty"`

	// Description of the endpoint.
	// Example: An example of an endpoint.
	// Max Length: 255
	Description string `json:"description"`

	// The ID of the resource.
	// Read Only: true
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// Endpoint IP address (IPv4 or IPv6).
	// Example: 1.2.3.4
	// Read Only: true
	IPAddress string `json:"ip_address,omitempty"`

	// Name of the endpoint.
	// Example: Example endpoint.
	// Max Length: 64
	Name string `json:"name"`

	// project id
	ProjectID Project `json:"project_id"`

	// The ID of the service.
	// Format: uuid
	ServiceID strfmt.UUID `json:"service_id,omitempty"`

	// status
	Status EndpointStatus `json:"status,omitempty"`

	// The list of tags on the resource.
	Tags []string `json:"tags"`

	// target
	Target EndpointTarget `json:"target,omitempty"`

	// updated at
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

Endpoint endpoint

swagger:model Endpoint

func (*Endpoint) ContextValidate

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

ContextValidate validate this endpoint based on the context it is used

func (*Endpoint) MarshalBinary

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

MarshalBinary interface implementation

func (*Endpoint) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Endpoint) Validate

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

Validate validates this endpoint

type EndpointConsumer

type EndpointConsumer struct {

	// The ID of the resource.
	// Read Only: true
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// project id
	ProjectID Project `json:"project_id"`

	// status
	Status EndpointStatus `json:"status,omitempty"`
}

EndpointConsumer endpoint consumer

swagger:model EndpointConsumer

func (*EndpointConsumer) ContextValidate

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

ContextValidate validate this endpoint consumer based on the context it is used

func (*EndpointConsumer) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointConsumer) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointConsumer) Validate

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

Validate validates this endpoint consumer

type EndpointConsumerList

type EndpointConsumerList struct {

	// endpoint ids
	EndpointIds []strfmt.UUID `json:"endpoint_ids"`

	// project ids
	ProjectIds []Project `json:"project_ids"`
}

EndpointConsumerList list of consumer ids.

swagger:model EndpointConsumerList

func (*EndpointConsumerList) ContextValidate

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

ContextValidate validate this endpoint consumer list based on the context it is used

func (*EndpointConsumerList) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointConsumerList) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointConsumerList) Validate

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

Validate validates this endpoint consumer list

type EndpointStatus

type EndpointStatus string

EndpointStatus Status of the endpoint

### Status can be one of | Status | Description | | ------------------ | ------------------------------------- | | AVAILABLE | Endpoint is available for consumption | | PENDING_APPROVAL | Endpoint is waiting for approval | | PENDING_CREATE | Endpoint is being set up | | PENDING_UPDATE | Endpoint is being updated | | PENDING_REJECTED | Endpoint is being rejected | | PENDING_DELETE | Endpoint is being deleted | | REJECTED | Endpoint was rejected | | FAILED | Endpoint setup failed |

swagger:model EndpointStatus

const (

	// EndpointStatusAVAILABLE captures enum value "AVAILABLE"
	EndpointStatusAVAILABLE EndpointStatus = "AVAILABLE"

	// EndpointStatusPENDINGAPPROVAL captures enum value "PENDING_APPROVAL"
	EndpointStatusPENDINGAPPROVAL EndpointStatus = "PENDING_APPROVAL"

	// EndpointStatusPENDINGCREATE captures enum value "PENDING_CREATE"
	EndpointStatusPENDINGCREATE EndpointStatus = "PENDING_CREATE"

	// EndpointStatusPENDINGUPDATE captures enum value "PENDING_UPDATE"
	EndpointStatusPENDINGUPDATE EndpointStatus = "PENDING_UPDATE"

	// EndpointStatusPENDINGREJECTED captures enum value "PENDING_REJECTED"
	EndpointStatusPENDINGREJECTED EndpointStatus = "PENDING_REJECTED"

	// EndpointStatusPENDINGDELETE captures enum value "PENDING_DELETE"
	EndpointStatusPENDINGDELETE EndpointStatus = "PENDING_DELETE"

	// EndpointStatusREJECTED captures enum value "REJECTED"
	EndpointStatusREJECTED EndpointStatus = "REJECTED"

	// EndpointStatusFAILED captures enum value "FAILED"
	EndpointStatusFAILED EndpointStatus = "FAILED"
)

func NewEndpointStatus

func NewEndpointStatus(value EndpointStatus) *EndpointStatus

func (EndpointStatus) ContextValidate

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

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

func (EndpointStatus) Pointer

func (m EndpointStatus) Pointer() *EndpointStatus

Pointer returns a pointer to a freshly-allocated EndpointStatus.

func (EndpointStatus) Validate

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

Validate validates this endpoint status

type EndpointTarget

type EndpointTarget struct {

	// Endpoint network target. One of `target_network`, `target_subnet` or `target_port` must be specified.
	// Example: 49b6480b-24d3-4376-a4c9-aecbb89e16d9
	// Format: uuid
	Network *strfmt.UUID `json:"network,omitempty"`

	// Endpoint port target. One of `target_network`, `target_subnet` or `target_port` must be specified.
	// Example: b2accf1a-1c99-4b54-9eeb-22be53f177f5
	// Format: uuid
	Port *strfmt.UUID `json:"port,omitempty"`

	// Endpoint subnet target. One of `target_network`, `target_subnet` or `target_port` must be specified.
	// Example: 1fb12a1a-a1a5-4732-9a2e-635ba6ec8d3b
	// Format: uuid
	Subnet *strfmt.UUID `json:"subnet,omitempty"`
}

EndpointTarget Endpoint target

swagger:model EndpointTarget

func (*EndpointTarget) ContextValidate

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

ContextValidate validates this endpoint target based on context it is used

func (*EndpointTarget) MarshalBinary

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

MarshalBinary interface implementation

func (*EndpointTarget) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EndpointTarget) Validate

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

Validate validates this endpoint target

type Error

type Error struct {

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

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

Error error

swagger:model Error

func (*Error) ContextValidate

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

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

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

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Error) Validate

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

Validate validates this error

type InetAddress

type InetAddress string

InetAddress represents an IP address (IPv4 or IPv6) that can be scanned from PostgreSQL inet type.

func (InetAddress) ContextValidate

func (a InetAddress) ContextValidate(_ context.Context, _ strfmt.Registry) error

ContextValidate implements runtime.ContextValidatable for go-swagger.

func (InetAddress) NetipPrefixValue

func (a InetAddress) NetipPrefixValue() (netip.Prefix, error)

NetipPrefixValue implements pgtype.NetipPrefixValuer for pgx inet encoding.

func (*InetAddress) ScanNetipPrefix

func (a *InetAddress) ScanNetipPrefix(v netip.Prefix) error

ScanNetipPrefix implements pgtype.NetipPrefixScanner for pgx inet scanning.

func (InetAddress) Validate

func (a InetAddress) Validate(_ strfmt.Registry) error

Validate implements runtime.Validatable for go-swagger validation.

type Link struct {

	// href
	// Example: /
	Href string `json:"href,omitempty"`

	// rel
	// Example: self
	Rel string `json:"rel,omitempty"`
}

Link link

swagger:model Link

func (*Link) ContextValidate

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

ContextValidate validates this link based on context it is used

func (*Link) MarshalBinary

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

MarshalBinary interface implementation

func (*Link) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Link) Validate

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

Validate validates this link

type Project

type Project string

Project The ID of the project owning this resource. Example: fa84c217f361441986a220edf9b1e337

swagger:model Project

func (Project) ContextValidate

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

ContextValidate validates this project based on context it is used

func (Project) Validate

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

Validate validates this project

type Quota

type Quota struct {

	// The configured endpoint quota limit. A setting of null means it is using the deployment default quota. A setting of -1 means unlimited.
	// Example: 5
	// Minimum: -1
	Endpoint int64 `json:"endpoint,omitempty"`

	// The configured service quota limit. A setting of null means it is using the deployment default quota. A setting of -1 means unlimited.
	// Example: 5
	// Minimum: -1
	Service int64 `json:"service,omitempty"`
}

Quota quota

swagger:model Quota

func (*Quota) ContextValidate

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

ContextValidate validates this quota based on context it is used

func (*Quota) MarshalBinary

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

MarshalBinary interface implementation

func (*Quota) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Quota) Validate

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

Validate validates this quota

type QuotaUsage

type QuotaUsage struct {

	// The current quota usage of endpoints.
	// Example: 5
	InUseEndpoint int64 `json:"in_use_endpoint"`

	// The current quota usage of services.
	// Example: 5
	InUseService int64 `json:"in_use_service"`
}

QuotaUsage quota usage

swagger:model QuotaUsage

func (*QuotaUsage) ContextValidate

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

ContextValidate validates this quota usage based on context it is used

func (*QuotaUsage) MarshalBinary

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

MarshalBinary interface implementation

func (*QuotaUsage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*QuotaUsage) Validate

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

Validate validates this quota usage

type Rbacpolicy

type Rbacpolicy struct {

	// created at
	CreatedAt time.Time `json:"created_at,omitempty"`

	// The ID of the resource.
	// Read Only: true
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// project id
	ProjectID Project `json:"project_id"`

	// The ID of the service resource.
	// Required: true
	// Format: uuid
	ServiceID *strfmt.UUID `json:"service_id"`

	// The ID of the project to which the RBAC policy will be enforced.
	// Example: 666da95112694b37b3efb0913de3f499
	// Max Length: 36
	Target string `json:"target,omitempty"`

	// target type
	// Enum: ["project"]
	TargetType *string `json:"target_type,omitempty"`

	// updated at
	UpdatedAt time.Time `json:"updated_at,omitempty"`
}

Rbacpolicy rbacpolicy

swagger:model rbacpolicy

func (*Rbacpolicy) ContextValidate

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

ContextValidate validate this rbacpolicy based on the context it is used

func (*Rbacpolicy) MarshalBinary

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

MarshalBinary interface implementation

func (*Rbacpolicy) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Rbacpolicy) Validate

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

Validate validates this rbacpolicy

type Rbacpolicycommon

type Rbacpolicycommon struct {

	// The ID of the resource.
	// Read Only: true
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// project id
	ProjectID Project `json:"project_id"`

	// The ID of the project to which the RBAC policy will be enforced.
	// Example: 666da95112694b37b3efb0913de3f499
	// Required: true
	// Max Length: 36
	Target *string `json:"target"`

	// target type
	// Enum: ["project"]
	TargetType *string `json:"target_type,omitempty"`
}

Rbacpolicycommon rbacpolicycommon

swagger:model rbacpolicycommon

func (*Rbacpolicycommon) ContextValidate

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

ContextValidate validate this rbacpolicycommon based on the context it is used

func (*Rbacpolicycommon) MarshalBinary

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

MarshalBinary interface implementation

func (*Rbacpolicycommon) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Rbacpolicycommon) Validate

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

Validate validates this rbacpolicycommon

type Service

type Service struct {

	// Availability zone of this service. If set to null, the service will be configured as a cross-AZ (cross-availability-zone) service, providing redundancy across all availability zones. Cross-AZ services are only supported in specific regions and providers that have cross-AZ agents deployed. If no cross-AZ agent is available for the requested region/provider, service creation will fail with a "No available host agent found" error.
	// Example: AZ-A
	// Max Length: 64
	AvailabilityZone *string `json:"availability_zone"`

	// created at
	CreatedAt time.Time `json:"created_at,omitempty"`

	// Description of the service.
	// Example: An example of an Service.
	// Max Length: 255
	Description string `json:"description"`

	// Enable/disable this service. Existing endpoints are not touched by this.
	Enabled *bool `json:"enabled,omitempty"`

	// Health monitor status of the service backend.
	//
	// ### Health status can be one of
	// | Status      | Description                              |
	// | ----------- | ---------------------------------------- |
	// | ONLINE      | Service is healthy                       |
	// | DEGRADED    | Service is partially healthy             |
	// | OFFLINE     | Service is not healthy                   |
	// | UNCHECKED   | Status cannot be determined              |
	//
	// Read Only: true
	// Enum: ["ONLINE","DEGRADED","OFFLINE","UNCHECKED"]
	HealthStatus *string `json:"health_status,omitempty"`

	// Device host.
	// Read Only: true
	// Max Length: 64
	Host *string `json:"host,omitempty"`

	// The ID of the resource.
	// Read Only: true
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// IP Addresses of the providing service (IPv4 or IPv6), multiple addresses will be round robin load balanced.
	// Required: true
	// Min Items: 1
	IPAddresses []InetAddress `json:"ip_addresses"`

	// Name of the service.
	// Example: ExampleService
	// Max Length: 64
	Name string `json:"name"`

	// Network ID of the network that provides this service. Required for tenant provider, optional for cp provider.
	// Format: uuid
	NetworkID *strfmt.UUID `json:"network_id,omitempty"`

	// Ports exposed by the service.
	// Required: true
	// Min Items: 1
	// Unique: true
	Ports []int32 `json:"ports"`

	// project id
	ProjectID Project `json:"project_id"`

	// Protocol type of the service.
	//
	// ### protocol can be one of
	// | protocol         | Description                            |
	// | ---------------- | -------------------------------------- |
	// | HTTP             | Service is HTTP based                  |
	// | TCP              | Service is TCP based                   |
	//
	// Enum: ["HTTP","TCP"]
	Protocol *string `json:"protocol,omitempty"`

	// Provider type, defaults to tenant type.
	// Enum: ["tenant","cp"]
	Provider *string `json:"provider,omitempty"`

	// Proxy protocol v2 enabled for this service.
	ProxyProtocol *bool `json:"proxy_protocol,omitempty"`

	// Require explicit project approval for the service owner.
	RequireApproval *bool `json:"require_approval,omitempty"`

	// Number of SNAT IP addresses allocated for this service. Increase to scale outbound port capacity. Defaults to 1 when omitted on create. The cp provider does not support custom values.
	//
	// Maximum: 8
	// Minimum: 1
	SnatPoolSize *int32 `json:"snat_pool_size,omitempty"`

	// status
	Status ServiceStatus `json:"status,omitempty"`

	// The list of tags on the resource.
	Tags []string `json:"tags"`

	// updated at
	UpdatedAt time.Time `json:"updated_at,omitempty"`

	// Set global visibility of the service. For `private` visibility, RBAC policies can extend the visibility to specific projects.
	// Enum: ["private","public"]
	Visibility *string `json:"visibility,omitempty"`
}

Service service

swagger:model Service

func (*Service) ContextValidate

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

ContextValidate validate this service based on the context it is used

func (*Service) MarshalBinary

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

MarshalBinary interface implementation

func (*Service) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Service) Validate

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

Validate validates this service

type ServiceStatus

type ServiceStatus string

ServiceStatus Status of the service.

### Status can be one of | Status | Description | | ---------------- | -------------------------------------- | | AVAILABLE | Service is ready for consumption. | | PENDING_CREATE | Service is being set up | | PENDING_UPDATE | Service is being updated | | PENDING_DELETE | Service is being deleted | | UNAVAILABLE | Service is unavailable (e.g. disabled) | | ERROR_QUOTA | Service has not enough port quota |

swagger:model ServiceStatus

const (

	// ServiceStatusAVAILABLE captures enum value "AVAILABLE"
	ServiceStatusAVAILABLE ServiceStatus = "AVAILABLE"

	// ServiceStatusPENDINGCREATE captures enum value "PENDING_CREATE"
	ServiceStatusPENDINGCREATE ServiceStatus = "PENDING_CREATE"

	// ServiceStatusPENDINGUPDATE captures enum value "PENDING_UPDATE"
	ServiceStatusPENDINGUPDATE ServiceStatus = "PENDING_UPDATE"

	// ServiceStatusPENDINGDELETE captures enum value "PENDING_DELETE"
	ServiceStatusPENDINGDELETE ServiceStatus = "PENDING_DELETE"

	// ServiceStatusUNAVAILABLE captures enum value "UNAVAILABLE"
	ServiceStatusUNAVAILABLE ServiceStatus = "UNAVAILABLE"

	// ServiceStatusERRORQUOTA captures enum value "ERROR_QUOTA"
	ServiceStatusERRORQUOTA ServiceStatus = "ERROR_QUOTA"
)

func NewServiceStatus

func NewServiceStatus(value ServiceStatus) *ServiceStatus

func (ServiceStatus) ContextValidate

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

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

func (ServiceStatus) Pointer

func (m ServiceStatus) Pointer() *ServiceStatus

Pointer returns a pointer to a freshly-allocated ServiceStatus.

func (ServiceStatus) Validate

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

Validate validates this service status

type ServiceUpdatable

type ServiceUpdatable struct {

	// Description of the service.
	// Example: An example of an Service.
	// Max Length: 255
	Description *string `json:"description,omitempty"`

	// Enable/disable this service. Existing endpoints are not touched by this.
	Enabled *bool `json:"enabled,omitempty"`

	// IP Addresses of the providing service (IPv4 or IPv6), multiple addresses will be round robin load balanced.
	// Min Items: 1
	IPAddresses []InetAddress `json:"ip_addresses"`

	// Name of the service.
	// Example: ExampleService
	// Max Length: 64
	Name *string `json:"name,omitempty"`

	// Ports exposed by the service.
	// Min Items: 0
	// Unique: true
	Ports []int32 `json:"ports"`

	// Protocol type of the service.
	//
	// ### protocol can be one of
	// | protocol         | Description                            |
	// | ---------------- | -------------------------------------- |
	// | HTTP             | Service is HTTP based                  |
	// | TCP              | Service is TCP based                   |
	//
	// Enum: ["HTTP","TCP"]
	Protocol *string `json:"protocol,omitempty"`

	// Proxy protocol v2 enabled for this service.
	ProxyProtocol *bool `json:"proxy_protocol,omitempty"`

	// Require explicit project approval for the service owner.
	RequireApproval *bool `json:"require_approval,omitempty"`

	// Number of SNAT IP addresses allocated for this service. Increase to scale outbound port capacity. Omit to leave the current value unchanged. The cp provider does not support custom values.
	//
	// Maximum: 8
	// Minimum: 1
	SnatPoolSize *int32 `json:"snat_pool_size,omitempty"`

	// The list of tags on the resource.
	Tags []string `json:"tags"`

	// Set global visibility of the service. For `private` visibility, RBAC policies can extend the visibility to specific projects.
	// Enum: ["private","public"]
	Visibility *string `json:"visibility,omitempty"`
}

ServiceUpdatable service updatable

swagger:model ServiceUpdatable

func (*ServiceUpdatable) ContextValidate

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

ContextValidate validates this service updatable based on context it is used

func (*ServiceUpdatable) MarshalBinary

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

MarshalBinary interface implementation

func (*ServiceUpdatable) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServiceUpdatable) Validate

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

Validate validates this service updatable

type Timestamp

type Timestamp struct {
	timeext.Time
}

Timestamp The UTC date and timestamp. Example: 2020-05-11T17:21:34

swagger:model Timestamp

func (Timestamp) ContextValidate

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

func (*Timestamp) MarshalBinary

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

MarshalBinary interface implementation

func (*Timestamp) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (Timestamp) Validate

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

type Version

type Version struct {

	// capabilities
	// Example: ["pagination","sort"]
	Capabilities []string `json:"capabilities"`

	// Version identifier
	// Example: v1
	ID string `json:"id,omitempty"`

	// links
	Links []*Link `json:"links"`

	// Version status (CURRENT, SUPPORTED, DEPRECATED, EXPERIMENTAL)
	// Example: CURRENT
	Status string `json:"status,omitempty"`

	// Last update of the running version
	// Example: 2018-09-30T00:00:00Z
	Updated string `json:"updated,omitempty"`

	// Version of Archer (max microversion)
	// Example: 1.3.0
	Version string `json:"version,omitempty"`
}

Version Keystone-compatible version information

swagger:model Version

func (*Version) ContextValidate

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

ContextValidate validate this version based on the context it is used

func (*Version) MarshalBinary

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

MarshalBinary interface implementation

func (*Version) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Version) Validate

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

Validate validates this version

type Versions

type Versions struct {

	// Supported capabilities (deprecated, use versions[].capabilities)
	// Example: ["pagination","sort"]
	Capabilities []string `json:"capabilities"`

	// API links (deprecated, use versions[].links)
	Links []*Link `json:"links"`

	// Last update of the running version (deprecated, use versions[].updated)
	// Example: 2018-09-30T00:00:00Z
	Updated string `json:"updated,omitempty"`

	// Version of Archer (deprecated, use versions[].version)
	// Example: 1.3.0
	Version string `json:"version,omitempty"`

	// Keystone-compatible versions array
	Versions []*Version `json:"versions"`
}

Versions Keystone-compatible versions response wrapper with backward-compatible root fields

swagger:model Versions

func (*Versions) ContextValidate

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

ContextValidate validate this versions based on the context it is used

func (*Versions) MarshalBinary

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

MarshalBinary interface implementation

func (*Versions) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Versions) Validate

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

Validate validates this versions

Jump to

Keyboard shortcuts

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