class Google::Apis::BigqueryV2::UserDefinedFunctionResource

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: cloud.google.com/ bigquery/docs/reference/standard-sql/migrating-from-legacy-sql# differences_in_user-defined_javascript_functions

Attributes

inline_code[RW]
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` @return [String]

resource_uri[RW]
Pick one

A code resource to load from a Google Cloud Storage URI (gs://

bucket/path). Corresponds to the JSON property `resourceUri` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/bigquery_v2/classes.rb, line 7457
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/bigquery_v2/classes.rb, line 7462
def update!(**args)
  @inline_code = args[:inline_code] if args.key?(:inline_code)
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
end