valuelists

package
v0.0.0-...-d823fe1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: Apache-2.0 Imports: 1 Imported by: 1

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"`
}

CreateOpts the options to create reference table.

type ListValueListOpts

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

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

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"`
}

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

Create a reference table.

func Delete

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

Delete reference table by id.

func Get

Get a reference table by id.

func Update

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