Skip to content

Latest commit

 

History

History
157 lines (100 loc) · 4.89 KB

BetaProgramsAPI.md

File metadata and controls

157 lines (100 loc) · 4.89 KB

\BetaProgramsAPI

All URIs are relative to https://api.linode.com

Method HTTP request Description
GetBetaProgram Get /{apiVersion}/betas/{betaId} Get a Beta program
GetBetaPrograms Get /{apiVersion}/betas List Beta programs

GetBetaProgram

GetBetaPrograms200ResponseAllOfDataInner GetBetaProgram(ctx, apiVersion, betaId).Execute()

Get a Beta program

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
	betaId := "betaId_example" // string | The ID of the Beta Program.

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.BetaProgramsAPI.GetBetaProgram(context.Background(), apiVersion, betaId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `BetaProgramsAPI.GetBetaProgram``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetBetaProgram`: GetBetaPrograms200ResponseAllOfDataInner
	fmt.Fprintf(os.Stdout, "Response from `BetaProgramsAPI.GetBetaProgram`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
apiVersion string Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. [default to "v4"]
betaId string The ID of the Beta Program.

Other Parameters

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

Name Type Description Notes

Return type

GetBetaPrograms200ResponseAllOfDataInner

Authorization

personalAccessToken, oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

GetBetaPrograms

GetBetaPrograms200Response GetBetaPrograms(ctx, apiVersion).Page(page).PageSize(pageSize).Execute()

List Beta programs

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	apiVersion := "apiVersion_example" // string | __Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta. (default to "v4")
	page := int32(56) // int32 | The page of a collection to return. (optional) (default to 1)
	pageSize := int32(56) // int32 | The number of items to return per page. (optional) (default to 100)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.BetaProgramsAPI.GetBetaPrograms(context.Background(), apiVersion).Page(page).PageSize(pageSize).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `BetaProgramsAPI.GetBetaPrograms``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetBetaPrograms`: GetBetaPrograms200Response
	fmt.Fprintf(os.Stdout, "Response from `BetaProgramsAPI.GetBetaPrograms`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
apiVersion string Enum Call either the `v4` URL, or `v4beta` for operations still in Beta. [default to "v4"]

Other Parameters

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

Name Type Description Notes

page | int32 | The page of a collection to return. | [default to 1] pageSize | int32 | The number of items to return per page. | [default to 100]

Return type

GetBetaPrograms200Response

Authorization

personalAccessToken, oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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