parameters

package
v0.0.0-...-0719098 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurations

type Configurations struct {
	// the version of the datastore
	DatastoreVersionName string `json:"datastore_version_name"`
	// the name of the datastore
	DatastoreName string `json:"datastore_name"`
	// the created time
	Created string `json:"created"`
	// the update time
	Updated string `json:"updated"`
}

type JobResponse

type JobResponse struct {
	JobID           string `json:"job_id"`
	RestartRequired bool   `json:"restart_required"`
}

type JobResult

type JobResult struct {
	golangsdk.Result
}

func Update

func Update(c *golangsdk.ServiceClient, instanceId string, opts UpdateParametersOpts) (r JobResult)

func (JobResult) ExtractJobResponse

func (r JobResult) ExtractJobResponse() (*JobResponse, error)

type ListParametersResponse

type ListParametersResponse struct {
	Configurations  Configurations   `json:"configurations"`
	ParameterValues []ParameterValue `json:"parameter_values"`
	TotalCount      int              `json:"total_count"`
}

func ExtractParameters

func ExtractParameters(r pagination.Page) (ListParametersResponse, error)

type ParameterPage

type ParameterPage struct {
	pagination.OffsetPageBase
}

func (ParameterPage) IsEmpty

func (r ParameterPage) IsEmpty() (bool, error)

type ParameterValue

type ParameterValue struct {
	// the parameter name
	Name string `json:"name"`
	// the parameter value
	Value string `json:"value"`
	// whether the instance need restart
	RestartRequired bool `json:"restart_required"`
	// whether the parameter is readonly
	Readonly bool `json:"readonly"`
	// the parameter value range
	ValueRange string `json:"value_range"`
	// the parameter type
	Type string `json:"type"`
	// the description
	Description string `json:"description"`
}

func List

func List(client *golangsdk.ServiceClient, instanceId string) ([]ParameterValue, error)

type UpdateParametersOpts

type UpdateParametersOpts struct {
	ParameterValues map[string]string `json:"parameter_values" required:"true"`
}

Jump to

Keyboard shortcuts

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