C# Класс Google.PowerShell.Common.CloudSdkSettings

Wrapper over the settings files created by the Google Cloud SDK. No data is cached, so it is possible to have race conditions between gcloud and PowerShell. This is by design. gcloud is the source of truth for data.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetAnonymousClientID ( ) : string

Client ID refers to the random UUID generated to group telemetry reporting. The file is generated on-demand by the Python code. Returns a new UUID if the file isn't found. (Meaning we will generate new UUIDs until the Python code gets executed.)

GetDefaultProject ( ) : string

Returns the default project for the Google Cloud SDK.

GetOptIntoUsageReporting ( ) : bool

Returns whether or not the user has opted-into of telemetry reporting. Defaults to false (opted-out).

GetSettingsValue ( string settingName ) : string

Returns the setting with the given name from the currently active gcloud configuration.

Приватные методы

Метод Описание
CloudSdkSettings ( ) : System

Описание методов

GetAnonymousClientID() публичный статический Метод

Client ID refers to the random UUID generated to group telemetry reporting. The file is generated on-demand by the Python code. Returns a new UUID if the file isn't found. (Meaning we will generate new UUIDs until the Python code gets executed.)
public static GetAnonymousClientID ( ) : string
Результат string

GetDefaultProject() публичный статический Метод

Returns the default project for the Google Cloud SDK.
public static GetDefaultProject ( ) : string
Результат string

GetOptIntoUsageReporting() публичный статический Метод

Returns whether or not the user has opted-into of telemetry reporting. Defaults to false (opted-out).
public static GetOptIntoUsageReporting ( ) : bool
Результат bool

GetSettingsValue() публичный статический Метод

Returns the setting with the given name from the currently active gcloud configuration.
public static GetSettingsValue ( string settingName ) : string
settingName string
Результат string