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"]],[["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."],[[["\u003cp\u003eThis documentation details the \u003ccode\u003eOAuthCredential\u003c/code\u003e class within the Google Cloud Build v2 API, which represents an OAuth token and its associated metadata used for authorizing connections.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOAuthCredential\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionality for message handling, equality comparisons, deep cloning, and buffer operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eOauthTokenSecretVersion\u003c/code\u003e and \u003ccode\u003eOauthTokenSecretVersionAsSecretVersionName\u003c/code\u003e to manage the secret version containing the OAuth token, as well as a \u003ccode\u003eUsername\u003c/code\u003e property that is output-only.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available to initiate the class, \u003ccode\u003eOAuthCredential()\u003c/code\u003e, and \u003ccode\u003eOAuthCredential(OAuthCredential other)\u003c/code\u003e to build a class from an existing one.\u003c/p\u003e\n"],["\u003cp\u003eThe 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.\u003c/p\u003e\n"]]],[],null,[]]