Class: Google::Apis::FileV1::AttributeValue

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

Overview

The allowed types for [VALUE] in a [KEY]:[VALUE] attribute.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AttributeValue

Returns a new instance of AttributeValue.



45
46
47
# File 'generated/google/apis/file_v1/classes.rb', line 45

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

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

A Boolean value represented by true or false. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


32
33
34
# File 'generated/google/apis/file_v1/classes.rb', line 32

def bool_value
  @bool_value
end

#int_valueFixnum

A 64-bit signed integer. Corresponds to the JSON property intValue

Returns:

  • (Fixnum)


38
39
40
# File 'generated/google/apis/file_v1/classes.rb', line 38

def int_value
  @int_value
end

#string_valueGoogle::Apis::FileV1::TruncatableString

Represents a string that might be shortened to a specified length. Corresponds to the JSON property stringValue



43
44
45
# File 'generated/google/apis/file_v1/classes.rb', line 43

def string_value
  @string_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



50
51
52
53
54
# File 'generated/google/apis/file_v1/classes.rb', line 50

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