app_code

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client *golangsdk.ServiceClient, gatewayID, appID, appCodeID string) (err error)

Types

type AppCodePage

type AppCodePage struct {
	pagination.NewSinglePageBase
}

type AppCodesOfAppPage added in v0.9.4

type AppCodesOfAppPage struct {
	pagination.NewSinglePageBase
}

type CodeResp

type CodeResp struct {
	ID         string `json:"id"`
	AppID      string `json:"app_id"`
	AppCode    string `json:"app_code"`
	CreateTime string `json:"create_time"`
}

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*CodeResp, error)

func ExtractAppCodes

func ExtractAppCodes(r pagination.NewPage) ([]CodeResp, error)

func ExtractAppCodesOfApp added in v0.9.4

func ExtractAppCodesOfApp(r pagination.NewPage) ([]CodeResp, error)

func GenerateAppCode

func GenerateAppCode(client *golangsdk.ServiceClient, gatewayID, appID string) (*CodeResp, error)

func Get

func Get(client *golangsdk.ServiceClient, gatewayID, appID, appCodeID string) (*CodeResp, error)

func List

func List(client *golangsdk.ServiceClient, opts ListOpts) ([]CodeResp, error)

func ListAppCodesOfApp added in v0.9.4

func ListAppCodesOfApp(client *golangsdk.ServiceClient, opts ListAppsOpts) ([]CodeResp, error)

type CreateOpts

type CreateOpts struct {
	GatewayID string `json:"-"`
	AppID     string `json:"-"`
	AppCode   string `json:"app_code" required:"true"`
}

type ListAppsOpts added in v0.9.4

type ListAppsOpts struct {
	GatewayID string `json:"-"`
	AppID     string `json:"-"`
	// Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.
	Offset *int `q:"offset"`
	// Number of items displayed on each page.
	// A value less than or equal to 0 will be automatically converted to 20,
	// and a value greater than 500 will be automatically converted to 500.
	Limit int `q:"limit"`
}

type ListOpts

type ListOpts struct {
	GatewayID string `json:"-"`
}

Jump to

Keyboard shortcuts

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