Class: Google::Apis::AlloydbV1beta::CloudSqlBackupRunSource

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

Overview

The source CloudSQL backup resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudSqlBackupRunSource

Returns a new instance of CloudSqlBackupRunSource.



617
618
619
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 617

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

Instance Attribute Details

#backup_run_idFixnum

Required. The CloudSQL backup run ID. Corresponds to the JSON property backupRunId

Returns:

  • (Fixnum)


604
605
606
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 604

def backup_run_id
  @backup_run_id
end

#instance_idString

Required. The CloudSQL instance ID. Corresponds to the JSON property instanceId

Returns:

  • (String)


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

def instance_id
  @instance_id
end

#projectString

The project ID of the source CloudSQL instance. This should be the same as the AlloyDB cluster's project. Corresponds to the JSON property project

Returns:

  • (String)


615
616
617
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 615

def project
  @project
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



622
623
624
625
626
# File 'lib/google/apis/alloydb_v1beta/classes.rb', line 622

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