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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage details the `ComputeCredential.Initializer` class, which is used to initialize compute credentials for API access."],["The initializer leverages `EffectiveComputeTokenUrl` as the token server URL, with the ability to override the host through the `GCE_METADATA_HOST` environment variable."],["There are three constructors available, allowing initialization with default settings, a custom token URL, or both a custom token URL and OIDC token URL."],["The `OidcTokenUrl` property provides access to the OIDC token URL being utilized by the initializer."],["The page offers documentation for various versions, with the latest being 1.69.0 and going as far back as version 1.50.0."]]],[]]