update thrift, opencensus, others (#893)

* update thrift, opencensus, others

* stats: update to opencensus 0.6.0 view api
This commit is contained in:
Reed Allman
2018-03-26 15:43:49 -07:00
committed by GitHub
parent 0ce5c4500b
commit 8af605cf3d
1266 changed files with 122191 additions and 28775 deletions

View File

@@ -819,7 +819,7 @@
}
}
},
"revision": "20180306",
"revision": "20180313",
"rootUrl": "https://sheets.googleapis.com/",
"schemas": {
"AddBandingRequest": {
@@ -1323,7 +1323,7 @@
"type": "array"
},
"stackedType": {
"description": "The stacked type for charts that support vertical stacking.\nApplies to Area, Bar, Column, and Stepped Area charts.",
"description": "The stacked type for charts that support vertical stacking.\nApplies to Area, Bar, Column, Combo, and Stepped Area charts.",
"enum": [
"BASIC_CHART_STACKED_TYPE_UNSPECIFIED",
"NOT_STACKED",
@@ -2334,6 +2334,10 @@
"$ref": "TextPosition",
"description": "The title text position.\nThis field is optional."
},
"treemapChart": {
"$ref": "TreemapChartSpec",
"description": "A treemap chart specification."
},
"waterfallChart": {
"$ref": "WaterfallChartSpec",
"description": "A waterfall chart specification."
@@ -5155,6 +5159,88 @@
},
"type": "object"
},
"TreemapChartColorScale": {
"description": "A color scale for a treemap chart.",
"id": "TreemapChartColorScale",
"properties": {
"maxValueColor": {
"$ref": "Color",
"description": "The background color for cells with a color value greater than or equal\nto maxValue. Defaults to #109618 if not\nspecified."
},
"midValueColor": {
"$ref": "Color",
"description": "The background color for cells with a color value at the midpoint between\nminValue and\nmaxValue. Defaults to #efe6dc if not\nspecified."
},
"minValueColor": {
"$ref": "Color",
"description": "The background color for cells with a color value less than or equal to\nminValue. Defaults to #dc3912 if not\nspecified."
},
"noDataColor": {
"$ref": "Color",
"description": "The background color for cells that have no color data associated with\nthem. Defaults to #000000 if not specified."
}
},
"type": "object"
},
"TreemapChartSpec": {
"description": "A \u003ca href=\"/chart/interactive/docs/gallery/treemap\"\u003eTreemap chart\u003c/a\u003e.",
"id": "TreemapChartSpec",
"properties": {
"colorData": {
"$ref": "ChartData",
"description": "The data that determines the background color of each treemap data cell.\nThis field is optional. If not specified, size_data will be used to\ndetermine background colors. If specified, the data is expected to be\nnumeric. color_scale will determine how the values in this data map to\ndata cell background colors."
},
"colorScale": {
"$ref": "TreemapChartColorScale",
"description": "The color scale for data cells in the treemap chart. Data cells are\nassigned colors based on their color values. These color values come from\ncolor_data, or from size_data if color_data is not specified.\nCells with color values less than or equal to min_value will\nhave minValueColor as their\nbackground color. Cells with color values greater than or equal to\nmax_value will have\nmaxValueColor as their background\ncolor. Cells with color values between min_value and max_value will\nhave background colors on a gradient between\nminValueColor and\nmaxValueColor, the midpoint of\nthe gradient being midValueColor.\nCells with missing or non-numeric color values will have\nnoDataColor as their background\ncolor."
},
"headerColor": {
"$ref": "Color",
"description": "The background color for header cells."
},
"hideTooltips": {
"description": "True to hide tooltips.",
"type": "boolean"
},
"hintedLevels": {
"description": "The number of additional data levels beyond the labeled levels to be shown\non the treemap chart. These levels are not interactive and are shown\nwithout their labels. Defaults to 0 if not specified.",
"format": "int32",
"type": "integer"
},
"labels": {
"$ref": "ChartData",
"description": "The data that contains the treemap cell labels."
},
"levels": {
"description": "The number of data levels to show on the treemap chart. These levels are\ninteractive and are shown with their labels. Defaults to 2 if not\nspecified.",
"format": "int32",
"type": "integer"
},
"maxValue": {
"description": "The maximum possible data value. Cells with values greater than this will\nhave the same color as cells with this value. If not specified, defaults\nto the actual maximum value from color_data, or the maximum value from\nsize_data if color_data is not specified.",
"format": "double",
"type": "number"
},
"minValue": {
"description": "The minimum possible data value. Cells with values less than this will\nhave the same color as cells with this value. If not specified, defaults\nto the actual minimum value from color_data, or the minimum value from\nsize_data if color_data is not specified.",
"format": "double",
"type": "number"
},
"parentLabels": {
"$ref": "ChartData",
"description": "The data the contains the treemap cells' parent labels."
},
"sizeData": {
"$ref": "ChartData",
"description": "The data that determines the size of each treemap data cell. This data is\nexpected to be numeric. The cells corresponding to non-numeric or missing\ndata will not be rendered. If color_data is not specified, this data\nwill be used to determine data cell background colors as well."
},
"textFormat": {
"$ref": "TextFormat",
"description": "The text format for all labels on the chart."
}
},
"type": "object"
},
"UnmergeCellsRequest": {
"description": "Unmerges cells in the given range.",
"id": "UnmergeCellsRequest",

View File

@@ -1114,7 +1114,7 @@ type BasicChartSpec struct {
// StackedType: The stacked type for charts that support vertical
// stacking.
// Applies to Area, Bar, Column, and Stepped Area charts.
// Applies to Area, Bar, Column, Combo, and Stepped Area charts.
//
// Possible values:
// "BASIC_CHART_STACKED_TYPE_UNSPECIFIED" - Default value, do not use.
@@ -2895,6 +2895,9 @@ type ChartSpec struct {
// This field is optional.
TitleTextPosition *TextPosition `json:"titleTextPosition,omitempty"`
// TreemapChart: A treemap chart specification.
TreemapChart *TreemapChartSpec `json:"treemapChart,omitempty"`
// WaterfallChart: A waterfall chart specification.
WaterfallChart *WaterfallChartSpec `json:"waterfallChart,omitempty"`
@@ -7888,6 +7891,186 @@ func (s *TextToColumnsRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TreemapChartColorScale: A color scale for a treemap chart.
type TreemapChartColorScale struct {
// MaxValueColor: The background color for cells with a color value
// greater than or equal
// to maxValue. Defaults to #109618 if not
// specified.
MaxValueColor *Color `json:"maxValueColor,omitempty"`
// MidValueColor: The background color for cells with a color value at
// the midpoint between
// minValue and
// maxValue. Defaults to #efe6dc if not
// specified.
MidValueColor *Color `json:"midValueColor,omitempty"`
// MinValueColor: The background color for cells with a color value less
// than or equal to
// minValue. Defaults to #dc3912 if not
// specified.
MinValueColor *Color `json:"minValueColor,omitempty"`
// NoDataColor: The background color for cells that have no color data
// associated with
// them. Defaults to #000000 if not specified.
NoDataColor *Color `json:"noDataColor,omitempty"`
// ForceSendFields is a list of field names (e.g. "MaxValueColor") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MaxValueColor") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TreemapChartColorScale) MarshalJSON() ([]byte, error) {
type NoMethod TreemapChartColorScale
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TreemapChartSpec: A <a
// href="/chart/interactive/docs/gallery/treemap">Treemap chart</a>.
type TreemapChartSpec struct {
// ColorData: The data that determines the background color of each
// treemap data cell.
// This field is optional. If not specified, size_data will be used
// to
// determine background colors. If specified, the data is expected to
// be
// numeric. color_scale will determine how the values in this data map
// to
// data cell background colors.
ColorData *ChartData `json:"colorData,omitempty"`
// ColorScale: The color scale for data cells in the treemap chart. Data
// cells are
// assigned colors based on their color values. These color values come
// from
// color_data, or from size_data if color_data is not specified.
// Cells with color values less than or equal to min_value will
// have minValueColor as their
// background color. Cells with color values greater than or equal
// to
// max_value will have
// maxValueColor as their background
// color. Cells with color values between min_value and max_value
// will
// have background colors on a gradient between
// minValueColor and
// maxValueColor, the midpoint of
// the gradient being midValueColor.
// Cells with missing or non-numeric color values will have
// noDataColor as their background
// color.
ColorScale *TreemapChartColorScale `json:"colorScale,omitempty"`
// HeaderColor: The background color for header cells.
HeaderColor *Color `json:"headerColor,omitempty"`
// HideTooltips: True to hide tooltips.
HideTooltips bool `json:"hideTooltips,omitempty"`
// HintedLevels: The number of additional data levels beyond the labeled
// levels to be shown
// on the treemap chart. These levels are not interactive and are
// shown
// without their labels. Defaults to 0 if not specified.
HintedLevels int64 `json:"hintedLevels,omitempty"`
// Labels: The data that contains the treemap cell labels.
Labels *ChartData `json:"labels,omitempty"`
// Levels: The number of data levels to show on the treemap chart. These
// levels are
// interactive and are shown with their labels. Defaults to 2 if
// not
// specified.
Levels int64 `json:"levels,omitempty"`
// MaxValue: The maximum possible data value. Cells with values greater
// than this will
// have the same color as cells with this value. If not specified,
// defaults
// to the actual maximum value from color_data, or the maximum value
// from
// size_data if color_data is not specified.
MaxValue float64 `json:"maxValue,omitempty"`
// MinValue: The minimum possible data value. Cells with values less
// than this will
// have the same color as cells with this value. If not specified,
// defaults
// to the actual minimum value from color_data, or the minimum value
// from
// size_data if color_data is not specified.
MinValue float64 `json:"minValue,omitempty"`
// ParentLabels: The data the contains the treemap cells' parent labels.
ParentLabels *ChartData `json:"parentLabels,omitempty"`
// SizeData: The data that determines the size of each treemap data
// cell. This data is
// expected to be numeric. The cells corresponding to non-numeric or
// missing
// data will not be rendered. If color_data is not specified, this
// data
// will be used to determine data cell background colors as well.
SizeData *ChartData `json:"sizeData,omitempty"`
// TextFormat: The text format for all labels on the chart.
TextFormat *TextFormat `json:"textFormat,omitempty"`
// ForceSendFields is a list of field names (e.g. "ColorData") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ColorData") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TreemapChartSpec) MarshalJSON() ([]byte, error) {
type NoMethod TreemapChartSpec
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *TreemapChartSpec) UnmarshalJSON(data []byte) error {
type NoMethod TreemapChartSpec
var s1 struct {
MaxValue gensupport.JSONFloat64 `json:"maxValue"`
MinValue gensupport.JSONFloat64 `json:"minValue"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.MaxValue = float64(s1.MaxValue)
s.MinValue = float64(s1.MinValue)
return nil
}
// UnmergeCellsRequest: Unmerges cells in the given range.
type UnmergeCellsRequest struct {
// Range: The range within which all cells should be unmerged.