Class: Google::Apis::BackupdrV1::DataSourceGcpResource
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::DataSourceGcpResource
- 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
DataSourceGcpResource is used for protected resources that are Google Cloud Resources. This name is easeier to understand than GcpResourceDataSource or GcpDataSourceResource
Instance Attribute Summary collapse
-
#compute_instance_datasource_properties ⇒ Google::Apis::BackupdrV1::ComputeInstanceDataSourceProperties
ComputeInstanceDataSourceProperties represents the properties of a ComputeEngine resource that are stored in the DataSource.
-
#gcp_resourcename ⇒ String
Output only.
-
#location ⇒ String
Location of the resource: //"global"/"unspecified".
-
#type ⇒ String
The type of the Google Cloud resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataSourceGcpResource
constructor
A new instance of DataSourceGcpResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataSourceGcpResource
Returns a new instance of DataSourceGcpResource.
1884 1885 1886 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1884 def initialize(**args) update!(**args) end |
Instance Attribute Details
#compute_instance_datasource_properties ⇒ Google::Apis::BackupdrV1::ComputeInstanceDataSourceProperties
ComputeInstanceDataSourceProperties represents the properties of a
ComputeEngine resource that are stored in the DataSource.
Corresponds to the JSON property computeInstanceDatasourceProperties
1866 1867 1868 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1866 def compute_instance_datasource_properties @compute_instance_datasource_properties end |
#gcp_resourcename ⇒ String
Output only. Full resource pathname URL of the source Google Cloud resource.
Corresponds to the JSON property gcpResourcename
1871 1872 1873 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1871 def gcp_resourcename @gcp_resourcename end |
#location ⇒ String
Location of the resource: //"global"/"unspecified".
Corresponds to the JSON property location
1876 1877 1878 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1876 def location @location end |
#type ⇒ String
The type of the Google Cloud resource. Use the Unified Resource Type, eg.
compute.googleapis.com/Instance.
Corresponds to the JSON property type
1882 1883 1884 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1882 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1889 1890 1891 1892 1893 1894 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1889 def update!(**args) @compute_instance_datasource_properties = args[:compute_instance_datasource_properties] if args.key?(:compute_instance_datasource_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 |