valuelists

package
v0.0.0-...-63319d1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MPL-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOpts

type CreateOpts struct {
	Name                string   `json:"name" required:"true"`
	Type                string   `json:"type" required:"true"`
	Values              []string `json:"values,omitempty"`
	Description         string   `json:"description,omitempty"`
	EnterpriseProjectId string   `q:"enterprise_project_id" json:"-"`
}

CreateOpts the options to create reference table.

type ListValueListOpts

type ListValueListOpts struct {
	Page                int    `q:"page"`
	Pagesize            int    `q:"pagesize"`
	EnterpriseProjectId string `q:"enterprise_project_id"`
}

ListValueListOpts the options to query a list of reference tables.

type ListValueListRst

type ListValueListRst struct {
	Total int            `json:"total"`
	Items []WafValueList `json:"items"`
}

func List

func List(c *golangsdk.ServiceClient, opts ListValueListOpts) (*ListValueListRst, error)

List : Query a list of reference tables according to the options.

type UpdateValueListOpts

type UpdateValueListOpts struct {
	Name                string   `json:"name" required:"true"`
	Values              []string `json:"values,omitempty"`
	Type                string   `json:"type,omitempty"`
	Description         *string  `json:"description,omitempty"`
	EnterpriseProjectId string   `q:"enterprise_project_id" json:"-"`
}

UpdateValueListOpts the options to update reference table.

type WafValueList

type WafValueList struct {
	Id           string   `json:"id"`
	Name         string   `json:"name"`
	Type         string   `json:"type"`
	Description  string   `json:"description"`
	CreationTime int64    `json:"timestamp"`
	Values       []string `json:"values"`
}

WafValueList reference table detail

func Create

func Create(c *golangsdk.ServiceClient, opts CreateOpts) (*WafValueList, error)

Create a reference table.

func Delete

func Delete(c *golangsdk.ServiceClient, id string) (*WafValueList, error)

Delete reference table by id.

func DeleteWithEpsID

func DeleteWithEpsID(c *golangsdk.ServiceClient, id, epsID string) (*WafValueList, error)

func Get

func Get(c *golangsdk.ServiceClient, id string) (*WafValueList, error)

Get a reference table by id.

func GetWithEpsID

func GetWithEpsID(c *golangsdk.ServiceClient, id, epsID string) (*WafValueList, error)

func Update

func Update(c *golangsdk.ServiceClient, id string, opts UpdateValueListOpts) (*WafValueList, error)

Update reference table according options and id.

Jump to

Keyboard shortcuts

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