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.



2819
2820
2821
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2819

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



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

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



2793
2794
2795
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2793

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



2799
2800
2801
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2799

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)


2805
2806
2807
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2805

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)


2811
2812
2813
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2811

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)


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

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2824
2825
2826
2827
2828
2829
2830
2831
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2824

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