Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration

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

Overview

Expiration configs for the approval request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration

Returns a new instance of GoogleCloudIntegrationsV1alphaSuspensionApprovalExpiration.



8871
8872
8873
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8871

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

Instance Attribute Details

#expire_timeString

Output only. Time after which the suspension expires, if no action taken. Corresponds to the JSON property expireTime

Returns:

  • (String)


8855
8856
8857
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8855

def expire_time
  @expire_time
end

#lift_when_expiredBoolean Also known as: lift_when_expired?

Whether the suspension will be REJECTED or LIFTED upon expiration. REJECTED is the default behavior. Corresponds to the JSON property liftWhenExpired

Returns:

  • (Boolean)


8861
8862
8863
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8861

def lift_when_expired
  @lift_when_expired
end

#remind_timeString

Time after the previous suspension action reminder, if any, is sent using the selected notification option, for a suspension which is still PENDING_UNSPECIFIED. Corresponds to the JSON property remindTime

Returns:

  • (String)


8869
8870
8871
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8869

def remind_time
  @remind_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8876
8877
8878
8879
8880
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 8876

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