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\u003eThe \u003ccode\u003eOAuthCredential\u003c/code\u003e class in the Google Cloud Build v2 API represents an OAuth token and its associated metadata for authorizing a connection.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGoogle.Cloud.CloudBuild.V2\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.CloudBuild.V2.dll\u003c/code\u003e assembly.\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.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eOauthTokenSecretVersion\u003c/code\u003e, which stores the Secret Manager resource path of the OAuth token, and \u003ccode\u003eUsername\u003c/code\u003e, which contains the username linked to the token.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eOAuthCredential\u003c/code\u003e API class is 1.4.0, with the current documentation relating to version 1.0.0 and covering versions 1.0.0, 1.1.0, 1.2.0, 1.3.0, and 1.4.0.\u003c/p\u003e\n"]]],[],null,[]]