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 latest version of the \u003ccode\u003eOAuthCredential\u003c/code\u003e class is 1.4.0, and there are also older versions available, including 1.3.0, 1.2.0, 1.1.0, and 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOAuthCredential\u003c/code\u003e is a class that represents an OAuth token and its associated metadata for Cloud Build v2 API, it is a sealed class that implements several interfaces such as \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\u003eThe class has two constructors: a default one, \u003ccode\u003eOAuthCredential()\u003c/code\u003e, and another \u003ccode\u003eOAuthCredential(OAuthCredential other)\u003c/code\u003e that accepts another instance of \u003ccode\u003eOAuthCredential\u003c/code\u003e as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides properties like \u003ccode\u003eOauthTokenSecretVersion\u003c/code\u003e to store the SecretManager resource containing the OAuth token, \u003ccode\u003eOauthTokenSecretVersionAsSecretVersionName\u003c/code\u003e which provides a typed view over the resource name, and \u003ccode\u003eUsername\u003c/code\u003e to store the username associated with the token.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation pertains to the \u003ccode\u003eGoogle.Cloud.CloudBuild.V2\u003c/code\u003e namespace found within the \u003ccode\u003eGoogle.Cloud.CloudBuild.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]