Deletes a style.
Gets a specific style.
Adds a new style for the table.
list(tableId, pageToken=None, maxResults=None)
Retrieves a list of styles.
list_next(previous_request, previous_response)
Retrieves the next page of results.
Updates an existing style. This method supports patch semantics.
update(tableId, styleId, body)
Updates an existing style.
delete(tableId, styleId)
Deletes a style. Args: tableId: string, Table from which the style is being deleted (required) styleId: integer, Identifier (within a table) for the style being deleted (required)
get(tableId, styleId)
Gets a specific style. Args: tableId: string, Table to which the requested style belongs (required) styleId: integer, Identifier (integer) for a specific style in a table (required) Returns: An object of the form: { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId. "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table. "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519 }, "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions. "name": "A String", # Optional name for the style setting. "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table. "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeWeight": 42, # Width of the polyon border in pixels. "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format. "strokeColor": "A String", # Color of the polygon border in #RRGGBB format. "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque). }, "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table. "strokeWeight": 42, # Width of the line in pixels. "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeColor": "A String", # Color of the line in #RRGGBB format. "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque). "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, }, "tableId": "A String", # Identifier for the table. "styleId": 42, # Identifier for the style setting (unique only within tables). }
insert(tableId, body)
Adds a new style for the table. Args: tableId: string, Table for which a new style is being added (required) body: object, The request body. (required) The object takes the form of: { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId. "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table. "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519 }, "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions. "name": "A String", # Optional name for the style setting. "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table. "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeWeight": 42, # Width of the polyon border in pixels. "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format. "strokeColor": "A String", # Color of the polygon border in #RRGGBB format. "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque). }, "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table. "strokeWeight": 42, # Width of the line in pixels. "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeColor": "A String", # Color of the line in #RRGGBB format. "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque). "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, }, "tableId": "A String", # Identifier for the table. "styleId": 42, # Identifier for the style setting (unique only within tables). } Returns: An object of the form: { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId. "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table. "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519 }, "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions. "name": "A String", # Optional name for the style setting. "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table. "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeWeight": 42, # Width of the polyon border in pixels. "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format. "strokeColor": "A String", # Color of the polygon border in #RRGGBB format. "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque). }, "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table. "strokeWeight": 42, # Width of the line in pixels. "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeColor": "A String", # Color of the line in #RRGGBB format. "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque). "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, }, "tableId": "A String", # Identifier for the table. "styleId": 42, # Identifier for the style setting (unique only within tables). }
list(tableId, pageToken=None, maxResults=None)
Retrieves a list of styles. Args: tableId: string, Table whose styles are being listed (required) pageToken: string, Continuation token specifying which result page to return. Optional. maxResults: integer, Maximum number of styles to return. Optional. Default is 5. Returns: An object of the form: { # Represents a list of styles for a given table. "nextPageToken": "A String", # Token used to access the next page of this result. No token is displayed if there are no more pages left. "items": [ # All requested style settings. { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId. "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table. "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519 }, "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions. "name": "A String", # Optional name for the style setting. "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table. "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeWeight": 42, # Width of the polyon border in pixels. "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format. "strokeColor": "A String", # Color of the polygon border in #RRGGBB format. "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque). }, "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table. "strokeWeight": 42, # Width of the line in pixels. "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeColor": "A String", # Color of the line in #RRGGBB format. "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque). "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, }, "tableId": "A String", # Identifier for the table. "styleId": 42, # Identifier for the style setting (unique only within tables). }, ], "kind": "fusiontables#styleSettingList", # Type name: in this case, a list of style settings. "totalItems": 42, # Total number of styles for the table. }
list_next(previous_request, previous_response)
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
patch(tableId, styleId, body)
Updates an existing style. This method supports patch semantics. Args: tableId: string, Table whose style is being updated. (required) styleId: integer, Identifier (within a table) for the style being updated. (required) body: object, The request body. (required) The object takes the form of: { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId. "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table. "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519 }, "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions. "name": "A String", # Optional name for the style setting. "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table. "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeWeight": 42, # Width of the polyon border in pixels. "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format. "strokeColor": "A String", # Color of the polygon border in #RRGGBB format. "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque). }, "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table. "strokeWeight": 42, # Width of the line in pixels. "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeColor": "A String", # Color of the line in #RRGGBB format. "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque). "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, }, "tableId": "A String", # Identifier for the table. "styleId": 42, # Identifier for the style setting (unique only within tables). } Returns: An object of the form: { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId. "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table. "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519 }, "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions. "name": "A String", # Optional name for the style setting. "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table. "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeWeight": 42, # Width of the polyon border in pixels. "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format. "strokeColor": "A String", # Color of the polygon border in #RRGGBB format. "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque). }, "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table. "strokeWeight": 42, # Width of the line in pixels. "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeColor": "A String", # Color of the line in #RRGGBB format. "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque). "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, }, "tableId": "A String", # Identifier for the table. "styleId": 42, # Identifier for the style setting (unique only within tables). }
update(tableId, styleId, body)
Updates an existing style. Args: tableId: string, Table whose style is being updated. (required) styleId: integer, Identifier (within a table) for the style being updated. (required) body: object, The request body. (required) The object takes the form of: { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId. "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table. "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519 }, "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions. "name": "A String", # Optional name for the style setting. "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table. "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeWeight": 42, # Width of the polyon border in pixels. "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format. "strokeColor": "A String", # Color of the polygon border in #RRGGBB format. "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque). }, "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table. "strokeWeight": 42, # Width of the line in pixels. "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeColor": "A String", # Color of the line in #RRGGBB format. "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque). "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, }, "tableId": "A String", # Identifier for the table. "styleId": 42, # Identifier for the style setting (unique only within tables). } Returns: An object of the form: { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId. "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table. "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519 }, "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions. "name": "A String", # Optional name for the style setting. "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table. "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeWeight": 42, # Width of the polyon border in pixels. "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque). "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format. "strokeColor": "A String", # Color of the polygon border in #RRGGBB format. "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque). }, "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table. "strokeWeight": 42, # Width of the line in pixels. "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, "strokeColor": "A String", # Color of the line in #RRGGBB format. "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque). "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity. "gradient": { # Gradient function that interpolates a range of colors based on column value. "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. "colors": [ # Array with two or more colors. { "color": "A String", # Color in #RRGGBB format. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). }, ], "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. }, "columnName": "A String", # Name of the column whose value is used in the style. "buckets": [ # Bucket function that assigns a style based on the range a column value falls into. { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting. "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque). "weight": 42, # Width of a line (in pixels). "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format. "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight. "icon": "A String", # Icon name used for a point. }, ], "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls. }, }, "tableId": "A String", # Identifier for the table. "styleId": 42, # Identifier for the style setting (unique only within tables). }