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-03-21 UTC."],[[["The latest version of the `OAuthCredential` 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."],["`OAuthCredential` 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 `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The class has two constructors: a default one, `OAuthCredential()`, and another `OAuthCredential(OAuthCredential other)` that accepts another instance of `OAuthCredential` as a parameter."],["The class provides properties like `OauthTokenSecretVersion` to store the SecretManager resource containing the OAuth token, `OauthTokenSecretVersionAsSecretVersionName` which provides a typed view over the resource name, and `Username` to store the username associated with the token."],["This documentation pertains to the `Google.Cloud.CloudBuild.V2` namespace found within the `Google.Cloud.CloudBuild.V2.dll` assembly."]]],[]]