models

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialRequest

type CredentialRequest struct {

	// id
	// Required: true
	ID manifold.ID `json:"id"`

	// resource id
	// Required: true
	ResourceID manifold.ID `json:"resource_id"`
}

CredentialRequest The information sent along to a Provider to provision a set of Credentials for a resource.

swagger:model CredentialRequest

func (*CredentialRequest) Validate

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

Validate validates this credential request

type CredentialResponse

type CredentialResponse struct {

	// All key values must be strings and valid environment variable names.
	//
	// Names must match this expression: `^[A-Z][A-Z0-9_]{0,127}$`
	//
	// Required: true
	Credentials map[string]string `json:"credentials"`

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

CredentialResponse The response expected back from a Provider to provision a set of Credentials for a resource.

swagger:model CredentialResponse

func (*CredentialResponse) Validate

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

Validate validates this credential response

type Message

type Message string

Message message swagger:model Message

func (Message) Validate

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

Validate validates this message

type RegionSlug

type RegionSlug string

RegionSlug Combination of the cloud platform and location to provision this resource within.

swagger:model RegionSlug

func (RegionSlug) Validate

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

Validate validates this region slug

type ResourceMeasures added in v0.13.0

type ResourceMeasures struct {

	// measures
	// Required: true
	Measures map[string]int64 `json:"measures"`

	// period end
	// Required: true
	PeriodEnd *strfmt.DateTime `json:"period_end"`

	// period start
	// Required: true
	PeriodStart *strfmt.DateTime `json:"period_start"`

	// resource id
	// Required: true
	ResourceID manifold.ID `json:"resource_id"`
}

ResourceMeasures Object describing a resource's feature usage for a billing period.

swagger:model ResourceMeasures

func (*ResourceMeasures) Validate added in v0.13.0

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

Validate validates this resource measures

type ResourcePlanChangeRequest

type ResourcePlanChangeRequest struct {

	// features
	Features manifold.FeatureMap `json:"features,omitempty"`

	// plan
	// Required: true
	Plan manifold.Label `json:"plan"`
}

ResourcePlanChangeRequest The information sent along to a Provider to request a resources' plan be changed.

swagger:model ResourcePlanChangeRequest

func (*ResourcePlanChangeRequest) Validate

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

Validate validates this resource plan change request

type ResourceRequest

type ResourceRequest struct {

	// features
	Features manifold.FeatureMap `json:"features,omitempty"`

	// id
	// Required: true
	ID manifold.ID `json:"id"`

	// plan
	// Required: true
	Plan manifold.Label `json:"plan"`

	// platform id
	PlatformID *manifold.ID `json:"platform_id,omitempty"`

	// product
	// Required: true
	Product manifold.Label `json:"product"`

	// region
	// Required: true
	Region RegionSlug `json:"region"`
}

ResourceRequest The information sent along to a Provider to provision a resource.

swagger:model ResourceRequest

func (*ResourceRequest) Validate

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

Validate validates this resource request

type SuccessMessage

type SuccessMessage struct {

	// message
	// Required: true
	Message Message `json:"message"`
}

SuccessMessage Object used to display a message back to the user after a change has been made to a Resource.

swagger:model SuccessMessage

func (*SuccessMessage) Validate

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

Validate validates this success message

Jump to

Keyboard shortcuts

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