Documentation ¶
Index ¶
- func PossibleValuesForExecutionState() []string
- func PossibleValuesForOperatingSystemTypes() []string
- func PossibleValuesForStatusLevelTypes() []string
- func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateRunCommandID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVirtualMachineID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVirtualMachineRunCommandID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type ExecutionState
- type GetByVirtualMachineOperationOptions
- type GetByVirtualMachineOperationResponse
- type GetOperationResponse
- type InstanceViewStatus
- type ListByVirtualMachineCompleteResult
- type ListByVirtualMachineOperationOptions
- type ListByVirtualMachineOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type LocationId
- type OperatingSystemTypes
- type RunCommandDocument
- type RunCommandDocumentBase
- type RunCommandDocumentBaseOperationPredicate
- type RunCommandId
- type RunCommandInputParameter
- type RunCommandParameterDefinition
- type StatusLevelTypes
- type UpdateOperationResponse
- type VirtualMachineId
- type VirtualMachineRunCommand
- type VirtualMachineRunCommandId
- func NewVirtualMachineRunCommandID(subscriptionId string, resourceGroupName string, virtualMachineName string, ...) VirtualMachineRunCommandId
- func ParseVirtualMachineRunCommandID(input string) (*VirtualMachineRunCommandId, error)
- func ParseVirtualMachineRunCommandIDInsensitively(input string) (*VirtualMachineRunCommandId, error)
- type VirtualMachineRunCommandInstanceView
- func (o *VirtualMachineRunCommandInstanceView) GetEndTimeAsTime() (*time.Time, error)
- func (o *VirtualMachineRunCommandInstanceView) GetStartTimeAsTime() (*time.Time, error)
- func (o *VirtualMachineRunCommandInstanceView) SetEndTimeAsTime(input time.Time)
- func (o *VirtualMachineRunCommandInstanceView) SetStartTimeAsTime(input time.Time)
- type VirtualMachineRunCommandOperationPredicate
- type VirtualMachineRunCommandProperties
- type VirtualMachineRunCommandScriptSource
- type VirtualMachineRunCommandUpdate
- type VirtualMachineRunCommandsClient
- func (c VirtualMachineRunCommandsClient) CreateOrUpdate(ctx context.Context, id VirtualMachineRunCommandId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c VirtualMachineRunCommandsClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualMachineRunCommandId, ...) error
- func (c VirtualMachineRunCommandsClient) Delete(ctx context.Context, id VirtualMachineRunCommandId) (result DeleteOperationResponse, err error)
- func (c VirtualMachineRunCommandsClient) DeleteThenPoll(ctx context.Context, id VirtualMachineRunCommandId) error
- func (c VirtualMachineRunCommandsClient) Get(ctx context.Context, id RunCommandId) (result GetOperationResponse, err error)
- func (c VirtualMachineRunCommandsClient) GetByVirtualMachine(ctx context.Context, id VirtualMachineRunCommandId, ...) (result GetByVirtualMachineOperationResponse, err error)
- func (c VirtualMachineRunCommandsClient) List(ctx context.Context, id LocationId) (resp ListOperationResponse, err error)
- func (c VirtualMachineRunCommandsClient) ListByVirtualMachine(ctx context.Context, id VirtualMachineId, ...) (resp ListByVirtualMachineOperationResponse, err error)
- func (c VirtualMachineRunCommandsClient) ListByVirtualMachineComplete(ctx context.Context, id VirtualMachineId, ...) (ListByVirtualMachineCompleteResult, error)
- func (c VirtualMachineRunCommandsClient) ListByVirtualMachineCompleteMatchingPredicate(ctx context.Context, id VirtualMachineId, ...) (resp ListByVirtualMachineCompleteResult, err error)
- func (c VirtualMachineRunCommandsClient) ListComplete(ctx context.Context, id LocationId) (ListCompleteResult, error)
- func (c VirtualMachineRunCommandsClient) ListCompleteMatchingPredicate(ctx context.Context, id LocationId, ...) (resp ListCompleteResult, err error)
- func (c VirtualMachineRunCommandsClient) Update(ctx context.Context, id VirtualMachineRunCommandId, ...) (result UpdateOperationResponse, err error)
- func (c VirtualMachineRunCommandsClient) UpdateThenPoll(ctx context.Context, id VirtualMachineRunCommandId, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForExecutionState ¶
func PossibleValuesForExecutionState() []string
func PossibleValuesForOperatingSystemTypes ¶
func PossibleValuesForOperatingSystemTypes() []string
func PossibleValuesForStatusLevelTypes ¶
func PossibleValuesForStatusLevelTypes() []string
func ValidateLocationID ¶
ValidateLocationID checks that 'input' can be parsed as a Location ID
func ValidateRunCommandID ¶
ValidateRunCommandID checks that 'input' can be parsed as a Run Command ID
func ValidateVirtualMachineID ¶
ValidateVirtualMachineID checks that 'input' can be parsed as a Virtual Machine ID
func ValidateVirtualMachineRunCommandID ¶
func ValidateVirtualMachineRunCommandID(input interface{}, key string) (warnings []string, errors []error)
ValidateVirtualMachineRunCommandID checks that 'input' can be parsed as a Virtual Machine Run Command ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type ExecutionState ¶
type ExecutionState string
const ( ExecutionStateCanceled ExecutionState = "Canceled" ExecutionStateFailed ExecutionState = "Failed" ExecutionStatePending ExecutionState = "Pending" ExecutionStateRunning ExecutionState = "Running" ExecutionStateSucceeded ExecutionState = "Succeeded" ExecutionStateTimedOut ExecutionState = "TimedOut" ExecutionStateUnknown ExecutionState = "Unknown" )
type GetByVirtualMachineOperationOptions ¶
type GetByVirtualMachineOperationOptions struct {
Expand *string
}
func DefaultGetByVirtualMachineOperationOptions ¶
func DefaultGetByVirtualMachineOperationOptions() GetByVirtualMachineOperationOptions
type GetByVirtualMachineOperationResponse ¶
type GetByVirtualMachineOperationResponse struct { HttpResponse *http.Response Model *VirtualMachineRunCommand }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *RunCommandDocument }
type InstanceViewStatus ¶
type InstanceViewStatus struct { Code *string `json:"code,omitempty"` DisplayStatus *string `json:"displayStatus,omitempty"` Level *StatusLevelTypes `json:"level,omitempty"` Message *string `json:"message,omitempty"` Time *string `json:"time,omitempty"` }
func (*InstanceViewStatus) GetTimeAsTime ¶
func (o *InstanceViewStatus) GetTimeAsTime() (*time.Time, error)
func (*InstanceViewStatus) SetTimeAsTime ¶
func (o *InstanceViewStatus) SetTimeAsTime(input time.Time)
type ListByVirtualMachineCompleteResult ¶
type ListByVirtualMachineCompleteResult struct {
Items []VirtualMachineRunCommand
}
type ListByVirtualMachineOperationOptions ¶
type ListByVirtualMachineOperationOptions struct {
Expand *string
}
func DefaultListByVirtualMachineOperationOptions ¶
func DefaultListByVirtualMachineOperationOptions() ListByVirtualMachineOperationOptions
type ListByVirtualMachineOperationResponse ¶
type ListByVirtualMachineOperationResponse struct { HttpResponse *http.Response Model *[]VirtualMachineRunCommand // contains filtered or unexported fields }
func (ListByVirtualMachineOperationResponse) HasMore ¶
func (r ListByVirtualMachineOperationResponse) HasMore() bool
func (ListByVirtualMachineOperationResponse) LoadMore ¶
func (r ListByVirtualMachineOperationResponse) LoadMore(ctx context.Context) (resp ListByVirtualMachineOperationResponse, err error)
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []RunCommandDocumentBase
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]RunCommandDocumentBase // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type LocationId ¶
LocationId is a struct representing the Resource ID for a Location
func NewLocationID ¶
func NewLocationID(subscriptionId string, location string) LocationId
NewLocationID returns a new LocationId struct
func ParseLocationID ¶
func ParseLocationID(input string) (*LocationId, error)
ParseLocationID parses 'input' into a LocationId
func ParseLocationIDInsensitively ¶
func ParseLocationIDInsensitively(input string) (*LocationId, error)
ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input
func (LocationId) Segments ¶
func (id LocationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Location ID
func (LocationId) String ¶
func (id LocationId) String() string
String returns a human-readable description of this Location ID
type OperatingSystemTypes ¶
type OperatingSystemTypes string
const ( OperatingSystemTypesLinux OperatingSystemTypes = "Linux" OperatingSystemTypesWindows OperatingSystemTypes = "Windows" )
type RunCommandDocument ¶
type RunCommandDocument struct { Description string `json:"description"` Id string `json:"id"` Label string `json:"label"` OsType OperatingSystemTypes `json:"osType"` Parameters *[]RunCommandParameterDefinition `json:"parameters,omitempty"` Schema string `json:"$schema"` Script []string `json:"script"` }
type RunCommandDocumentBase ¶
type RunCommandDocumentBase struct { Description string `json:"description"` Id string `json:"id"` Label string `json:"label"` OsType OperatingSystemTypes `json:"osType"` Schema string `json:"$schema"` }
type RunCommandDocumentBaseOperationPredicate ¶
type RunCommandDocumentBaseOperationPredicate struct { Description *string Id *string Label *string Schema *string }
func (RunCommandDocumentBaseOperationPredicate) Matches ¶
func (p RunCommandDocumentBaseOperationPredicate) Matches(input RunCommandDocumentBase) bool
type RunCommandId ¶
RunCommandId is a struct representing the Resource ID for a Run Command
func NewRunCommandID ¶
func NewRunCommandID(subscriptionId string, location string, commandId string) RunCommandId
NewRunCommandID returns a new RunCommandId struct
func ParseRunCommandID ¶
func ParseRunCommandID(input string) (*RunCommandId, error)
ParseRunCommandID parses 'input' into a RunCommandId
func ParseRunCommandIDInsensitively ¶
func ParseRunCommandIDInsensitively(input string) (*RunCommandId, error)
ParseRunCommandIDInsensitively parses 'input' case-insensitively into a RunCommandId note: this method should only be used for API response data and not user input
func (RunCommandId) Segments ¶
func (id RunCommandId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Run Command ID
func (RunCommandId) String ¶
func (id RunCommandId) String() string
String returns a human-readable description of this Run Command ID
type StatusLevelTypes ¶
type StatusLevelTypes string
const ( StatusLevelTypesError StatusLevelTypes = "Error" StatusLevelTypesInfo StatusLevelTypes = "Info" StatusLevelTypesWarning StatusLevelTypes = "Warning" )
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type VirtualMachineId ¶
type VirtualMachineId struct { SubscriptionId string ResourceGroupName string VirtualMachineName string }
VirtualMachineId is a struct representing the Resource ID for a Virtual Machine
func NewVirtualMachineID ¶
func NewVirtualMachineID(subscriptionId string, resourceGroupName string, virtualMachineName string) VirtualMachineId
NewVirtualMachineID returns a new VirtualMachineId struct
func ParseVirtualMachineID ¶
func ParseVirtualMachineID(input string) (*VirtualMachineId, error)
ParseVirtualMachineID parses 'input' into a VirtualMachineId
func ParseVirtualMachineIDInsensitively ¶
func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error)
ParseVirtualMachineIDInsensitively parses 'input' case-insensitively into a VirtualMachineId note: this method should only be used for API response data and not user input
func (VirtualMachineId) ID ¶
func (id VirtualMachineId) ID() string
ID returns the formatted Virtual Machine ID
func (VirtualMachineId) Segments ¶
func (id VirtualMachineId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Virtual Machine ID
func (VirtualMachineId) String ¶
func (id VirtualMachineId) String() string
String returns a human-readable description of this Virtual Machine ID
type VirtualMachineRunCommandId ¶
type VirtualMachineRunCommandId struct { SubscriptionId string ResourceGroupName string VirtualMachineName string RunCommandName string }
VirtualMachineRunCommandId is a struct representing the Resource ID for a Virtual Machine Run Command
func NewVirtualMachineRunCommandID ¶
func NewVirtualMachineRunCommandID(subscriptionId string, resourceGroupName string, virtualMachineName string, runCommandName string) VirtualMachineRunCommandId
NewVirtualMachineRunCommandID returns a new VirtualMachineRunCommandId struct
func ParseVirtualMachineRunCommandID ¶
func ParseVirtualMachineRunCommandID(input string) (*VirtualMachineRunCommandId, error)
ParseVirtualMachineRunCommandID parses 'input' into a VirtualMachineRunCommandId
func ParseVirtualMachineRunCommandIDInsensitively ¶
func ParseVirtualMachineRunCommandIDInsensitively(input string) (*VirtualMachineRunCommandId, error)
ParseVirtualMachineRunCommandIDInsensitively parses 'input' case-insensitively into a VirtualMachineRunCommandId note: this method should only be used for API response data and not user input
func (VirtualMachineRunCommandId) ID ¶
func (id VirtualMachineRunCommandId) ID() string
ID returns the formatted Virtual Machine Run Command ID
func (VirtualMachineRunCommandId) Segments ¶
func (id VirtualMachineRunCommandId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Virtual Machine Run Command ID
func (VirtualMachineRunCommandId) String ¶
func (id VirtualMachineRunCommandId) String() string
String returns a human-readable description of this Virtual Machine Run Command ID
type VirtualMachineRunCommandInstanceView ¶
type VirtualMachineRunCommandInstanceView struct { EndTime *string `json:"endTime,omitempty"` Error *string `json:"error,omitempty"` ExecutionMessage *string `json:"executionMessage,omitempty"` ExecutionState *ExecutionState `json:"executionState,omitempty"` ExitCode *int64 `json:"exitCode,omitempty"` Output *string `json:"output,omitempty"` StartTime *string `json:"startTime,omitempty"` Statuses *[]InstanceViewStatus `json:"statuses,omitempty"` }
func (*VirtualMachineRunCommandInstanceView) GetEndTimeAsTime ¶
func (o *VirtualMachineRunCommandInstanceView) GetEndTimeAsTime() (*time.Time, error)
func (*VirtualMachineRunCommandInstanceView) GetStartTimeAsTime ¶
func (o *VirtualMachineRunCommandInstanceView) GetStartTimeAsTime() (*time.Time, error)
func (*VirtualMachineRunCommandInstanceView) SetEndTimeAsTime ¶
func (o *VirtualMachineRunCommandInstanceView) SetEndTimeAsTime(input time.Time)
func (*VirtualMachineRunCommandInstanceView) SetStartTimeAsTime ¶
func (o *VirtualMachineRunCommandInstanceView) SetStartTimeAsTime(input time.Time)
type VirtualMachineRunCommandOperationPredicate ¶
type VirtualMachineRunCommandOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (VirtualMachineRunCommandOperationPredicate) Matches ¶
func (p VirtualMachineRunCommandOperationPredicate) Matches(input VirtualMachineRunCommand) bool
type VirtualMachineRunCommandProperties ¶
type VirtualMachineRunCommandProperties struct { AsyncExecution *bool `json:"asyncExecution,omitempty"` ErrorBlobUri *string `json:"errorBlobUri,omitempty"` InstanceView *VirtualMachineRunCommandInstanceView `json:"instanceView"` OutputBlobUri *string `json:"outputBlobUri,omitempty"` Parameters *[]RunCommandInputParameter `json:"parameters,omitempty"` ProtectedParameters *[]RunCommandInputParameter `json:"protectedParameters,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` RunAsPassword *string `json:"runAsPassword,omitempty"` RunAsUser *string `json:"runAsUser,omitempty"` Source *VirtualMachineRunCommandScriptSource `json:"source"` TimeoutInSeconds *int64 `json:"timeoutInSeconds,omitempty"` }
type VirtualMachineRunCommandUpdate ¶
type VirtualMachineRunCommandUpdate struct { Properties *VirtualMachineRunCommandProperties `json:"properties"` Tags *map[string]string `json:"tags,omitempty"` }
type VirtualMachineRunCommandsClient ¶
type VirtualMachineRunCommandsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewVirtualMachineRunCommandsClientWithBaseURI ¶
func NewVirtualMachineRunCommandsClientWithBaseURI(endpoint string) VirtualMachineRunCommandsClient
func (VirtualMachineRunCommandsClient) CreateOrUpdate ¶
func (c VirtualMachineRunCommandsClient) CreateOrUpdate(ctx context.Context, id VirtualMachineRunCommandId, input VirtualMachineRunCommand) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (VirtualMachineRunCommandsClient) CreateOrUpdateThenPoll ¶
func (c VirtualMachineRunCommandsClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualMachineRunCommandId, input VirtualMachineRunCommand) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (VirtualMachineRunCommandsClient) Delete ¶
func (c VirtualMachineRunCommandsClient) Delete(ctx context.Context, id VirtualMachineRunCommandId) (result DeleteOperationResponse, err error)
Delete ...
func (VirtualMachineRunCommandsClient) DeleteThenPoll ¶
func (c VirtualMachineRunCommandsClient) DeleteThenPoll(ctx context.Context, id VirtualMachineRunCommandId) error
DeleteThenPoll performs Delete then polls until it's completed
func (VirtualMachineRunCommandsClient) Get ¶
func (c VirtualMachineRunCommandsClient) Get(ctx context.Context, id RunCommandId) (result GetOperationResponse, err error)
Get ...
func (VirtualMachineRunCommandsClient) GetByVirtualMachine ¶
func (c VirtualMachineRunCommandsClient) GetByVirtualMachine(ctx context.Context, id VirtualMachineRunCommandId, options GetByVirtualMachineOperationOptions) (result GetByVirtualMachineOperationResponse, err error)
GetByVirtualMachine ...
func (VirtualMachineRunCommandsClient) List ¶
func (c VirtualMachineRunCommandsClient) List(ctx context.Context, id LocationId) (resp ListOperationResponse, err error)
List ...
func (VirtualMachineRunCommandsClient) ListByVirtualMachine ¶
func (c VirtualMachineRunCommandsClient) ListByVirtualMachine(ctx context.Context, id VirtualMachineId, options ListByVirtualMachineOperationOptions) (resp ListByVirtualMachineOperationResponse, err error)
ListByVirtualMachine ...
func (VirtualMachineRunCommandsClient) ListByVirtualMachineComplete ¶
func (c VirtualMachineRunCommandsClient) ListByVirtualMachineComplete(ctx context.Context, id VirtualMachineId, options ListByVirtualMachineOperationOptions) (ListByVirtualMachineCompleteResult, error)
ListByVirtualMachineComplete retrieves all of the results into a single object
func (VirtualMachineRunCommandsClient) ListByVirtualMachineCompleteMatchingPredicate ¶
func (c VirtualMachineRunCommandsClient) ListByVirtualMachineCompleteMatchingPredicate(ctx context.Context, id VirtualMachineId, options ListByVirtualMachineOperationOptions, predicate VirtualMachineRunCommandOperationPredicate) (resp ListByVirtualMachineCompleteResult, err error)
ListByVirtualMachineCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (VirtualMachineRunCommandsClient) ListComplete ¶
func (c VirtualMachineRunCommandsClient) ListComplete(ctx context.Context, id LocationId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (VirtualMachineRunCommandsClient) ListCompleteMatchingPredicate ¶
func (c VirtualMachineRunCommandsClient) ListCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate RunCommandDocumentBaseOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (VirtualMachineRunCommandsClient) Update ¶
func (c VirtualMachineRunCommandsClient) Update(ctx context.Context, id VirtualMachineRunCommandId, input VirtualMachineRunCommandUpdate) (result UpdateOperationResponse, err error)
Update ...
func (VirtualMachineRunCommandsClient) UpdateThenPoll ¶
func (c VirtualMachineRunCommandsClient) UpdateThenPoll(ctx context.Context, id VirtualMachineRunCommandId, input VirtualMachineRunCommandUpdate) error
UpdateThenPoll performs Update then polls until it's completed
Source Files ¶
- client.go
- constants.go
- id_location.go
- id_runcommand.go
- id_virtualmachine.go
- id_virtualmachineruncommand.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_getbyvirtualmachine_autorest.go
- method_list_autorest.go
- method_listbyvirtualmachine_autorest.go
- method_update_autorest.go
- model_instanceviewstatus.go
- model_runcommanddocument.go
- model_runcommanddocumentbase.go
- model_runcommandinputparameter.go
- model_runcommandparameterdefinition.go
- model_virtualmachineruncommand.go
- model_virtualmachineruncommandinstanceview.go
- model_virtualmachineruncommandproperties.go
- model_virtualmachineruncommandscriptsource.go
- model_virtualmachineruncommandupdate.go
- predicates.go
- version.go