models

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: BSD-3-Clause Imports: 6 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 {

	// credentials
	// 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 ResourceMeasuresBody added in v0.13.0

type ResourceMeasuresBody 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"`
}

ResourceMeasuresBody Object used to hold information about a resource and its features usage.

swagger:model ResourceMeasuresBody

func (*ResourceMeasuresBody) Validate added in v0.13.0

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

Validate validates this resource measures body

type ResourcePlanChangeRequest

type ResourcePlanChangeRequest struct {

	// features
	Features gconnector.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 gconnector.FeatureMap `json:"features,omitempty"`

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

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

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