module armExplorer { export class WebApp extends GenericResource { constructor ( resolver ) { super ( resolver ) ; } getScript ( action ) { let script = "" ; switch ( action ) { case ResourceAction . Get : script = `az webapp show --name "${ this . resolver . getParameters ( ) . resourceIdentifier . resourceName }" --resource-group "${ this . resolver . getResourceGroup ( ) }"\n\n` ; break ; case ResourceAction . NewResourceGroup : break ; case ResourceAction . Invoke : break ; case ResourceAction . InvokeAction : break ; case ResourceAction . Set : break ; case ResourceAction . New : script = `az webapp create --resource-group "${ this . resolver . getResourceGroup ( ) }" --plan planName --name NewWebAppName\n\n` ; break ; case ResourceAction . RemoveAction : script = `az webapp delete --name "${ this . resolver . getParameters ( ) . resourceIdentifier . resourceName }" --resource-group "${ this . resolver . getResourceGroup ( ) }"\n\n` ; break ; default : break ; } return script === "" ? super . getScript ( action ) : script ; } } }