Bump version, regen APIs

Revert api_names.yaml to pick up the manual overrides lost in v0.12.0
This commit is contained in:
Sai Cheemalapati committed 2017-06-14 10:06:42 -07:00
1 parent ebd954a53c
commit 749539e46a
314 files changed
+85436 -117727

No files matched your search

+27 -27
View File
@@ -26,24 +26,24 @@ module Google
class ScriptStackTraceElement
include Google::Apis::Core::Hashable
# The name of the function that failed.
# Corresponds to the JSON property `function`
# @return [String]
attr_accessor :function
# The line number where the script failed.
# Corresponds to the JSON property `lineNumber`
# @return [Fixnum]
attr_accessor :line_number
# The name of the function that failed.
# Corresponds to the JSON property `function`
# @return [String]
attr_accessor :function
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@function = args[:function] if args.key?(:function)
@line_number = args[:line_number] if args.key?(:line_number)
@function = args[:function] if args.key?(:function)
end
end
@@ -57,6 +57,12 @@ module Google
class ExecutionError
include Google::Apis::Core::Hashable
# An array of objects that provide a stack trace through the script to show
# where the execution failed, with the deepest call first.
# Corresponds to the JSON property `scriptStackTraceElements`
# @return [Array<Google::Apis::ScriptV1::ScriptStackTraceElement>]
attr_accessor :script_stack_trace_elements
# The error type, for example `TypeError` or `ReferenceError`. If the error
# type is unavailable, this field is not included.
# Corresponds to the JSON property `errorType`
@@ -69,21 +75,15 @@ module Google
# @return [String]
attr_accessor :error_message
# An array of objects that provide a stack trace through the script to show
# where the execution failed, with the deepest call first.
# Corresponds to the JSON property `scriptStackTraceElements`
# @return [Array<Google::Apis::ScriptV1::ScriptStackTraceElement>]
attr_accessor :script_stack_trace_elements
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements)
@error_type = args[:error_type] if args.key?(:error_type)
@error_message = args[:error_message] if args.key?(:error_message)
@script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements)
end
end
@@ -185,12 +185,6 @@ module Google
class JoinAsyncRequest
include Google::Apis::Core::Hashable
# The script id which specifies the script which all processes in the names
# field must be from.
# Corresponds to the JSON property `scriptId`
# @return [String]
attr_accessor :script_id
# List of operation resource names that we want to join,
# as returned from a call to RunAsync.
# Corresponds to the JSON property `names`
@@ -202,15 +196,21 @@ module Google
# @return [String]
attr_accessor :timeout
# The script id which specifies the script which all processes in the names
# field must be from.
# Corresponds to the JSON property `scriptId`
# @return [String]
attr_accessor :script_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@script_id = args[:script_id] if args.key?(:script_id)
@names = args[:names] if args.key?(:names)
@timeout = args[:timeout] if args.key?(:timeout)
@script_id = args[:script_id] if args.key?(:script_id)
end
end
@@ -259,12 +259,6 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# This field is not used.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
# If the script function returns successfully, this field will contain an `
# ExecutionResponse` object with the function's return value as the object's `
# result` field.
@@ -289,17 +283,23 @@ module Google
# @return [Hash<String,Object>]
attr_accessor :metadata
# This field is not used.
# Corresponds to the JSON property `done`
# @return [Boolean]
attr_accessor :done
alias_method :done?, :done
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@done = args[:done] if args.key?(:done)
@response = args[:response] if args.key?(:response)
@name = args[:name] if args.key?(:name)
@error = args[:error] if args.key?(:error)
@metadata = args[:metadata] if args.key?(:metadata)
@done = args[:done] if args.key?(:done)
end
end
@@ -73,18 +73,18 @@ module Google
class ScriptStackTraceElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :function, as: 'function'
property :line_number, as: 'lineNumber'
property :function, as: 'function'
end
end
class ExecutionError
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error_type, as: 'errorType'
property :error_message, as: 'errorMessage'
collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation
property :error_type, as: 'errorType'
property :error_message, as: 'errorMessage'
end
end
@@ -110,9 +110,9 @@ module Google
class JoinAsyncRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :script_id, as: 'scriptId'
collection :names, as: 'names'
property :timeout, as: 'timeout'
property :script_id, as: 'scriptId'
end
end
@@ -126,12 +126,12 @@ module Google
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :done, as: 'done'
hash :response, as: 'response'
property :name, as: 'name'
property :error, as: 'error', class: Google::Apis::ScriptV1::Status, decorator: Google::Apis::ScriptV1::Status::Representation
hash :metadata, as: 'metadata'
property :done, as: 'done'
end
end
+4 -4
View File
@@ -59,11 +59,11 @@ module Google
# The project key of the script to be executed. To find the project key, open
# the project in the script editor and select **File > Project properties**.
# @param [Google::Apis::ScriptV1::ExecutionRequest] execution_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
@@ -76,15 +76,15 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def run_script(script_id, execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def run_script(script_id, execution_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/scripts/{scriptId}:run', options)
command.request_representation = Google::Apis::ScriptV1::ExecutionRequest::Representation
command.request_object = execution_request_object
command.response_representation = Google::Apis::ScriptV1::Operation::Representation
command.response_class = Google::Apis::ScriptV1::Operation
command.params['scriptId'] = script_id unless script_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end