Class: Google::Apis::BackupdrV1::DataSourceReference

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

Overview

DataSourceReference is a reference to a DataSource resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataSourceReference

Returns a new instance of DataSourceReference.



2881
2882
2883
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2881

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

Instance Attribute Details

#create_timeString

Output only. The time when the DataSourceReference was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2841
2842
2843
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2841

def create_time
  @create_time
end

#data_sourceString

Output only. The resource name of the DataSource. Format: projects/project/ locations/location/backupVaults/backupVault/dataSources/dataSource Corresponds to the JSON property dataSource

Returns:

  • (String)


2847
2848
2849
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2847

def data_source
  @data_source
end

#data_source_backup_config_infoGoogle::Apis::BackupdrV1::DataSourceBackupConfigInfo

Information of backup configuration on the DataSource. Corresponds to the JSON property dataSourceBackupConfigInfo



2852
2853
2854
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2852

def data_source_backup_config_info
  @data_source_backup_config_info
end

#data_source_backup_config_stateString

Output only. The backup configuration state of the DataSource. Corresponds to the JSON property dataSourceBackupConfigState

Returns:

  • (String)


2857
2858
2859
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2857

def data_source_backup_config_state
  @data_source_backup_config_state
end

#data_source_backup_countFixnum

Output only. Number of backups in the DataSource. Corresponds to the JSON property dataSourceBackupCount

Returns:

  • (Fixnum)


2862
2863
2864
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2862

def data_source_backup_count
  @data_source_backup_count
end

#data_source_gcp_resource_infoGoogle::Apis::BackupdrV1::DataSourceGcpResourceInfo

The Google Cloud resource that the DataSource is associated with. Corresponds to the JSON property dataSourceGcpResourceInfo



2867
2868
2869
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2867

def data_source_gcp_resource_info
  @data_source_gcp_resource_info
end

#nameString

Identifier. The resource name of the DataSourceReference. Format: projects/ project/locations/location/dataSourceReferences/data_source_reference Corresponds to the JSON property name

Returns:

  • (String)


2873
2874
2875
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2873

def name
  @name
end

#total_stored_bytesFixnum

Output only. Total size of the storage used by all backup resources for the referenced datasource. Corresponds to the JSON property totalStoredBytes

Returns:

  • (Fixnum)


2879
2880
2881
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2879

def total_stored_bytes
  @total_stored_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2886

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @data_source = args[:data_source] if args.key?(:data_source)
  @data_source_backup_config_info = args[:data_source_backup_config_info] if args.key?(:data_source_backup_config_info)
  @data_source_backup_config_state = args[:data_source_backup_config_state] if args.key?(:data_source_backup_config_state)
  @data_source_backup_count = args[:data_source_backup_count] if args.key?(:data_source_backup_count)
  @data_source_gcp_resource_info = args[:data_source_gcp_resource_info] if args.key?(:data_source_gcp_resource_info)
  @name = args[:name] if args.key?(:name)
  @total_stored_bytes = args[:total_stored_bytes] if args.key?(:total_stored_bytes)
end