Class: Google::Apis::StorageV1::RelocateBucketRequest

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

Overview

A Relocate Bucket request.

Defined Under Namespace

Classes: DestinationCustomPlacementConfig

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RelocateBucketRequest

Returns a new instance of RelocateBucketRequest.



2955
2956
2957
# File 'lib/google/apis/storage_v1/classes.rb', line 2955

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

Instance Attribute Details

#destination_custom_placement_configGoogle::Apis::StorageV1::RelocateBucketRequest::DestinationCustomPlacementConfig

The bucket's new custom placement configuration if relocating to a Custom Dual Region. Corresponds to the JSON property destinationCustomPlacementConfig



2942
2943
2944
# File 'lib/google/apis/storage_v1/classes.rb', line 2942

def destination_custom_placement_config
  @destination_custom_placement_config
end

#destination_locationString

The new location the bucket will be relocated to. Corresponds to the JSON property destinationLocation

Returns:

  • (String)


2947
2948
2949
# File 'lib/google/apis/storage_v1/classes.rb', line 2947

def destination_location
  @destination_location
end

#validate_onlyBoolean Also known as: validate_only?

If true, validate the operation, but do not actually relocate the bucket. Corresponds to the JSON property validateOnly

Returns:

  • (Boolean)


2952
2953
2954
# File 'lib/google/apis/storage_v1/classes.rb', line 2952

def validate_only
  @validate_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2960
2961
2962
2963
2964
# File 'lib/google/apis/storage_v1/classes.rb', line 2960

def update!(**args)
  @destination_custom_placement_config = args[:destination_custom_placement_config] if args.key?(:destination_custom_placement_config)
  @destination_location = args[:destination_location] if args.key?(:destination_location)
  @validate_only = args[:validate_only] if args.key?(:validate_only)
end