C# Class Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet

Represents base class for Resource Manager cmdlets
Inheritance: Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet
Mostrar archivo Open project: Azure/azure-powershell Class Usage Examples

Protected Properties

Property Type Description
_serviceClientTracingInterceptor ServiceClientTracingInterceptor

Protected Methods

Method Description
ConfirmAction ( bool force, string continueMessage, string processMessage, string target, System.Action action ) : void

Guards execution of the given action using ShouldProcess and ShouldContinue. The optional useSHouldContinue predicate determines whether SHouldContinue should be called for this particular action (e.g. a resource is being overwritten). By default, both ShouldProcess and ShouldContinue will be executed. Cmdlets that use this method overload must have a force parameter.

ConfirmResourceAction ( string resourceId, bool force, string continueMessage, string actionName, System.Action action, Func promptForContinuation = null ) : void

Prompt for confirmation for the specified change to the specified ARM resource

ConfirmResourceAction ( string resourceId, string actionName, System.Action action ) : void

Prompt for confirmation for the specified change to the specified ARM resource

ConfirmResourceAction ( string resourceType, string resourceName, string resourceGroupName, bool force, string continueMessage, string processMessage, System.Action action, Func promptForContinuation = null ) : void

Prompt for confirmation for the specified change to the specified ARM resource

ConfirmResourceAction ( string resourceType, string resourceName, string resourceGroupName, string processMessage, System.Action action ) : void

Prompt for confirmation for the specified change to the specified ARM resource

Dispose ( bool disposing ) : void
InitializeQosEvent ( ) : void
LogCmdletEndInvocationInfo ( ) : void
LogCmdletStartInvocationInfo ( ) : void
PromptForDataCollectionProfileIfNotExists ( ) : void
SaveDataCollectionProfile ( ) : void
SetupDebuggingTraces ( ) : void
TearDownDebuggingTraces ( ) : void

Private Methods

Method Description
AzureRMCmdlet ( ) : Microsoft.Azure.Commands.Common.Authentication

Static constructor for AzureRMCmdlet.

Method Details

ConfirmAction() protected method

Guards execution of the given action using ShouldProcess and ShouldContinue. The optional useSHouldContinue predicate determines whether SHouldContinue should be called for this particular action (e.g. a resource is being overwritten). By default, both ShouldProcess and ShouldContinue will be executed. Cmdlets that use this method overload must have a force parameter.
protected ConfirmAction ( bool force, string continueMessage, string processMessage, string target, System.Action action ) : void
force bool Do not ask for confirmation
continueMessage string Message to describe the action
processMessage string Message to prompt after the active is performed.
target string The target name.
action System.Action The action code
return void

ConfirmResourceAction() protected method

Prompt for confirmation for the specified change to the specified ARM resource
protected ConfirmResourceAction ( string resourceId, bool force, string continueMessage, string actionName, System.Action action, Func promptForContinuation = null ) : void
resourceId string The identity of the resource to be changed
force bool True if Force parameter was passed
continueMessage string The message to display in a ShouldContinue prompt, if offered
actionName string A description of the change to the resource
action System.Action The code action to perform if confirmation is successful
promptForContinuation Func Predicate to determine whether a ShouldContinue prompt is necessary
return void

ConfirmResourceAction() protected method

Prompt for confirmation for the specified change to the specified ARM resource
protected ConfirmResourceAction ( string resourceId, string actionName, System.Action action ) : void
resourceId string The identity of the resource to be changed
actionName string A description of the change to the resource
action System.Action The code action to perform if confirmation is successful
return void

ConfirmResourceAction() protected method

Prompt for confirmation for the specified change to the specified ARM resource
protected ConfirmResourceAction ( string resourceType, string resourceName, string resourceGroupName, bool force, string continueMessage, string processMessage, System.Action action, Func promptForContinuation = null ) : void
resourceType string The resource type
resourceName string The resource name for the changed reource
resourceGroupName string The resource group containign the changed resource
force bool True if Force parameter was passed
continueMessage string The message to display in a ShouldContinue prompt, if offered
processMessage string A description of the change to the resource
action System.Action The code action to perform if confirmation is successful
promptForContinuation Func Predicate to determine whether a ShouldContinue prompt is necessary
return void

ConfirmResourceAction() protected method

Prompt for confirmation for the specified change to the specified ARM resource
protected ConfirmResourceAction ( string resourceType, string resourceName, string resourceGroupName, string processMessage, System.Action action ) : void
resourceType string The resource type
resourceName string The resource name for the changed reource
resourceGroupName string The resource group containign the changed resource
processMessage string A description of the change to the resource
action System.Action The code action to perform if confirmation is successful
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

InitializeQosEvent() protected method

protected InitializeQosEvent ( ) : void
return void

LogCmdletEndInvocationInfo() protected method

protected LogCmdletEndInvocationInfo ( ) : void
return void

LogCmdletStartInvocationInfo() protected method

protected LogCmdletStartInvocationInfo ( ) : void
return void

PromptForDataCollectionProfileIfNotExists() protected method

protected PromptForDataCollectionProfileIfNotExists ( ) : void
return void

SaveDataCollectionProfile() protected method

protected SaveDataCollectionProfile ( ) : void
return void

SetupDebuggingTraces() protected method

protected SetupDebuggingTraces ( ) : void
return void

TearDownDebuggingTraces() protected method

protected TearDownDebuggingTraces ( ) : void
return void

Property Details

_serviceClientTracingInterceptor protected_oe property

protected ServiceClientTracingInterceptor,Microsoft.Azure.Commands.ResourceManager.Common _serviceClientTracingInterceptor
return ServiceClientTracingInterceptor