Skip to content

Commit

Permalink
Autogenerated update (2019-06-14)
Browse files Browse the repository at this point in the history
Update:
- bigquery_v2
- cloudasset_v1
- cloudasset_v1beta1
- cloudscheduler_v1
- cloudshell_v1
- cloudshell_v1alpha1
- logging_v2
- pubsub_v1
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- toolresults_v1beta3
  • Loading branch information
googleapis-publisher committed Jun 14, 2019
1 parent 958b94b commit 81cf904
Show file tree
Hide file tree
Showing 30 changed files with 882 additions and 331 deletions.
2 changes: 1 addition & 1 deletion generated/google/apis/bigquery_v2.rb
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://cloud.google.com/bigquery/
module BigqueryV2
VERSION = 'V2'
REVISION = '20190530'
REVISION = '20190609'

# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
Expand Down
172 changes: 172 additions & 0 deletions generated/google/apis/bigquery_v2/classes.rb
Expand Up @@ -91,6 +91,54 @@ def update!(**args)
end
end

# Input/output argument of a function or a stored procedure.
class Argument
include Google::Apis::Core::Hashable

# Optional. Defaults to FIXED_TYPE.
# Corresponds to the JSON property `argumentKind`
# @return [String]
attr_accessor :argument_kind

# The type of a variable, e.g., a function argument.
# Examples:
# INT64: `type_kind="INT64"`
# ARRAY<STRING>: `type_kind="ARRAY", array_element_type="STRING"`
# STRUCT<x STRING, y ARRAY<DATE>>:
# `type_kind="STRUCT",
# struct_type=`fields=[
# `name="x", type=`type_kind="STRING"``,
# `name="y", type=`type_kind="ARRAY", array_element_type="DATE"``
# ]``
# Corresponds to the JSON property `dataType`
# @return [Google::Apis::BigqueryV2::StandardSqlDataType]
attr_accessor :data_type

# Optional. Specifies whether the argument is input or output.
# Can be set for procedures only.
# Corresponds to the JSON property `mode`
# @return [String]
attr_accessor :mode

# Optional. The name of this argument. Can be absent for function return
# argument.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

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

# Update properties of this object
def update!(**args)
@argument_kind = args[:argument_kind] if args.key?(:argument_kind)
@data_type = args[:data_type] if args.key?(:data_type)
@mode = args[:mode] if args.key?(:mode)
@name = args[:name] if args.key?(:name)
end
end

#
class BigQueryModelTraining
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -3113,6 +3161,33 @@ def update!(**args)
end
end

#
class ListRoutinesResponse
include Google::Apis::Core::Hashable

# A token to request the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token

# Routines in the requested dataset. Only the following fields are populated:
# etag, project_id, dataset_id, routine_id, routine_type, creation_time,
# last_modified_time, language.
# Corresponds to the JSON property `routines`
# @return [Array<Google::Apis::BigqueryV2::Routine>]
attr_accessor :routines

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

# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@routines = args[:routines] if args.key?(:routines)
end
end

# BigQuery-specific metadata about a location. This will be set on
# google.cloud.location.Location.metadata in Cloud Location API
# responses.
Expand Down Expand Up @@ -3977,6 +4052,103 @@ def update!(**args)
end
end

# A user-defined function or a stored procedure.
class Routine
include Google::Apis::Core::Hashable

# Optional.
# Corresponds to the JSON property `arguments`
# @return [Array<Google::Apis::BigqueryV2::Argument>]
attr_accessor :arguments

# Output only. The time when this routine was created, in milliseconds since
# the epoch.
# Corresponds to the JSON property `creationTime`
# @return [Fixnum]
attr_accessor :creation_time

# Required. The body of the routine.
# For functions, this is the expression in the AS clause.
# If language=SQL, it is the substring inside (but excluding) the
# parentheses. For example, for the function created with the following
# statement
# create function JoinLines(x string, y string) as (concat(x, "\n", y))
# definition_body = r'concat(x, "\n", y)' (\n is not replaced with
# linebreak).
# If language=JAVASCRIPT, it is the evaluated string in the AS clause.
# For example, for the function created with the following statement
# CREATE FUNCTION f() RETURNS STRING LANGUAGE js AS 'return "\n";\n'
# definition_body = 'return "\n";\n' (both \n are replaced with
# linebreaks).
# Corresponds to the JSON property `definitionBody`
# @return [String]
attr_accessor :definition_body

# Output only. A hash of this resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag

# Optional. If language = "JAVASCRIPT", this field stores the path of the
# imported JAVASCRIPT libraries.
# Corresponds to the JSON property `importedLibraries`
# @return [Array<String>]
attr_accessor :imported_libraries

# Optional. Defaults to "SQL".
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language

# Output only. The time when this routine was last modified, in milliseconds
# since the epoch.
# Corresponds to the JSON property `lastModifiedTime`
# @return [Fixnum]
attr_accessor :last_modified_time

# The type of a variable, e.g., a function argument.
# Examples:
# INT64: `type_kind="INT64"`
# ARRAY<STRING>: `type_kind="ARRAY", array_element_type="STRING"`
# STRUCT<x STRING, y ARRAY<DATE>>:
# `type_kind="STRUCT",
# struct_type=`fields=[
# `name="x", type=`type_kind="STRING"``,
# `name="y", type=`type_kind="ARRAY", array_element_type="DATE"``
# ]``
# Corresponds to the JSON property `returnType`
# @return [Google::Apis::BigqueryV2::StandardSqlDataType]
attr_accessor :return_type

# Required. Reference describing the ID of this routine.
# Corresponds to the JSON property `routineReference`
# @return [Google::Apis::BigqueryV2::RoutineReference]
attr_accessor :routine_reference

# Required.
# Corresponds to the JSON property `routineType`
# @return [String]
attr_accessor :routine_type

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

# Update properties of this object
def update!(**args)
@arguments = args[:arguments] if args.key?(:arguments)
@creation_time = args[:creation_time] if args.key?(:creation_time)
@definition_body = args[:definition_body] if args.key?(:definition_body)
@etag = args[:etag] if args.key?(:etag)
@imported_libraries = args[:imported_libraries] if args.key?(:imported_libraries)
@language = args[:language] if args.key?(:language)
@last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
@return_type = args[:return_type] if args.key?(:return_type)
@routine_reference = args[:routine_reference] if args.key?(:routine_reference)
@routine_type = args[:routine_type] if args.key?(:routine_type)
end
end

#
class RoutineReference
include Google::Apis::Core::Hashable
Expand Down
57 changes: 57 additions & 0 deletions generated/google/apis/bigquery_v2/representations.rb
Expand Up @@ -28,6 +28,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class Argument
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class BigQueryModelTraining
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -322,6 +328,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class ListRoutinesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class LocationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -442,6 +454,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class Routine
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class RoutineReference
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -611,6 +629,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class Argument
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :argument_kind, as: 'argumentKind'
property :data_type, as: 'dataType', class: Google::Apis::BigqueryV2::StandardSqlDataType, decorator: Google::Apis::BigqueryV2::StandardSqlDataType::Representation

property :mode, as: 'mode'
property :name, as: 'name'
end
end

class BigQueryModelTraining
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -1302,6 +1331,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class ListRoutinesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :routines, as: 'routines', class: Google::Apis::BigqueryV2::Routine, decorator: Google::Apis::BigqueryV2::Routine::Representation

end
end

class LocationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -1533,6 +1571,25 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class Routine
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :arguments, as: 'arguments', class: Google::Apis::BigqueryV2::Argument, decorator: Google::Apis::BigqueryV2::Argument::Representation

property :creation_time, :numeric_string => true, as: 'creationTime'
property :definition_body, as: 'definitionBody'
property :etag, as: 'etag'
collection :imported_libraries, as: 'importedLibraries'
property :language, as: 'language'
property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
property :return_type, as: 'returnType', class: Google::Apis::BigqueryV2::StandardSqlDataType, decorator: Google::Apis::BigqueryV2::StandardSqlDataType::Representation

property :routine_reference, as: 'routineReference', class: Google::Apis::BigqueryV2::RoutineReference, decorator: Google::Apis::BigqueryV2::RoutineReference::Representation

property :routine_type, as: 'routineType'
end
end

class RoutineReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down

0 comments on commit 81cf904

Please sign in to comment.