Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2TemporaryQuota

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

Overview

Temporary quota increase / decrease

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2TemporaryQuota

Returns a new instance of GoogleCloudIdentitytoolkitAdminV2TemporaryQuota.



1864
1865
1866
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1864

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

Instance Attribute Details

#quotaFixnum

Corresponds to the 'refill_token_count' field in QuotaServer config Corresponds to the JSON property quota

Returns:

  • (Fixnum)


1852
1853
1854
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1852

def quota
  @quota
end

#quota_durationString

How long this quota will be active for Corresponds to the JSON property quotaDuration

Returns:

  • (String)


1857
1858
1859
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1857

def quota_duration
  @quota_duration
end

#start_timeString

When this quota will take effect Corresponds to the JSON property startTime

Returns:

  • (String)


1862
1863
1864
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1862

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1869
1870
1871
1872
1873
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1869

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