Class: Google::Apis::BackupdrV1::DataSource
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::DataSource
- 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
Message describing a DataSource object. Datasource object used to represent Datasource details for both admin and basic view.
Instance Attribute Summary collapse
-
#backup_config_info ⇒ Google::Apis::BackupdrV1::BackupConfigInfo
BackupConfigInfo has information about how the resource is configured for Backup and about the most recent backup to this vault.
-
#backup_count ⇒ Fixnum
Number of backups in the data source.
-
#config_state ⇒ String
The backup configuration state.
-
#create_time ⇒ String
Output only.
-
#data_source_backup_appliance_application ⇒ Google::Apis::BackupdrV1::DataSourceBackupApplianceApplication
BackupApplianceApplication describes a Source Resource when it is an application backed up by a BackupAppliance.
-
#data_source_gcp_resource ⇒ Google::Apis::BackupdrV1::DataSourceGcpResource
DataSourceGcpResource is used for protected resources that are Google Cloud Resources.
-
#etag ⇒ String
Server specified ETag for the ManagementServer resource to prevent simultaneous updates from overwiting each other.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#total_stored_bytes ⇒ Fixnum
The number of bytes (metadata and data) stored in this datasource.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataSource
constructor
A new instance of DataSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataSource
Returns a new instance of DataSource.
1218 1219 1220 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1218 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backup_config_info ⇒ Google::Apis::BackupdrV1::BackupConfigInfo
BackupConfigInfo has information about how the resource is configured for
Backup and about the most recent backup to this vault.
Corresponds to the JSON property backupConfigInfo
1156 1157 1158 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1156 def backup_config_info @backup_config_info end |
#backup_count ⇒ Fixnum
Number of backups in the data source.
Corresponds to the JSON property backupCount
1161 1162 1163 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1161 def backup_count @backup_count end |
#config_state ⇒ String
The backup configuration state.
Corresponds to the JSON property configState
1166 1167 1168 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1166 def config_state @config_state end |
#create_time ⇒ String
Output only. The time when the instance was created.
Corresponds to the JSON property createTime
1171 1172 1173 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1171 def create_time @create_time end |
#data_source_backup_appliance_application ⇒ Google::Apis::BackupdrV1::DataSourceBackupApplianceApplication
BackupApplianceApplication describes a Source Resource when it is an
application backed up by a BackupAppliance.
Corresponds to the JSON property dataSourceBackupApplianceApplication
1177 1178 1179 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1177 def data_source_backup_appliance_application @data_source_backup_appliance_application end |
#data_source_gcp_resource ⇒ Google::Apis::BackupdrV1::DataSourceGcpResource
DataSourceGcpResource is used for protected resources that are Google Cloud
Resources. This name is easeier to understand than GcpResourceDataSource or
GcpDataSourceResource
Corresponds to the JSON property dataSourceGcpResource
1184 1185 1186 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1184 def data_source_gcp_resource @data_source_gcp_resource end |
#etag ⇒ String
Server specified ETag for the ManagementServer resource to prevent
simultaneous updates from overwiting each other.
Corresponds to the JSON property etag
1190 1191 1192 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1190 def etag @etag end |
#labels ⇒ Hash<String,String>
Optional. Resource labels to represent user provided metadata. No labels
currently defined:
Corresponds to the JSON property labels
1196 1197 1198 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1196 def labels @labels end |
#name ⇒ String
Output only. The resource name.
Corresponds to the JSON property name
1201 1202 1203 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1201 def name @name end |
#state ⇒ String
Output only. The DataSource resource instance state.
Corresponds to the JSON property state
1206 1207 1208 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1206 def state @state end |
#total_stored_bytes ⇒ Fixnum
The number of bytes (metadata and data) stored in this datasource.
Corresponds to the JSON property totalStoredBytes
1211 1212 1213 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1211 def total_stored_bytes @total_stored_bytes end |
#update_time ⇒ String
Output only. The time when the instance was updated.
Corresponds to the JSON property updateTime
1216 1217 1218 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1216 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1223 def update!(**args) @backup_config_info = args[:backup_config_info] if args.key?(:backup_config_info) @backup_count = args[:backup_count] if args.key?(:backup_count) @config_state = args[:config_state] if args.key?(:config_state) @create_time = args[:create_time] if args.key?(:create_time) @data_source_backup_appliance_application = args[:data_source_backup_appliance_application] if args.key?(:data_source_backup_appliance_application) @data_source_gcp_resource = args[:data_source_gcp_resource] if args.key?(:data_source_gcp_resource) @etag = args[:etag] if args.key?(:etag) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @total_stored_bytes = args[:total_stored_bytes] if args.key?(:total_stored_bytes) @update_time = args[:update_time] if args.key?(:update_time) end |