Class: Google::Apis::GkehubV1beta::ConfigManagementQuantity

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

Overview

The view model of a single quantity, e.g. "800 MiB". Corresponds to https:// github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/ pkg/api/resource/generated.proto

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigManagementQuantity

Returns a new instance of ConfigManagementQuantity.



1038
1039
1040
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1038

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

Instance Attribute Details

#stringString

Stringified version of the quantity, e.g., "800 MiB". Corresponds to the JSON property string

Returns:

  • (String)


1036
1037
1038
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1036

def string
  @string
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1043
1044
1045
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 1043

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