Class: Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1RoutineSpec

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

Overview

Specification that applies to a routine. Valid only for entries with the ROUTINE type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatacatalogV1RoutineSpec

Returns a new instance of GoogleCloudDatacatalogV1RoutineSpec.



1544
1545
1546
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1544

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

Instance Attribute Details

#bigquery_routine_specGoogle::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1BigQueryRoutineSpec

Fields specific for BigQuery routines. Corresponds to the JSON property bigqueryRoutineSpec



1515
1516
1517
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1515

def bigquery_routine_spec
  @bigquery_routine_spec
end

#definition_bodyString

The body of the routine. Corresponds to the JSON property definitionBody

Returns:

  • (String)


1520
1521
1522
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1520

def definition_body
  @definition_body
end

#languageString

The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are: * SQL * JAVASCRIPT Corresponds to the JSON property language

Returns:

  • (String)


1526
1527
1528
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1526

def language
  @language
end

#return_typeString

Return type of the argument. The exact value depends on the source system and the language. Corresponds to the JSON property returnType

Returns:

  • (String)


1532
1533
1534
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1532

def return_type
  @return_type
end

#routine_argumentsArray<Google::Apis::DatacatalogV1beta1::GoogleCloudDatacatalogV1RoutineSpecArgument>

Arguments of the routine. Corresponds to the JSON property routineArguments



1537
1538
1539
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1537

def routine_arguments
  @routine_arguments
end

#routine_typeString

The type of the routine. Corresponds to the JSON property routineType

Returns:

  • (String)


1542
1543
1544
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1542

def routine_type
  @routine_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1549
1550
1551
1552
1553
1554
1555
1556
# File 'lib/google/apis/datacatalog_v1beta1/classes.rb', line 1549

def update!(**args)
  @bigquery_routine_spec = args[:bigquery_routine_spec] if args.key?(:bigquery_routine_spec)
  @definition_body = args[:definition_body] if args.key?(:definition_body)
  @language = args[:language] if args.key?(:language)
  @return_type = args[:return_type] if args.key?(:return_type)
  @routine_arguments = args[:routine_arguments] if args.key?(:routine_arguments)
  @routine_type = args[:routine_type] if args.key?(:routine_type)
end