Class: Google::Apis::BackupdrV1::DataSourceGcpResourceInfo

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

The Google Cloud resource that the DataSource is associated with.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataSourceGcpResourceInfo

Returns a new instance of DataSourceGcpResourceInfo.



2786
2787
2788
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2786

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

Instance Attribute Details

#alloy_db_cluster_propertiesGoogle::Apis::BackupdrV1::AlloyDbClusterDataSourceReferenceProperties

AlloyDBClusterDataSourceReferenceProperties represents the properties of an AlloyDB cluster that are stored in the DataSourceReference. Corresponds to the JSON property alloyDbClusterProperties



2754
2755
2756
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2754

def alloy_db_cluster_properties
  @alloy_db_cluster_properties
end

#cloud_sql_instance_propertiesGoogle::Apis::BackupdrV1::CloudSqlInstanceDataSourceReferenceProperties

CloudSqlInstanceDataSourceReferenceProperties represents the properties of a Cloud SQL resource that are stored in the DataSourceReference. Corresponds to the JSON property cloudSqlInstanceProperties



2760
2761
2762
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2760

def cloud_sql_instance_properties
  @cloud_sql_instance_properties
end

#filestore_instance_propertiesGoogle::Apis::BackupdrV1::FilestoreInstanceDataSourceReferenceProperties

FilestoreInstanceDataSourceReferenceProperties represents the properties of a Filestore resource that are stored in the DataSourceReference. . Corresponds to the JSON property filestoreInstanceProperties



2766
2767
2768
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2766

def filestore_instance_properties
  @filestore_instance_properties
end

#gcp_resourcenameString

Output only. The resource name of the Google Cloud resource. Ex: projects/ project/zones/zone/instances/instance Corresponds to the JSON property gcpResourcename

Returns:

  • (String)


2772
2773
2774
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2772

def gcp_resourcename
  @gcp_resourcename
end

#locationString

Output only. The location of the Google Cloud resource. Ex: //"global"/" unspecified" Corresponds to the JSON property location

Returns:

  • (String)


2778
2779
2780
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2778

def location
  @location
end

#typeString

Output only. The type of the Google Cloud resource. Ex: compute.googleapis.com/ Instance Corresponds to the JSON property type

Returns:

  • (String)


2784
2785
2786
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2784

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2791
2792
2793
2794
2795
2796
2797
2798
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2791

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