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.



2983
2984
2985
# File 'lib/google/apis/storage_v1/classes.rb', line 2983

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



2970
2971
2972
# File 'lib/google/apis/storage_v1/classes.rb', line 2970

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)


2975
2976
2977
# File 'lib/google/apis/storage_v1/classes.rb', line 2975

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)


2980
2981
2982
# File 'lib/google/apis/storage_v1/classes.rb', line 2980

def validate_only
  @validate_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2988
2989
2990
2991
2992
# File 'lib/google/apis/storage_v1/classes.rb', line 2988

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