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

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

Overview

This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users of Standard SQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the Routines API to define UDF resources. For additional information on migrating, see: https://cloud.google.com/ bigquery/docs/reference/standard-sql/migrating-from-legacy-sql# differences_in_user-defined_javascript_functions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserDefinedFunctionResource

Returns a new instance of UserDefinedFunctionResource.



8810
8811
8812
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8810

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)


8802
8803
8804
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8802

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)


8808
8809
8810
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8808

def resource_uri
  @resource_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8815
8816
8817
8818
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8815

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