Reference documentation and code samples for the Developer Connect V1 API class Google::Cloud::DeveloperConnect::V1::UserCredential.
Represents a personal access token that authorized the Connection,
and associated metadata.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#user_token_secret_version
defuser_token_secret_version()->::String
Returns
(::String) — Required. A SecretManager resource containing the user token that
authorizes the Developer Connect connection. Format:
projects/*/secrets/*/versions/*.
#user_token_secret_version=
defuser_token_secret_version=(value)->::String
Parameter
value (::String) — Required. A SecretManager resource containing the user token that
authorizes the Developer Connect connection. Format:
projects/*/secrets/*/versions/*.
Returns
(::String) — Required. A SecretManager resource containing the user token that
authorizes the Developer Connect connection. Format:
projects/*/secrets/*/versions/*.
#username
defusername()->::String
Returns
(::String) — Output only. The username associated with this token.
[[["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-09-09 UTC."],[],[],null,["# Developer Connect V1 API - Class Google::Cloud::DeveloperConnect::V1::UserCredential (v1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/ruby/docs/reference/google-cloud-developer_connect-v1/latest/Google-Cloud-DeveloperConnect-V1-UserCredential)\n- [1.1.0](/ruby/docs/reference/google-cloud-developer_connect-v1/1.1.0/Google-Cloud-DeveloperConnect-V1-UserCredential)\n- [1.0.1](/ruby/docs/reference/google-cloud-developer_connect-v1/1.0.1/Google-Cloud-DeveloperConnect-V1-UserCredential)\n- [0.5.0](/ruby/docs/reference/google-cloud-developer_connect-v1/0.5.0/Google-Cloud-DeveloperConnect-V1-UserCredential)\n- [0.4.0](/ruby/docs/reference/google-cloud-developer_connect-v1/0.4.0/Google-Cloud-DeveloperConnect-V1-UserCredential)\n- [0.3.0](/ruby/docs/reference/google-cloud-developer_connect-v1/0.3.0/Google-Cloud-DeveloperConnect-V1-UserCredential)\n- [0.2.0](/ruby/docs/reference/google-cloud-developer_connect-v1/0.2.0/Google-Cloud-DeveloperConnect-V1-UserCredential)\n- [0.1.1](/ruby/docs/reference/google-cloud-developer_connect-v1/0.1.1/Google-Cloud-DeveloperConnect-V1-UserCredential) \nReference documentation and code samples for the Developer Connect V1 API class Google::Cloud::DeveloperConnect::V1::UserCredential.\n\nRepresents a personal access token that authorized the Connection,\nand associated metadata. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #user_token_secret_version\n\n def user_token_secret_version() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. A SecretManager resource containing the user token that authorizes the Developer Connect connection. Format: `projects/*/secrets/*/versions/*`.\n\n### #user_token_secret_version=\n\n def user_token_secret_version=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. A SecretManager resource containing the user token that authorizes the Developer Connect connection. Format: `projects/*/secrets/*/versions/*`. \n**Returns**\n\n- (::String) --- Required. A SecretManager resource containing the user token that authorizes the Developer Connect connection. Format: `projects/*/secrets/*/versions/*`.\n\n### #username\n\n def username() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. The username associated with this token."]]