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.
Mostrar archivo Open project: GoogleCloudPlatform/google-cloud-powershell Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return Task