Autogenerated update (2018-01-30)
Update: - appengine_v1 - appengine_v1beta - bigquerydatatransfer_v1 - cloudbuild_v1 - drive_v2 - sheets_v4
This commit is contained in:
parent
05183922d8
commit
09bf86985c
|
@ -7404,6 +7404,7 @@
|
|||
"/appengine:v1/Version/resources": resources
|
||||
"/appengine:v1/Version/runtime": runtime
|
||||
"/appengine:v1/Version/runtimeApiVersion": runtime_api_version
|
||||
"/appengine:v1/Version/runtimeChannel": runtime_channel
|
||||
"/appengine:v1/Version/servingStatus": serving_status
|
||||
"/appengine:v1/Version/threadsafe": threadsafe
|
||||
"/appengine:v1/Version/versionUrl": version_url
|
||||
|
@ -8141,6 +8142,7 @@
|
|||
"/appengine:v1beta/Version/resources": resources
|
||||
"/appengine:v1beta/Version/runtime": runtime
|
||||
"/appengine:v1beta/Version/runtimeApiVersion": runtime_api_version
|
||||
"/appengine:v1beta/Version/runtimeChannel": runtime_channel
|
||||
"/appengine:v1beta/Version/servingStatus": serving_status
|
||||
"/appengine:v1beta/Version/threadsafe": threadsafe
|
||||
"/appengine:v1beta/Version/versionUrl": version_url
|
||||
|
@ -60890,6 +60892,10 @@
|
|||
"/sheets:v4/HistogramChartSpec/series": series
|
||||
"/sheets:v4/HistogramChartSpec/series/series": series
|
||||
"/sheets:v4/HistogramChartSpec/showItemDividers": show_item_dividers
|
||||
"/sheets:v4/HistogramRule": histogram_rule
|
||||
"/sheets:v4/HistogramRule/end": end
|
||||
"/sheets:v4/HistogramRule/interval": interval
|
||||
"/sheets:v4/HistogramRule/start": start
|
||||
"/sheets:v4/HistogramSeries": histogram_series
|
||||
"/sheets:v4/HistogramSeries/barColor": bar_color
|
||||
"/sheets:v4/HistogramSeries/data": data
|
||||
|
@ -60909,6 +60915,13 @@
|
|||
"/sheets:v4/LineStyle": line_style
|
||||
"/sheets:v4/LineStyle/type": type
|
||||
"/sheets:v4/LineStyle/width": width
|
||||
"/sheets:v4/ManualRule": manual_rule
|
||||
"/sheets:v4/ManualRule/groups": groups
|
||||
"/sheets:v4/ManualRule/groups/group": group
|
||||
"/sheets:v4/ManualRuleGroup": manual_rule_group
|
||||
"/sheets:v4/ManualRuleGroup/groupName": group_name
|
||||
"/sheets:v4/ManualRuleGroup/items": items
|
||||
"/sheets:v4/ManualRuleGroup/items/item": item
|
||||
"/sheets:v4/MatchedDeveloperMetadata": matched_developer_metadata
|
||||
"/sheets:v4/MatchedDeveloperMetadata/dataFilters": data_filters
|
||||
"/sheets:v4/MatchedDeveloperMetadata/dataFilters/data_filter": data_filter
|
||||
|
@ -60964,12 +60977,18 @@
|
|||
"/sheets:v4/PivotFilterCriteria/visibleValues": visible_values
|
||||
"/sheets:v4/PivotFilterCriteria/visibleValues/visible_value": visible_value
|
||||
"/sheets:v4/PivotGroup": pivot_group
|
||||
"/sheets:v4/PivotGroup/groupRule": group_rule
|
||||
"/sheets:v4/PivotGroup/label": label
|
||||
"/sheets:v4/PivotGroup/repeatHeadings": repeat_headings
|
||||
"/sheets:v4/PivotGroup/showTotals": show_totals
|
||||
"/sheets:v4/PivotGroup/sortOrder": sort_order
|
||||
"/sheets:v4/PivotGroup/sourceColumnOffset": source_column_offset
|
||||
"/sheets:v4/PivotGroup/valueBucket": value_bucket
|
||||
"/sheets:v4/PivotGroup/valueMetadata": value_metadata
|
||||
"/sheets:v4/PivotGroup/valueMetadata/value_metadatum": value_metadatum
|
||||
"/sheets:v4/PivotGroupRule": pivot_group_rule
|
||||
"/sheets:v4/PivotGroupRule/histogramRule": histogram_rule
|
||||
"/sheets:v4/PivotGroupRule/manualRule": manual_rule
|
||||
"/sheets:v4/PivotGroupSortValueBucket": pivot_group_sort_value_bucket
|
||||
"/sheets:v4/PivotGroupSortValueBucket/buckets": buckets
|
||||
"/sheets:v4/PivotGroupSortValueBucket/buckets/bucket": bucket
|
||||
|
@ -60989,6 +61008,7 @@
|
|||
"/sheets:v4/PivotTable/values": values
|
||||
"/sheets:v4/PivotTable/values/value": value
|
||||
"/sheets:v4/PivotValue": pivot_value
|
||||
"/sheets:v4/PivotValue/calculatedDisplayType": calculated_display_type
|
||||
"/sheets:v4/PivotValue/formula": formula
|
||||
"/sheets:v4/PivotValue/name": name
|
||||
"/sheets:v4/PivotValue/sourceColumnOffset": source_column_offset
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20171220'
|
||||
REVISION = '20180129'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
|
|
@ -2735,6 +2735,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :runtime_api_version
|
||||
|
||||
# The channel of the runtime to use. Only available for some runtimes. Defaults
|
||||
# to the default channel.
|
||||
# Corresponds to the JSON property `runtimeChannel`
|
||||
# @return [String]
|
||||
attr_accessor :runtime_channel
|
||||
|
||||
# Current serving status of this version. Only the versions with a SERVING
|
||||
# status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an
|
||||
# invalid value. Defaults to SERVING.
|
||||
|
@ -2799,6 +2805,7 @@ module Google
|
|||
@resources = args[:resources] if args.key?(:resources)
|
||||
@runtime = args[:runtime] if args.key?(:runtime)
|
||||
@runtime_api_version = args[:runtime_api_version] if args.key?(:runtime_api_version)
|
||||
@runtime_channel = args[:runtime_channel] if args.key?(:runtime_channel)
|
||||
@serving_status = args[:serving_status] if args.key?(:serving_status)
|
||||
@threadsafe = args[:threadsafe] if args.key?(:threadsafe)
|
||||
@version_url = args[:version_url] if args.key?(:version_url)
|
||||
|
|
|
@ -1108,6 +1108,7 @@ module Google
|
|||
|
||||
property :runtime, as: 'runtime'
|
||||
property :runtime_api_version, as: 'runtimeApiVersion'
|
||||
property :runtime_channel, as: 'runtimeChannel'
|
||||
property :serving_status, as: 'servingStatus'
|
||||
property :threadsafe, as: 'threadsafe'
|
||||
property :version_url, as: 'versionUrl'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/appengine/docs/admin-api/
|
||||
module AppengineV1beta
|
||||
VERSION = 'V1beta'
|
||||
REVISION = '20180118'
|
||||
REVISION = '20180129'
|
||||
|
||||
# View and manage your applications deployed on Google App Engine
|
||||
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
|
||||
|
|
|
@ -2921,6 +2921,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :runtime_api_version
|
||||
|
||||
# The channel of the runtime to use. Only available for some runtimes. Defaults
|
||||
# to the default channel.
|
||||
# Corresponds to the JSON property `runtimeChannel`
|
||||
# @return [String]
|
||||
attr_accessor :runtime_channel
|
||||
|
||||
# Current serving status of this version. Only the versions with a SERVING
|
||||
# status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an
|
||||
# invalid value. Defaults to SERVING.
|
||||
|
@ -2985,6 +2991,7 @@ module Google
|
|||
@resources = args[:resources] if args.key?(:resources)
|
||||
@runtime = args[:runtime] if args.key?(:runtime)
|
||||
@runtime_api_version = args[:runtime_api_version] if args.key?(:runtime_api_version)
|
||||
@runtime_channel = args[:runtime_channel] if args.key?(:runtime_channel)
|
||||
@serving_status = args[:serving_status] if args.key?(:serving_status)
|
||||
@threadsafe = args[:threadsafe] if args.key?(:threadsafe)
|
||||
@version_url = args[:version_url] if args.key?(:version_url)
|
||||
|
|
|
@ -1177,6 +1177,7 @@ module Google
|
|||
|
||||
property :runtime, as: 'runtime'
|
||||
property :runtime_api_version, as: 'runtimeApiVersion'
|
||||
property :runtime_channel, as: 'runtimeChannel'
|
||||
property :serving_status, as: 'servingStatus'
|
||||
property :threadsafe, as: 'threadsafe'
|
||||
property :version_url, as: 'versionUrl'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigquery/
|
||||
module BigquerydatatransferV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180101'
|
||||
REVISION = '20180128'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -638,6 +638,7 @@ module Google
|
|||
# When a new transfer configuration is created, the specified
|
||||
# `destination_dataset_id` is created when needed and shared with the
|
||||
# appropriate data source service account.
|
||||
# Next id: 20
|
||||
class TransferConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-builder/docs/
|
||||
module CloudbuildV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180104'
|
||||
REVISION = '20180128'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -171,6 +171,7 @@ module Google
|
|||
# * FETCHSOURCE: time to fetch source.
|
||||
# If the build does not specify source, or does not specify images,
|
||||
# these keys will not be included.
|
||||
# @OutputOnly
|
||||
# Corresponds to the JSON property `timing`
|
||||
# @return [Hash<String,Google::Apis::CloudbuildV1::TimeSpan>]
|
||||
attr_accessor :timing
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/drive/
|
||||
module DriveV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20180112'
|
||||
REVISION = '20180122'
|
||||
|
||||
# View and manage the files in your Google Drive
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
|
|
@ -2423,7 +2423,8 @@ module Google
|
|||
# - They can only be set on user and group permissions
|
||||
# - The date must be in the future
|
||||
# - The date cannot be more than a year in the future
|
||||
# - The date can only be set on drive.permissions.update requests
|
||||
# - The date can only be set on drive.permissions.update or drive.permissions.
|
||||
# patch requests
|
||||
# Corresponds to the JSON property `expirationDate`
|
||||
# @return [DateTime]
|
||||
attr_accessor :expiration_date
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/sheets/
|
||||
module SheetsV4
|
||||
VERSION = 'V4'
|
||||
REVISION = '20180118'
|
||||
REVISION = '20180124'
|
||||
|
||||
# View and manage the files in your Google Drive
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -640,6 +640,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HistogramRule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class HistogramSeries
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -676,6 +682,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ManualRule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ManualRuleGroup
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MatchedDeveloperMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -754,6 +772,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PivotGroupRule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PivotGroupSortValueBucket
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -2137,6 +2161,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class HistogramRule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end, as: 'end'
|
||||
property :interval, as: 'interval'
|
||||
property :start, as: 'start'
|
||||
end
|
||||
end
|
||||
|
||||
class HistogramSeries
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -2191,6 +2224,24 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ManualRule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :groups, as: 'groups', class: Google::Apis::SheetsV4::ManualRuleGroup, decorator: Google::Apis::SheetsV4::ManualRuleGroup::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ManualRuleGroup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :group_name, as: 'groupName', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation
|
||||
|
||||
collection :items, as: 'items', class: Google::Apis::SheetsV4::ExtendedValue, decorator: Google::Apis::SheetsV4::ExtendedValue::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class MatchedDeveloperMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -2321,6 +2372,10 @@ module Google
|
|||
class PivotGroup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :group_rule, as: 'groupRule', class: Google::Apis::SheetsV4::PivotGroupRule, decorator: Google::Apis::SheetsV4::PivotGroupRule::Representation
|
||||
|
||||
property :label, as: 'label'
|
||||
property :repeat_headings, as: 'repeatHeadings'
|
||||
property :show_totals, as: 'showTotals'
|
||||
property :sort_order, as: 'sortOrder'
|
||||
property :source_column_offset, as: 'sourceColumnOffset'
|
||||
|
@ -2331,6 +2386,16 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class PivotGroupRule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :histogram_rule, as: 'histogramRule', class: Google::Apis::SheetsV4::HistogramRule, decorator: Google::Apis::SheetsV4::HistogramRule::Representation
|
||||
|
||||
property :manual_rule, as: 'manualRule', class: Google::Apis::SheetsV4::ManualRule, decorator: Google::Apis::SheetsV4::ManualRule::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class PivotGroupSortValueBucket
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -2369,6 +2434,7 @@ module Google
|
|||
class PivotValue
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :calculated_display_type, as: 'calculatedDisplayType'
|
||||
property :formula, as: 'formula'
|
||||
property :name, as: 'name'
|
||||
property :source_column_offset, as: 'sourceColumnOffset'
|
||||
|
|
Loading…
Reference in New Issue