Class: Google::Apis::ComputeAlpha::ServiceAccountJwtAccessCredentials

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Overview

JWT credentials for a service account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ServiceAccountJwtAccessCredentials

Returns a new instance of ServiceAccountJwtAccessCredentials



27523
27524
27525
# File 'generated/google/apis/compute_alpha/classes.rb', line 27523

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#json_keyString

Service account key. Corresponds to the JSON property jsonKey

Returns:

  • (String)


27516
27517
27518
# File 'generated/google/apis/compute_alpha/classes.rb', line 27516

def json_key
  @json_key
end

#token_lifetime_secondsFixnum

The token lifetime seconds. Corresponds to the JSON property tokenLifetimeSeconds

Returns:

  • (Fixnum)


27521
27522
27523
# File 'generated/google/apis/compute_alpha/classes.rb', line 27521

def token_lifetime_seconds
  @token_lifetime_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27528
27529
27530
27531
# File 'generated/google/apis/compute_alpha/classes.rb', line 27528

def update!(**args)
  @json_key = args[:json_key] if args.key?(:json_key)
  @token_lifetime_seconds = args[:token_lifetime_seconds] if args.key?(:token_lifetime_seconds)
end