models

package
v0.0.0-...-9f0065b Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// MemberRoleManager captures enum value "manager"
	MemberRoleManager string = "manager"

	// MemberRoleContributor captures enum value "contributor"
	MemberRoleContributor string = "contributor"

	// MemberRoleViewer captures enum value "viewer"
	MemberRoleViewer string = "viewer"

	// MemberRoleTraverse captures enum value "traverse"
	MemberRoleTraverse string = "traverse"

	// MemberRoleNone captures enum value "none"
	MemberRoleNone string = "none"
)
View Source
const (

	// ProjectRoleRoleManager captures enum value "manager"
	ProjectRoleRoleManager string = "manager"

	// ProjectRoleRoleContributor captures enum value "contributor"
	ProjectRoleRoleContributor string = "contributor"

	// ProjectRoleRoleViewer captures enum value "viewer"
	ProjectRoleRoleViewer string = "viewer"

	// ProjectRoleRoleTraverse captures enum value "traverse"
	ProjectRoleRoleTraverse string = "traverse"
)
View Source
const (

	// StorageRequestSystemNetapp captures enum value "netapp"
	StorageRequestSystemNetapp string = "netapp"

	// StorageRequestSystemFreenas captures enum value "freenas"
	StorageRequestSystemFreenas string = "freenas"

	// StorageRequestSystemCephfs captures enum value "cephfs"
	StorageRequestSystemCephfs string = "cephfs"
)
View Source
const (

	// StorageResponseSystemNetapp captures enum value "netapp"
	StorageResponseSystemNetapp string = "netapp"

	// StorageResponseSystemFreenas captures enum value "freenas"
	StorageResponseSystemFreenas string = "freenas"

	// StorageResponseSystemCephfs captures enum value "cephfs"
	StorageResponseSystemCephfs string = "cephfs"
)
View Source
const (

	// TaskStatusStatusWaiting captures enum value "waiting"
	TaskStatusStatusWaiting string = "waiting"

	// TaskStatusStatusProcessing captures enum value "processing"
	TaskStatusStatusProcessing string = "processing"

	// TaskStatusStatusFailed captures enum value "failed"
	TaskStatusStatusFailed string = "failed"

	// TaskStatusStatusSucceeded captures enum value "succeeded"
	TaskStatusStatusSucceeded string = "succeeded"

	// TaskStatusStatusCanceled captures enum value "canceled"
	TaskStatusStatusCanceled string = "canceled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Member

type Member struct {

	// role of the member. Use the value "none" in request data to remove user from the project membership.
	// Required: true
	// Enum: [manager contributor viewer traverse none]
	Role *string `json:"role"`

	// userid of the member.
	// Required: true
	UserID *string `json:"userID"`
}

Member JSON object for a project member.

swagger:model member

func (*Member) ContextValidate

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

ContextValidate validates this member based on context it is used

func (*Member) MarshalBinary

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

MarshalBinary interface implementation

func (*Member) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Member) Validate

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

Validate validates this member

type MemberOf

type MemberOf []*ProjectRole

MemberOf a list providing an overview of user's member roles in all active projects.

swagger:model memberOf

func (MemberOf) ContextValidate

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

ContextValidate validate this member of based on the context it is used

func (MemberOf) Validate

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

Validate validates this member of

type Members

type Members []*Member

Members a list of project members.

swagger:model members

func (Members) ContextValidate

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

ContextValidate validate this members based on the context it is used

func (Members) Validate

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

Validate validates this members

type Principle

type Principle string

Principle principle

swagger:model principle

func (Principle) ContextValidate

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

ContextValidate validates this principle based on context it is used

func (Principle) Validate

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

Validate validates this principle

type ProjectID

type ProjectID string

ProjectID project identifier.

swagger:model projectID

func (ProjectID) ContextValidate

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

ContextValidate validates this project ID based on context it is used

func (ProjectID) Validate

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

Validate validates this project ID

type ProjectRole

type ProjectRole struct {

	// project identifier
	// Required: true
	ProjectID *string `json:"projectID"`

	// role of the member.
	// Required: true
	// Enum: [manager contributor viewer traverse]
	Role *string `json:"role"`
}

ProjectRole JSON object for a member role of a project.

swagger:model projectRole

func (*ProjectRole) ContextValidate

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

ContextValidate validates this project role based on context it is used

func (*ProjectRole) MarshalBinary

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

MarshalBinary interface implementation

func (*ProjectRole) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProjectRole) Validate

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

Validate validates this project role

type RequestBodyProjectProvision

type RequestBodyProjectProvision struct {

	// members
	// Required: true
	Members Members `json:"members"`

	// project ID
	// Required: true
	ProjectID *ProjectID `json:"projectID"`

	// apply ACL setting for members recursively on existing files/directories.
	Recursion bool `json:"recursion,omitempty"`

	// storage
	// Required: true
	Storage *StorageRequest `json:"storage"`
}

RequestBodyProjectProvision request body project provision

swagger:model requestBodyProjectProvision

func (*RequestBodyProjectProvision) ContextValidate

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

ContextValidate validate this request body project provision based on the context it is used

func (*RequestBodyProjectProvision) MarshalBinary

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

MarshalBinary interface implementation

func (*RequestBodyProjectProvision) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RequestBodyProjectProvision) Validate

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

Validate validates this request body project provision

type RequestBodyProjectResource

type RequestBodyProjectResource struct {

	// members
	Members Members `json:"members,omitempty"`

	// apply ACL setting for members recursively on existing files/directories.
	Recursion bool `json:"recursion,omitempty"`

	// storage
	Storage *StoragePatchRequest `json:"storage,omitempty"`
}

RequestBodyProjectResource JSON object describing resource to be set to the project.

swagger:model requestBodyProjectResource

func (*RequestBodyProjectResource) ContextValidate

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

ContextValidate validate this request body project resource based on the context it is used

func (*RequestBodyProjectResource) MarshalBinary

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

MarshalBinary interface implementation

func (*RequestBodyProjectResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RequestBodyProjectResource) Validate

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

Validate validates this request body project resource

type RequestBodyUserProvision

type RequestBodyUserProvision struct {

	// storage
	// Required: true
	Storage *StorageRequest `json:"storage"`

	// user ID
	// Required: true
	UserID *UserID `json:"userID"`
}

RequestBodyUserProvision request body user provision

swagger:model requestBodyUserProvision

func (*RequestBodyUserProvision) ContextValidate

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

ContextValidate validate this request body user provision based on the context it is used

func (*RequestBodyUserProvision) MarshalBinary

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

MarshalBinary interface implementation

func (*RequestBodyUserProvision) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RequestBodyUserProvision) Validate

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

Validate validates this request body user provision

type RequestBodyUserResource

type RequestBodyUserResource struct {

	// storage
	Storage *StoragePatchRequest `json:"storage,omitempty"`
}

RequestBodyUserResource JSON object describing resource to be set to the user.

swagger:model requestBodyUserResource

func (*RequestBodyUserResource) ContextValidate

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

ContextValidate validate this request body user resource based on the context it is used

func (*RequestBodyUserResource) MarshalBinary

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

MarshalBinary interface implementation

func (*RequestBodyUserResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RequestBodyUserResource) Validate

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

Validate validates this request body user resource

type ResponseBody400

type ResponseBody400 struct {

	// error message specifying the bad request.
	ErrorMessage string `json:"errorMessage,omitempty"`
}

ResponseBody400 JSON object containing error message concerning bad client request.

swagger:model responseBody400

func (*ResponseBody400) ContextValidate

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

ContextValidate validates this response body400 based on context it is used

func (*ResponseBody400) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBody400) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBody400) Validate

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

Validate validates this response body400

type ResponseBody500

type ResponseBody500 struct {

	// server-side error message.
	ErrorMessage string `json:"errorMessage,omitempty"`

	// server-side exit code.
	ExitCode int64 `json:"exitCode,omitempty"`
}

ResponseBody500 JSON object containing server side error.

swagger:model responseBody500

func (*ResponseBody500) ContextValidate

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

ContextValidate validates this response body500 based on context it is used

func (*ResponseBody500) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBody500) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBody500) Validate

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

Validate validates this response body500

type ResponseBodyProjectMembers

type ResponseBodyProjectMembers struct {

	// members
	// Required: true
	Members Members `json:"members"`

	// project ID
	// Required: true
	ProjectID *ProjectID `json:"projectID"`
}

ResponseBodyProjectMembers JSON object containing current list of members implemented on the filer.

swagger:model responseBodyProjectMembers

func (*ResponseBodyProjectMembers) ContextValidate

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

ContextValidate validate this response body project members based on the context it is used

func (*ResponseBodyProjectMembers) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBodyProjectMembers) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBodyProjectMembers) Validate

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

Validate validates this response body project members

type ResponseBodyProjectResource

type ResponseBodyProjectResource struct {

	// members
	// Required: true
	Members Members `json:"members"`

	// project ID
	// Required: true
	ProjectID *ProjectID `json:"projectID"`

	// storage
	// Required: true
	Storage *StorageResponse `json:"storage"`
}

ResponseBodyProjectResource JSON object containing project resources.

swagger:model responseBodyProjectResource

func (*ResponseBodyProjectResource) ContextValidate

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

ContextValidate validate this response body project resource based on the context it is used

func (*ResponseBodyProjectResource) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBodyProjectResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBodyProjectResource) Validate

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

Validate validates this response body project resource

type ResponseBodyProjectStorage

type ResponseBodyProjectStorage struct {

	// project ID
	// Required: true
	ProjectID *ProjectID `json:"projectID"`

	// storage
	// Required: true
	Storage *StorageResponse `json:"storage"`
}

ResponseBodyProjectStorage JSON object containing storage resource information of a project.

swagger:model responseBodyProjectStorage

func (*ResponseBodyProjectStorage) ContextValidate

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

ContextValidate validate this response body project storage based on the context it is used

func (*ResponseBodyProjectStorage) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBodyProjectStorage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBodyProjectStorage) Validate

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

Validate validates this response body project storage

type ResponseBodyProjects

type ResponseBodyProjects struct {

	// projects
	Projects []*ResponseBodyProjectResource `json:"projects"`
}

ResponseBodyProjects JSON list containing a list of project resources.

swagger:model responseBodyProjects

func (*ResponseBodyProjects) ContextValidate

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

ContextValidate validate this response body projects based on the context it is used

func (*ResponseBodyProjects) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBodyProjects) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBodyProjects) Validate

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

Validate validates this response body projects

type ResponseBodyTaskResource

type ResponseBodyTaskResource struct {

	// task ID
	// Required: true
	TaskID *TaskID `json:"taskID"`

	// task status
	// Required: true
	TaskStatus *TaskStatus `json:"taskStatus"`
}

ResponseBodyTaskResource JSON object containing scheduled task resource.

swagger:model responseBodyTaskResource

func (*ResponseBodyTaskResource) ContextValidate

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

ContextValidate validate this response body task resource based on the context it is used

func (*ResponseBodyTaskResource) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBodyTaskResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBodyTaskResource) Validate

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

Validate validates this response body task resource

type ResponseBodyUserResource

type ResponseBodyUserResource struct {

	// member of
	// Required: true
	MemberOf MemberOf `json:"memberOf"`

	// storage
	// Required: true
	Storage *StorageResponse `json:"storage"`

	// user ID
	// Required: true
	UserID *UserID `json:"userID"`
}

ResponseBodyUserResource JSON object containing user resources.

swagger:model responseBodyUserResource

func (*ResponseBodyUserResource) ContextValidate

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

ContextValidate validate this response body user resource based on the context it is used

func (*ResponseBodyUserResource) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBodyUserResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBodyUserResource) Validate

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

Validate validates this response body user resource

type ResponseBodyUsers

type ResponseBodyUsers struct {

	// users
	Users []*ResponseBodyUserResource `json:"users"`
}

ResponseBodyUsers JSON list containing a list of user resources.

swagger:model responseBodyUsers

func (*ResponseBodyUsers) ContextValidate

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

ContextValidate validate this response body users based on the context it is used

func (*ResponseBodyUsers) MarshalBinary

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

MarshalBinary interface implementation

func (*ResponseBodyUsers) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ResponseBodyUsers) Validate

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

Validate validates this response body users

type StoragePatchRequest

type StoragePatchRequest struct {

	// storage quota in GiB.
	// Required: true
	QuotaGb *int64 `json:"quotaGb"`
}

StoragePatchRequest Data for updating storage resource.

swagger:model storagePatchRequest

func (*StoragePatchRequest) ContextValidate

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

ContextValidate validates this storage patch request based on context it is used

func (*StoragePatchRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*StoragePatchRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StoragePatchRequest) Validate

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

Validate validates this storage patch request

type StorageRequest

type StorageRequest struct {

	// storage quota in GiB.
	// Required: true
	QuotaGb *int64 `json:"quotaGb"`

	// the targeting filer system on which the storage resource is allocated.
	// Required: true
	// Enum: [netapp freenas cephfs]
	System *string `json:"system"`
}

StorageRequest Data for creating storage resource.

swagger:model storageRequest

func (*StorageRequest) ContextValidate

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

ContextValidate validates this storage request based on context it is used

func (*StorageRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageRequest) Validate

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

Validate validates this storage request

type StorageResponse

type StorageResponse struct {

	// assigned storage quota in GiB.
	// Required: true
	QuotaGb *int64 `json:"quotaGb"`

	// the targeting filer on which the storage resource is allocated.
	// Required: true
	// Enum: [netapp freenas cephfs]
	System *string `json:"system"`

	// used storage quota in MiB.
	// Required: true
	UsageMb *int64 `json:"usageMb"`
}

StorageResponse JSON object for storage resource data.

swagger:model storageResponse

func (*StorageResponse) ContextValidate

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

ContextValidate validates this storage response based on context it is used

func (*StorageResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*StorageResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*StorageResponse) Validate

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

Validate validates this storage response

type TaskID

type TaskID string

TaskID identifier for scheduled background tasks.

swagger:model taskID

func (TaskID) ContextValidate

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

ContextValidate validates this task ID based on context it is used

func (TaskID) Validate

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

Validate validates this task ID

type TaskStatus

type TaskStatus struct {

	// task error message from the last execution.
	// Required: true
	Error *string `json:"error"`

	// task result from the last execution.
	// Required: true
	Result *string `json:"result"`

	// task status from the last execution.
	// Required: true
	// Enum: [waiting processing failed succeeded canceled]
	Status *string `json:"status"`
}

TaskStatus status of the background task.

swagger:model taskStatus

func (*TaskStatus) ContextValidate

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

ContextValidate validates this task status based on context it is used

func (*TaskStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*TaskStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TaskStatus) Validate

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

Validate validates this task status

type UserID

type UserID string

UserID user identifier.

swagger:model userID

func (UserID) ContextValidate

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

ContextValidate validates this user ID based on context it is used

func (UserID) Validate

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

Validate validates this user ID

Jump to

Keyboard shortcuts

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