Class: Google::Apis::SqladminV1beta4::SqlInstancesGetDiskShrinkConfigResponse

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

Overview

Instance get disk shrink config response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SqlInstancesGetDiskShrinkConfigResponse

Returns a new instance of SqlInstancesGetDiskShrinkConfigResponse.



3935
3936
3937
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3935

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

Instance Attribute Details

#kindString

This is always sql#getDiskShrinkConfig. Corresponds to the JSON property kind

Returns:

  • (String)


3923
3924
3925
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3923

def kind
  @kind
end

#messageString

Additional message to customers. Corresponds to the JSON property message

Returns:

  • (String)


3928
3929
3930
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3928

def message
  @message
end

#minimal_target_size_gbFixnum

The minimum size to which a disk can be shrunk in GigaBytes. Corresponds to the JSON property minimalTargetSizeGb

Returns:

  • (Fixnum)


3933
3934
3935
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3933

def minimal_target_size_gb
  @minimal_target_size_gb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3940
3941
3942
3943
3944
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 3940

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @message = args[:message] if args.key?(:message)
  @minimal_target_size_gb = args[:minimal_target_size_gb] if args.key?(:minimal_target_size_gb)
end