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



27825
27826
27827
# File 'generated/google/apis/compute_alpha/classes.rb', line 27825

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

Instance Attribute Details

#json_keyString

Service account key. Corresponds to the JSON property jsonKey

Returns:

  • (String)


27818
27819
27820
# File 'generated/google/apis/compute_alpha/classes.rb', line 27818

def json_key
  @json_key
end

#token_lifetime_secondsFixnum

The token lifetime seconds. Corresponds to the JSON property tokenLifetimeSeconds

Returns:

  • (Fixnum)


27823
27824
27825
# File 'generated/google/apis/compute_alpha/classes.rb', line 27823

def token_lifetime_seconds
  @token_lifetime_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27830
27831
27832
27833
# File 'generated/google/apis/compute_alpha/classes.rb', line 27830

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