Autogenerated update (2018-01-30)
Update: - appengine_v1 - appengine_v1beta - bigquerydatatransfer_v1 - cloudbuild_v1 - drive_v2 - sheets_v4
This commit is contained in:
1 parent
05183922d8
commit
09bf86985c
16 files changed
+394
-7
No files matched your search
@@ -4789,6 +4789,70 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Allows you to organize the numeric values in a source data column into
|
||||
# buckets of a constant size. All values from HistogramRule.start to
|
||||
# HistogramRule.end will be placed into groups of size
|
||||
# HistogramRule.interval. In addition, all values below
|
||||
# HistogramRule.start will be placed in one group, and all values above
|
||||
# HistogramRule.end will be placed in another. Only
|
||||
# HistogramRule.interval is required, though if HistogramRule.start
|
||||
# and HistogramRule.end are both provided, HistogramRule.start must
|
||||
# be less than HistogramRule.end. For example, a pivot table showing
|
||||
# average purchase amount by age that has 50+ rows:
|
||||
# +-----+-------------------+
|
||||
# | Age | AVERAGE of Amount |
|
||||
# +-----+-------------------+
|
||||
# | 16 | $27.13 |
|
||||
# | 17 | $5.24 |
|
||||
# | 18 | $20.15 |
|
||||
# ...
|
||||
# +-----+-------------------+
|
||||
# could be turned into a pivot table that looks like the one below by
|
||||
# applying a histogram group rule with a HistogramRule.start of 25,
|
||||
# an HistogramRule.interval of 20, and an HistogramRule.end
|
||||
# of 65.
|
||||
# +-------------+-------------------+
|
||||
# | Grouped Age | AVERAGE of Amount |
|
||||
# +-------------+-------------------+
|
||||
# | < 25 | $19.34 |
|
||||
# | 25-45 | $31.43 |
|
||||
# | 45-65 | $35.87 |
|
||||
# | > 65 | $27.55 |
|
||||
# +-------------+-------------------+
|
||||
# | Grand Total | $29.12 |
|
||||
# +-------------+-------------------+
|
||||
class HistogramRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional. The maximum value at which items will be placed into buckets
|
||||
# of constant size. Values above end will be lumped into a single bucket.
|
||||
# Corresponds to the JSON property `end`
|
||||
# @return [Float]
|
||||
attr_accessor :end
|
||||
|
||||
# Required. The size of the buckets that will be created. Must be positive.
|
||||
# Corresponds to the JSON property `interval`
|
||||
# @return [Float]
|
||||
attr_accessor :interval
|
||||
|
||||
# Optional. The minimum value at which items will be placed into buckets
|
||||
# of constant size. Values below start will be lumped into a single bucket.
|
||||
# Corresponds to the JSON property `start`
|
||||
# @return [Float]
|
||||
attr_accessor :start
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@end = args[:end] if args.key?(:end)
|
||||
@interval = args[:interval] if args.key?(:interval)
|
||||
@start = args[:start] if args.key?(:start)
|
||||
end
|
||||
end
|
||||
|
||||
# A histogram series containing the series color and data.
|
||||
class HistogramSeries
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -5186,6 +5250,78 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Allows you to manually organize the values in a source data column into
|
||||
# buckets with names of your choosing. For example, a pivot table that
|
||||
# aggregates population by state:
|
||||
# +-------+-------------------+
|
||||
# | State | SUM of Population |
|
||||
# +-------+-------------------+
|
||||
# | AK | 0.7 |
|
||||
# | AL | 4.8 |
|
||||
# | AR | 2.9 |
|
||||
# ...
|
||||
# +-------+-------------------+
|
||||
# could be turned into a pivot table that aggregates population by time zone
|
||||
# by providing a list of groups (e.g. groupName = 'Central',
|
||||
# items = ['AL', 'AR', 'IA', ...]) to a manual group rule.
|
||||
# Note that a similar effect could be achieved by adding a time zone column
|
||||
# to the source data and adjusting the pivot table.
|
||||
# +-----------+-------------------+
|
||||
# | Time Zone | SUM of Population |
|
||||
# +-----------+-------------------+
|
||||
# | Central | 106.3 |
|
||||
# | Eastern | 151.9 |
|
||||
# | Mountain | 17.4 |
|
||||
# ...
|
||||
# +-----------+-------------------+
|
||||
class ManualRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of group names and the corresponding items from the source data
|
||||
# that map to each group name.
|
||||
# Corresponds to the JSON property `groups`
|
||||
# @return [Array<Google::Apis::SheetsV4::ManualRuleGroup>]
|
||||
attr_accessor :groups
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@groups = args[:groups] if args.key?(:groups)
|
||||
end
|
||||
end
|
||||
|
||||
# A group name and a list of items from the source data that should be placed
|
||||
# in the group with this name.
|
||||
class ManualRuleGroup
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The kinds of value that a cell in a spreadsheet can have.
|
||||
# Corresponds to the JSON property `groupName`
|
||||
# @return [Google::Apis::SheetsV4::ExtendedValue]
|
||||
attr_accessor :group_name
|
||||
|
||||
# The items in the source data that should be placed into this group. Each
|
||||
# item may be a string, number, or boolean. Items may appear in at most one
|
||||
# group within a given ManualRule. Items that do not appear in any
|
||||
# group will appear on their own.
|
||||
# Corresponds to the JSON property `items`
|
||||
# @return [Array<Google::Apis::SheetsV4::ExtendedValue>]
|
||||
attr_accessor :items
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@group_name = args[:group_name] if args.key?(:group_name)
|
||||
@items = args[:items] if args.key?(:items)
|
||||
end
|
||||
end
|
||||
|
||||
# A developer metadata entry and the data filters specified in the original
|
||||
# request that matched it.
|
||||
class MatchedDeveloperMetadata
|
||||
@@ -5861,6 +5997,55 @@ module Google
|
||||
class PivotGroup
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# An optional setting on a PivotGroup that defines buckets for the values
|
||||
# in the source data column rather than breaking out each individual value.
|
||||
# Only one PivotGroup with a group rule may be added for each column in
|
||||
# the source data, though on any given column you may add both a
|
||||
# PivotGroup that has a rule and a PivotGroup that does not.
|
||||
# Corresponds to the JSON property `groupRule`
|
||||
# @return [Google::Apis::SheetsV4::PivotGroupRule]
|
||||
attr_accessor :group_rule
|
||||
|
||||
# The labels to use for the row/column groups which can be customized. For
|
||||
# example, in the following pivot table, the row label is `Region` (which
|
||||
# could be renamed to `State`) and the column label is `Product` (which
|
||||
# could be renamed `Item`). Pivot tables created before December 2017 do
|
||||
# not have header labels. If you'd like to add header labels to an existing
|
||||
# pivot table, please delete the existing pivot table and then create a new
|
||||
# pivot table with same parameters.
|
||||
# +--------------+---------+-------+
|
||||
# | SUM of Units | Product | |
|
||||
# | Region | Pen | Paper |
|
||||
# +--------------+---------+-------+
|
||||
# | New York | 345 | 98 |
|
||||
# | Oregon | 234 | 123 |
|
||||
# | Tennessee | 531 | 415 |
|
||||
# +--------------+---------+-------+
|
||||
# | Grand Total | 1110 | 636 |
|
||||
# +--------------+---------+-------+
|
||||
# Corresponds to the JSON property `label`
|
||||
# @return [String]
|
||||
attr_accessor :label
|
||||
|
||||
# True if the headings in this pivot group should be repeated.
|
||||
# This is only valid for row groupings and will be ignored by columns.
|
||||
# By default, we minimize repitition of headings by not showing higher
|
||||
# level headings where they are the same. For example, even though the
|
||||
# third row below corresponds to "Q1 Mar", "Q1" is not shown because
|
||||
# it is redundant with previous rows. Setting repeat_headings to true
|
||||
# would cause "Q1" to be repeated for "Feb" and "Mar".
|
||||
# +--------------+
|
||||
# | Q1 | Jan |
|
||||
# | | Feb |
|
||||
# | | Mar |
|
||||
# +--------+-----+
|
||||
# | Q1 Total |
|
||||
# +--------------+
|
||||
# Corresponds to the JSON property `repeatHeadings`
|
||||
# @return [Boolean]
|
||||
attr_accessor :repeat_headings
|
||||
alias_method :repeat_headings?, :repeat_headings
|
||||
|
||||
# True if the pivot table should include the totals for this grouping.
|
||||
# Corresponds to the JSON property `showTotals`
|
||||
# @return [Boolean]
|
||||
@@ -5896,6 +6081,9 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@group_rule = args[:group_rule] if args.key?(:group_rule)
|
||||
@label = args[:label] if args.key?(:label)
|
||||
@repeat_headings = args[:repeat_headings] if args.key?(:repeat_headings)
|
||||
@show_totals = args[:show_totals] if args.key?(:show_totals)
|
||||
@sort_order = args[:sort_order] if args.key?(:sort_order)
|
||||
@source_column_offset = args[:source_column_offset] if args.key?(:source_column_offset)
|
||||
@@ -5904,6 +6092,89 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# An optional setting on a PivotGroup that defines buckets for the values
|
||||
# in the source data column rather than breaking out each individual value.
|
||||
# Only one PivotGroup with a group rule may be added for each column in
|
||||
# the source data, though on any given column you may add both a
|
||||
# PivotGroup that has a rule and a PivotGroup that does not.
|
||||
class PivotGroupRule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Allows you to organize the numeric values in a source data column into
|
||||
# buckets of a constant size. All values from HistogramRule.start to
|
||||
# HistogramRule.end will be placed into groups of size
|
||||
# HistogramRule.interval. In addition, all values below
|
||||
# HistogramRule.start will be placed in one group, and all values above
|
||||
# HistogramRule.end will be placed in another. Only
|
||||
# HistogramRule.interval is required, though if HistogramRule.start
|
||||
# and HistogramRule.end are both provided, HistogramRule.start must
|
||||
# be less than HistogramRule.end. For example, a pivot table showing
|
||||
# average purchase amount by age that has 50+ rows:
|
||||
# +-----+-------------------+
|
||||
# | Age | AVERAGE of Amount |
|
||||
# +-----+-------------------+
|
||||
# | 16 | $27.13 |
|
||||
# | 17 | $5.24 |
|
||||
# | 18 | $20.15 |
|
||||
# ...
|
||||
# +-----+-------------------+
|
||||
# could be turned into a pivot table that looks like the one below by
|
||||
# applying a histogram group rule with a HistogramRule.start of 25,
|
||||
# an HistogramRule.interval of 20, and an HistogramRule.end
|
||||
# of 65.
|
||||
# +-------------+-------------------+
|
||||
# | Grouped Age | AVERAGE of Amount |
|
||||
# +-------------+-------------------+
|
||||
# | < 25 | $19.34 |
|
||||
# | 25-45 | $31.43 |
|
||||
# | 45-65 | $35.87 |
|
||||
# | > 65 | $27.55 |
|
||||
# +-------------+-------------------+
|
||||
# | Grand Total | $29.12 |
|
||||
# +-------------+-------------------+
|
||||
# Corresponds to the JSON property `histogramRule`
|
||||
# @return [Google::Apis::SheetsV4::HistogramRule]
|
||||
attr_accessor :histogram_rule
|
||||
|
||||
# Allows you to manually organize the values in a source data column into
|
||||
# buckets with names of your choosing. For example, a pivot table that
|
||||
# aggregates population by state:
|
||||
# +-------+-------------------+
|
||||
# | State | SUM of Population |
|
||||
# +-------+-------------------+
|
||||
# | AK | 0.7 |
|
||||
# | AL | 4.8 |
|
||||
# | AR | 2.9 |
|
||||
# ...
|
||||
# +-------+-------------------+
|
||||
# could be turned into a pivot table that aggregates population by time zone
|
||||
# by providing a list of groups (e.g. groupName = 'Central',
|
||||
# items = ['AL', 'AR', 'IA', ...]) to a manual group rule.
|
||||
# Note that a similar effect could be achieved by adding a time zone column
|
||||
# to the source data and adjusting the pivot table.
|
||||
# +-----------+-------------------+
|
||||
# | Time Zone | SUM of Population |
|
||||
# +-----------+-------------------+
|
||||
# | Central | 106.3 |
|
||||
# | Eastern | 151.9 |
|
||||
# | Mountain | 17.4 |
|
||||
# ...
|
||||
# +-----------+-------------------+
|
||||
# Corresponds to the JSON property `manualRule`
|
||||
# @return [Google::Apis::SheetsV4::ManualRule]
|
||||
attr_accessor :manual_rule
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@histogram_rule = args[:histogram_rule] if args.key?(:histogram_rule)
|
||||
@manual_rule = args[:manual_rule] if args.key?(:manual_rule)
|
||||
end
|
||||
end
|
||||
|
||||
# Information about which values in a pivot group should be used for sorting.
|
||||
class PivotGroupSortValueBucket
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -6043,6 +6314,16 @@ module Google
|
||||
class PivotValue
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If specified, indicates that pivot values should be displayed as
|
||||
# the result of a calculation with another pivot value. For example, if
|
||||
# calculated_display_type is specified as PERCENT_OF_GRAND_TOTAL, all the
|
||||
# pivot values will be displayed as the percentage of the grand total. In
|
||||
# the Sheets UI, this is referred to as "Show As" in the value section of a
|
||||
# pivot table.
|
||||
# Corresponds to the JSON property `calculatedDisplayType`
|
||||
# @return [String]
|
||||
attr_accessor :calculated_display_type
|
||||
|
||||
# A custom formula to calculate the value. The formula must start
|
||||
# with an `=` character.
|
||||
# Corresponds to the JSON property `formula`
|
||||
@@ -6078,6 +6359,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@calculated_display_type = args[:calculated_display_type] if args.key?(:calculated_display_type)
|
||||
@formula = args[:formula] if args.key?(:formula)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@source_column_offset = args[:source_column_offset] if args.key?(:source_column_offset)
|
||||
|
||||
Reference in new issue
Block a user