Class: Google::Apis::IamV1::ExtendedStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/iam_v1/classes.rb,
lib/google/apis/iam_v1/representations.rb,
lib/google/apis/iam_v1/representations.rb

Overview

Extended status can store additional metadata. For example, for keys disabled due to their private key data being expoesed we may include a message with more information about the exposure.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExtendedStatus

Returns a new instance of ExtendedStatus.



603
604
605
# File 'lib/google/apis/iam_v1/classes.rb', line 603

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

Instance Attribute Details

#keyString

The key for this extended status. Corresponds to the JSON property key

Returns:

  • (String)


596
597
598
# File 'lib/google/apis/iam_v1/classes.rb', line 596

def key
  @key
end

#valueString

The value for the extended status. Corresponds to the JSON property value

Returns:

  • (String)


601
602
603
# File 'lib/google/apis/iam_v1/classes.rb', line 601

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



608
609
610
611
# File 'lib/google/apis/iam_v1/classes.rb', line 608

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