Skip to content

Latest commit

 

History

History
83 lines (54 loc) · 2.27 KB

File metadata and controls

83 lines (54 loc) · 2.27 KB

\ImportApi

All URIs are relative to http://localhost

Method HTTP request Description
ImportSettings Post /import Import settings

ImportSettings

[]map[string]interface{} ImportSettings(ctx).Body(body).TimeoutSeconds(timeoutSeconds).Namespace(namespace).Unlocked(unlocked).Locked(locked).Execute()

Import settings

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    body := "body_example" // string | 
    timeoutSeconds := int64(789) // int64 |  (optional)
    namespace := "namespace_example" // string |  (optional)
    unlocked := "unlocked_example" // string |  (optional)
    locked := "locked_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    apiClient := openapiclient.NewAPIClient(configuration)
    resp, r, err := apiClient.ImportApi.ImportSettings(context.Background()).Body(body).TimeoutSeconds(timeoutSeconds).Namespace(namespace).Unlocked(unlocked).Locked(locked).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `ImportApi.ImportSettings``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ImportSettings`: []map[string]interface{}
    fmt.Fprintf(os.Stdout, "Response from `ImportApi.ImportSettings`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiImportSettingsRequest struct via the builder pattern

Name Type Description Notes
body string
timeoutSeconds int64
namespace string
unlocked string
locked string

Return type

[]map[string]interface{}

Authorization

ApiToken, ServiceBearer, ServiceToken

HTTP request headers

  • Content-Type: plain/text
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]