Class: Google::Apis::BigtableadminV2::AutomatedBackupPolicy

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

Overview

Defines an automated backup policy for a table

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutomatedBackupPolicy

Returns a new instance of AutomatedBackupPolicy.



233
234
235
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 233

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

Instance Attribute Details

#frequencyString

Required. How frequently automated backups should occur. The only supported value at this time is 24 hours. Corresponds to the JSON property frequency

Returns:

  • (String)


225
226
227
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 225

def frequency
  @frequency
end

#retention_periodString

Required. How long the automated backups should be retained. The only supported value at this time is 3 days. Corresponds to the JSON property retentionPeriod

Returns:

  • (String)


231
232
233
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 231

def retention_period
  @retention_period
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



238
239
240
241
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 238

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