Documentation ¶
Index ¶
- func PossibleValuesForExecutionState() []string
- func PossibleValuesForExtensionsStatusLevelTypes() []string
- func ValidateMachineID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateRunCommandID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type ExecutionState
- type ExtensionsResourceStatus
- type ExtensionsStatusLevelTypes
- type GetOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type MachineId
- type MachineRunCommand
- type MachineRunCommandInstanceView
- func (o *MachineRunCommandInstanceView) GetEndTimeAsTime() (*time.Time, error)
- func (o *MachineRunCommandInstanceView) GetStartTimeAsTime() (*time.Time, error)
- func (o *MachineRunCommandInstanceView) SetEndTimeAsTime(input time.Time)
- func (o *MachineRunCommandInstanceView) SetStartTimeAsTime(input time.Time)
- type MachineRunCommandOperationPredicate
- type MachineRunCommandProperties
- type MachineRunCommandScriptSource
- type MachineRunCommandsClient
- func (c MachineRunCommandsClient) CreateOrUpdate(ctx context.Context, id RunCommandId, input MachineRunCommand) (result CreateOrUpdateOperationResponse, err error)
- func (c MachineRunCommandsClient) CreateOrUpdateThenPoll(ctx context.Context, id RunCommandId, input MachineRunCommand) error
- func (c MachineRunCommandsClient) Delete(ctx context.Context, id RunCommandId) (result DeleteOperationResponse, err error)
- func (c MachineRunCommandsClient) DeleteThenPoll(ctx context.Context, id RunCommandId) error
- func (c MachineRunCommandsClient) Get(ctx context.Context, id RunCommandId) (result GetOperationResponse, err error)
- func (c MachineRunCommandsClient) List(ctx context.Context, id MachineId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c MachineRunCommandsClient) ListComplete(ctx context.Context, id MachineId, options ListOperationOptions) (ListCompleteResult, error)
- func (c MachineRunCommandsClient) ListCompleteMatchingPredicate(ctx context.Context, id MachineId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c MachineRunCommandsClient) Update(ctx context.Context, id RunCommandId, input ResourceUpdate) (result UpdateOperationResponse, err error)
- func (c MachineRunCommandsClient) UpdateThenPoll(ctx context.Context, id RunCommandId, input ResourceUpdate) error
- type ResourceUpdate
- type RunCommandId
- type RunCommandInputParameter
- type RunCommandManagedIdentity
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForExecutionState ¶
func PossibleValuesForExecutionState() []string
func PossibleValuesForExtensionsStatusLevelTypes ¶
func PossibleValuesForExtensionsStatusLevelTypes() []string
func ValidateMachineID ¶
ValidateMachineID checks that 'input' can be parsed as a Machine ID
func ValidateRunCommandID ¶
ValidateRunCommandID checks that 'input' can be parsed as a Run Command ID
Types ¶
type DeleteOperationResponse ¶
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" )
func (*ExecutionState) UnmarshalJSON ¶
func (s *ExecutionState) UnmarshalJSON(bytes []byte) error
type ExtensionsResourceStatus ¶
type ExtensionsResourceStatus struct { Code *string `json:"code,omitempty"` DisplayStatus *string `json:"displayStatus,omitempty"` Level *ExtensionsStatusLevelTypes `json:"level,omitempty"` Message *string `json:"message,omitempty"` Time *string `json:"time,omitempty"` }
func (*ExtensionsResourceStatus) GetTimeAsTime ¶
func (o *ExtensionsResourceStatus) GetTimeAsTime() (*time.Time, error)
func (*ExtensionsResourceStatus) SetTimeAsTime ¶
func (o *ExtensionsResourceStatus) SetTimeAsTime(input time.Time)
type ExtensionsStatusLevelTypes ¶
type ExtensionsStatusLevelTypes string
const ( ExtensionsStatusLevelTypesError ExtensionsStatusLevelTypes = "Error" ExtensionsStatusLevelTypesInfo ExtensionsStatusLevelTypes = "Info" ExtensionsStatusLevelTypesWarning ExtensionsStatusLevelTypes = "Warning" )
func (*ExtensionsStatusLevelTypes) UnmarshalJSON ¶
func (s *ExtensionsStatusLevelTypes) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *MachineRunCommand }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []MachineRunCommand }
type ListCustomPager ¶
func (*ListCustomPager) NextPageLink ¶
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationOptions ¶
type ListOperationOptions struct {
Expand *string
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]MachineRunCommand }
type MachineId ¶
MachineId is a struct representing the Resource ID for a Machine
func NewMachineID ¶
NewMachineID returns a new MachineId struct
func ParseMachineID ¶
ParseMachineID parses 'input' into a MachineId
func ParseMachineIDInsensitively ¶
ParseMachineIDInsensitively parses 'input' case-insensitively into a MachineId note: this method should only be used for API response data and not user input
func (*MachineId) FromParseResult ¶
func (id *MachineId) FromParseResult(input resourceids.ParseResult) error
func (MachineId) Segments ¶
func (id MachineId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Machine ID
type MachineRunCommand ¶
type MachineRunCommand struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *MachineRunCommandProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type MachineRunCommandInstanceView ¶
type MachineRunCommandInstanceView 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 *[]ExtensionsResourceStatus `json:"statuses,omitempty"` }
func (*MachineRunCommandInstanceView) GetEndTimeAsTime ¶
func (o *MachineRunCommandInstanceView) GetEndTimeAsTime() (*time.Time, error)
func (*MachineRunCommandInstanceView) GetStartTimeAsTime ¶
func (o *MachineRunCommandInstanceView) GetStartTimeAsTime() (*time.Time, error)
func (*MachineRunCommandInstanceView) SetEndTimeAsTime ¶
func (o *MachineRunCommandInstanceView) SetEndTimeAsTime(input time.Time)
func (*MachineRunCommandInstanceView) SetStartTimeAsTime ¶
func (o *MachineRunCommandInstanceView) SetStartTimeAsTime(input time.Time)
type MachineRunCommandOperationPredicate ¶
type MachineRunCommandOperationPredicate struct { Id *string Location *string Name *string Type *string }
func (MachineRunCommandOperationPredicate) Matches ¶
func (p MachineRunCommandOperationPredicate) Matches(input MachineRunCommand) bool
type MachineRunCommandProperties ¶
type MachineRunCommandProperties struct { AsyncExecution *bool `json:"asyncExecution,omitempty"` ErrorBlobManagedIdentity *RunCommandManagedIdentity `json:"errorBlobManagedIdentity,omitempty"` ErrorBlobUri *string `json:"errorBlobUri,omitempty"` InstanceView *MachineRunCommandInstanceView `json:"instanceView,omitempty"` OutputBlobManagedIdentity *RunCommandManagedIdentity `json:"outputBlobManagedIdentity,omitempty"` 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 *MachineRunCommandScriptSource `json:"source,omitempty"` TimeoutInSeconds *int64 `json:"timeoutInSeconds,omitempty"` }
type MachineRunCommandScriptSource ¶
type MachineRunCommandScriptSource struct { CommandId *string `json:"commandId,omitempty"` Script *string `json:"script,omitempty"` ScriptUri *string `json:"scriptUri,omitempty"` ScriptUriManagedIdentity *RunCommandManagedIdentity `json:"scriptUriManagedIdentity,omitempty"` }
type MachineRunCommandsClient ¶
type MachineRunCommandsClient struct {
Client *resourcemanager.Client
}
func NewMachineRunCommandsClientWithBaseURI ¶
func NewMachineRunCommandsClientWithBaseURI(sdkApi sdkEnv.Api) (*MachineRunCommandsClient, error)
func (MachineRunCommandsClient) CreateOrUpdate ¶
func (c MachineRunCommandsClient) CreateOrUpdate(ctx context.Context, id RunCommandId, input MachineRunCommand) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (MachineRunCommandsClient) CreateOrUpdateThenPoll ¶
func (c MachineRunCommandsClient) CreateOrUpdateThenPoll(ctx context.Context, id RunCommandId, input MachineRunCommand) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (MachineRunCommandsClient) Delete ¶
func (c MachineRunCommandsClient) Delete(ctx context.Context, id RunCommandId) (result DeleteOperationResponse, err error)
Delete ...
func (MachineRunCommandsClient) DeleteThenPoll ¶
func (c MachineRunCommandsClient) DeleteThenPoll(ctx context.Context, id RunCommandId) error
DeleteThenPoll performs Delete then polls until it's completed
func (MachineRunCommandsClient) Get ¶
func (c MachineRunCommandsClient) Get(ctx context.Context, id RunCommandId) (result GetOperationResponse, err error)
Get ...
func (MachineRunCommandsClient) List ¶
func (c MachineRunCommandsClient) List(ctx context.Context, id MachineId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (MachineRunCommandsClient) ListComplete ¶
func (c MachineRunCommandsClient) ListComplete(ctx context.Context, id MachineId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (MachineRunCommandsClient) ListCompleteMatchingPredicate ¶
func (c MachineRunCommandsClient) ListCompleteMatchingPredicate(ctx context.Context, id MachineId, options ListOperationOptions, predicate MachineRunCommandOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (MachineRunCommandsClient) Update ¶
func (c MachineRunCommandsClient) Update(ctx context.Context, id RunCommandId, input ResourceUpdate) (result UpdateOperationResponse, err error)
Update ...
func (MachineRunCommandsClient) UpdateThenPoll ¶
func (c MachineRunCommandsClient) UpdateThenPoll(ctx context.Context, id RunCommandId, input ResourceUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type ResourceUpdate ¶
type RunCommandId ¶
type RunCommandId struct { SubscriptionId string ResourceGroupName string MachineName string RunCommandName string }
RunCommandId is a struct representing the Resource ID for a Run Command
func NewRunCommandID ¶
func NewRunCommandID(subscriptionId string, resourceGroupName string, machineName string, runCommandName 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) FromParseResult ¶
func (id *RunCommandId) FromParseResult(input resourceids.ParseResult) error
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 UpdateOperationResponse ¶
Source Files ¶
- client.go
- constants.go
- id_machine.go
- id_runcommand.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_update.go
- model_extensionsresourcestatus.go
- model_machineruncommand.go
- model_machineruncommandinstanceview.go
- model_machineruncommandproperties.go
- model_machineruncommandscriptsource.go
- model_resourceupdate.go
- model_runcommandinputparameter.go
- model_runcommandmanagedidentity.go
- predicates.go
- version.go