models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ClientProductStatusTrial captures enum value "trial"
	ClientProductStatusTrial string = "trial"

	// ClientProductStatusActivating captures enum value "activating"
	ClientProductStatusActivating string = "activating"

	// ClientProductStatusTrialend captures enum value "trialend"
	ClientProductStatusTrialend string = "trialend"

	// ClientProductStatusActive captures enum value "active"
	ClientProductStatusActive string = "active"

	// ClientProductStatusPaused captures enum value "paused"
	ClientProductStatusPaused string = "paused"

	// ClientProductStatusNew captures enum value "new"
	ClientProductStatusNew string = "new"
)
View Source
const (

	// ClientLocationResAllowForNewStorageDeny captures enum value "deny"
	ClientLocationResAllowForNewStorageDeny string = "deny"

	// ClientLocationResAllowForNewStorageAllow captures enum value "allow"
	ClientLocationResAllowForNewStorageAllow string = "allow"
)
View Source
const (

	// LocationAllowForNewStorageDeny captures enum value "deny"
	LocationAllowForNewStorageDeny string = "deny"

	// LocationAllowForNewStorageUndefined captures enum value "undefined"
	LocationAllowForNewStorageUndefined string = "undefined"

	// LocationAllowForNewStorageAllow captures enum value "allow"
	LocationAllowForNewStorageAllow string = "allow"
)
View Source
const (

	// StorageProvisioningStatusOk captures enum value "ok"
	StorageProvisioningStatusOk string = "ok"

	// StorageProvisioningStatusDeleting captures enum value "deleting"
	StorageProvisioningStatusDeleting string = "deleting"

	// StorageProvisioningStatusUpdating captures enum value "updating"
	StorageProvisioningStatusUpdating string = "updating"
)
View Source
const (

	// ClientLocationResNameSDashDt2 captures enum value "s-dt2"
	ClientLocationResNameSDashDt2 string = "s-dt2"
)
View Source
const (

	// ClientLocationResTypeS3 captures enum value "s3"
	ClientLocationResTypeS3 string = "s3"
)
View Source
const (

	// StorageLocationSDashDt2 captures enum value "s-dt2"
	StorageLocationSDashDt2 string = "s-dt2"
)
View Source
const (

	// StorageTypeS3 captures enum value "s3"
	StorageTypeS3 string = "s3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketAndStorageName

type BucketAndStorageName struct {

	// Bucket name
	BucketName string `json:"bucket_name,omitempty"`

	// Storage name
	StorageName string `json:"storage_name,omitempty"`

	// Bucket ID
	UUID string `json:"uuid,omitempty"`
}

BucketAndStorageName BucketAndStorageName input

swagger:model BucketAndStorageName

func (*BucketAndStorageName) ContextValidate

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

ContextValidate validates this bucket and storage name based on context it is used

func (*BucketAndStorageName) MarshalBinary

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

MarshalBinary interface implementation

func (*BucketAndStorageName) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BucketAndStorageName) Validate

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

Validate validates this bucket and storage name

type BucketDto

type BucketDto struct {

	// Number of days after which the objects in the bucket are considered expired. <br>
	// Note: <ul>
	// <li>No field is displayed if the lifecycle is not set</li>
	// </ul>
	Lifecycle int64 `json:"lifecycle,omitempty"`

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

BucketDto BucketDto for response

swagger:model BucketDto

func (*BucketDto) ContextValidate

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

ContextValidate validates this bucket dto based on context it is used

func (*BucketDto) MarshalBinary

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

MarshalBinary interface implementation

func (*BucketDto) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BucketDto) Validate

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

Validate validates this bucket dto

type Client

type Client struct {

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

	// product enabled
	ProductEnabled bool `json:"product_enabled,omitempty"`

	// product status
	// Enum: [trial activating trialend active paused new]
	ProductStatus string `json:"product_status,omitempty"`

	// reseller id
	ResellerID int64 `json:"reseller_id,omitempty"`

	// updated at
	UpdatedAt string `json:"updated_at,omitempty"`
}

Client client

swagger:model Client

func (*Client) ContextValidate

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

ContextValidate validates this client based on context it is used

func (*Client) MarshalBinary

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

MarshalBinary interface implementation

func (*Client) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Client) Validate

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

Validate validates this client

type ClientListEndpointRes

type ClientListEndpointRes struct {

	// data
	Data *ClientListServiceRes `json:"data,omitempty"`
}

ClientListEndpointRes client list endpoint res

swagger:model ClientListEndpointRes

func (*ClientListEndpointRes) ContextValidate

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

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

func (*ClientListEndpointRes) MarshalBinary

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

MarshalBinary interface implementation

func (*ClientListEndpointRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClientListEndpointRes) Validate

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

Validate validates this client list endpoint res

type ClientListServiceRes

type ClientListServiceRes struct {

	// clients
	Clients []*Client `json:"clients"`

	// num clients
	NumClients int64 `json:"num_clients,omitempty"`
}

ClientListServiceRes client list service res

swagger:model ClientListServiceRes

func (*ClientListServiceRes) ContextValidate

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

ContextValidate validate this client list service res based on the context it is used

func (*ClientListServiceRes) MarshalBinary

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

MarshalBinary interface implementation

func (*ClientListServiceRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClientListServiceRes) Validate

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

Validate validates this client list service res

type ClientLocationRes

type ClientLocationRes struct {

	// Storage address
	Address string `json:"address,omitempty"`

	// Shows if you are allowed to create more storages.
	// Has one of the values: <br><ul>
	// <li><b>allow</b> — you can create more storages;</li>
	// <li><b>deny</b> — you cannot create any more storages</li>
	// </ul>
	// Enum: [deny allow]
	AllowForNewStorage string `json:"allow_for_new_storage,omitempty"`

	// Storage location ID
	ID int64 `json:"id,omitempty"`

	// Storage region name
	// Example: s-dt2
	// Enum: [s-dt2]
	Name string `json:"name,omitempty"`

	// Storage type
	// Enum: [s3]
	Type string `json:"type,omitempty"`
}

ClientLocationRes client location res

swagger:model clientLocationRes

func (*ClientLocationRes) ContextValidate

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

ContextValidate validates this client location res based on context it is used

func (*ClientLocationRes) MarshalBinary

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

MarshalBinary interface implementation

func (*ClientLocationRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClientLocationRes) Validate

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

Validate validates this client location res

type ClientStats

type ClientStats struct {

	// Maximum number of files within the specified time period
	FileQuantitySumMax uint64 `json:"file_quantity_sum_max,omitempty"`

	// Your account ID
	ID int64 `json:"id,omitempty"`

	// Statistics grouped by storage locations
	Locations map[string]LocationStats `json:"locations,omitempty"`

	// Total number of incoming requests within the specified time period
	RequestsInSum uint64 `json:"requests_in_sum,omitempty"`

	// Total number of requests from the edges within the specified time period
	RequestsOutEdgesSum uint64 `json:"requests_out_edges_sum,omitempty"`

	// Total number of outсoming requests without requests from the edges within the specified time period
	RequestsOutWoEdgesSum uint64 `json:"requests_out_wo_edges_sum,omitempty"`

	// Total number of requests within the specified time period
	RequestsSum uint64 `json:"requests_sum,omitempty"`

	// RequestsWoEdgesSum is sum of requests without edges out requests for grouped period
	RequestsWoEdgesSum uint64 `json:"requests_wo_edges_sum,omitempty"`

	// Maximum amount of all file sizes within the specified time period
	SizeSumMax uint64 `json:"size_sum_max,omitempty"`

	// Mean amount of all file sizes within the specified time period
	SizeSumMean uint64 `json:"size_sum_mean,omitempty"`

	// Total amount of incoming traffic within the specified time period
	TrafficInSum uint64 `json:"traffic_in_sum,omitempty"`

	// Total number of traffic from the edges within the specified time period
	TrafficOutEdgesSum uint64 `json:"traffic_out_edges_sum,omitempty"`

	// Total number of outсoming traffic without requests from the edges within the specified time period
	TrafficOutWoEdgesSum uint64 `json:"traffic_out_wo_edges_sum,omitempty"`

	// Total amount of traffic within the specified time period
	TrafficSum uint64 `json:"traffic_sum,omitempty"`
}

ClientStats client stats

swagger:model ClientStats

func (*ClientStats) ContextValidate

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

ContextValidate validate this client stats based on the context it is used

func (*ClientStats) MarshalBinary

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

MarshalBinary interface implementation

func (*ClientStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ClientStats) Validate

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

Validate validates this client stats

type Credentials

type Credentials struct {

	// keys
	Keys []*Key `json:"keys"`

	// s3
	S3 *S3Credentials `json:"s3,omitempty"`

	// sftp password
	SftpPassword string `json:"sftp_password,omitempty"`
}

Credentials credentials

swagger:model Credentials

func (*Credentials) ContextValidate

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

ContextValidate validate this credentials based on the context it is used

func (*Credentials) MarshalBinary

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

MarshalBinary interface implementation

func (*Credentials) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Credentials) Validate

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

Validate validates this credentials

type DataMeta

type DataMeta struct {

	// to meta
	ToMeta interface{} `json:"ToMeta,omitempty"`
}

DataMeta Provide meta info through layers

swagger:model DataMeta

func (*DataMeta) ContextValidate

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

ContextValidate validates this data meta based on context it is used

func (*DataMeta) MarshalBinary

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

MarshalBinary interface implementation

func (*DataMeta) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DataMeta) Validate

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

Validate validates this data meta

type ErrResponse

type ErrResponse struct {

	// error
	Error string `json:"error,omitempty"`
}

ErrResponse err response

swagger:model ErrResponse

func (*ErrResponse) ContextValidate

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

ContextValidate validates this err response based on context it is used

func (*ErrResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrResponse) Validate

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

Validate validates this err response

type EventDescription

type EventDescription struct {

	// Fields details
	Fields []*EventField `json:"fields"`

	// Name of event for root prop of request structure
	// Example: reaching_files_quantity
	Name string `json:"name,omitempty"`
}

EventDescription EventDescription to form structure of request

swagger:model EventDescription

func (*EventDescription) ContextValidate

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

ContextValidate validate this event description based on the context it is used

func (*EventDescription) MarshalBinary

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

MarshalBinary interface implementation

func (*EventDescription) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventDescription) Validate

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

Validate validates this event description

type EventField

type EventField struct {

	// Field name in the event structure
	// Example: storage_name
	Name string `json:"name,omitempty"`

	// Required data type
	// Example: number, bool, text
	Type string `json:"type,omitempty"`
}

EventField EventField details

swagger:model EventField

func (*EventField) ContextValidate

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

ContextValidate validates this event field based on context it is used

func (*EventField) MarshalBinary

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

MarshalBinary interface implementation

func (*EventField) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventField) Validate

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

Validate validates this event field

type EventResponse

type EventResponse struct {

	// Bucket name
	BucketName string `json:"bucket_name,omitempty"`

	// Number of bytes. When you reach this number, you will receive an email notification.
	// Example: 500
	Bytes uint64 `json:"bytes,omitempty"`

	// Count as limit
	// Example: 5
	Count uint64 `json:"count,omitempty"`

	// name of type notification
	// Example: reaching_used_space, reaching_files_quantity, reaching_used_traffic, reaching_used_requests
	// Required: true
	Name *string `json:"name"`

	// Storage name
	StorageName string `json:"storage_name,omitempty"`

	// Bucket ID
	UUID string `json:"uuid,omitempty"`
}

EventResponse Event for storage notification

swagger:model EventResponse

func (*EventResponse) ContextValidate

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

ContextValidate validates this event response based on context it is used

func (*EventResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*EventResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventResponse) Validate

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

Validate validates this event response

type EventsMetaResponse

type EventsMetaResponse struct {

	// example
	Example *EventsResponse `json:"example,omitempty"`

	// Event structure
	Structure []*EventDescription `json:"structure"`
}

EventsMetaResponse EventsMeta describe how to form POST/PATCH request

swagger:model EventsMetaResponse

func (*EventsMetaResponse) ContextValidate

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

ContextValidate validate this events meta response based on the context it is used

func (*EventsMetaResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*EventsMetaResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventsMetaResponse) Validate

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

Validate validates this events meta response

type EventsResponse

type EventsResponse struct {

	// Event for reaching a certain number of objects in the storage
	ReachingFilesQuantity []*LimitByCount `json:"reaching_files_quantity"`

	// Event for reaching a certain number of requests to the storage
	ReachingUsedRequests []*LimitByCount `json:"reaching_used_requests"`

	// Event for reaching a certain amount of space in the storage
	ReachingUsedSpace []*LimitByBytes `json:"reaching_used_space"`

	// Event for reaching a certain amount of traffic in the storage
	ReachingUsedTraffic []*LimitByBytes `json:"reaching_used_traffic"`
}

EventsResponse Examples of configured events

swagger:model EventsResponse

func (*EventsResponse) ContextValidate

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

ContextValidate validate this events response based on the context it is used

func (*EventsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*EventsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventsResponse) Validate

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

Validate validates this events response

type Key

type Key struct {

	// created at
	CreatedAt string `json:"created_at,omitempty"`

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

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

Key key

swagger:model Key

func (*Key) ContextValidate

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

ContextValidate validates this key based on context it is used

func (*Key) MarshalBinary

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

MarshalBinary interface implementation

func (*Key) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Key) Validate

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

Validate validates this key

type KeyListEndpointRes

type KeyListEndpointRes struct {

	// data
	Data []*Key `json:"data"`

	// meta
	Meta *DataMeta `json:"meta,omitempty"`
}

KeyListEndpointRes key list endpoint res

swagger:model KeyListEndpointRes

func (*KeyListEndpointRes) ContextValidate

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

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

func (*KeyListEndpointRes) MarshalBinary

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

MarshalBinary interface implementation

func (*KeyListEndpointRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*KeyListEndpointRes) Validate

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

Validate validates this key list endpoint res

type LimitByBytes

type LimitByBytes struct {

	// Bucket name
	BucketName string `json:"bucket_name,omitempty"`

	// Number of bytes. When you reach this number, you will receive an email notification
	Bytes uint64 `json:"bytes,omitempty"`

	// Storage name
	StorageName string `json:"storage_name,omitempty"`

	// Bucket ID
	UUID string `json:"uuid,omitempty"`
}

LimitByBytes LimitByBytes input

swagger:model LimitByBytes

func (*LimitByBytes) ContextValidate

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

ContextValidate validates this limit by bytes based on context it is used

func (*LimitByBytes) MarshalBinary

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

MarshalBinary interface implementation

func (*LimitByBytes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LimitByBytes) Validate

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

Validate validates this limit by bytes

type LimitByCount

type LimitByCount struct {

	// Bucket name
	BucketName string `json:"bucket_name,omitempty"`

	// Limit count value. When you reach this limit, you will receive an email notification
	Count uint64 `json:"count,omitempty"`

	// Storage name
	StorageName string `json:"storage_name,omitempty"`

	// Bucket ID
	UUID string `json:"uuid,omitempty"`
}

LimitByCount LimitByCount input

swagger:model LimitByCount

func (*LimitByCount) ContextValidate

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

ContextValidate validates this limit by count based on context it is used

func (*LimitByCount) MarshalBinary

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

MarshalBinary interface implementation

func (*LimitByCount) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LimitByCount) Validate

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

Validate validates this limit by count

type Location

type Location struct {

	// address
	Address string `json:"address,omitempty"`

	// allow for new storage
	// Enum: [deny undefined allow]
	AllowForNewStorage string `json:"allow_for_new_storage,omitempty"`

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

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

	// title
	Title map[string]string `json:"title,omitempty"`

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

Location location

swagger:model Location

func (*Location) ContextValidate

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

ContextValidate validates this location based on context it is used

func (*Location) MarshalBinary

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

MarshalBinary interface implementation

func (*Location) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Location) Validate

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

Validate validates this location

type LocationStats

type LocationStats struct {

	// Maximum number of files within the specified time period
	FileQuantitySumMax uint64 `json:"file_quantity_sum_max,omitempty"`

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

	// Total number of incoming requests within the specified time period
	RequestsInSum uint64 `json:"requests_in_sum,omitempty"`

	// Total number of requests from the edges within the specified time period
	RequestsOutEdgesSum uint64 `json:"requests_out_edges_sum,omitempty"`

	// Total number of outсoming requests without requests from the edges within the specified time period
	RequestsOutWoEdgesSum uint64 `json:"requests_out_wo_edges_sum,omitempty"`

	// Total number of requests within the specified time period
	RequestsSum uint64 `json:"requests_sum,omitempty"`

	// RequestsWoEdgesSum is sum of requests without edges out requests for grouped period
	RequestsWoEdgesSum uint64 `json:"requests_wo_edges_sum,omitempty"`

	// Maximum amount of all file sizes within the specified time period
	SizeSumMax uint64 `json:"size_sum_max,omitempty"`

	// Mean amount of all file sizes within the specified time period
	SizeSumMean uint64 `json:"size_sum_mean,omitempty"`

	// a Storages grouped data
	Storages map[string]StorageStats `json:"storages,omitempty"`

	// Total amount of incoming traffic within the specified time period
	TrafficInSum uint64 `json:"traffic_in_sum,omitempty"`

	// Total number of traffic from the edges within the specified time period
	TrafficOutEdgesSum uint64 `json:"traffic_out_edges_sum,omitempty"`

	// Total number of outсoming traffic without requests from the edges within the specified time period
	TrafficOutWoEdgesSum uint64 `json:"traffic_out_wo_edges_sum,omitempty"`

	// Total amount of traffic within the specified time period
	TrafficSum uint64 `json:"traffic_sum,omitempty"`
}

LocationStats location stats

swagger:model LocationStats

func (*LocationStats) ContextValidate

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

ContextValidate validate this location stats based on the context it is used

func (*LocationStats) MarshalBinary

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

MarshalBinary interface implementation

func (*LocationStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LocationStats) Validate

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

Validate validates this location stats

type RedefinedVar

type RedefinedVar struct {

	// for
	For interface{} `json:"for,omitempty"`

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

	// replace to
	ReplaceTo string `json:"replace_to,omitempty"`

	// resource
	Resource string `json:"resource,omitempty"`
}

RedefinedVar RedefinedVar entity

swagger:model RedefinedVar

func (*RedefinedVar) ContextValidate

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

ContextValidate validates this redefined var based on context it is used

func (*RedefinedVar) MarshalBinary

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

MarshalBinary interface implementation

func (*RedefinedVar) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RedefinedVar) Validate

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

Validate validates this redefined var

type RespMeta

type RespMeta struct {

	// meta
	Meta *DataMeta `json:"meta,omitempty"`
}

RespMeta RespMeta Add Meta to response

swagger:model RespMeta

func (*RespMeta) ContextValidate

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

ContextValidate validate this resp meta based on the context it is used

func (*RespMeta) MarshalBinary

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

MarshalBinary interface implementation

func (*RespMeta) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RespMeta) Validate

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

Validate validates this resp meta

type S3Credentials

type S3Credentials struct {

	// access key
	AccessKey string `json:"access_key,omitempty"`

	// secret key
	SecretKey string `json:"secret_key,omitempty"`
}

S3Credentials s3 credentials

swagger:model S3Credentials

func (*S3Credentials) ContextValidate

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

ContextValidate validates this s3 credentials based on context it is used

func (*S3Credentials) MarshalBinary

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

MarshalBinary interface implementation

func (*S3Credentials) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*S3Credentials) Validate

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

Validate validates this s3 credentials

type StatsMetrics

type StatsMetrics struct {

	// Maximum number of files within the specified time period
	FileQuantitySumMax uint64 `json:"file_quantity_sum_max,omitempty"`

	// Total number of incoming requests within the specified time period
	RequestsInSum uint64 `json:"requests_in_sum,omitempty"`

	// Total number of requests from the edges within the specified time period
	RequestsOutEdgesSum uint64 `json:"requests_out_edges_sum,omitempty"`

	// Total number of outсoming requests without requests from the edges within the specified time period
	RequestsOutWoEdgesSum uint64 `json:"requests_out_wo_edges_sum,omitempty"`

	// Total number of requests within the specified time period
	RequestsSum uint64 `json:"requests_sum,omitempty"`

	// RequestsWoEdgesSum is sum of requests without edges out requests for grouped period
	RequestsWoEdgesSum uint64 `json:"requests_wo_edges_sum,omitempty"`

	// Maximum amount of all file sizes within the specified time period
	SizeSumMax uint64 `json:"size_sum_max,omitempty"`

	// Mean amount of all file sizes within the specified time period
	SizeSumMean uint64 `json:"size_sum_mean,omitempty"`

	// Total amount of incoming traffic within the specified time period
	TrafficInSum uint64 `json:"traffic_in_sum,omitempty"`

	// Total number of traffic from the edges within the specified time period
	TrafficOutEdgesSum uint64 `json:"traffic_out_edges_sum,omitempty"`

	// Total number of outсoming traffic without requests from the edges within the specified time period
	TrafficOutWoEdgesSum uint64 `json:"traffic_out_wo_edges_sum,omitempty"`

	// Total amount of traffic within the specified time period
	TrafficSum uint64 `json:"traffic_sum,omitempty"`
}

StatsMetrics stats metrics

swagger:model StatsMetrics

func (*StatsMetrics) ContextValidate

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

ContextValidate validates this stats metrics based on context it is used

func (*StatsMetrics) MarshalBinary

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

MarshalBinary interface implementation

func (*StatsMetrics) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StatsMetrics) Validate

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

Validate validates this stats metrics

type Storage

type Storage struct {

	// Storage address
	Address string `json:"address,omitempty"`

	// Indicates whether storage can be recovered after deletion.<br>
	// Has one of the values:<ul>
	// <li><b>true</b> — this storage can be recovered within 2 weeks of deletion;</li>
	// <li><b>false</b> — this storage cannot be recovered anymore</li>
	// </ul>
	CanRestore bool `json:"can_restore,omitempty"`

	// Client ID
	// Example: 2345
	ClientID int64 `json:"client_id,omitempty"`

	// Storage creation date and time in ISO 8601, UTC format
	// Example: 2022-07-21 12:00:04.103287
	CreatedAt string `json:"created_at,omitempty"`

	// credentials
	Credentials *Credentials `json:"credentials,omitempty"`

	// custom config file
	CustomConfigFile bool `json:"custom_config_file,omitempty"`

	// Storage deletion date and time in ISO 8601, UTC format
	// Example: 2022-07-25 12:00:45.102487
	DeletedAt string `json:"deleted_at,omitempty"`

	// Is disabled http access to storage without credentials
	DisableHTTP bool `json:"disable_http,omitempty"`

	// expires
	Expires string `json:"expires,omitempty"`

	// Storage ID
	// Example: 123
	ID int64 `json:"id,omitempty"`

	// Storage region name
	// Enum: [s-dt2]
	Location string `json:"location,omitempty"`

	// Storage name
	// Example: my-test-storage
	Name string `json:"name,omitempty"`

	// Storage status
	// Enum: [ok deleting updating]
	ProvisioningStatus string `json:"provisioning_status,omitempty"`

	// Reseller ID
	// Example: 4765
	ResellerID int64 `json:"reseller_id,omitempty"`

	// rewrite rules
	RewriteRules map[string]string `json:"rewrite_rules,omitempty"`

	// server alias
	ServerAlias string `json:"server_alias,omitempty"`

	// Type of storage
	// Enum: [s3]
	Type string `json:"type,omitempty"`
}

Storage storage

swagger:model Storage

func (*Storage) ContextValidate

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

ContextValidate validate this storage based on the context it is used

func (*Storage) MarshalBinary

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

MarshalBinary interface implementation

func (*Storage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Storage) Validate

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

Validate validates this storage

type StorageGetBucketCorsEndpointRes

type StorageGetBucketCorsEndpointRes struct {

	// CORS configuration details
	Data string `json:"data,omitempty"`
}

StorageGetBucketCorsEndpointRes StorageGetBucketCorsEndpointRes output

swagger:model StorageGetBucketCorsEndpointRes

func (*StorageGetBucketCorsEndpointRes) ContextValidate

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

ContextValidate validates this storage get bucket cors endpoint res based on context it is used

func (*StorageGetBucketCorsEndpointRes) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageGetBucketCorsEndpointRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageGetBucketCorsEndpointRes) Validate

Validate validates this storage get bucket cors endpoint res

type StorageListBucketsEndpointRes

type StorageListBucketsEndpointRes struct {

	// data
	Data []*BucketDto `json:"data"`

	// meta
	Meta *DataMeta `json:"meta,omitempty"`
}

StorageListBucketsEndpointRes StorageListBucketsEndpointRes output

swagger:model StorageListBucketsEndpointRes

func (*StorageListBucketsEndpointRes) ContextValidate

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

ContextValidate validate this storage list buckets endpoint res based on the context it is used

func (*StorageListBucketsEndpointRes) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageListBucketsEndpointRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageListBucketsEndpointRes) Validate

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

Validate validates this storage list buckets endpoint res

type StorageListEndpointRes

type StorageListEndpointRes struct {

	// Information about the storages in your account
	Data []*Storage `json:"data"`

	// meta
	Meta *DataMeta `json:"meta,omitempty"`
}

StorageListEndpointRes storage list endpoint res

swagger:model StorageListEndpointRes

func (*StorageListEndpointRes) ContextValidate

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

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

func (*StorageListEndpointRes) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageListEndpointRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageListEndpointRes) Validate

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

Validate validates this storage list endpoint res

type StorageListServiceRes

type StorageListServiceRes struct {

	// num storages
	NumStorages int64 `json:"num_storages,omitempty"`

	// storages
	Storages []*Storage `json:"storages"`
}

StorageListServiceRes storage list service res

swagger:model StorageListServiceRes

func (*StorageListServiceRes) ContextValidate

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

ContextValidate validate this storage list service res based on the context it is used

func (*StorageListServiceRes) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageListServiceRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageListServiceRes) Validate

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

Validate validates this storage list service res

type StorageStats

type StorageStats struct {

	// Statistics grouped by buckets
	// Example: {"bucketA":[[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]}
	BucketsSeries map[string][][]interface{} `json:"buckets_series,omitempty"`

	// Maximum number of files within the specified time period
	FileQuantitySumMax uint64 `json:"file_quantity_sum_max,omitempty"`

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

	// Total number of incoming requests within the specified time period, displayed in series format.<br>
	// Shows 2 values:<ul>
	// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
	// <li><b>count</b> — number of requests</li>
	// </ul>
	// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
	RequestsInSeries [][]interface{} `json:"requests_in_series"`

	// Total number of incoming requests within the specified time period
	RequestsInSum uint64 `json:"requests_in_sum,omitempty"`

	// Total number of requests from the edges within the specified time period, displayed in series format.<br>
	// Shows 2 values:<ul>
	// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
	// <li><b>count</b> — number of requests</li>
	// </ul>
	// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
	RequestsOutEdgesSeries [][]interface{} `json:"requests_out_edges_series"`

	// Total number of requests from the edges within the specified time period
	RequestsOutEdgesSum uint64 `json:"requests_out_edges_sum,omitempty"`

	// Total amount of outсoming requests without requests from the edges within the specified time period, displayed
	// in series format.<br>
	// Shows 2 values:<ul>
	// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
	// <li><b>count</b> — amount of requests</li>
	// </ul>
	// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
	RequestsOutWoEdgesSeries [][]interface{} `json:"requests_out_wo_edges_series"`

	// Total number of outсoming requests without requests from the edges within the specified time period
	RequestsOutWoEdgesSum uint64 `json:"requests_out_wo_edges_sum,omitempty"`

	// Total number of requests within the specified time period, displayed in series format.<br>
	// Shows 2 values:<ul>
	// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
	// <li><b>count</b> — number of requests</li>
	// </ul>
	// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
	RequestsSeries [][]interface{} `json:"requests_series"`

	// Total number of requests within the specified time period
	RequestsSum uint64 `json:"requests_sum,omitempty"`

	// Total number of outсoming requests without requests from the edges within the specified time period, displayed in series format.<br>
	// Shows 2 values:<ul>
	// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
	// <li><b>count</b> — number of requests</li>
	// </ul>
	// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
	RequestsWoEdgesSeries [][]interface{} `json:"requests_wo_edges_series"`

	// RequestsWoEdgesSum is sum of requests without edges out requests for grouped period
	RequestsWoEdgesSum uint64 `json:"requests_wo_edges_sum,omitempty"`

	// Maximum amount of all file sizes within the specified time period, displayed in series format.<br>
	// Shows 2 values:<ul>
	// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
	// <li><b>count</b> — maximum amount of all file sizes</li>
	// </ul>
	// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
	SizeMaxSeries [][]interface{} `json:"size_max_series"`

	// Mean amount of all file sizes within the specified time period, displayed in series format.<br>
	// Shows 2 values:<ul>
	// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
	// <li><b>count</b> — mean amount of all file sizes</li>
	// </ul>
	// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
	SizeMeanSeries [][]interface{} `json:"size_mean_series"`

	// Maximum amount of all file sizes within the specified time period
	SizeSumMax uint64 `json:"size_sum_max,omitempty"`

	// Mean amount of all file sizes within the specified time period
	SizeSumMean uint64 `json:"size_sum_mean,omitempty"`

	// Total amount of incoming traffic within the specified time period, displayed in series format.<br>
	// Shows 2 values:<ul>
	// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
	// <li><b>count</b> — amount of traffic</li>
	// </ul>
	// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
	TrafficInSeries [][]interface{} `json:"traffic_in_series"`

	// Total amount of incoming traffic within the specified time period
	TrafficInSum uint64 `json:"traffic_in_sum,omitempty"`

	// Total amount of outсoming traffic from the edges within the specified time period, displayed in series format.<br>
	// Shows 2 values:<ul>
	// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
	// <li><b>count</b> — amount of traffic</li>
	// </ul>
	// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
	TrafficOutEdgesSeries [][]interface{} `json:"traffic_out_edges_series"`

	// Total number of traffic from the edges within the specified time period
	TrafficOutEdgesSum uint64 `json:"traffic_out_edges_sum,omitempty"`

	// Total amount of outсoming traffic without traffic from the edges within the specified time period, displayed
	// in series format.<br>
	// Shows 2 values:<ul>
	// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
	// <li><b>count</b> — amount of traffic</li>
	// </ul>
	// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
	TrafficOutWoEdgesSeries [][]interface{} `json:"traffic_out_wo_edges_series"`

	// Total number of outсoming traffic without requests from the edges within the specified time period
	TrafficOutWoEdgesSum uint64 `json:"traffic_out_wo_edges_sum,omitempty"`

	// Total amount of traffic within the specified time period, displayed in series format.<br>
	// Shows 2 values:<ul>
	// <li><b>timestamp</b> — UNIX timestamp of data grouping;</li>
	// <li><b>count</b> — amount of traffic</li>
	// </ul>
	// Example: [[1690192611,1],[1690192612,2],[1690192613,2],[1690192614,1]]
	TrafficSeries [][]interface{} `json:"traffic_series"`

	// Total amount of traffic within the specified time period
	TrafficSum uint64 `json:"traffic_sum,omitempty"`
}

StorageStats storage stats

swagger:model StorageStats

func (*StorageStats) ContextValidate

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

ContextValidate validates this storage stats based on context it is used

func (*StorageStats) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageStats) Validate

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

Validate validates this storage stats

type StorageUsageSeriesEndpointRes

type StorageUsageSeriesEndpointRes struct {

	// data
	Data *StorageUsageSeriesServiceRes `json:"data,omitempty"`
}

StorageUsageSeriesEndpointRes storage usage series endpoint res

swagger:model StorageUsageSeriesEndpointRes

func (*StorageUsageSeriesEndpointRes) ContextValidate

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

ContextValidate validate this storage usage series endpoint res based on the context it is used

func (*StorageUsageSeriesEndpointRes) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageUsageSeriesEndpointRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageUsageSeriesEndpointRes) Validate

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

Validate validates this storage usage series endpoint res

type StorageUsageSeriesServiceRes

type StorageUsageSeriesServiceRes struct {

	// Statistics grouped by a specific account
	Clients map[string]ClientStats `json:"clients,omitempty"`
}

StorageUsageSeriesServiceRes storage usage series service res

swagger:model StorageUsageSeriesServiceRes

func (*StorageUsageSeriesServiceRes) ContextValidate

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

ContextValidate validate this storage usage series service res based on the context it is used

func (*StorageUsageSeriesServiceRes) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageUsageSeriesServiceRes) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageUsageSeriesServiceRes) Validate

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

Validate validates this storage usage series service res

Jump to

Keyboard shortcuts

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