v11.0.0
This commit is contained in:
@@ -5,15 +5,23 @@ import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
|
||||
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v10/internal/validators"
|
||||
"repository.basistech.ru/BASIS/dynamix-golang-sdk/v11/internal/validators"
|
||||
)
|
||||
|
||||
// APIFindRequest struct for finding apiaccess groups.
|
||||
type APIFindRequest struct {
|
||||
// API function to find
|
||||
// Example: cloudbroker/k8s/create
|
||||
// Required: true
|
||||
APIName string `url:"apiName" json:"apiName" validate:"required"`
|
||||
//API group to find (cloudbroker, cloudapi, etc)
|
||||
//Available values : cloudapi, cloudbroker, system
|
||||
//Required: true
|
||||
APIGroup string `url:"api_group" json:"api_group" validate:"required,apiGroup"`
|
||||
|
||||
//API object to find (compute, vins, etc )
|
||||
//Required: true
|
||||
APIObject string `url:"api_object" json:"api_object" validate:"required"`
|
||||
|
||||
//API endpoint to find (delete, create, etc)
|
||||
//Required: true
|
||||
APIMethod string `url:"api_method" json:"api_method" validate:"required"`
|
||||
}
|
||||
|
||||
// APIFind outputs a list of apiaccess groups that mention the specified API function.
|
||||
|
||||
Reference in New Issue
Block a user