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 |
GetBetaPrograms200ResponseAllOfDataInner GetBetaProgram(ctx, apiVersion, betaId).Execute()
Get a Beta program
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)
}
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 are passed through a pointer to a apiGetBetaProgramRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
GetBetaPrograms200ResponseAllOfDataInner
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetBetaPrograms200Response GetBetaPrograms(ctx, apiVersion).Page(page).PageSize(pageSize).Execute()
List Beta programs
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)
}
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 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]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]