Skip to content

Latest commit

 

History

History
77 lines (48 loc) · 1.95 KB

File metadata and controls

77 lines (48 loc) · 1.95 KB

\PackagesControllerAPI

All URIs are relative to http://localhost

Method HTTP request Description
FetchPackage Post /api/v1/fetch_package Fetch a package

FetchPackage

string FetchPackage(ctx).Package_(package_).Request(request).Execute()

Fetch a package

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/yugabyte/platform-go-client/v1"
)

func main() {
	package_ := *openapiclient.NewPackagesRequestParams("BuildNumber_example") // PackagesRequestParams | Package to be imported
	request := TODO // interface{} |  (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.PackagesControllerAPI.FetchPackage(context.Background()).Package_(package_).Request(request).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `PackagesControllerAPI.FetchPackage``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `FetchPackage`: string
	fmt.Fprintf(os.Stdout, "Response from `PackagesControllerAPI.FetchPackage`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
package_ PackagesRequestParams Package to be imported
request interface{}

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/gzip

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