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.



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

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)


2816
2817
2818
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2816

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)


2822
2823
2824
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2822

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



2827
2828
2829
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2827

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)


2832
2833
2834
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2832

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)


2837
2838
2839
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2837

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



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

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)


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

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)


2854
2855
2856
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2854

def total_stored_bytes
  @total_stored_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2861

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