Class: Google::Apis::ScriptV1::Struct

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

Overview

Struct represents a structured data value, consisting of fields which map to dynamically typed values. Based on Struct at: google3/apps/maestro/api/struct.proto?q=message%5c%20Struct

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) ⇒ Struct

Returns a new instance of Struct.



1097
1098
1099
# File 'generated/google/apis/script_v1/classes.rb', line 1097

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

Instance Attribute Details

#fieldsHash<String,Google::Apis::ScriptV1::Value>

Unordered map of dynamically typed values. Corresponds to the JSON property fields

Returns:



1095
1096
1097
# File 'generated/google/apis/script_v1/classes.rb', line 1095

def fields
  @fields
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1102
1103
1104
# File 'generated/google/apis/script_v1/classes.rb', line 1102

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