scriptactions

package
v0.20231222.1192659 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2018-06-01-preview/scriptactions Documentation

The scriptactions SDK allows for interaction with the Azure Resource Manager Service hdinsight (API Version 2018-06-01-preview).

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-sdk/resource-manager/hdinsight/2018-06-01-preview/scriptactions"

Client Initialization

client := scriptactions.NewScriptActionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ScriptActionsClient.Delete

ctx := context.TODO()
id := scriptactions.NewScriptActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "scriptActionValue")

read, err := client.Delete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ScriptActionsClient.ListByCluster

ctx := context.TODO()
id := scriptactions.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")

// 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
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateScriptActionID

func ValidateScriptActionID(input interface{}, key string) (warnings []string, errors []error)

ValidateScriptActionID checks that 'input' can be parsed as a Script Action ID

Types

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type ListByClusterCompleteResult

type ListByClusterCompleteResult struct {
	Items []RuntimeScriptActionDetail
}

type ListByClusterOperationResponse

type ListByClusterOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RuntimeScriptActionDetail
}

type RuntimeScriptActionDetail

type RuntimeScriptActionDetail struct {
	ApplicationName *string  `json:"applicationName,omitempty"`
	Name            string   `json:"name"`
	Parameters      *string  `json:"parameters,omitempty"`
	Roles           []string `json:"roles"`
	Uri             string   `json:"uri"`
}

type RuntimeScriptActionDetailOperationPredicate

type RuntimeScriptActionDetailOperationPredicate struct {
	ApplicationName *string
	Name            *string
	Parameters      *string
	Uri             *string
}

func (RuntimeScriptActionDetailOperationPredicate) Matches

type ScriptActionId

type ScriptActionId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
	ScriptActionName  string
}

ScriptActionId is a struct representing the Resource ID for a Script Action

func NewScriptActionID

func NewScriptActionID(subscriptionId string, resourceGroupName string, clusterName string, scriptActionName string) ScriptActionId

NewScriptActionID returns a new ScriptActionId struct

func ParseScriptActionID

func ParseScriptActionID(input string) (*ScriptActionId, error)

ParseScriptActionID parses 'input' into a ScriptActionId

func ParseScriptActionIDInsensitively

func ParseScriptActionIDInsensitively(input string) (*ScriptActionId, error)

ParseScriptActionIDInsensitively parses 'input' case-insensitively into a ScriptActionId note: this method should only be used for API response data and not user input

func (*ScriptActionId) FromParseResult added in v0.20231127.1171502

func (id *ScriptActionId) FromParseResult(input resourceids.ParseResult) error

func (ScriptActionId) ID

func (id ScriptActionId) ID() string

ID returns the formatted Script Action ID

func (ScriptActionId) Segments

func (id ScriptActionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Script Action ID

func (ScriptActionId) String

func (id ScriptActionId) String() string

String returns a human-readable description of this Script Action ID

type ScriptActionsClient

type ScriptActionsClient struct {
	Client *resourcemanager.Client
}

func NewScriptActionsClientWithBaseURI

func NewScriptActionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ScriptActionsClient, error)

func (ScriptActionsClient) Delete

Delete ...

func (ScriptActionsClient) ListByCluster

ListByCluster ...

func (ScriptActionsClient) ListByClusterComplete

ListByClusterComplete retrieves all the results into a single object

func (ScriptActionsClient) ListByClusterCompleteMatchingPredicate

func (c ScriptActionsClient) ListByClusterCompleteMatchingPredicate(ctx context.Context, id commonids.HDInsightClusterId, predicate RuntimeScriptActionDetailOperationPredicate) (result ListByClusterCompleteResult, err error)

ListByClusterCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL