Documentation
¶
Index ¶
- type CreateOpts
- type ListValueListOpts
- type ListValueListRst
- type UpdateValueListOpts
- type WafValueList
- func Create(c *golangsdk.ServiceClient, opts CreateOpts) (*WafValueList, error)
- func Delete(c *golangsdk.ServiceClient, id string) (*WafValueList, error)
- func DeleteWithEpsID(c *golangsdk.ServiceClient, id, epsID string) (*WafValueList, error)
- func Get(c *golangsdk.ServiceClient, id string) (*WafValueList, error)
- func GetWithEpsID(c *golangsdk.ServiceClient, id, epsID string) (*WafValueList, error)
- func Update(c *golangsdk.ServiceClient, id string, opts UpdateValueListOpts) (*WafValueList, error)
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.
Click to show internal directories.
Click to hide internal directories.