Documentation
¶
Index ¶
- Constants
- type Member
- type MemberOf
- type Members
- type Principle
- type ProjectID
- type ProjectRole
- type RequestBodyProjectProvision
- func (m *RequestBodyProjectProvision) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *RequestBodyProjectProvision) MarshalBinary() ([]byte, error)
- func (m *RequestBodyProjectProvision) UnmarshalBinary(b []byte) error
- func (m *RequestBodyProjectProvision) Validate(formats strfmt.Registry) error
- type RequestBodyProjectResource
- func (m *RequestBodyProjectResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *RequestBodyProjectResource) MarshalBinary() ([]byte, error)
- func (m *RequestBodyProjectResource) UnmarshalBinary(b []byte) error
- func (m *RequestBodyProjectResource) Validate(formats strfmt.Registry) error
- type RequestBodyUserProvision
- func (m *RequestBodyUserProvision) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *RequestBodyUserProvision) MarshalBinary() ([]byte, error)
- func (m *RequestBodyUserProvision) UnmarshalBinary(b []byte) error
- func (m *RequestBodyUserProvision) Validate(formats strfmt.Registry) error
- type RequestBodyUserResource
- func (m *RequestBodyUserResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *RequestBodyUserResource) MarshalBinary() ([]byte, error)
- func (m *RequestBodyUserResource) UnmarshalBinary(b []byte) error
- func (m *RequestBodyUserResource) Validate(formats strfmt.Registry) error
- type ResponseBody400
- type ResponseBody403
- type ResponseBody500
- type ResponseBodyProjectMembers
- func (m *ResponseBodyProjectMembers) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResponseBodyProjectMembers) MarshalBinary() ([]byte, error)
- func (m *ResponseBodyProjectMembers) UnmarshalBinary(b []byte) error
- func (m *ResponseBodyProjectMembers) Validate(formats strfmt.Registry) error
- type ResponseBodyProjectResource
- func (m *ResponseBodyProjectResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResponseBodyProjectResource) MarshalBinary() ([]byte, error)
- func (m *ResponseBodyProjectResource) UnmarshalBinary(b []byte) error
- func (m *ResponseBodyProjectResource) Validate(formats strfmt.Registry) error
- type ResponseBodyProjectStorage
- func (m *ResponseBodyProjectStorage) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResponseBodyProjectStorage) MarshalBinary() ([]byte, error)
- func (m *ResponseBodyProjectStorage) UnmarshalBinary(b []byte) error
- func (m *ResponseBodyProjectStorage) Validate(formats strfmt.Registry) error
- type ResponseBodyProjects
- type ResponseBodyTaskResource
- func (m *ResponseBodyTaskResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResponseBodyTaskResource) MarshalBinary() ([]byte, error)
- func (m *ResponseBodyTaskResource) UnmarshalBinary(b []byte) error
- func (m *ResponseBodyTaskResource) Validate(formats strfmt.Registry) error
- type ResponseBodyUserResource
- func (m *ResponseBodyUserResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ResponseBodyUserResource) MarshalBinary() ([]byte, error)
- func (m *ResponseBodyUserResource) UnmarshalBinary(b []byte) error
- func (m *ResponseBodyUserResource) Validate(formats strfmt.Registry) error
- type ResponseBodyUsers
- type StoragePatchRequest
- type StorageRequest
- type StorageResponse
- type TaskID
- type TaskStatus
- type UserID
Constants ¶
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" )
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" )
const ( // StorageRequestSystemNetapp captures enum value "netapp" StorageRequestSystemNetapp string = "netapp" // StorageRequestSystemCephfs captures enum value "cephfs" StorageRequestSystemCephfs string = "cephfs" )
const ( // StorageResponseSystemNetapp captures enum value "netapp" StorageResponseSystemNetapp string = "netapp" // StorageResponseSystemCephfs captures enum value "cephfs" StorageResponseSystemCephfs string = "cephfs" )
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 ¶
ContextValidate validates this member based on context it is used
func (*Member) MarshalBinary ¶
MarshalBinary interface implementation
func (*Member) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
ContextValidate validate this member of based on the context it is used
type Members ¶
type Members []*Member
Members a list of project members.
swagger:model members
func (Members) ContextValidate ¶
ContextValidate validate this members based on the context it is used
type Principle ¶
type Principle string
Principle principle
swagger:model principle
func (Principle) ContextValidate ¶
ContextValidate validates this principle based on context it is used
type ProjectID ¶
type ProjectID string
ProjectID project identifier.
swagger:model projectID
func (ProjectID) ContextValidate ¶
ContextValidate validates this project ID based on context it is used
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 ¶
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
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
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
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
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
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 ¶
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
type ResponseBody403 ¶
type ResponseBody403 struct { // error message specifying the forbidden request. ErrorMessage string `json:"errorMessage,omitempty"` }
ResponseBody403 JSON object containing error message concerning forbidden request.
swagger:model responseBody403
func (*ResponseBody403) ContextValidate ¶
ContextValidate validates this response body403 based on context it is used
func (*ResponseBody403) MarshalBinary ¶
func (m *ResponseBody403) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ResponseBody403) UnmarshalBinary ¶
func (m *ResponseBody403) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 ¶
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
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
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
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
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 ¶
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
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
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
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 ¶
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
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 ¶
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
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","cephfs"] System *string `json:"system"` }
StorageRequest Data for creating storage resource.
swagger:model storageRequest
func (*StorageRequest) ContextValidate ¶
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
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","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 ¶
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
type TaskID ¶
type TaskID string
TaskID identifier for scheduled background tasks.
swagger:model taskID
func (TaskID) ContextValidate ¶
ContextValidate validates this task ID based on context it is used
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 ¶
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
type UserID ¶
type UserID string
UserID user identifier.
swagger:model userID
func (UserID) ContextValidate ¶
ContextValidate validates this user ID based on context it is used
Source Files
¶
- member.go
- member_of.go
- members.go
- principle.go
- project_id.go
- project_role.go
- request_body_project_provision.go
- request_body_project_resource.go
- request_body_user_provision.go
- request_body_user_resource.go
- response_body400.go
- response_body403.go
- response_body500.go
- response_body_project_members.go
- response_body_project_resource.go
- response_body_project_storage.go
- response_body_projects.go
- response_body_task_resource.go
- response_body_user_resource.go
- response_body_users.go
- storage_patch_request.go
- storage_request.go
- storage_response.go
- task_id.go
- task_status.go
- user_id.go