All URIs are relative to https://all.api.keil.arm.com
| Method | HTTP request | Description |
|---|---|---|
| CommissionFpga | Post /fpgas/ | Commission a new FPGA. |
| DecommissionFpga | Delete /fpgas/{fpgaName} | Decommission an FPGA. |
| GetFpga | Get /fpgas/{fpgaName} | Return details of specific FPGA. |
| ListFPGAWorkers | Get /fpgas/ | List available FPGAs. |
| UpdateFpga | Put /fpgas/{fpgaName} | Update the status of the FPGA. |
FPGAItem CommissionFpga(ctx).FPGAItem(fPGAItem).AcceptVersion(acceptVersion).Execute()
Commission a new FPGA.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ARM-software/embedded-development-services-client/client"
)
func main() {
fPGAItem := *openapiclient.NewFPGAItem("TODO", "TODO", false, false, "FPGA with IP 123", "4545aaf", false, []openapiclient.FPGATarget{*openapiclient.NewFPGATarget(*openapiclient.NewFPGATargetID("HardwareImage_example", "SoftwareImage_example"))}, "FPGA 103 for Demo application") // FPGAItem | An FPGA to commission.
acceptVersion := "1.0.0" // string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FPGAsAPI.CommissionFpga(context.Background()).FPGAItem(fPGAItem).AcceptVersion(acceptVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FPGAsAPI.CommissionFpga``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CommissionFpga`: FPGAItem
fmt.Fprintf(os.Stdout, "Response from `FPGAsAPI.CommissionFpga`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCommissionFpgaRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| fPGAItem | FPGAItem | An FPGA to commission. | |
| acceptVersion | string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DecommissionFpga(ctx, fpgaName).AcceptVersion(acceptVersion).Execute()
Decommission an FPGA.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ARM-software/embedded-development-services-client/client"
)
func main() {
fpgaName := "fpgaName_example" // string | Unique ID of an FPGA.
acceptVersion := "1.0.0" // string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.FPGAsAPI.DecommissionFpga(context.Background(), fpgaName).AcceptVersion(acceptVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FPGAsAPI.DecommissionFpga``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| fpgaName | string | Unique ID of an FPGA. |
Other parameters are passed through a pointer to a apiDecommissionFpgaRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
acceptVersion | string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FPGAItem GetFpga(ctx, fpgaName).AcceptVersion(acceptVersion).IfNoneMatch(ifNoneMatch).Execute()
Return details of specific FPGA.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ARM-software/embedded-development-services-client/client"
)
func main() {
fpgaName := "fpgaName_example" // string | Unique ID of an FPGA.
acceptVersion := "1.0.0" // string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. (optional)
ifNoneMatch := "ifNoneMatch_example" // string | Caching: Optional header to improve performance. The value of this header should be the `ETag` of the resource when last read. If this is provided and there have been no changes to the resource then a 304 will be returned without content. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FPGAsAPI.GetFpga(context.Background(), fpgaName).AcceptVersion(acceptVersion).IfNoneMatch(ifNoneMatch).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FPGAsAPI.GetFpga``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetFpga`: FPGAItem
fmt.Fprintf(os.Stdout, "Response from `FPGAsAPI.GetFpga`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| fpgaName | string | Unique ID of an FPGA. |
Other parameters are passed through a pointer to a apiGetFpgaRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
acceptVersion | string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. | ifNoneMatch | string | Caching: Optional header to improve performance. The value of this header should be the `ETag` of the resource when last read. If this is provided and there have been no changes to the resource then a 304 will be returned without content. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FPGACollection ListFPGAWorkers(ctx).AcceptVersion(acceptVersion).Embed(embed).IfNoneMatch(ifNoneMatch).Limit(limit).Offset(offset).Execute()
List available FPGAs.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ARM-software/embedded-development-services-client/client"
)
func main() {
acceptVersion := "1.0.0" // string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. (optional)
embed := false // bool | Embedding: The whether or not to embed resources into the collection (rather than return links). (optional) (default to false)
ifNoneMatch := "ifNoneMatch_example" // string | Caching: Optional header to improve performance. The value of this header should be the `ETag` of the resource when last read. If this is provided and there have been no changes to the resource then a 304 will be returned without content. (optional)
limit := int32(20) // int32 | Paging: The maximum number of items to return in a resource. (optional) (default to 20)
offset := int32(0) // int32 | Paging: The index of the first item to return in the resource. (optional) (default to 0)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FPGAsAPI.ListFPGAWorkers(context.Background()).AcceptVersion(acceptVersion).Embed(embed).IfNoneMatch(ifNoneMatch).Limit(limit).Offset(offset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FPGAsAPI.ListFPGAWorkers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListFPGAWorkers`: FPGACollection
fmt.Fprintf(os.Stdout, "Response from `FPGAsAPI.ListFPGAWorkers`: %v\n", resp)
}Other parameters are passed through a pointer to a apiListFPGAWorkersRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| acceptVersion | string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. | |
| embed | bool | Embedding: The whether or not to embed resources into the collection (rather than return links). | [default to false] |
| ifNoneMatch | string | Caching: Optional header to improve performance. The value of this header should be the `ETag` of the resource when last read. If this is provided and there have been no changes to the resource then a 304 will be returned without content. | |
| limit | int32 | Paging: The maximum number of items to return in a resource. | [default to 20] |
| offset | int32 | Paging: The index of the first item to return in the resource. | [default to 0] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FPGAItem UpdateFpga(ctx, fpgaName).IfMatch(ifMatch).FPGAItem(fPGAItem).AcceptVersion(acceptVersion).Execute()
Update the status of the FPGA.
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/ARM-software/embedded-development-services-client/client"
)
func main() {
fpgaName := "fpgaName_example" // string | Unique ID of an FPGA.
ifMatch := "ifMatch_example" // string | Conditional Requests: This is required in order to perform an update of a resource. The value of this header should be the `ETag` of the resource when read (before being subsequently modified by the client).
fPGAItem := *openapiclient.NewFPGAItem("TODO", "TODO", false, false, "FPGA with IP 123", "4545aaf", false, []openapiclient.FPGATarget{*openapiclient.NewFPGATarget(*openapiclient.NewFPGATargetID("HardwareImage_example", "SoftwareImage_example"))}, "FPGA 103 for Demo application") // FPGAItem | An FPGA to update.
acceptVersion := "1.0.0" // string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.FPGAsAPI.UpdateFpga(context.Background(), fpgaName).IfMatch(ifMatch).FPGAItem(fPGAItem).AcceptVersion(acceptVersion).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FPGAsAPI.UpdateFpga``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateFpga`: FPGAItem
fmt.Fprintf(os.Stdout, "Response from `FPGAsAPI.UpdateFpga`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| fpgaName | string | Unique ID of an FPGA. |
Other parameters are passed through a pointer to a apiUpdateFpgaRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ifMatch | string | Conditional Requests: This is required in order to perform an update of a resource. The value of this header should be the `ETag` of the resource when read (before being subsequently modified by the client). | fPGAItem | FPGAItem | An FPGA to update. | acceptVersion | string | Versioning: Optional header to request a specific version of the API. While it is possible to specify a particular major, minor or patch version it is not recommended for production use cases. Only the major version number should be specified as minor and patch versions can be updated without warning. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]