Regen APIs & bump version

This commit is contained in:
Steve Bazyl committed 2017-03-31 12:53:27 -07:00
1 parent 51b41edb1c
commit 70236aca40
174 files changed
+45619 -46124

No files matched your search

+47 -47
View File
@@ -22,6 +22,31 @@ module Google
module Apis
module ScriptV1
# A stack trace through the script that shows where the execution failed.
class ScriptStackTraceElement
include Google::Apis::Core::Hashable
# 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)
@line_number = args[:line_number] if args.key?(:line_number)
@function = args[:function] if args.key?(:function)
end
end
# An object that provides information about the nature of an error in the Apps
# Script Execution API. If an
# `run` call succeeds but the
@@ -68,6 +93,12 @@ module Google
class Status
include Google::Apis::Core::Hashable
# An array that contains a single `ExecutionError` object that provides
# information about the nature of the error.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
# The status code. For this API, this value will always be 3, corresponding to
# an INVALID_ARGUMENT error.
# Corresponds to the JSON property `code`
@@ -81,21 +112,15 @@ module Google
# @return [String]
attr_accessor :message
# An array that contains a single `ExecutionError` object that provides
# information about the nature of the error.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@details = args[:details] if args.key?(:details)
@code = args[:code] if args.key?(:code)
@message = args[:message] if args.key?(:message)
@details = args[:details] if args.key?(:details)
end
end
@@ -105,20 +130,6 @@ module Google
class ExecutionRequest
include Google::Apis::Core::Hashable
# For Android add-ons only. An ID that represents the user's current session
# in the Android app for Google Docs or Sheets, included as extra data in the
# [`Intent`](https://developer.android.com/guide/components/intents-filters.html)
# that launches the add-on. When an Android add-on is run with a session
# state, it gains the privileges of a
# [bound](https://developers.google.com/apps-script/guides/bound) script &mdash;
# that is, it can access information like the user's current cursor position
# (in Docs) or selected cell (in Sheets). To retrieve the state, call
# `Intent.getStringExtra("com.google.android.apps.docs.addons.SessionState")`.
# Optional.
# Corresponds to the JSON property `sessionState`
# @return [String]
attr_accessor :session_state
# The name of the function to execute in the given script. The name does not
# include parentheses or parameters.
# Corresponds to the JSON property `function`
@@ -142,16 +153,30 @@ module Google
# @return [Array<Object>]
attr_accessor :parameters
# For Android add-ons only. An ID that represents the user's current session
# in the Android app for Google Docs or Sheets, included as extra data in the
# [`Intent`](https://developer.android.com/guide/components/intents-filters.html)
# that launches the add-on. When an Android add-on is run with a session
# state, it gains the privileges of a
# [bound](https://developers.google.com/apps-script/guides/bound) script &mdash;
# that is, it can access information like the user's current cursor position
# (in Docs) or selected cell (in Sheets). To retrieve the state, call
# `Intent.getStringExtra("com.google.android.apps.docs.addons.SessionState")`.
# Optional.
# Corresponds to the JSON property `sessionState`
# @return [String]
attr_accessor :session_state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@session_state = args[:session_state] if args.key?(:session_state)
@function = args[:function] if args.key?(:function)
@dev_mode = args[:dev_mode] if args.key?(:dev_mode)
@parameters = args[:parameters] if args.key?(:parameters)
@session_state = args[:session_state] if args.key?(:session_state)
end
end
@@ -243,31 +268,6 @@ module Google
@metadata = args[:metadata] if args.key?(:metadata)
end
end
# A stack trace through the script that shows where the execution failed.
class ScriptStackTraceElement
include Google::Apis::Core::Hashable
# 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)
@line_number = args[:line_number] if args.key?(:line_number)
@function = args[:function] if args.key?(:function)
end
end
end
end
end
@@ -22,6 +22,12 @@ module Google
module Apis
module ScriptV1
class ScriptStackTraceElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExecutionError
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -53,9 +59,11 @@ module Google
end
class ScriptStackTraceElement
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line_number, as: 'lineNumber'
property :function, as: 'function'
end
end
class ExecutionError
@@ -71,19 +79,19 @@ module Google
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :details, as: 'details'
property :code, as: 'code'
property :message, as: 'message'
collection :details, as: 'details'
end
end
class ExecutionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :session_state, as: 'sessionState'
property :function, as: 'function'
property :dev_mode, as: 'devMode'
collection :parameters, as: 'parameters'
property :session_state, as: 'sessionState'
end
end
@@ -105,14 +113,6 @@ module Google
hash :metadata, as: 'metadata'
end
end
class ScriptStackTraceElement
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line_number, as: 'lineNumber'
property :function, as: 'function'
end
end
end
end
end