Class: Google::Apis::CloudbuildV2::UserCredential
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::UserCredential
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb
Overview
Represents a personal access token that authorized the Connection, and associated metadata.
Instance Attribute Summary collapse
-
#user_token_secret_version ⇒ String
Required.
-
#username ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserCredential
constructor
A new instance of UserCredential.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserCredential
Returns a new instance of UserCredential.
3067 3068 3069 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3067 def initialize(**args) update!(**args) end |
Instance Attribute Details
#user_token_secret_version ⇒ String
Required. A SecretManager resource containing the user token that authorizes
the Cloud Build connection. Format: projects/*/secrets/*/versions/*
.
Corresponds to the JSON property userTokenSecretVersion
3060 3061 3062 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3060 def user_token_secret_version @user_token_secret_version end |
#username ⇒ String
Output only. The username associated to this token.
Corresponds to the JSON property username
3065 3066 3067 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3065 def username @username end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3072 3073 3074 3075 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3072 def update!(**args) @user_token_secret_version = args[:user_token_secret_version] if args.key?(:user_token_secret_version) @username = args[:username] if args.key?(:username) end |