This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: API Sync by GitHub Action (2023-10-02) (#161)
This API Sync PR was automated through [GitHub Actions workflow_displatch](https://github.com/equinix-labs/metal-go/actions?query=event%3Aworkflow_dispatch) on 2023-10-02. * latest Swagger is fetched * patches have been applied * generated client has been updated --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Charles Treatman <[email protected]>
- Loading branch information
1 parent
5ff62c4
commit 38931a4
Showing
24 changed files
with
473 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# \ConsoleLogDetailsApi | ||
|
||
All URIs are relative to *https://api.equinix.com/metal/v1* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**CaptureScreenshot**](ConsoleLogDetailsApi.md#CaptureScreenshot) | **Get** /devices/{id}/diagnostics/screenshot | | ||
|
||
|
||
|
||
## CaptureScreenshot | ||
|
||
> *os.File CaptureScreenshot(ctx, id).Execute() | ||
|
||
|
||
|
||
|
||
### Example | ||
|
||
```go | ||
package main | ||
|
||
import ( | ||
"context" | ||
"fmt" | ||
"os" | ||
openapiclient "github.com/equinix-labs/metal-go/metal/v1" | ||
) | ||
|
||
func main() { | ||
id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Device UUID | ||
|
||
configuration := openapiclient.NewConfiguration() | ||
apiClient := openapiclient.NewAPIClient(configuration) | ||
resp, r, err := apiClient.ConsoleLogDetailsApi.CaptureScreenshot(context.Background(), id).Execute() | ||
if err != nil { | ||
fmt.Fprintf(os.Stderr, "Error when calling `ConsoleLogDetailsApi.CaptureScreenshot``: %v\n", err) | ||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) | ||
} | ||
// response from `CaptureScreenshot`: *os.File | ||
fmt.Fprintf(os.Stdout, "Response from `ConsoleLogDetailsApi.CaptureScreenshot`: %v\n", resp) | ||
} | ||
``` | ||
|
||
### Path Parameters | ||
|
||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. | ||
**id** | **string** | Device UUID | | ||
|
||
### Other Parameters | ||
|
||
Other parameters are passed through a pointer to a apiCaptureScreenshotRequest struct via the builder pattern | ||
|
||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
|
||
|
||
### Return type | ||
|
||
[***os.File**](*os.File.md) | ||
|
||
### Authorization | ||
|
||
[x_auth_token](../README.md#x_auth_token) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: application/jpeg, application/json | ||
|
||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) | ||
[[Back to Model list]](../README.md#documentation-for-models) | ||
[[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.