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.
파일 보기 프로젝트 열기: GoogleCloudPlatform/google-cloud-powershell 1 사용 예제들

공개 메소드들

메소드 설명
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