Class: Google::Apis::ComputeBeta::BulkInsertDiskResource

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb

Overview

A transient resource used in compute.disks.bulkInsert and compute.regionDisks.bulkInsert. It is only used to process requests and is not persisted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BulkInsertDiskResource

Returns a new instance of BulkInsertDiskResource.



7265
7266
7267
# File 'lib/google/apis/compute_beta/classes.rb', line 7265

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

Instance Attribute Details

#instant_snapshot_group_parametersGoogle::Apis::ComputeBeta::InstantSnapshotGroupParameters

The parameters for the instant snapshot group. Corresponds to the JSON property instantSnapshotGroupParameters



7240
7241
7242
# File 'lib/google/apis/compute_beta/classes.rb', line 7240

def instant_snapshot_group_parameters
  @instant_snapshot_group_parameters
end

#snapshot_group_parametersGoogle::Apis::ComputeBeta::SnapshotGroupParameters

The parameters for the snapshot group. The usage of snapshot group feature is restricted. Corresponds to the JSON property snapshotGroupParameters



7246
7247
7248
# File 'lib/google/apis/compute_beta/classes.rb', line 7246

def snapshot_group_parameters
  @snapshot_group_parameters
end

#source_consistency_group_policyString

The URL of the DiskConsistencyGroupPolicy for the group of disks to clone. This may be a full or partial URL, such as:

- https://www.googleapis.com/compute/v1/projects/project/regions/region/ resourcePolicies/resourcePolicy

- projects/project/regions/region/resourcePolicies/resourcePolicy

- regions/region/resourcePolicies/resourcePolicy Corresponds to the JSON property sourceConsistencyGroupPolicy

Returns:

  • (String)


7263
7264
7265
# File 'lib/google/apis/compute_beta/classes.rb', line 7263

def source_consistency_group_policy
  @source_consistency_group_policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7270
7271
7272
7273
7274
# File 'lib/google/apis/compute_beta/classes.rb', line 7270

def update!(**args)
  @instant_snapshot_group_parameters = args[:instant_snapshot_group_parameters] if args.key?(:instant_snapshot_group_parameters)
  @snapshot_group_parameters = args[:snapshot_group_parameters] if args.key?(:snapshot_group_parameters)
  @source_consistency_group_policy = args[:source_consistency_group_policy] if args.key?(:source_consistency_group_policy)
end