Class: Google::Apis::SqlV1beta4::BackupConfiguration

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

Overview

Database instance backup configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BackupConfiguration

Returns a new instance of BackupConfiguration.



134
135
136
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 134

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

Instance Attribute Details

#binary_log_enabledBoolean Also known as: binary_log_enabled?

Whether binary log is enabled. If backup configuration is disabled, binary log must be disabled as well. Corresponds to the JSON property binaryLogEnabled

Returns:

  • (Boolean)


97
98
99
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 97

def binary_log_enabled
  @binary_log_enabled
end

#enabledBoolean Also known as: enabled?

Whether this configuration is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


103
104
105
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 103

def enabled
  @enabled
end

#kindString

This is always sql#backupConfiguration. Corresponds to the JSON property kind

Returns:

  • (String)


109
110
111
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 109

def kind
  @kind
end

#locationString

Location of the backup Corresponds to the JSON property location

Returns:

  • (String)


114
115
116
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 114

def location
  @location
end

#point_in_time_recovery_enabledBoolean Also known as: point_in_time_recovery_enabled?

Reserved for future use. Corresponds to the JSON property pointInTimeRecoveryEnabled

Returns:

  • (Boolean)


119
120
121
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 119

def point_in_time_recovery_enabled
  @point_in_time_recovery_enabled
end

#replication_log_archiving_enabledBoolean Also known as: replication_log_archiving_enabled?

Reserved for future use. Corresponds to the JSON property replicationLogArchivingEnabled

Returns:

  • (Boolean)


125
126
127
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 125

def replication_log_archiving_enabled
  @replication_log_archiving_enabled
end

#start_timeString

Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM. Corresponds to the JSON property startTime

Returns:

  • (String)


132
133
134
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 132

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



139
140
141
142
143
144
145
146
147
# File 'generated/google/apis/sql_v1beta4/classes.rb', line 139

def update!(**args)
  @binary_log_enabled = args[:binary_log_enabled] if args.key?(:binary_log_enabled)
  @enabled = args[:enabled] if args.key?(:enabled)
  @kind = args[:kind] if args.key?(:kind)
  @location = args[:location] if args.key?(:location)
  @point_in_time_recovery_enabled = args[:point_in_time_recovery_enabled] if args.key?(:point_in_time_recovery_enabled)
  @replication_log_archiving_enabled = args[:replication_log_archiving_enabled] if args.key?(:replication_log_archiving_enabled)
  @start_time = args[:start_time] if args.key?(:start_time)
end