public sealed class OAuthCredential : IMessage<OAuthCredential>, IEquatable<OAuthCredential>, IDeepCloneable<OAuthCredential>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v2 API class OAuthCredential.
Represents an OAuth token of the account that authorized the Connection,
and associated metadata.
[[["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-07-02 UTC."],[[["This documentation details the `OAuthCredential` class within the Google Cloud Build v2 API, which represents an OAuth token and its associated metadata used for authorizing connections."],["The `OAuthCredential` class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, providing functionality for message handling, equality comparisons, deep cloning, and buffer operations."],["The class includes properties like `OauthTokenSecretVersion` and `OauthTokenSecretVersionAsSecretVersionName` to manage the secret version containing the OAuth token, as well as a `Username` property that is output-only."],["There are two constructors available to initiate the class, `OAuthCredential()`, and `OAuthCredential(OAuthCredential other)` to build a class from an existing one."],["The latest version of the API documented is 1.4.0, with previous versions including 1.3.0, 1.2.0, 1.1.0, and 1.0.0 also referenced."]]],[]]