README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory
Documentation
The scriptexecutionhistory
SDK allows for interaction with Azure Resource Manager hdinsight
(API Version 2021-06-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory"
Client Initialization
client := scriptexecutionhistory.NewScriptExecutionHistoryClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ScriptExecutionHistoryClient.ListByCluster
ctx := context.TODO()
id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName")
// alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination
items, err := client.ListByClusterComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ScriptExecutionHistoryClient.ScriptActionsGetExecutionDetail
ctx := context.TODO()
id := scriptexecutionhistory.NewScriptExecutionHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "scriptExecutionId")
read, err := client.ScriptActionsGetExecutionDetail(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func ValidateScriptExecutionHistoryID(input interface{}, key string) (warnings []string, errors []error)
- type ListByClusterCompleteResult
- type ListByClusterCustomPager
- type ListByClusterOperationResponse
- type RuntimeScriptActionDetail
- type RuntimeScriptActionDetailOperationPredicate
- type ScriptActionExecutionSummary
- type ScriptActionsGetExecutionDetailOperationResponse
- type ScriptExecutionHistoryClient
- func (c ScriptExecutionHistoryClient) ListByCluster(ctx context.Context, id commonids.HDInsightClusterId) (result ListByClusterOperationResponse, err error)
- func (c ScriptExecutionHistoryClient) ListByClusterComplete(ctx context.Context, id commonids.HDInsightClusterId) (ListByClusterCompleteResult, error)
- func (c ScriptExecutionHistoryClient) ListByClusterCompleteMatchingPredicate(ctx context.Context, id commonids.HDInsightClusterId, ...) (result ListByClusterCompleteResult, err error)
- func (c ScriptExecutionHistoryClient) ScriptActionsGetExecutionDetail(ctx context.Context, id ScriptExecutionHistoryId) (result ScriptActionsGetExecutionDetailOperationResponse, err error)
- type ScriptExecutionHistoryId
- func NewScriptExecutionHistoryID(subscriptionId string, resourceGroupName string, clusterName string, ...) ScriptExecutionHistoryId
- func ParseScriptExecutionHistoryID(input string) (*ScriptExecutionHistoryId, error)
- func ParseScriptExecutionHistoryIDInsensitively(input string) (*ScriptExecutionHistoryId, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateScriptExecutionHistoryID ¶
func ValidateScriptExecutionHistoryID(input interface{}, key string) (warnings []string, errors []error)
ValidateScriptExecutionHistoryID checks that 'input' can be parsed as a Script Execution History ID
Types ¶
type ListByClusterCompleteResult ¶
type ListByClusterCompleteResult struct { LatestHttpResponse *http.Response Items []RuntimeScriptActionDetail }
type ListByClusterCustomPager ¶ added in v0.20240628.1153531
func (*ListByClusterCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByClusterCustomPager) NextPageLink() *odata.Link
type ListByClusterOperationResponse ¶
type ListByClusterOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]RuntimeScriptActionDetail }
type RuntimeScriptActionDetail ¶
type RuntimeScriptActionDetail struct { ApplicationName *string `json:"applicationName,omitempty"` DebugInformation *string `json:"debugInformation,omitempty"` EndTime *string `json:"endTime,omitempty"` ExecutionSummary *[]ScriptActionExecutionSummary `json:"executionSummary,omitempty"` Name string `json:"name"` Operation *string `json:"operation,omitempty"` Parameters *string `json:"parameters,omitempty"` Roles []string `json:"roles"` ScriptExecutionId *int64 `json:"scriptExecutionId,omitempty"` StartTime *string `json:"startTime,omitempty"` Status *string `json:"status,omitempty"` Uri string `json:"uri"` }
type RuntimeScriptActionDetailOperationPredicate ¶
type RuntimeScriptActionDetailOperationPredicate struct { ApplicationName *string DebugInformation *string EndTime *string Name *string Operation *string Parameters *string ScriptExecutionId *int64 StartTime *string Status *string Uri *string }
func (RuntimeScriptActionDetailOperationPredicate) Matches ¶
func (p RuntimeScriptActionDetailOperationPredicate) Matches(input RuntimeScriptActionDetail) bool
type ScriptActionsGetExecutionDetailOperationResponse ¶
type ScriptActionsGetExecutionDetailOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RuntimeScriptActionDetail }
type ScriptExecutionHistoryClient ¶
type ScriptExecutionHistoryClient struct {
Client *resourcemanager.Client
}
func NewScriptExecutionHistoryClientWithBaseURI ¶
func NewScriptExecutionHistoryClientWithBaseURI(sdkApi sdkEnv.Api) (*ScriptExecutionHistoryClient, error)
func (ScriptExecutionHistoryClient) ListByCluster ¶
func (c ScriptExecutionHistoryClient) ListByCluster(ctx context.Context, id commonids.HDInsightClusterId) (result ListByClusterOperationResponse, err error)
ListByCluster ...
func (ScriptExecutionHistoryClient) ListByClusterComplete ¶
func (c ScriptExecutionHistoryClient) ListByClusterComplete(ctx context.Context, id commonids.HDInsightClusterId) (ListByClusterCompleteResult, error)
ListByClusterComplete retrieves all the results into a single object
func (ScriptExecutionHistoryClient) ListByClusterCompleteMatchingPredicate ¶
func (c ScriptExecutionHistoryClient) ListByClusterCompleteMatchingPredicate(ctx context.Context, id commonids.HDInsightClusterId, predicate RuntimeScriptActionDetailOperationPredicate) (result ListByClusterCompleteResult, err error)
ListByClusterCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ScriptExecutionHistoryClient) ScriptActionsGetExecutionDetail ¶
func (c ScriptExecutionHistoryClient) ScriptActionsGetExecutionDetail(ctx context.Context, id ScriptExecutionHistoryId) (result ScriptActionsGetExecutionDetailOperationResponse, err error)
ScriptActionsGetExecutionDetail ...
type ScriptExecutionHistoryId ¶
type ScriptExecutionHistoryId struct { SubscriptionId string ResourceGroupName string ClusterName string ScriptExecutionId string }
ScriptExecutionHistoryId is a struct representing the Resource ID for a Script Execution History
func NewScriptExecutionHistoryID ¶
func NewScriptExecutionHistoryID(subscriptionId string, resourceGroupName string, clusterName string, scriptExecutionId string) ScriptExecutionHistoryId
NewScriptExecutionHistoryID returns a new ScriptExecutionHistoryId struct
func ParseScriptExecutionHistoryID ¶
func ParseScriptExecutionHistoryID(input string) (*ScriptExecutionHistoryId, error)
ParseScriptExecutionHistoryID parses 'input' into a ScriptExecutionHistoryId
func ParseScriptExecutionHistoryIDInsensitively ¶
func ParseScriptExecutionHistoryIDInsensitively(input string) (*ScriptExecutionHistoryId, error)
ParseScriptExecutionHistoryIDInsensitively parses 'input' case-insensitively into a ScriptExecutionHistoryId note: this method should only be used for API response data and not user input
func (*ScriptExecutionHistoryId) FromParseResult ¶
func (id *ScriptExecutionHistoryId) FromParseResult(input resourceids.ParseResult) error
func (ScriptExecutionHistoryId) ID ¶
func (id ScriptExecutionHistoryId) ID() string
ID returns the formatted Script Execution History ID
func (ScriptExecutionHistoryId) Segments ¶
func (id ScriptExecutionHistoryId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Script Execution History ID
func (ScriptExecutionHistoryId) String ¶
func (id ScriptExecutionHistoryId) String() string
String returns a human-readable description of this Script Execution History ID