Class: Google::Apis::BackupdrV1::DataSourceReference
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::DataSourceReference
- 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
-
#create_time ⇒ String
Output only.
-
#data_source ⇒ String
Output only.
-
#data_source_backup_config_info ⇒ Google::Apis::BackupdrV1::DataSourceBackupConfigInfo
Information of backup configuration on the DataSource.
-
#data_source_backup_config_state ⇒ String
Output only.
-
#data_source_backup_count ⇒ Fixnum
Output only.
-
#data_source_gcp_resource_info ⇒ Google::Apis::BackupdrV1::DataSourceGcpResourceInfo
The Google Cloud resource that the DataSource is associated with.
-
#name ⇒ String
Identifier.
-
#total_stored_bytes ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataSourceReference
constructor
A new instance of DataSourceReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataSourceReference
Returns a new instance of DataSourceReference.
2848 2849 2850 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2848 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the DataSourceReference was created.
Corresponds to the JSON property createTime
2808 2809 2810 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2808 def create_time @create_time end |
#data_source ⇒ String
Output only. The resource name of the DataSource. Format: projects/project/
locations/location/backupVaults/backupVault/dataSources/dataSource
Corresponds to the JSON property dataSource
2814 2815 2816 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2814 def data_source @data_source end |
#data_source_backup_config_info ⇒ Google::Apis::BackupdrV1::DataSourceBackupConfigInfo
Information of backup configuration on the DataSource.
Corresponds to the JSON property dataSourceBackupConfigInfo
2819 2820 2821 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2819 def data_source_backup_config_info @data_source_backup_config_info end |
#data_source_backup_config_state ⇒ String
Output only. The backup configuration state of the DataSource.
Corresponds to the JSON property dataSourceBackupConfigState
2824 2825 2826 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2824 def data_source_backup_config_state @data_source_backup_config_state end |
#data_source_backup_count ⇒ Fixnum
Output only. Number of backups in the DataSource.
Corresponds to the JSON property dataSourceBackupCount
2829 2830 2831 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2829 def data_source_backup_count @data_source_backup_count end |
#data_source_gcp_resource_info ⇒ Google::Apis::BackupdrV1::DataSourceGcpResourceInfo
The Google Cloud resource that the DataSource is associated with.
Corresponds to the JSON property dataSourceGcpResourceInfo
2834 2835 2836 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2834 def data_source_gcp_resource_info @data_source_gcp_resource_info end |
#name ⇒ String
Identifier. The resource name of the DataSourceReference. Format: projects/
project/locations/location/dataSourceReferences/data_source_reference
Corresponds to the JSON property name
2840 2841 2842 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2840 def name @name end |
#total_stored_bytes ⇒ Fixnum
Output only. Total size of the storage used by all backup resources for the
referenced datasource.
Corresponds to the JSON property totalStoredBytes
2846 2847 2848 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2846 def total_stored_bytes @total_stored_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2853 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 |