Class: Google::Apis::FirebasedataconnectV1beta::CodeChunk
- Inherits:
-
Object
- Object
- Google::Apis::FirebasedataconnectV1beta::CodeChunk
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebasedataconnect_v1beta/classes.rb,
lib/google/apis/firebasedataconnect_v1beta/representations.rb,
lib/google/apis/firebasedataconnect_v1beta/representations.rb
Overview
A chunk of code.
Instance Attribute Summary collapse
-
#code ⇒ String
Required.
-
#language_code ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CodeChunk
constructor
A new instance of CodeChunk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CodeChunk
Returns a new instance of CodeChunk.
111 112 113 |
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 111 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
Required. The code content string.
Corresponds to the JSON property code
103 104 105 |
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 103 def code @code end |
#language_code ⇒ String
Optional. Specifies the language if we expand support beyond GraphQL (e.g.,
SQL or JSON) The standard is BCP-47 language code.
Corresponds to the JSON property languageCode
109 110 111 |
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 109 def language_code @language_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
116 117 118 119 |
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 116 def update!(**args) @code = args[:code] if args.key?(:code) @language_code = args[:language_code] if args.key?(:language_code) end |