public class ComputeCredential.Initializer : ServiceCredential.Initializer
An initializer class for the Compute credential. It uses EffectiveComputeTokenUrl
as the token server URL (optionally overriding the host using the GCE_METADATA_HOST environment variable).
public Initializer(string tokenUrl, string oidcTokenUrl)
Constructs a new initializer using the given token URL
and OIDC token URL (optionally overriding the host using the GCE_METADATA_HOST environment variable).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["The latest version available is 1.69.0, with previous versions listed, including 1.68.0, 1.60.0, 1.59.0, 1.55.0, and 1.50.0, each with their respective documentation links."],["`ComputeCredential.Initializer` is a class that initializes Compute credentials, inheriting from `ServiceCredential.Initializer`, and it uses the `EffectiveComputeTokenUrl` as its token server URL."],["The class supports multiple constructors, allowing for initialization with default or custom token URLs, including the option to specify an OIDC token URL."],["The class inherits various members such as `TokenServerUrl`, `Clock`, `AccessMethod`, `HttpClientFactory`, `DefaultExponentialBackOffPolicy`, `QuotaProject`, and `Scopes` from its base `ServiceCredential.Initializer`."],["The class allows for overriding the host by using the GCE_METADATA_HOST environment variable, enabling flexibility in server address configuration."]]],[]]