Class: Google::Apis::BigqueryV2::UserDefinedFunctionResource

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

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

Returns a new instance of UserDefinedFunctionResource.



6695
6696
6697
# File 'generated/google/apis/bigquery_v2/classes.rb', line 6695

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

Instance Attribute Details

#inline_codeString

[Pick one] An inline resource that contains code for a user-defined function ( UDF). Providing a inline code resource is equivalent to providing a URI for a file containing the same code. Corresponds to the JSON property inlineCode

Returns:

  • (String)


6687
6688
6689
# File 'generated/google/apis/bigquery_v2/classes.rb', line 6687

def inline_code
  @inline_code
end

#resource_uriString

[Pick one] A code resource to load from a Google Cloud Storage URI (gs:// bucket/path). Corresponds to the JSON property resourceUri

Returns:

  • (String)


6693
6694
6695
# File 'generated/google/apis/bigquery_v2/classes.rb', line 6693

def resource_uri
  @resource_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6700
6701
6702
6703
# File 'generated/google/apis/bigquery_v2/classes.rb', line 6700

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