C# Class Google.PowerShell.Common.GCloudWrapper

This class shell executes "gcloud {command} --format=json", to allow delegation to Cloud SDK implementation. Used for things like credential management.
Afficher le fichier Open project: GoogleCloudPlatform/google-cloud-powershell Class Usage Examples

Méthodes publiques

Méthode Description
GetActiveConfig ( ) : Task

Gets the current active gcloud config by calling config-helper. Every call will also create a new access token in the string returned.

Private Methods

Méthode Description
GetGCloudCommandOutput ( string command, string>.IDictionary environment = null ) : Task

Execute cmd.exe /c "gcloud {command} --format=json" and returns the standard output if the command returns exit code 0. This will not pop up any new windows. The environment parameter is used to set environment variable for the execution.

Method Details

GetActiveConfig() public static méthode

Gets the current active gcloud config by calling config-helper. Every call will also create a new access token in the string returned.
public static GetActiveConfig ( ) : Task
Résultat Task