Class: Google::Apis::BackupdrV1::DataSourceGcpResourceInfo
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::DataSourceGcpResourceInfo
- 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
The Google Cloud resource that the DataSource is associated with.
Instance Attribute Summary collapse
-
#alloy_db_cluster_properties ⇒ Google::Apis::BackupdrV1::AlloyDbClusterDataSourceReferenceProperties
AlloyDBClusterDataSourceReferenceProperties represents the properties of an AlloyDB cluster that are stored in the DataSourceReference.
-
#cloud_sql_instance_properties ⇒ Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceReferenceProperties
CloudSqlInstanceDataSourceReferenceProperties represents the properties of a Cloud SQL resource that are stored in the DataSourceReference.
-
#filestore_instance_properties ⇒ Google::Apis::BackupdrV1::FilestoreInstanceDataSourceReferenceProperties
FilestoreInstanceDataSourceReferenceProperties represents the properties of a Filestore resource that are stored in the DataSourceReference.
-
#gcp_resourcename ⇒ String
Output only.
-
#location ⇒ String
Output only.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataSourceGcpResourceInfo
constructor
A new instance of DataSourceGcpResourceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataSourceGcpResourceInfo
Returns a new instance of DataSourceGcpResourceInfo.
2794 2795 2796 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2794 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alloy_db_cluster_properties ⇒ Google::Apis::BackupdrV1::AlloyDbClusterDataSourceReferenceProperties
AlloyDBClusterDataSourceReferenceProperties represents the properties of an
AlloyDB cluster that are stored in the DataSourceReference.
Corresponds to the JSON property alloyDbClusterProperties
2762 2763 2764 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2762 def alloy_db_cluster_properties @alloy_db_cluster_properties end |
#cloud_sql_instance_properties ⇒ Google::Apis::BackupdrV1::CloudSqlInstanceDataSourceReferenceProperties
CloudSqlInstanceDataSourceReferenceProperties represents the properties of a
Cloud SQL resource that are stored in the DataSourceReference.
Corresponds to the JSON property cloudSqlInstanceProperties
2768 2769 2770 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2768 def cloud_sql_instance_properties @cloud_sql_instance_properties end |
#filestore_instance_properties ⇒ Google::Apis::BackupdrV1::FilestoreInstanceDataSourceReferenceProperties
FilestoreInstanceDataSourceReferenceProperties represents the properties of a
Filestore resource that are stored in the DataSourceReference. .
Corresponds to the JSON property filestoreInstanceProperties
2774 2775 2776 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2774 def filestore_instance_properties @filestore_instance_properties end |
#gcp_resourcename ⇒ String
Output only. The resource name of the Google Cloud resource. Ex: projects/
project/zones/zone/instances/instance
Corresponds to the JSON property gcpResourcename
2780 2781 2782 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2780 def gcp_resourcename @gcp_resourcename end |
#location ⇒ String
Output only. The location of the Google Cloud resource. Ex: //"global"/"
unspecified"
Corresponds to the JSON property location
2786 2787 2788 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2786 def location @location end |
#type ⇒ String
Output only. The type of the Google Cloud resource. Ex: compute.googleapis.com/
Instance
Corresponds to the JSON property type
2792 2793 2794 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2792 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2799 2800 2801 2802 2803 2804 2805 2806 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2799 def update!(**args) @alloy_db_cluster_properties = args[:alloy_db_cluster_properties] if args.key?(:alloy_db_cluster_properties) @cloud_sql_instance_properties = args[:cloud_sql_instance_properties] if args.key?(:cloud_sql_instance_properties) @filestore_instance_properties = args[:filestore_instance_properties] if args.key?(:filestore_instance_properties) @gcp_resourcename = args[:gcp_resourcename] if args.key?(:gcp_resourcename) @location = args[:location] if args.key?(:location) @type = args[:type] if args.key?(:type) end |