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 document provides reference information for the \u003ccode\u003eOAuthCredential\u003c/code\u003e class within the Google Cloud Build v2 API, version 1.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOAuthCredential\u003c/code\u003e class represents an OAuth token for authorized connections in Cloud Build, along with associated metadata.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOAuthCredential\u003c/code\u003e 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, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties for managing the OAuth token, including \u003ccode\u003eOauthTokenSecretVersion\u003c/code\u003e, \u003ccode\u003eOauthTokenSecretVersionAsSecretVersionName\u003c/code\u003e, and \u003ccode\u003eUsername\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe document provides details on the constructors and the namespace, and assembly associated with the \u003ccode\u003eOAuthCredential\u003c/code\u003e class, and the different versions available.\u003c/p\u003e\n"]]],[],null,[]]