/
lookml_model_explore_field_map_layer.go
80 lines (62 loc) · 3.18 KB
/
lookml_model_explore_field_map_layer.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// LookmlModelExploreFieldMapLayer lookml model explore field map layer
// swagger:model LookmlModelExploreFieldMapLayer
type LookmlModelExploreFieldMapLayer struct {
// Specifies the URL to a JSON file that defines the geographic extents of each region available in the map layer. This data is used to automatically center the map on the available data for visualization purposes. The JSON file must be a JSON object where the keys are the mapping value of the feature (as specified by property_key) and the values are arrays of four numbers representing the west longitude, south latitude, east longitude, and north latitude extents of the region. The object must include a key for every possible value of property_key.
// Read Only: true
ExtentsJSONURL string `json:"extents_json_url,omitempty"`
// Specifies the name of the TopoJSON object that the map layer references. If not specified, use the first object..
// Read Only: true
FeatureKey string `json:"feature_key,omitempty"`
// Specifies the data format of the region information. Valid values are: "topojson", "vector_tile_region".
// Read Only: true
Format string `json:"format,omitempty"`
// The minimum zoom level that the map layer may be displayed at, for visualizations that support zooming.
// Read Only: true
MaxZoomLevel int64 `json:"max_zoom_level,omitempty"`
// The maximum zoom level that the map layer may be displayed at, for visualizations that support zooming.
// Read Only: true
MinZoomLevel int64 `json:"min_zoom_level,omitempty"`
// Name of the map layer, as defined in LookML.
// Read Only: true
Name string `json:"name,omitempty"`
// The preferred geographic projection of the map layer when displayed in a visualization that supports multiple geographic projections.
// Read Only: true
Projection string `json:"projection,omitempty"`
// Selects which property from the TopoJSON data to plot against. TopoJSON supports arbitrary metadata for each region. When null, the first matching property should be used.
// Read Only: true
PropertyKey string `json:"property_key,omitempty"`
// Which property from the TopoJSON data to use to label the region. When null, property_key should be used.
// Read Only: true
PropertyLabelKey string `json:"property_label_key,omitempty"`
// URL to the map layer resource.
// Read Only: true
URL string `json:"url,omitempty"`
}
// Validate validates this lookml model explore field map layer
func (m *LookmlModelExploreFieldMapLayer) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *LookmlModelExploreFieldMapLayer) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *LookmlModelExploreFieldMapLayer) UnmarshalBinary(b []byte) error {
var res LookmlModelExploreFieldMapLayer
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}