mapsengine

package
v0.0.0-...-c83ee8e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2015 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package mapsengine provides access to the Google Maps Engine API.

See https://developers.google.com/maps-engine/

Usage example:

import "google.golang.org/api/mapsengine/exp2"
...
mapsengineService, err := mapsengine.New(oauthHttpClient)

Index

Constants

View Source
const (
	// View and manage your Google My Maps data
	MapsengineScope = "https://www.googleapis.com/auth/mapsengine"

	// View your Google My Maps data
	MapsengineReadonlyScope = "https://www.googleapis.com/auth/mapsengine.readonly"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcquisitionTime

type AcquisitionTime struct {
	// End: The end time if acquisition time is a range. The value is an RFC
	// 3339 formatted date-time value (1970-01-01T00:00:00Z).
	End string `json:"end,omitempty"`

	// Precision: The precision of acquisition time.
	//
	// Possible values:
	//   "day"
	//   "hour"
	//   "minute"
	//   "month"
	//   "second"
	//   "year"
	Precision string `json:"precision,omitempty"`

	// Start: The acquisition time, or start time if acquisition time is a
	// range. The value is an RFC 3339 formatted date-time value
	// (1970-01-01T00:00:00Z).
	Start string `json:"start,omitempty"`

	// ForceSendFields is a list of field names (e.g. "End") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

AcquisitionTime: Acquisition time represents acquired time of a raster.

func (*AcquisitionTime) MarshalJSON

func (s *AcquisitionTime) MarshalJSON() ([]byte, error)

type Asset

type Asset struct {
	// Bbox: A rectangular bounding box which contains all of the data in
	// this asset. The box is expressed as \"west, south, east, north\". The
	// numbers represent latitude and longitude in decimal degrees.
	Bbox []float64 `json:"bbox,omitempty"`

	// CreationTime: The creation time of this asset. The value is an RFC
	// 3339-formatted date-time value (for example, 1970-01-01T00:00:00Z).
	CreationTime string `json:"creationTime,omitempty"`

	// CreatorEmail: The email address of the creator of this asset. This is
	// only returned on GET requests and not LIST requests.
	CreatorEmail string `json:"creatorEmail,omitempty"`

	// Description: The asset's description.
	Description string `json:"description,omitempty"`

	// Etag: The ETag, used to refer to the current version of the asset.
	Etag string `json:"etag,omitempty"`

	// Id: The asset's globally unique ID.
	Id string `json:"id,omitempty"`

	// LastModifiedTime: The last modified time of this asset. The value is
	// an RFC 3339-formatted date-time value (for example,
	// 1970-01-01T00:00:00Z).
	LastModifiedTime string `json:"lastModifiedTime,omitempty"`

	// LastModifierEmail: The email address of the last modifier of this
	// asset. This is only returned on GET requests and not LIST requests.
	LastModifierEmail string `json:"lastModifierEmail,omitempty"`

	// Name: The asset's name.
	Name string `json:"name,omitempty"`

	// ProjectId: The ID of the project to which the asset belongs.
	ProjectId string `json:"projectId,omitempty"`

	// Resource: The URL to query to retrieve the asset's complete object.
	// The assets endpoint only returns high-level information about a
	// resource.
	Resource string `json:"resource,omitempty"`

	// Tags: An array of text strings, with each string representing a tag.
	// More information about tags can be found in the Tagging data article
	// of the Maps Engine help center.
	Tags []string `json:"tags,omitempty"`

	// Type: The type of asset. One of raster, rasterCollection, table, map,
	// or layer.
	//
	// Possible values:
	//   "layer"
	//   "map"
	//   "raster"
	//   "rasterCollection"
	//   "table"
	Type string `json:"type,omitempty"`

	// WritersCanEditPermissions: If true, WRITERs of the asset are able to
	// edit the asset permissions.
	WritersCanEditPermissions bool `json:"writersCanEditPermissions,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Bbox") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Asset: An asset is any Google Maps Engine resource that has a globally unique ID. Assets include maps, layers, vector tables, raster collections, and rasters. Projects and features are not considered assets.

More detailed information about an asset can be obtained by querying the asset's particular endpoint.

func (*Asset) MarshalJSON

func (s *Asset) MarshalJSON() ([]byte, error)

type AssetsGetCall

type AssetsGetCall struct {
	// contains filtered or unexported fields
}

func (*AssetsGetCall) Context

func (c *AssetsGetCall) Context(ctx context.Context) *AssetsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AssetsGetCall) Do

func (c *AssetsGetCall) Do() (*Asset, error)

Do executes the "mapsengine.assets.get" call. Exactly one of *Asset or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Asset.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AssetsGetCall) Fields

func (c *AssetsGetCall) Fields(s ...googleapi.Field) *AssetsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AssetsGetCall) IfNoneMatch

func (c *AssetsGetCall) IfNoneMatch(entityTag string) *AssetsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AssetsListCall

type AssetsListCall struct {
	// contains filtered or unexported fields
}

func (*AssetsListCall) Bbox

func (c *AssetsListCall) Bbox(bbox string) *AssetsListCall

Bbox sets the optional parameter "bbox": A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this bounding box will be returned.

func (*AssetsListCall) Context

func (c *AssetsListCall) Context(ctx context.Context) *AssetsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AssetsListCall) CreatedAfter

func (c *AssetsListCall) CreatedAfter(createdAfter string) *AssetsListCall

CreatedAfter sets the optional parameter "createdAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or after this time.

func (*AssetsListCall) CreatedBefore

func (c *AssetsListCall) CreatedBefore(createdBefore string) *AssetsListCall

CreatedBefore sets the optional parameter "createdBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or before this time.

func (*AssetsListCall) CreatorEmail

func (c *AssetsListCall) CreatorEmail(creatorEmail string) *AssetsListCall

CreatorEmail sets the optional parameter "creatorEmail": An email address representing a user. Returned assets that have been created by the user associated with the provided email address.

func (*AssetsListCall) Do

Do executes the "mapsengine.assets.list" call. Exactly one of *AssetsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AssetsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AssetsListCall) Fields

func (c *AssetsListCall) Fields(s ...googleapi.Field) *AssetsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AssetsListCall) IfNoneMatch

func (c *AssetsListCall) IfNoneMatch(entityTag string) *AssetsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AssetsListCall) MaxResults

func (c *AssetsListCall) MaxResults(maxResults int64) *AssetsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 100.

func (*AssetsListCall) ModifiedAfter

func (c *AssetsListCall) ModifiedAfter(modifiedAfter string) *AssetsListCall

ModifiedAfter sets the optional parameter "modifiedAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or after this time.

func (*AssetsListCall) ModifiedBefore

func (c *AssetsListCall) ModifiedBefore(modifiedBefore string) *AssetsListCall

ModifiedBefore sets the optional parameter "modifiedBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or before this time.

func (*AssetsListCall) PageToken

func (c *AssetsListCall) PageToken(pageToken string) *AssetsListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

func (*AssetsListCall) ProjectId

func (c *AssetsListCall) ProjectId(projectId string) *AssetsListCall

ProjectId sets the optional parameter "projectId": The ID of a Maps Engine project, used to filter the response. To list all available projects with their IDs, send a Projects: list request. You can also find your project ID as the value of the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com.

func (*AssetsListCall) Role

func (c *AssetsListCall) Role(role string) *AssetsListCall

Role sets the optional parameter "role": The role parameter indicates that the response should only contain assets where the current user has the specified level of access.

Possible values:

"owner" - The user can read, write and administer the asset.
"reader" - The user can read the asset.
"writer" - The user can read and write the asset.

func (*AssetsListCall) Search

func (c *AssetsListCall) Search(search string) *AssetsListCall

Search sets the optional parameter "search": An unstructured search string used to filter the set of results based on asset metadata.

func (*AssetsListCall) Tags

func (c *AssetsListCall) Tags(tags string) *AssetsListCall

Tags sets the optional parameter "tags": A comma separated list of tags. Returned assets will contain all the tags from the list.

func (*AssetsListCall) Type

func (c *AssetsListCall) Type(type_ string) *AssetsListCall

Type sets the optional parameter "type": A comma separated list of asset types. Returned assets will have one of the types from the provided list. Supported values are 'map', 'layer', 'rasterCollection' and 'table'.

type AssetsListResponse

type AssetsListResponse struct {
	// Assets: Assets returned.
	Assets []*Asset `json:"assets,omitempty"`

	// NextPageToken: Next page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Assets") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

AssetsListResponse: The response returned by a call to resources.List.

func (*AssetsListResponse) MarshalJSON

func (s *AssetsListResponse) MarshalJSON() ([]byte, error)

type AssetsParentsListCall

type AssetsParentsListCall struct {
	// contains filtered or unexported fields
}

func (*AssetsParentsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AssetsParentsListCall) Do

Do executes the "mapsengine.assets.parents.list" call. Exactly one of *ParentsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ParentsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AssetsParentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AssetsParentsListCall) IfNoneMatch

func (c *AssetsParentsListCall) IfNoneMatch(entityTag string) *AssetsParentsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AssetsParentsListCall) MaxResults

func (c *AssetsParentsListCall) MaxResults(maxResults int64) *AssetsParentsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 50.

func (*AssetsParentsListCall) PageToken

func (c *AssetsParentsListCall) PageToken(pageToken string) *AssetsParentsListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

type AssetsParentsService

type AssetsParentsService struct {
	// contains filtered or unexported fields
}

func NewAssetsParentsService

func NewAssetsParentsService(s *Service) *AssetsParentsService

func (*AssetsParentsService) List

List: Return all parent ids of the specified asset.

type AssetsPermissionsListCall

type AssetsPermissionsListCall struct {
	// contains filtered or unexported fields
}

func (*AssetsPermissionsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AssetsPermissionsListCall) Do

Do executes the "mapsengine.assets.permissions.list" call. Exactly one of *PermissionsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AssetsPermissionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AssetsPermissionsListCall) IfNoneMatch

func (c *AssetsPermissionsListCall) IfNoneMatch(entityTag string) *AssetsPermissionsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AssetsPermissionsService

type AssetsPermissionsService struct {
	// contains filtered or unexported fields
}

func NewAssetsPermissionsService

func NewAssetsPermissionsService(s *Service) *AssetsPermissionsService

func (*AssetsPermissionsService) List

List: Return all of the permissions for the specified asset.

type AssetsService

type AssetsService struct {
	Parents *AssetsParentsService

	Permissions *AssetsPermissionsService
	// contains filtered or unexported fields
}

func NewAssetsService

func NewAssetsService(s *Service) *AssetsService

func (*AssetsService) Get

func (r *AssetsService) Get(id string) *AssetsGetCall

Get: Return metadata for a particular asset.

func (*AssetsService) List

func (r *AssetsService) List() *AssetsListCall

List: Return all assets readable by the current user.

type Border

type Border struct {
	// Color: Color of the border.
	Color string `json:"color,omitempty"`

	// Opacity: Opacity of the border.
	Opacity float64 `json:"opacity,omitempty"`

	// Width: Width of the border, in pixels.
	Width float64 `json:"width,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Color") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Border: Border in line style. Both color and width are required.

func (*Border) MarshalJSON

func (s *Border) MarshalJSON() ([]byte, error)

type Color

type Color struct {
	// Color: The CSS style color, can be in format of "red" or "#7733EE".
	Color string `json:"color,omitempty"`

	// Opacity: Opacity ranges from 0 to 1, inclusive. If not provided,
	// default to 1.
	Opacity float64 `json:"opacity,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Color") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Color: Basic color used in styling.

func (*Color) MarshalJSON

func (s *Color) MarshalJSON() ([]byte, error)

type Datasource

type Datasource struct {
	// Id: The ID of a datasource.
	Id string `json:"id,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Id") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*Datasource) MarshalJSON

func (s *Datasource) MarshalJSON() ([]byte, error)

type DisplayRule

type DisplayRule struct {
	// Filters: This display rule will only be applied to features that
	// match all of the filters here. If filters is empty, then the rule
	// applies to all features.
	Filters []*Filter `json:"filters,omitempty"`

	// LineOptions: Style applied to lines. Required for LineString
	// Geometry.
	LineOptions *LineStyle `json:"lineOptions,omitempty"`

	// Name: Display rule name. Name is not unique and cannot be used for
	// identification purpose.
	Name string `json:"name,omitempty"`

	// PointOptions: Style applied to points. Required for Point Geometry.
	PointOptions *PointStyle `json:"pointOptions,omitempty"`

	// PolygonOptions: Style applied to polygons. Required for Polygon
	// Geometry.
	PolygonOptions *PolygonStyle `json:"polygonOptions,omitempty"`

	// ZoomLevels: The zoom levels that this display rule apply.
	ZoomLevels *ZoomLevels `json:"zoomLevels,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Filters") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

DisplayRule: A display rule of the vector style.

func (*DisplayRule) MarshalJSON

func (s *DisplayRule) MarshalJSON() ([]byte, error)

type Feature

type Feature struct {
	// Geometry: The geometry member of this Feature.
	Geometry GeoJsonGeometry `json:"geometry,omitempty"`

	// Properties: Key/value pairs of this Feature.
	Properties GeoJsonProperties `json:"properties,omitempty"`

	// Type: Identifies this object as a feature.
	Type string `json:"type,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Geometry") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Feature: A feature within a table.

func (*Feature) MarshalJSON

func (s *Feature) MarshalJSON() ([]byte, error)

type FeatureInfo

type FeatureInfo struct {
	// Content: HTML template of the info window. If not provided, a default
	// template with all attributes will be generated.
	Content string `json:"content,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Content") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

FeatureInfo: A feature info contains information about individual feature.

func (*FeatureInfo) MarshalJSON

func (s *FeatureInfo) MarshalJSON() ([]byte, error)

type FeaturesBatchDeleteRequest

type FeaturesBatchDeleteRequest struct {
	GxIds []string `json:"gx_ids,omitempty"`

	PrimaryKeys []string `json:"primaryKeys,omitempty"`

	// ForceSendFields is a list of field names (e.g. "GxIds") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

FeaturesBatchDeleteRequest: The request sent to features.BatchDelete.

func (*FeaturesBatchDeleteRequest) MarshalJSON

func (s *FeaturesBatchDeleteRequest) MarshalJSON() ([]byte, error)

type FeaturesBatchInsertRequest

type FeaturesBatchInsertRequest struct {
	Features []*Feature `json:"features,omitempty"`

	// NormalizeGeometries: If true, the server will normalize feature
	// geometries. It is assumed that the South Pole is exterior to any
	// polygons given. See here for a list of normalizations. If false, all
	// feature geometries must be given already normalized. The points in
	// all LinearRings must be listed in counter-clockwise order, and
	// LinearRings may not intersect.
	//
	// Default: true
	NormalizeGeometries *bool `json:"normalizeGeometries,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Features") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

FeaturesBatchInsertRequest: The request sent to features.Insert.

func (*FeaturesBatchInsertRequest) MarshalJSON

func (s *FeaturesBatchInsertRequest) MarshalJSON() ([]byte, error)

type FeaturesBatchPatchRequest

type FeaturesBatchPatchRequest struct {
	Features []*Feature `json:"features,omitempty"`

	// NormalizeGeometries: If true, the server will normalize feature
	// geometries. It is assumed that the South Pole is exterior to any
	// polygons given. See here for a list of normalizations. If false, all
	// feature geometries must be given already normalized. The points in
	// all LinearRings must be listed in counter-clockwise order, and
	// LinearRings may not intersect.
	//
	// Default: true
	NormalizeGeometries *bool `json:"normalizeGeometries,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Features") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

FeaturesBatchPatchRequest: The request sent to features.BatchPatch.

func (*FeaturesBatchPatchRequest) MarshalJSON

func (s *FeaturesBatchPatchRequest) MarshalJSON() ([]byte, error)

type FeaturesListResponse

type FeaturesListResponse struct {
	// AllowedQueriesPerSecond: An indicator of the maximum rate at which
	// queries may be made, if all queries were as expensive as this query.
	AllowedQueriesPerSecond float64 `json:"allowedQueriesPerSecond,omitempty"`

	// Features: Resources returned.
	Features []*Feature `json:"features,omitempty"`

	// NextPageToken: Next page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Schema: The feature schema.
	Schema *Schema `json:"schema,omitempty"`

	Type string `json:"type,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g.
	// "AllowedQueriesPerSecond") to unconditionally include in API
	// requests. By default, fields with empty values are omitted from API
	// requests. However, any non-pointer, non-interface field appearing in
	// ForceSendFields will be sent to the server regardless of whether the
	// field is empty or not. This may be used to include empty fields in
	// Patch requests.
	ForceSendFields []string `json:"-"`
}

FeaturesListResponse: The response returned by a call to features.List.

func (*FeaturesListResponse) MarshalJSON

func (s *FeaturesListResponse) MarshalJSON() ([]byte, error)

type File

type File struct {
	// Filename: The name of the file.
	Filename string `json:"filename,omitempty"`

	// Size: The size of the file in bytes.
	Size int64 `json:"size,omitempty,string"`

	// UploadStatus: The upload status of the file.
	//
	// Possible values:
	//   "canceled"
	//   "complete"
	//   "failed"
	//   "inProgress"
	UploadStatus string `json:"uploadStatus,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Filename") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

File: A single File, which is a component of an Asset.

func (*File) MarshalJSON

func (s *File) MarshalJSON() ([]byte, error)

type Filter

type Filter struct {
	// Column: The column name to filter on.
	Column string `json:"column,omitempty"`

	// Operator: Operation used to evaluate the filter.
	//
	// Possible values:
	//   "!="
	//   "<"
	//   "<="
	//   "=="
	//   ">"
	//   ">="
	//   "contains"
	//   "endsWith"
	//   "startsWith"
	Operator string `json:"operator,omitempty"`

	// Value: Value to be evaluated against attribute.
	Value interface{} `json:"value,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Column") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Filter: Conditions for filtering features.

func (*Filter) MarshalJSON

func (s *Filter) MarshalJSON() ([]byte, error)

type GeoJsonGeometry

type GeoJsonGeometry map[string]interface{}

func (GeoJsonGeometry) GeometryCollection

func (t GeoJsonGeometry) GeometryCollection() (r GeoJsonGeometryCollection, ok bool)

func (GeoJsonGeometry) LineString

func (t GeoJsonGeometry) LineString() (r GeoJsonLineString, ok bool)

func (GeoJsonGeometry) MultiLineString

func (t GeoJsonGeometry) MultiLineString() (r GeoJsonMultiLineString, ok bool)

func (GeoJsonGeometry) MultiPoint

func (t GeoJsonGeometry) MultiPoint() (r GeoJsonMultiPoint, ok bool)

func (GeoJsonGeometry) MultiPolygon

func (t GeoJsonGeometry) MultiPolygon() (r GeoJsonMultiPolygon, ok bool)

func (GeoJsonGeometry) Point

func (t GeoJsonGeometry) Point() (r GeoJsonPoint, ok bool)

func (GeoJsonGeometry) Polygon

func (t GeoJsonGeometry) Polygon() (r GeoJsonPolygon, ok bool)

func (GeoJsonGeometry) Type

func (t GeoJsonGeometry) Type() string

type GeoJsonGeometryCollection

type GeoJsonGeometryCollection struct {
	// Geometries: An array of geometry objects. There must be at least 2
	// different types of geometries in the array.
	Geometries []GeoJsonGeometry `json:"geometries,omitempty"`

	// Type: Identifies this object as a GeoJsonGeometryCollection.
	//
	// Possible values:
	//   "GeometryCollection"
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Geometries") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

GeoJsonGeometryCollection: A heterogenous collection of GeoJsonGeometry objects.

func (*GeoJsonGeometryCollection) MarshalJSON

func (s *GeoJsonGeometryCollection) MarshalJSON() ([]byte, error)

type GeoJsonLineString

type GeoJsonLineString struct {
	// Coordinates: An array of two or more positions, representing a line.
	Coordinates [][]float64 `json:"coordinates,omitempty"`

	// Type: Identifies this object as a GeoJsonLineString.
	//
	// Possible values:
	//   "LineString"
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Coordinates") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*GeoJsonLineString) MarshalJSON

func (s *GeoJsonLineString) MarshalJSON() ([]byte, error)

type GeoJsonMultiLineString

type GeoJsonMultiLineString struct {
	// Coordinates: An array of at least two GeoJsonLineString coordinate
	// arrays.
	Coordinates [][][]float64 `json:"coordinates,omitempty"`

	// Type: Identifies this object as a GeoJsonMultiLineString.
	//
	// Possible values:
	//   "MultiLineString"
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Coordinates") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

GeoJsonMultiLineString: Multi Line String

func (*GeoJsonMultiLineString) MarshalJSON

func (s *GeoJsonMultiLineString) MarshalJSON() ([]byte, error)

type GeoJsonMultiPoint

type GeoJsonMultiPoint struct {
	// Coordinates: An array of at least two GeoJsonPoint coordinate arrays.
	Coordinates [][]float64 `json:"coordinates,omitempty"`

	// Type: Identifies this object as a GeoJsonMultiPoint.
	//
	// Possible values:
	//   "MultiPoint"
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Coordinates") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*GeoJsonMultiPoint) MarshalJSON

func (s *GeoJsonMultiPoint) MarshalJSON() ([]byte, error)

type GeoJsonMultiPolygon

type GeoJsonMultiPolygon struct {
	// Coordinates: An array of at least two GeoJsonPolygon coordinate
	// arrays.
	Coordinates [][][][]float64 `json:"coordinates,omitempty"`

	// Type: Identifies this object as a GeoJsonMultiPolygon.
	//
	// Possible values:
	//   "MultiPolygon"
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Coordinates") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*GeoJsonMultiPolygon) MarshalJSON

func (s *GeoJsonMultiPolygon) MarshalJSON() ([]byte, error)

type GeoJsonPoint

type GeoJsonPoint struct {
	// Coordinates: A single GeoJsonPosition, specifying the location of the
	// point.
	Coordinates []float64 `json:"coordinates,omitempty"`

	// Type: Identifies this object as a GeoJsonPoint.
	//
	// Possible values:
	//   "Point"
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Coordinates") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*GeoJsonPoint) MarshalJSON

func (s *GeoJsonPoint) MarshalJSON() ([]byte, error)

type GeoJsonPolygon

type GeoJsonPolygon struct {
	// Coordinates: An array of LinearRings. A LinearRing is a
	// GeoJsonLineString which is closed (that is, the first and last
	// GeoJsonPositions are equal), and which contains at least four
	// GeoJsonPositions. For polygons with multiple rings, the first
	// LinearRing is the exterior ring, and any subsequent rings are
	// interior rings (that is, holes).
	Coordinates [][][]float64 `json:"coordinates,omitempty"`

	// Type: Identifies this object as a GeoJsonPolygon.
	//
	// Possible values:
	//   "Polygon"
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Coordinates") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*GeoJsonPolygon) MarshalJSON

func (s *GeoJsonPolygon) MarshalJSON() ([]byte, error)

type GeoJsonProperties

type GeoJsonProperties interface{}

type Icon

type Icon struct {
	// Description: The description of this Icon, supplied by the author.
	Description string `json:"description,omitempty"`

	// Id: An ID used to refer to this Icon.
	Id string `json:"id,omitempty"`

	// Name: The name of this Icon, supplied by the author.
	Name string `json:"name,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Description") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Icon: An icon is a user-uploaded image that can be used to style point geometries.

func (*Icon) MarshalJSON

func (s *Icon) MarshalJSON() ([]byte, error)

type IconStyle

type IconStyle struct {
	// Id: Custom icon id.
	Id string `json:"id,omitempty"`

	// Name: Stock icon name. To use a stock icon, prefix it with 'gx_'. See
	// Stock icon names for valid icon names. For example, to specify
	// small_red, set name to 'gx_small_red'.
	Name string `json:"name,omitempty"`

	// ScaledShape: A scalable shape.
	ScaledShape *ScaledShape `json:"scaledShape,omitempty"`

	// ScalingFunction: The function used to scale shapes. Required when a
	// scaledShape is specified.
	ScalingFunction *ScalingFunction `json:"scalingFunction,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Id") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

IconStyle: Style for icon, this is part of point style.

func (*IconStyle) MarshalJSON

func (s *IconStyle) MarshalJSON() ([]byte, error)

type IconsListResponse

type IconsListResponse struct {
	// Icons: Resources returned.
	Icons []*Icon `json:"icons,omitempty"`

	// NextPageToken: Next page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Icons") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

IconsListResponse: The response returned by a call to icons.List.

func (*IconsListResponse) MarshalJSON

func (s *IconsListResponse) MarshalJSON() ([]byte, error)

type LabelStyle

type LabelStyle struct {
	// Color: Color of the text. If not provided, default to black.
	Color string `json:"color,omitempty"`

	// Column: The column value of the feature to be displayed.
	Column string `json:"column,omitempty"`

	// FontStyle: Font style of the label, defaults to 'normal'.
	//
	// Possible values:
	//   "italic"
	//   "normal"
	FontStyle string `json:"fontStyle,omitempty"`

	// FontWeight: Font weight of the label, defaults to 'normal'.
	//
	// Possible values:
	//   "bold"
	//   "normal"
	FontWeight string `json:"fontWeight,omitempty"`

	// Opacity: Opacity of the text.
	Opacity float64 `json:"opacity,omitempty"`

	// Outline: Outline color of the text.
	Outline *Color `json:"outline,omitempty"`

	// Size: Font size of the label, in pixels. 8 <= size <= 15. If not
	// provided, a default size will be provided.
	Size float64 `json:"size,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Color") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

LabelStyle: Text label style.

func (*LabelStyle) MarshalJSON

func (s *LabelStyle) MarshalJSON() ([]byte, error)

type Layer

type Layer struct {
	// Bbox: A rectangular bounding box which contains all of the data in
	// this Layer. The box is expressed as \"west, south, east, north\". The
	// numbers represent latitude and longitude in decimal degrees.
	Bbox []float64 `json:"bbox,omitempty"`

	// CreationTime: The creation time of this layer. The value is an RFC
	// 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
	CreationTime string `json:"creationTime,omitempty"`

	// CreatorEmail: The email address of the creator of this layer. This is
	// only returned on GET requests and not LIST requests.
	CreatorEmail string `json:"creatorEmail,omitempty"`

	// DatasourceType: Deprecated: The type of the datasources used to build
	// this Layer. Note: This has been replaced by layerType, but is still
	// available for now to maintain backward compatibility.
	//
	// Possible values:
	//   "image"
	//   "table"
	DatasourceType string `json:"datasourceType,omitempty"`

	// Datasources: An array of datasources used to build this layer. If
	// layerType is "image", or layerType is not specified and
	// datasourceType is "image", then each element in this array is a
	// reference to an Image or RasterCollection. If layerType is "vector",
	// or layerType is not specified and datasourceType is "table" then each
	// element in this array is a reference to a Vector Table. Note:
	// Datasources are returned in response to a get request but not a list
	// request. After requesting a list of layers, you'll need to send a get
	// request to retrieve the datasources for each layer.
	Datasources []*Datasource `json:"datasources,omitempty"`

	// Description: The description of this Layer, supplied by the author.
	Description string `json:"description,omitempty"`

	// DraftAccessList: Deprecated: The name of an access list of the Map
	// Editor type. The user on whose behalf the request is being sent must
	// be an editor on that access list. Note: Google Maps Engine no longer
	// uses access lists. Instead, each asset has its own list of
	// permissions. For backward compatibility, the API still accepts access
	// lists for projects that are already using access lists. If you
	// created a GME account/project after July 14th, 2014, you will not be
	// able to send API requests that include access lists. Note: This is an
	// input field only. It is not returned in response to a list or get
	// request.
	DraftAccessList string `json:"draftAccessList,omitempty"`

	// Etag: The ETag, used to refer to the current version of the asset.
	Etag string `json:"etag,omitempty"`

	// Id: A globally unique ID, used to refer to this Layer.
	Id string `json:"id,omitempty"`

	// LastModifiedTime: The last modified time of this layer. The value is
	// an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
	LastModifiedTime string `json:"lastModifiedTime,omitempty"`

	// LastModifierEmail: The email address of the last modifier of this
	// layer. This is only returned on GET requests and not LIST requests.
	LastModifierEmail string `json:"lastModifierEmail,omitempty"`

	// LayerType: The type of the datasources used to build this Layer. This
	// should be used instead of datasourceType. At least one of layerType
	// and datasourceType and must be specified, but layerType takes
	// precedence.
	//
	// Possible values:
	//   "image"
	//   "vector"
	LayerType string `json:"layerType,omitempty"`

	// Name: The name of this Layer, supplied by the author.
	Name string `json:"name,omitempty"`

	// ProcessingStatus: The processing status of this layer.
	//
	// Possible values:
	//   "complete"
	//   "failed"
	//   "notReady"
	//   "processing"
	//   "ready"
	ProcessingStatus string `json:"processingStatus,omitempty"`

	// ProjectId: The ID of the project that this Layer is in.
	ProjectId string `json:"projectId,omitempty"`

	// PublishedAccessList: Deprecated: The access list to whom view
	// permissions are granted. The value must be the name of a Maps Engine
	// access list of the Map Viewer type, and the user must be a viewer on
	// that list. Note: Google Maps Engine no longer uses access lists.
	// Instead, each asset has its own list of permissions. For backward
	// compatibility, the API still accepts access lists for projects that
	// are already using access lists. If you created a GME account/project
	// after July 14th, 2014, you will not be able to send API requests that
	// include access lists. Note: This is an input field only. It is not
	// returned in response to a list or get request.
	PublishedAccessList string `json:"publishedAccessList,omitempty"`

	// PublishingStatus: The publishing status of this layer.
	//
	// Possible values:
	//   "notPublished"
	//   "published"
	PublishingStatus string `json:"publishingStatus,omitempty"`

	// Style: The styling information for a vector layer. Note: Style
	// information is returned in response to a get request but not a list
	// request. After requesting a list of layers, you'll need to send a get
	// request to retrieve the VectorStyles for each layer.
	Style *VectorStyle `json:"style,omitempty"`

	// Tags: Tags of this Layer.
	Tags []string `json:"tags,omitempty"`

	// WritersCanEditPermissions: If true, WRITERs of the asset are able to
	// edit the asset permissions.
	WritersCanEditPermissions bool `json:"writersCanEditPermissions,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Bbox") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Layer: A Layer combines multiple datasources, with styling information, for presentation on a map.

func (*Layer) MarshalJSON

func (s *Layer) MarshalJSON() ([]byte, error)

type LayersCancelProcessingCall

type LayersCancelProcessingCall struct {
	// contains filtered or unexported fields
}

func (*LayersCancelProcessingCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersCancelProcessingCall) Do

Do executes the "mapsengine.layers.cancelProcessing" call. Exactly one of *ProcessResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProcessResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersCancelProcessingCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LayersCreateCall

type LayersCreateCall struct {
	// contains filtered or unexported fields
}

func (*LayersCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersCreateCall) Do

func (c *LayersCreateCall) Do() (*Layer, error)

Do executes the "mapsengine.layers.create" call. Exactly one of *Layer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Layer.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LayersCreateCall) Process

func (c *LayersCreateCall) Process(process bool) *LayersCreateCall

Process sets the optional parameter "process": Whether to queue the created layer for processing.

type LayersDeleteCall

type LayersDeleteCall struct {
	// contains filtered or unexported fields
}

func (*LayersDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersDeleteCall) Do

func (c *LayersDeleteCall) Do() error

Do executes the "mapsengine.layers.delete" call.

func (*LayersDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LayersGetCall

type LayersGetCall struct {
	// contains filtered or unexported fields
}

func (*LayersGetCall) Context

func (c *LayersGetCall) Context(ctx context.Context) *LayersGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersGetCall) Do

func (c *LayersGetCall) Do() (*Layer, error)

Do executes the "mapsengine.layers.get" call. Exactly one of *Layer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Layer.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersGetCall) Fields

func (c *LayersGetCall) Fields(s ...googleapi.Field) *LayersGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LayersGetCall) IfNoneMatch

func (c *LayersGetCall) IfNoneMatch(entityTag string) *LayersGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*LayersGetCall) Version

func (c *LayersGetCall) Version(version string) *LayersGetCall

Version sets the optional parameter "version": Deprecated: The version parameter indicates which version of the layer should be returned. When version is set to published, the published version of the layer will be returned. Please use the layers.getPublished endpoint instead.

Possible values:

"draft" - The draft version.
"published" - The published version.

type LayersGetPublishedCall

type LayersGetPublishedCall struct {
	// contains filtered or unexported fields
}

func (*LayersGetPublishedCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersGetPublishedCall) Do

Do executes the "mapsengine.layers.getPublished" call. Exactly one of *PublishedLayer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PublishedLayer.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersGetPublishedCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LayersGetPublishedCall) IfNoneMatch

func (c *LayersGetPublishedCall) IfNoneMatch(entityTag string) *LayersGetPublishedCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type LayersListCall

type LayersListCall struct {
	// contains filtered or unexported fields
}

func (*LayersListCall) Bbox

func (c *LayersListCall) Bbox(bbox string) *LayersListCall

Bbox sets the optional parameter "bbox": A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this bounding box will be returned.

func (*LayersListCall) Context

func (c *LayersListCall) Context(ctx context.Context) *LayersListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersListCall) CreatedAfter

func (c *LayersListCall) CreatedAfter(createdAfter string) *LayersListCall

CreatedAfter sets the optional parameter "createdAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or after this time.

func (*LayersListCall) CreatedBefore

func (c *LayersListCall) CreatedBefore(createdBefore string) *LayersListCall

CreatedBefore sets the optional parameter "createdBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or before this time.

func (*LayersListCall) CreatorEmail

func (c *LayersListCall) CreatorEmail(creatorEmail string) *LayersListCall

CreatorEmail sets the optional parameter "creatorEmail": An email address representing a user. Returned assets that have been created by the user associated with the provided email address.

func (*LayersListCall) Do

Do executes the "mapsengine.layers.list" call. Exactly one of *LayersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LayersListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersListCall) Fields

func (c *LayersListCall) Fields(s ...googleapi.Field) *LayersListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LayersListCall) IfNoneMatch

func (c *LayersListCall) IfNoneMatch(entityTag string) *LayersListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*LayersListCall) MaxResults

func (c *LayersListCall) MaxResults(maxResults int64) *LayersListCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 100.

func (*LayersListCall) ModifiedAfter

func (c *LayersListCall) ModifiedAfter(modifiedAfter string) *LayersListCall

ModifiedAfter sets the optional parameter "modifiedAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or after this time.

func (*LayersListCall) ModifiedBefore

func (c *LayersListCall) ModifiedBefore(modifiedBefore string) *LayersListCall

ModifiedBefore sets the optional parameter "modifiedBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or before this time.

func (*LayersListCall) PageToken

func (c *LayersListCall) PageToken(pageToken string) *LayersListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

func (*LayersListCall) ProcessingStatus

func (c *LayersListCall) ProcessingStatus(processingStatus string) *LayersListCall

ProcessingStatus sets the optional parameter "processingStatus":

Possible values:

"complete" - The layer has completed processing.
"failed" - The layer has failed processing.
"notReady" - The layer is not ready for processing.
"processing" - The layer is processing.
"ready" - The layer is ready for processing.

func (*LayersListCall) ProjectId

func (c *LayersListCall) ProjectId(projectId string) *LayersListCall

ProjectId sets the optional parameter "projectId": The ID of a Maps Engine project, used to filter the response. To list all available projects with their IDs, send a Projects: list request. You can also find your project ID as the value of the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com.

func (*LayersListCall) Role

func (c *LayersListCall) Role(role string) *LayersListCall

Role sets the optional parameter "role": The role parameter indicates that the response should only contain assets where the current user has the specified level of access.

Possible values:

"owner" - The user can read, write and administer the asset.
"reader" - The user can read the asset.
"writer" - The user can read and write the asset.

func (*LayersListCall) Search

func (c *LayersListCall) Search(search string) *LayersListCall

Search sets the optional parameter "search": An unstructured search string used to filter the set of results based on asset metadata.

func (*LayersListCall) Tags

func (c *LayersListCall) Tags(tags string) *LayersListCall

Tags sets the optional parameter "tags": A comma separated list of tags. Returned assets will contain all the tags from the list.

type LayersListPublishedCall

type LayersListPublishedCall struct {
	// contains filtered or unexported fields
}

func (*LayersListPublishedCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersListPublishedCall) Do

Do executes the "mapsengine.layers.listPublished" call. Exactly one of *PublishedLayersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PublishedLayersListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersListPublishedCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LayersListPublishedCall) IfNoneMatch

func (c *LayersListPublishedCall) IfNoneMatch(entityTag string) *LayersListPublishedCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*LayersListPublishedCall) MaxResults

func (c *LayersListPublishedCall) MaxResults(maxResults int64) *LayersListPublishedCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 100.

func (*LayersListPublishedCall) PageToken

func (c *LayersListPublishedCall) PageToken(pageToken string) *LayersListPublishedCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

func (*LayersListPublishedCall) ProjectId

func (c *LayersListPublishedCall) ProjectId(projectId string) *LayersListPublishedCall

ProjectId sets the optional parameter "projectId": The ID of a Maps Engine project, used to filter the response. To list all available projects with their IDs, send a Projects: list request. You can also find your project ID as the value of the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com.

func (*LayersListPublishedCall) Search

Search sets the optional parameter "search": An unstructured search string used to filter the set of results based on asset metadata.

type LayersListResponse

type LayersListResponse struct {
	// Layers: Resources returned.
	Layers []*Layer `json:"layers,omitempty"`

	// NextPageToken: Next page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Layers") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

LayersListResponse: The response returned by a call to layers.List. Note: The list response does not include all the fields available in a layer. Refer to the layer resource description for details of the fields that are not included. You'll need to send a get request to retrieve the additional fields for each layer.

func (*LayersListResponse) MarshalJSON

func (s *LayersListResponse) MarshalJSON() ([]byte, error)

type LayersParentsListCall

type LayersParentsListCall struct {
	// contains filtered or unexported fields
}

func (*LayersParentsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersParentsListCall) Do

Do executes the "mapsengine.layers.parents.list" call. Exactly one of *ParentsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ParentsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersParentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LayersParentsListCall) IfNoneMatch

func (c *LayersParentsListCall) IfNoneMatch(entityTag string) *LayersParentsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*LayersParentsListCall) MaxResults

func (c *LayersParentsListCall) MaxResults(maxResults int64) *LayersParentsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 50.

func (*LayersParentsListCall) PageToken

func (c *LayersParentsListCall) PageToken(pageToken string) *LayersParentsListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

type LayersParentsService

type LayersParentsService struct {
	// contains filtered or unexported fields
}

func NewLayersParentsService

func NewLayersParentsService(s *Service) *LayersParentsService

func (*LayersParentsService) List

List: Return all parent ids of the specified layer.

type LayersPatchCall

type LayersPatchCall struct {
	// contains filtered or unexported fields
}

func (*LayersPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersPatchCall) Do

func (c *LayersPatchCall) Do() error

Do executes the "mapsengine.layers.patch" call.

func (*LayersPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LayersPermissionsBatchDeleteCall

type LayersPermissionsBatchDeleteCall struct {
	// contains filtered or unexported fields
}

func (*LayersPermissionsBatchDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersPermissionsBatchDeleteCall) Do

Do executes the "mapsengine.layers.permissions.batchDelete" call. Exactly one of *PermissionsBatchDeleteResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsBatchDeleteResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersPermissionsBatchDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LayersPermissionsBatchUpdateCall

type LayersPermissionsBatchUpdateCall struct {
	// contains filtered or unexported fields
}

func (*LayersPermissionsBatchUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersPermissionsBatchUpdateCall) Do

Do executes the "mapsengine.layers.permissions.batchUpdate" call. Exactly one of *PermissionsBatchUpdateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsBatchUpdateResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersPermissionsBatchUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LayersPermissionsListCall

type LayersPermissionsListCall struct {
	// contains filtered or unexported fields
}

func (*LayersPermissionsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersPermissionsListCall) Do

Do executes the "mapsengine.layers.permissions.list" call. Exactly one of *PermissionsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersPermissionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LayersPermissionsListCall) IfNoneMatch

func (c *LayersPermissionsListCall) IfNoneMatch(entityTag string) *LayersPermissionsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type LayersPermissionsService

type LayersPermissionsService struct {
	// contains filtered or unexported fields
}

func NewLayersPermissionsService

func NewLayersPermissionsService(s *Service) *LayersPermissionsService

func (*LayersPermissionsService) BatchDelete

func (r *LayersPermissionsService) BatchDelete(id string, permissionsbatchdeleterequest *PermissionsBatchDeleteRequest) *LayersPermissionsBatchDeleteCall

BatchDelete: Remove permission entries from an already existing asset.

func (*LayersPermissionsService) BatchUpdate

func (r *LayersPermissionsService) BatchUpdate(id string, permissionsbatchupdaterequest *PermissionsBatchUpdateRequest) *LayersPermissionsBatchUpdateCall

BatchUpdate: Add or update permission entries to an already existing asset.

An asset can hold up to 20 different permission entries. Each batchInsert request is atomic.

func (*LayersPermissionsService) List

List: Return all of the permissions for the specified asset.

type LayersProcessCall

type LayersProcessCall struct {
	// contains filtered or unexported fields
}

func (*LayersProcessCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersProcessCall) Do

Do executes the "mapsengine.layers.process" call. Exactly one of *ProcessResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProcessResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersProcessCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LayersPublishCall

type LayersPublishCall struct {
	// contains filtered or unexported fields
}

func (*LayersPublishCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersPublishCall) Do

Do executes the "mapsengine.layers.publish" call. Exactly one of *PublishResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PublishResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersPublishCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LayersPublishCall) Force

func (c *LayersPublishCall) Force(force bool) *LayersPublishCall

Force sets the optional parameter "force": If set to true, the API will allow publication of the layer even if it's out of date. If not true, you'll need to reprocess any out-of-date layer before publishing.

type LayersService

type LayersService struct {
	Parents *LayersParentsService

	Permissions *LayersPermissionsService
	// contains filtered or unexported fields
}

func NewLayersService

func NewLayersService(s *Service) *LayersService

func (*LayersService) CancelProcessing

func (r *LayersService) CancelProcessing(id string) *LayersCancelProcessingCall

CancelProcessing: Cancel processing on a layer asset.

func (*LayersService) Create

func (r *LayersService) Create(layer *Layer) *LayersCreateCall

Create: Create a layer asset.

func (*LayersService) Delete

func (r *LayersService) Delete(id string) *LayersDeleteCall

Delete: Delete a layer.

func (*LayersService) Get

func (r *LayersService) Get(id string) *LayersGetCall

Get: Return metadata for a particular layer.

func (*LayersService) GetPublished

func (r *LayersService) GetPublished(id string) *LayersGetPublishedCall

GetPublished: Return the published metadata for a particular layer.

func (*LayersService) List

func (r *LayersService) List() *LayersListCall

List: Return all layers readable by the current user.

func (*LayersService) ListPublished

func (r *LayersService) ListPublished() *LayersListPublishedCall

ListPublished: Return all published layers readable by the current user.

func (*LayersService) Patch

func (r *LayersService) Patch(id string, layer *Layer) *LayersPatchCall

Patch: Mutate a layer asset.

func (*LayersService) Process

func (r *LayersService) Process(id string) *LayersProcessCall

Process: Process a layer asset.

func (*LayersService) Publish

func (r *LayersService) Publish(id string) *LayersPublishCall

Publish: Publish a layer asset.

func (*LayersService) Unpublish

func (r *LayersService) Unpublish(id string) *LayersUnpublishCall

Unpublish: Unpublish a layer asset.

type LayersUnpublishCall

type LayersUnpublishCall struct {
	// contains filtered or unexported fields
}

func (*LayersUnpublishCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LayersUnpublishCall) Do

Do executes the "mapsengine.layers.unpublish" call. Exactly one of *PublishResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PublishResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LayersUnpublishCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LineStyle

type LineStyle struct {
	// Border: Border of the line. 0 < border.width <= 5.
	Border *Border `json:"border,omitempty"`

	// Dash: Dash defines the pattern of the line, the values are pixel
	// lengths of alternating dash and gap. If dash is not provided, then it
	// means a solid line. Dash can contain up to 10 values and must contain
	// even number of values.
	Dash []float64 `json:"dash,omitempty"`

	// Label: Label style for the line.
	Label *LabelStyle `json:"label,omitempty"`

	// Stroke: Stroke of the line.
	Stroke *LineStyleStroke `json:"stroke,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Border") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

LineStyle: Style for lines.

func (*LineStyle) MarshalJSON

func (s *LineStyle) MarshalJSON() ([]byte, error)

type LineStyleStroke

type LineStyleStroke struct {
	// Color: Color of the line.
	Color string `json:"color,omitempty"`

	// Opacity: Opacity of the line.
	Opacity float64 `json:"opacity,omitempty"`

	// Width: Width of the line, in pixels. 0 <= width <= 10. If width is
	// set to 0, the line will be invisible.
	Width float64 `json:"width,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Color") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

LineStyleStroke: Stroke of the line.

func (*LineStyleStroke) MarshalJSON

func (s *LineStyleStroke) MarshalJSON() ([]byte, error)

type Map

type Map struct {
	// Bbox: A rectangular bounding box which contains all of the data in
	// this Map. The box is expressed as \"west, south, east, north\". The
	// numbers represent latitude and longitude in decimal degrees.
	Bbox []float64 `json:"bbox,omitempty"`

	// Contents: The contents of this Map.
	Contents []MapItem `json:"contents,omitempty"`

	// CreationTime: The creation time of this map. The value is an RFC 3339
	// formatted date-time value (e.g. 1970-01-01T00:00:00Z).
	CreationTime string `json:"creationTime,omitempty"`

	// CreatorEmail: The email address of the creator of this map. This is
	// only returned on GET requests and not LIST requests.
	CreatorEmail string `json:"creatorEmail,omitempty"`

	// DefaultViewport: An array of four numbers (west, south, east, north)
	// which defines the rectangular bounding box of the default viewport.
	// The numbers represent latitude and longitude in decimal degrees.
	DefaultViewport []float64 `json:"defaultViewport,omitempty"`

	// Description: The description of this Map, supplied by the author.
	Description string `json:"description,omitempty"`

	// DraftAccessList: Deprecated: The name of an access list of the Map
	// Editor type. The user on whose behalf the request is being sent must
	// be an editor on that access list. Note: Google Maps Engine no longer
	// uses access lists. Instead, each asset has its own list of
	// permissions. For backward compatibility, the API still accepts access
	// lists for projects that are already using access lists. If you
	// created a GME account/project after July 14th, 2014, you will not be
	// able to send API requests that include access lists. Note: This is an
	// input field only. It is not returned in response to a list or get
	// request.
	DraftAccessList string `json:"draftAccessList,omitempty"`

	// Etag: The ETag, used to refer to the current version of the asset.
	Etag string `json:"etag,omitempty"`

	// Id: A globally unique ID, used to refer to this Map.
	Id string `json:"id,omitempty"`

	// LastModifiedTime: The last modified time of this map. The value is an
	// RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
	LastModifiedTime string `json:"lastModifiedTime,omitempty"`

	// LastModifierEmail: The email address of the last modifier of this
	// map. This is only returned on GET requests and not LIST requests.
	LastModifierEmail string `json:"lastModifierEmail,omitempty"`

	// Name: The name of this Map, supplied by the author.
	Name string `json:"name,omitempty"`

	// ProcessingStatus: The processing status of this map. Map processing
	// is automatically started once a map becomes ready for processing.
	//
	// Possible values:
	//   "complete"
	//   "failed"
	//   "notReady"
	//   "processing"
	//   "ready"
	ProcessingStatus string `json:"processingStatus,omitempty"`

	// ProjectId: The ID of the project that this Map is in.
	ProjectId string `json:"projectId,omitempty"`

	// PublishedAccessList: Deprecated: The access list to whom view
	// permissions are granted. The value must be the name of a Maps Engine
	// access list of the Map Viewer type, and the user must be a viewer on
	// that list. Note: Google Maps Engine no longer uses access lists.
	// Instead, each asset has its own list of permissions. For backward
	// compatibility, the API still accepts access lists for projects that
	// are already using access lists. If you created a GME account/project
	// after July 14th, 2014, you will not be able to send API requests that
	// include access lists. This is an input field only. It is not returned
	// in response to a list or get request.
	PublishedAccessList string `json:"publishedAccessList,omitempty"`

	// PublishingStatus: The publishing status of this map.
	//
	// Possible values:
	//   "notPublished"
	//   "published"
	PublishingStatus string `json:"publishingStatus,omitempty"`

	// Tags: Tags of this Map.
	Tags []string `json:"tags,omitempty"`

	// Versions: Deprecated: An array containing the available versions of
	// this Map. Currently may only contain "published". The
	// publishingStatus field should be used instead.
	Versions []string `json:"versions,omitempty"`

	// WritersCanEditPermissions: If true, WRITERs of the asset are able to
	// edit the asset permissions.
	WritersCanEditPermissions bool `json:"writersCanEditPermissions,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Bbox") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Map: A Map is a collection of Layers, optionally contained within folders.

func (*Map) MarshalJSON

func (s *Map) MarshalJSON() ([]byte, error)

type MapFolder

type MapFolder struct {
	Contents []MapItem `json:"contents,omitempty"`

	// DefaultViewport: An array of four numbers (west, south, east, north)
	// which defines the rectangular bounding box of the default viewport.
	// The numbers represent latitude and longitude in decimal degrees.
	DefaultViewport []float64 `json:"defaultViewport,omitempty"`

	// Expandable: The expandability setting of this MapFolder. If true, the
	// folder can be expanded.
	Expandable bool `json:"expandable,omitempty"`

	// Key: A user defined alias for this MapFolder, specific to this Map.
	Key string `json:"key,omitempty"`

	// Name: The name of this MapFolder.
	Name string `json:"name,omitempty"`

	// Type: Identifies this object as a MapFolder.
	//
	// Possible values:
	//   "folder"
	Type string `json:"type,omitempty"`

	// Visibility: The visibility setting of this MapFolder. One of
	// "defaultOn" or "defaultOff".
	Visibility string `json:"visibility,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Contents") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*MapFolder) MarshalJSON

func (s *MapFolder) MarshalJSON() ([]byte, error)

type MapItem

type MapItem map[string]interface{}

func (MapItem) Folder

func (t MapItem) Folder() (r MapFolder, ok bool)
func (t MapItem) KmlLink() (r MapKmlLink, ok bool)

func (MapItem) Layer

func (t MapItem) Layer() (r MapLayer, ok bool)

func (MapItem) Type

func (t MapItem) Type() string
type MapKmlLink struct {
	// DefaultViewport: An array of four numbers (west, south, east, north)
	// which defines the rectangular bounding box of the default viewport.
	// The numbers represent latitude and longitude in decimal degrees.
	DefaultViewport []float64 `json:"defaultViewport,omitempty"`

	// KmlUrl: The URL to the KML file represented by this MapKmlLink.
	KmlUrl string `json:"kmlUrl,omitempty"`

	// Name: The name of this MapKmlLink.
	Name string `json:"name,omitempty"`

	// Type: Identifies this object as a MapKmlLink.
	//
	// Possible values:
	//   "kmlLink"
	Type string `json:"type,omitempty"`

	// Visibility: The visibility setting of this MapKmlLink. One of
	// "defaultOn" or "defaultOff".
	Visibility string `json:"visibility,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DefaultViewport") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*MapKmlLink) MarshalJSON

func (s *MapKmlLink) MarshalJSON() ([]byte, error)

type MapLayer

type MapLayer struct {
	// DefaultViewport: An array of four numbers (west, south, east, north)
	// which defines the rectangular bounding box of the default viewport.
	// The numbers represent latitude and longitude in decimal degrees.
	DefaultViewport []float64 `json:"defaultViewport,omitempty"`

	// Id: The ID of this MapLayer. This ID can be used to request more
	// details about the layer.
	Id string `json:"id,omitempty"`

	// Key: A user defined alias for this MapLayer, specific to this Map.
	Key string `json:"key,omitempty"`

	// Name: The name of this MapLayer.
	Name string `json:"name,omitempty"`

	// Type: Identifies this object as a MapLayer.
	//
	// Possible values:
	//   "layer"
	Type string `json:"type,omitempty"`

	// Visibility: The visibility setting of this MapLayer. One of
	// "defaultOn" or "defaultOff".
	Visibility string `json:"visibility,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DefaultViewport") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*MapLayer) MarshalJSON

func (s *MapLayer) MarshalJSON() ([]byte, error)

type MapsCreateCall

type MapsCreateCall struct {
	// contains filtered or unexported fields
}

func (*MapsCreateCall) Context

func (c *MapsCreateCall) Context(ctx context.Context) *MapsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MapsCreateCall) Do

func (c *MapsCreateCall) Do() (*Map, error)

Do executes the "mapsengine.maps.create" call. Exactly one of *Map or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Map.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MapsCreateCall) Fields

func (c *MapsCreateCall) Fields(s ...googleapi.Field) *MapsCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type MapsDeleteCall

type MapsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*MapsDeleteCall) Context

func (c *MapsDeleteCall) Context(ctx context.Context) *MapsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MapsDeleteCall) Do

func (c *MapsDeleteCall) Do() error

Do executes the "mapsengine.maps.delete" call.

func (*MapsDeleteCall) Fields

func (c *MapsDeleteCall) Fields(s ...googleapi.Field) *MapsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type MapsGetCall

type MapsGetCall struct {
	// contains filtered or unexported fields
}

func (*MapsGetCall) Context

func (c *MapsGetCall) Context(ctx context.Context) *MapsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MapsGetCall) Do

func (c *MapsGetCall) Do() (*Map, error)

Do executes the "mapsengine.maps.get" call. Exactly one of *Map or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Map.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MapsGetCall) Fields

func (c *MapsGetCall) Fields(s ...googleapi.Field) *MapsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MapsGetCall) IfNoneMatch

func (c *MapsGetCall) IfNoneMatch(entityTag string) *MapsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*MapsGetCall) Version

func (c *MapsGetCall) Version(version string) *MapsGetCall

Version sets the optional parameter "version": Deprecated: The version parameter indicates which version of the map should be returned. When version is set to published, the published version of the map will be returned. Please use the maps.getPublished endpoint instead.

Possible values:

"draft" - The draft version.
"published" - The published version.

type MapsGetPublishedCall

type MapsGetPublishedCall struct {
	// contains filtered or unexported fields
}

func (*MapsGetPublishedCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MapsGetPublishedCall) Do

Do executes the "mapsengine.maps.getPublished" call. Exactly one of *PublishedMap or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PublishedMap.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MapsGetPublishedCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MapsGetPublishedCall) IfNoneMatch

func (c *MapsGetPublishedCall) IfNoneMatch(entityTag string) *MapsGetPublishedCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type MapsListCall

type MapsListCall struct {
	// contains filtered or unexported fields
}

func (*MapsListCall) Bbox

func (c *MapsListCall) Bbox(bbox string) *MapsListCall

Bbox sets the optional parameter "bbox": A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this bounding box will be returned.

func (*MapsListCall) Context

func (c *MapsListCall) Context(ctx context.Context) *MapsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MapsListCall) CreatedAfter

func (c *MapsListCall) CreatedAfter(createdAfter string) *MapsListCall

CreatedAfter sets the optional parameter "createdAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or after this time.

func (*MapsListCall) CreatedBefore

func (c *MapsListCall) CreatedBefore(createdBefore string) *MapsListCall

CreatedBefore sets the optional parameter "createdBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or before this time.

func (*MapsListCall) CreatorEmail

func (c *MapsListCall) CreatorEmail(creatorEmail string) *MapsListCall

CreatorEmail sets the optional parameter "creatorEmail": An email address representing a user. Returned assets that have been created by the user associated with the provided email address.

func (*MapsListCall) Do

func (c *MapsListCall) Do() (*MapsListResponse, error)

Do executes the "mapsengine.maps.list" call. Exactly one of *MapsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MapsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MapsListCall) Fields

func (c *MapsListCall) Fields(s ...googleapi.Field) *MapsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MapsListCall) IfNoneMatch

func (c *MapsListCall) IfNoneMatch(entityTag string) *MapsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*MapsListCall) MaxResults

func (c *MapsListCall) MaxResults(maxResults int64) *MapsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 100.

func (*MapsListCall) ModifiedAfter

func (c *MapsListCall) ModifiedAfter(modifiedAfter string) *MapsListCall

ModifiedAfter sets the optional parameter "modifiedAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or after this time.

func (*MapsListCall) ModifiedBefore

func (c *MapsListCall) ModifiedBefore(modifiedBefore string) *MapsListCall

ModifiedBefore sets the optional parameter "modifiedBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or before this time.

func (*MapsListCall) PageToken

func (c *MapsListCall) PageToken(pageToken string) *MapsListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

func (*MapsListCall) ProcessingStatus

func (c *MapsListCall) ProcessingStatus(processingStatus string) *MapsListCall

ProcessingStatus sets the optional parameter "processingStatus":

Possible values:

"complete" - The map has completed processing.
"failed" - The map has failed processing.
"notReady" - The map is not ready for processing.
"processing" - The map is processing.

func (*MapsListCall) ProjectId

func (c *MapsListCall) ProjectId(projectId string) *MapsListCall

ProjectId sets the optional parameter "projectId": The ID of a Maps Engine project, used to filter the response. To list all available projects with their IDs, send a Projects: list request. You can also find your project ID as the value of the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com.

func (*MapsListCall) Role

func (c *MapsListCall) Role(role string) *MapsListCall

Role sets the optional parameter "role": The role parameter indicates that the response should only contain assets where the current user has the specified level of access.

Possible values:

"owner" - The user can read, write and administer the asset.
"reader" - The user can read the asset.
"writer" - The user can read and write the asset.

func (*MapsListCall) Search

func (c *MapsListCall) Search(search string) *MapsListCall

Search sets the optional parameter "search": An unstructured search string used to filter the set of results based on asset metadata.

func (*MapsListCall) Tags

func (c *MapsListCall) Tags(tags string) *MapsListCall

Tags sets the optional parameter "tags": A comma separated list of tags. Returned assets will contain all the tags from the list.

func (*MapsListCall) Version

func (c *MapsListCall) Version(version string) *MapsListCall

Version sets the optional parameter "version": Deprecated: The version parameter indicates which version of the maps should be returned. When version is set to published this parameter will filter the result set to include only maps that are published. Please use the maps.listPublished endpoint instead.

Possible values:

"draft" - The draft version.
"published" - The published version.

type MapsListPublishedCall

type MapsListPublishedCall struct {
	// contains filtered or unexported fields
}

func (*MapsListPublishedCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MapsListPublishedCall) Do

Do executes the "mapsengine.maps.listPublished" call. Exactly one of *PublishedMapsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PublishedMapsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MapsListPublishedCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MapsListPublishedCall) IfNoneMatch

func (c *MapsListPublishedCall) IfNoneMatch(entityTag string) *MapsListPublishedCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*MapsListPublishedCall) MaxResults

func (c *MapsListPublishedCall) MaxResults(maxResults int64) *MapsListPublishedCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 100.

func (*MapsListPublishedCall) PageToken

func (c *MapsListPublishedCall) PageToken(pageToken string) *MapsListPublishedCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

func (*MapsListPublishedCall) ProjectId

func (c *MapsListPublishedCall) ProjectId(projectId string) *MapsListPublishedCall

ProjectId sets the optional parameter "projectId": The ID of a Maps Engine project, used to filter the response. To list all available projects with their IDs, send a Projects: list request. You can also find your project ID as the value of the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com.

func (*MapsListPublishedCall) Search

Search sets the optional parameter "search": An unstructured search string used to filter the set of results based on asset metadata.

type MapsListResponse

type MapsListResponse struct {
	// Maps: Resources returned.
	Maps []*Map `json:"maps,omitempty"`

	// NextPageToken: Next page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Maps") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

MapsListResponse: The response returned by a call to maps.List.

func (*MapsListResponse) MarshalJSON

func (s *MapsListResponse) MarshalJSON() ([]byte, error)

type MapsPatchCall

type MapsPatchCall struct {
	// contains filtered or unexported fields
}

func (*MapsPatchCall) Context

func (c *MapsPatchCall) Context(ctx context.Context) *MapsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MapsPatchCall) Do

func (c *MapsPatchCall) Do() error

Do executes the "mapsengine.maps.patch" call.

func (*MapsPatchCall) Fields

func (c *MapsPatchCall) Fields(s ...googleapi.Field) *MapsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type MapsPermissionsBatchDeleteCall

type MapsPermissionsBatchDeleteCall struct {
	// contains filtered or unexported fields
}

func (*MapsPermissionsBatchDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MapsPermissionsBatchDeleteCall) Do

Do executes the "mapsengine.maps.permissions.batchDelete" call. Exactly one of *PermissionsBatchDeleteResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsBatchDeleteResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MapsPermissionsBatchDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type MapsPermissionsBatchUpdateCall

type MapsPermissionsBatchUpdateCall struct {
	// contains filtered or unexported fields
}

func (*MapsPermissionsBatchUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MapsPermissionsBatchUpdateCall) Do

Do executes the "mapsengine.maps.permissions.batchUpdate" call. Exactly one of *PermissionsBatchUpdateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsBatchUpdateResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MapsPermissionsBatchUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type MapsPermissionsListCall

type MapsPermissionsListCall struct {
	// contains filtered or unexported fields
}

func (*MapsPermissionsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MapsPermissionsListCall) Do

Do executes the "mapsengine.maps.permissions.list" call. Exactly one of *PermissionsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MapsPermissionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MapsPermissionsListCall) IfNoneMatch

func (c *MapsPermissionsListCall) IfNoneMatch(entityTag string) *MapsPermissionsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type MapsPermissionsService

type MapsPermissionsService struct {
	// contains filtered or unexported fields
}

func NewMapsPermissionsService

func NewMapsPermissionsService(s *Service) *MapsPermissionsService

func (*MapsPermissionsService) BatchDelete

func (r *MapsPermissionsService) BatchDelete(id string, permissionsbatchdeleterequest *PermissionsBatchDeleteRequest) *MapsPermissionsBatchDeleteCall

BatchDelete: Remove permission entries from an already existing asset.

func (*MapsPermissionsService) BatchUpdate

func (r *MapsPermissionsService) BatchUpdate(id string, permissionsbatchupdaterequest *PermissionsBatchUpdateRequest) *MapsPermissionsBatchUpdateCall

BatchUpdate: Add or update permission entries to an already existing asset.

An asset can hold up to 20 different permission entries. Each batchInsert request is atomic.

func (*MapsPermissionsService) List

List: Return all of the permissions for the specified asset.

type MapsPublishCall

type MapsPublishCall struct {
	// contains filtered or unexported fields
}

func (*MapsPublishCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MapsPublishCall) Do

Do executes the "mapsengine.maps.publish" call. Exactly one of *PublishResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PublishResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MapsPublishCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MapsPublishCall) Force

func (c *MapsPublishCall) Force(force bool) *MapsPublishCall

Force sets the optional parameter "force": If set to true, the API will allow publication of the map even if it's out of date. If false, the map must have a processingStatus of complete before publishing.

type MapsService

type MapsService struct {
	Permissions *MapsPermissionsService
	// contains filtered or unexported fields
}

func NewMapsService

func NewMapsService(s *Service) *MapsService

func (*MapsService) Create

func (r *MapsService) Create(map_ *Map) *MapsCreateCall

Create: Create a map asset.

func (*MapsService) Delete

func (r *MapsService) Delete(id string) *MapsDeleteCall

Delete: Delete a map.

func (*MapsService) Get

func (r *MapsService) Get(id string) *MapsGetCall

Get: Return metadata for a particular map.

func (*MapsService) GetPublished

func (r *MapsService) GetPublished(id string) *MapsGetPublishedCall

GetPublished: Return the published metadata for a particular map.

func (*MapsService) List

func (r *MapsService) List() *MapsListCall

List: Return all maps readable by the current user.

func (*MapsService) ListPublished

func (r *MapsService) ListPublished() *MapsListPublishedCall

ListPublished: Return all published maps readable by the current user.

func (*MapsService) Patch

func (r *MapsService) Patch(id string, map_ *Map) *MapsPatchCall

Patch: Mutate a map asset.

func (*MapsService) Publish

func (r *MapsService) Publish(id string) *MapsPublishCall

Publish: Publish a map asset.

func (*MapsService) Unpublish

func (r *MapsService) Unpublish(id string) *MapsUnpublishCall

Unpublish: Unpublish a map asset.

type MapsUnpublishCall

type MapsUnpublishCall struct {
	// contains filtered or unexported fields
}

func (*MapsUnpublishCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MapsUnpublishCall) Do

Do executes the "mapsengine.maps.unpublish" call. Exactly one of *PublishResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PublishResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MapsUnpublishCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type Parent

type Parent struct {
	// Id: The ID of this parent.
	Id string `json:"id,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Id") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Parent: A list of the parents of an asset.

func (*Parent) MarshalJSON

func (s *Parent) MarshalJSON() ([]byte, error)

type ParentsListResponse

type ParentsListResponse struct {
	// NextPageToken: Next page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Parents: The parent assets.
	Parents []*Parent `json:"parents,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

ParentsListResponse: The response returned by a call to parents.List.

func (*ParentsListResponse) MarshalJSON

func (s *ParentsListResponse) MarshalJSON() ([]byte, error)

type Permission

type Permission struct {
	// Discoverable: Indicates whether a public asset is listed and can be
	// found via a web search (value true), or is visible only to people who
	// have a link to the asset (value false).
	Discoverable bool `json:"discoverable,omitempty"`

	// Id: The unique identifier of the permission. This could be the email
	// address of the user or group this permission refers to, or the string
	// "anyone" for public permissions.
	Id string `json:"id,omitempty"`

	// Role: The type of access granted to this user or group.
	//
	// Possible values:
	//   "owner"
	//   "reader"
	//   "viewer"
	//   "writer"
	Role string `json:"role,omitempty"`

	// Type: The account type.
	//
	// Possible values:
	//   "anyone"
	//   "group"
	//   "user"
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Discoverable") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Permission: A permission defines the user or group that has access to an asset, and the type of access they have.

func (*Permission) MarshalJSON

func (s *Permission) MarshalJSON() ([]byte, error)

type PermissionsBatchDeleteRequest

type PermissionsBatchDeleteRequest struct {
	// Ids: An array of permission ids to be removed. This could be the
	// email address of the user or group this permission refers to, or the
	// string "anyone" for public permissions.
	Ids []string `json:"ids,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Ids") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

PermissionsBatchDeleteRequest: The request sent to mapsengine.permissions.batchDelete.

func (*PermissionsBatchDeleteRequest) MarshalJSON

func (s *PermissionsBatchDeleteRequest) MarshalJSON() ([]byte, error)

type PermissionsBatchDeleteResponse

type PermissionsBatchDeleteResponse struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

PermissionsBatchDeleteResponse: The response returned by a call to mapsengine.permissions.batchDelete.

type PermissionsBatchUpdateRequest

type PermissionsBatchUpdateRequest struct {
	// Permissions: The permissions to be inserted or updated.
	Permissions []*Permission `json:"permissions,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Permissions") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

PermissionsBatchUpdateRequest: The request sent to mapsengine.permissions.batchUpdate.

func (*PermissionsBatchUpdateRequest) MarshalJSON

func (s *PermissionsBatchUpdateRequest) MarshalJSON() ([]byte, error)

type PermissionsBatchUpdateResponse

type PermissionsBatchUpdateResponse struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

PermissionsBatchUpdateResponse: The response returned by a call to mapsengine.permissions.batchUpdate.

type PermissionsListResponse

type PermissionsListResponse struct {
	// Permissions: The set of permissions associated with this asset.
	Permissions []*Permission `json:"permissions,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Permissions") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*PermissionsListResponse) MarshalJSON

func (s *PermissionsListResponse) MarshalJSON() ([]byte, error)

type PointStyle

type PointStyle struct {
	// Icon: Icon for the point; if it isn't null, exactly one of 'name',
	// 'id' or 'scaledShape' must be set.
	Icon *IconStyle `json:"icon,omitempty"`

	// Label: Label style for the point.
	Label *LabelStyle `json:"label,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Icon") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

PointStyle: Style for points.

func (*PointStyle) MarshalJSON

func (s *PointStyle) MarshalJSON() ([]byte, error)

type PolygonStyle

type PolygonStyle struct {
	// Fill: Fill color of the polygon. If not provided, the polygon will be
	// transparent and not visible if there is no border.
	Fill *Color `json:"fill,omitempty"`

	// Label: Label style for the polygon.
	Label *LabelStyle `json:"label,omitempty"`

	// Stroke: Border of the polygon. 0 < border.width <= 10.
	Stroke *Border `json:"stroke,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Fill") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

PolygonStyle: Style for polygons.

func (*PolygonStyle) MarshalJSON

func (s *PolygonStyle) MarshalJSON() ([]byte, error)

type ProcessResponse

type ProcessResponse struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

ProcessResponse: The response returned by a call to any asset's Process method.

type Project

type Project struct {
	// Id: An ID used to refer to this project.
	Id string `json:"id,omitempty"`

	// Name: A user provided name for this project.
	Name string `json:"name,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Id") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Project: A project groups a collection of resources.

func (*Project) MarshalJSON

func (s *Project) MarshalJSON() ([]byte, error)

type ProjectsIconsCreateCall

type ProjectsIconsCreateCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsIconsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

func (*ProjectsIconsCreateCall) Do

func (c *ProjectsIconsCreateCall) Do() (*Icon, error)

Do executes the "mapsengine.projects.icons.create" call. Exactly one of *Icon or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Icon.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsIconsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsIconsCreateCall) Media

Media specifies the media to upload in a single chunk. At most one of Media and ResumableMedia may be set.

func (*ProjectsIconsCreateCall) ProgressUpdater

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*ProjectsIconsCreateCall) ResumableMedia

func (c *ProjectsIconsCreateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ProjectsIconsCreateCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx. At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type ProjectsIconsGetCall

type ProjectsIconsGetCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsIconsGetCall) Context

Context sets the context to be used in this call's Do and Download methods. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsIconsGetCall) Do

func (c *ProjectsIconsGetCall) Do() (*Icon, error)

Do executes the "mapsengine.projects.icons.get" call. Exactly one of *Icon or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Icon.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsIconsGetCall) Download

func (c *ProjectsIconsGetCall) Download() (*http.Response, error)

Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.

func (*ProjectsIconsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsIconsGetCall) IfNoneMatch

func (c *ProjectsIconsGetCall) IfNoneMatch(entityTag string) *ProjectsIconsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsIconsListCall

type ProjectsIconsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsIconsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsIconsListCall) Do

Do executes the "mapsengine.projects.icons.list" call. Exactly one of *IconsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *IconsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsIconsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsIconsListCall) IfNoneMatch

func (c *ProjectsIconsListCall) IfNoneMatch(entityTag string) *ProjectsIconsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsIconsListCall) MaxResults

func (c *ProjectsIconsListCall) MaxResults(maxResults int64) *ProjectsIconsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 50.

func (*ProjectsIconsListCall) PageToken

func (c *ProjectsIconsListCall) PageToken(pageToken string) *ProjectsIconsListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

type ProjectsIconsService

type ProjectsIconsService struct {
	// contains filtered or unexported fields
}

func NewProjectsIconsService

func NewProjectsIconsService(s *Service) *ProjectsIconsService

func (*ProjectsIconsService) Create

func (r *ProjectsIconsService) Create(projectId string, icon *Icon) *ProjectsIconsCreateCall

Create: Create an icon.

func (*ProjectsIconsService) Get

func (r *ProjectsIconsService) Get(projectId string, id string) *ProjectsIconsGetCall

Get: Return an icon or its associated metadata

func (*ProjectsIconsService) List

List: Return all icons in the current project

type ProjectsListCall

type ProjectsListCall struct {
	// contains filtered or unexported fields
}

func (*ProjectsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsListCall) Do

Do executes the "mapsengine.projects.list" call. Exactly one of *ProjectsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProjectsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsListCall) IfNoneMatch

func (c *ProjectsListCall) IfNoneMatch(entityTag string) *ProjectsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsListResponse

type ProjectsListResponse struct {
	// Projects: Projects returned.
	Projects []*Project `json:"projects,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Projects") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

ProjectsListResponse: The response returned by a call to projects.List.

func (*ProjectsListResponse) MarshalJSON

func (s *ProjectsListResponse) MarshalJSON() ([]byte, error)

type ProjectsService

type ProjectsService struct {
	Icons *ProjectsIconsService
	// contains filtered or unexported fields
}

func NewProjectsService

func NewProjectsService(s *Service) *ProjectsService

func (*ProjectsService) List

func (r *ProjectsService) List() *ProjectsListCall

List: Return all projects readable by the current user.

type PublishResponse

type PublishResponse struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

PublishResponse: The response returned by a call to any asset's Publish method.

type PublishedLayer

type PublishedLayer struct {
	// Description: The description of this Layer, supplied by the author.
	Description string `json:"description,omitempty"`

	// Id: A globally unique ID, used to refer to this Layer.
	Id string `json:"id,omitempty"`

	// LayerType: The type of the datasources used to build this Layer. This
	// should be used instead of datasourceType. At least one of layerType
	// and datasourceType and must be specified, but layerType takes
	// precedence.
	//
	// Possible values:
	//   "image"
	//   "vector"
	LayerType string `json:"layerType,omitempty"`

	// Name: The name of this Layer, supplied by the author.
	Name string `json:"name,omitempty"`

	// ProjectId: The ID of the project that this Layer is in.
	ProjectId string `json:"projectId,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Description") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

PublishedLayer: The published version of a layer.

func (*PublishedLayer) MarshalJSON

func (s *PublishedLayer) MarshalJSON() ([]byte, error)

type PublishedLayersListResponse

type PublishedLayersListResponse struct {
	// Layers: Resources returned.
	Layers []*PublishedLayer `json:"layers,omitempty"`

	// NextPageToken: Next page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Layers") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

PublishedLayersListResponse: The response returned by a call to layers.List.published.

func (*PublishedLayersListResponse) MarshalJSON

func (s *PublishedLayersListResponse) MarshalJSON() ([]byte, error)

type PublishedMap

type PublishedMap struct {
	// Contents: The contents of this Map.
	Contents []MapItem `json:"contents,omitempty"`

	// DefaultViewport: An array of four numbers (west, south, east, north)
	// which defines the rectangular bounding box of the default viewport.
	// The numbers represent latitude and longitude in decimal degrees.
	DefaultViewport []float64 `json:"defaultViewport,omitempty"`

	// Description: The description of this Map, supplied by the author.
	Description string `json:"description,omitempty"`

	// Id: A globally unique ID, used to refer to this Map.
	Id string `json:"id,omitempty"`

	// Name: The name of this Map, supplied by the author.
	Name string `json:"name,omitempty"`

	// ProjectId: The ID of the project that this Map is in.
	ProjectId string `json:"projectId,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Contents") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

PublishedMap: The published version of a map asset.

func (*PublishedMap) MarshalJSON

func (s *PublishedMap) MarshalJSON() ([]byte, error)

type PublishedMapsListResponse

type PublishedMapsListResponse struct {
	// Maps: Resources returned.
	Maps []*PublishedMap `json:"maps,omitempty"`

	// NextPageToken: Next page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Maps") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

PublishedMapsListResponse: The response returned by a call to maps.List.published.

func (*PublishedMapsListResponse) MarshalJSON

func (s *PublishedMapsListResponse) MarshalJSON() ([]byte, error)

type Raster

type Raster struct {
	// AcquisitionTime: The acquisition time of this Raster.
	AcquisitionTime *AcquisitionTime `json:"acquisitionTime,omitempty"`

	// Attribution: The name of the attribution to be used for this Raster.
	Attribution string `json:"attribution,omitempty"`

	// Bbox: A rectangular bounding box which contains all of the data in
	// this Raster. The box is expressed as \"west, south, east, north\".
	// The numbers represent latitudes and longitudes in decimal degrees.
	Bbox []float64 `json:"bbox,omitempty"`

	// CreationTime: The creation time of this raster. The value is an RFC
	// 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
	CreationTime string `json:"creationTime,omitempty"`

	// CreatorEmail: The email address of the creator of this raster. This
	// is only returned on GET requests and not LIST requests.
	CreatorEmail string `json:"creatorEmail,omitempty"`

	// Description: The description of this Raster, supplied by the author.
	Description string `json:"description,omitempty"`

	// DraftAccessList: Deprecated: The name of an access list of the Map
	// Editor type. The user on whose behalf the request is being sent must
	// be an editor on that access list. Note: Google Maps Engine no longer
	// uses access lists. Instead, each asset has its own list of
	// permissions. For backward compatibility, the API still accepts access
	// lists for projects that are already using access lists. If you
	// created a GME account/project after July 14th, 2014, you will not be
	// able to send API requests that include access lists. Note: This is an
	// input field only. It is not returned in response to a list or get
	// request.
	DraftAccessList string `json:"draftAccessList,omitempty"`

	// Etag: The ETag, used to refer to the current version of the asset.
	Etag string `json:"etag,omitempty"`

	// Files: The files associated with this Raster.
	Files []*File `json:"files,omitempty"`

	// Id: A globally unique ID, used to refer to this Raster.
	Id string `json:"id,omitempty"`

	// LastModifiedTime: The last modified time of this raster. The value is
	// an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
	LastModifiedTime string `json:"lastModifiedTime,omitempty"`

	// LastModifierEmail: The email address of the last modifier of this
	// raster. This is only returned on GET requests and not LIST requests.
	LastModifierEmail string `json:"lastModifierEmail,omitempty"`

	// MaskType: The mask processing type of this Raster.
	MaskType string `json:"maskType,omitempty"`

	// Name: The name of this Raster, supplied by the author.
	Name string `json:"name,omitempty"`

	// ProcessingStatus: The processing status of this Raster.
	//
	// Possible values:
	//   "complete"
	//   "failed"
	//   "notReady"
	//   "processing"
	//   "ready"
	ProcessingStatus string `json:"processingStatus,omitempty"`

	// ProjectId: The ID of the project that this Raster is in.
	ProjectId string `json:"projectId,omitempty"`

	// RasterType: The type of this Raster. Always "image" today.
	//
	// Possible values:
	//   "image"
	RasterType string `json:"rasterType,omitempty"`

	// Tags: Tags of this Raster.
	Tags []string `json:"tags,omitempty"`

	// WritersCanEditPermissions: If true, WRITERs of the asset are able to
	// edit the asset permissions.
	WritersCanEditPermissions bool `json:"writersCanEditPermissions,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AcquisitionTime") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Raster: A geo-referenced raster.

func (*Raster) MarshalJSON

func (s *Raster) MarshalJSON() ([]byte, error)

type RasterCollection

type RasterCollection struct {
	// Attribution: The name of the attribution to be used for this
	// RasterCollection. Note: Attribution is returned in response to a get
	// request but not a list request. After requesting a list of raster
	// collections, you'll need to send a get request to retrieve the
	// attribution for each raster collection.
	Attribution string `json:"attribution,omitempty"`

	// Bbox: A rectangular bounding box which contains all of the data in
	// this RasterCollection. The box is expressed as \"west, south, east,
	// north\". The numbers represent latitude and longitude in decimal
	// degrees.
	Bbox []float64 `json:"bbox,omitempty"`

	// CreationTime: The creation time of this RasterCollection. The value
	// is an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
	CreationTime string `json:"creationTime,omitempty"`

	// CreatorEmail: The email address of the creator of this raster
	// collection. This is only returned on GET requests and not LIST
	// requests.
	CreatorEmail string `json:"creatorEmail,omitempty"`

	// Description: The description of this RasterCollection, supplied by
	// the author.
	Description string `json:"description,omitempty"`

	// DraftAccessList: Deprecated: The name of an access list of the Map
	// Editor type. The user on whose behalf the request is being sent must
	// be an editor on that access list. Note: Google Maps Engine no longer
	// uses access lists. Instead, each asset has its own list of
	// permissions. For backward compatibility, the API still accepts access
	// lists for projects that are already using access lists. If you
	// created a GME account/project after July 14th, 2014, you will not be
	// able to send API requests that include access lists. Note: This is an
	// input field only. It is not returned in response to a list or get
	// request.
	DraftAccessList string `json:"draftAccessList,omitempty"`

	// Etag: The ETag, used to refer to the current version of the asset.
	Etag string `json:"etag,omitempty"`

	// Id: A globally unique ID, used to refer to this RasterCollection.
	Id string `json:"id,omitempty"`

	// LastModifiedTime: The last modified time of this RasterCollection.
	// The value is an RFC 3339 formatted date-time value (e.g.
	// 1970-01-01T00:00:00Z).
	LastModifiedTime string `json:"lastModifiedTime,omitempty"`

	// LastModifierEmail: The email address of the last modifier of this
	// raster collection. This is only returned on GET requests and not LIST
	// requests.
	LastModifierEmail string `json:"lastModifierEmail,omitempty"`

	// Mosaic: True if this RasterCollection is a mosaic.
	Mosaic bool `json:"mosaic,omitempty"`

	// Name: The name of this RasterCollection, supplied by the author.
	Name string `json:"name,omitempty"`

	// ProcessingStatus: The processing status of this RasterCollection.
	//
	// Possible values:
	//   "complete"
	//   "failed"
	//   "notReady"
	//   "processing"
	//   "ready"
	ProcessingStatus string `json:"processingStatus,omitempty"`

	// ProjectId: The ID of the project that this RasterCollection is in.
	ProjectId string `json:"projectId,omitempty"`

	// RasterType: The type of rasters contained within this
	// RasterCollection.
	//
	// Possible values:
	//   "image"
	RasterType string `json:"rasterType,omitempty"`

	// Tags: Tags of this RasterCollection.
	Tags []string `json:"tags,omitempty"`

	// WritersCanEditPermissions: If true, WRITERs of the asset are able to
	// edit the asset permissions.
	WritersCanEditPermissions bool `json:"writersCanEditPermissions,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Attribution") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

RasterCollection: A raster collection groups multiple Raster resources for inclusion in a Layer.

func (*RasterCollection) MarshalJSON

func (s *RasterCollection) MarshalJSON() ([]byte, error)

type RasterCollectionsCancelProcessingCall

type RasterCollectionsCancelProcessingCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsCancelProcessingCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsCancelProcessingCall) Do

Do executes the "mapsengine.rasterCollections.cancelProcessing" call. Exactly one of *ProcessResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProcessResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RasterCollectionsCancelProcessingCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RasterCollectionsCreateCall

type RasterCollectionsCreateCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsCreateCall) Do

Do executes the "mapsengine.rasterCollections.create" call. Exactly one of *RasterCollection or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RasterCollection.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RasterCollectionsCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RasterCollectionsDeleteCall

type RasterCollectionsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsDeleteCall) Do

Do executes the "mapsengine.rasterCollections.delete" call.

func (*RasterCollectionsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RasterCollectionsGetCall

type RasterCollectionsGetCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsGetCall) Do

Do executes the "mapsengine.rasterCollections.get" call. Exactly one of *RasterCollection or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RasterCollection.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RasterCollectionsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RasterCollectionsGetCall) IfNoneMatch

func (c *RasterCollectionsGetCall) IfNoneMatch(entityTag string) *RasterCollectionsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type RasterCollectionsListCall

type RasterCollectionsListCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsListCall) Bbox

Bbox sets the optional parameter "bbox": A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this bounding box will be returned.

func (*RasterCollectionsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsListCall) CreatedAfter

func (c *RasterCollectionsListCall) CreatedAfter(createdAfter string) *RasterCollectionsListCall

CreatedAfter sets the optional parameter "createdAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or after this time.

func (*RasterCollectionsListCall) CreatedBefore

func (c *RasterCollectionsListCall) CreatedBefore(createdBefore string) *RasterCollectionsListCall

CreatedBefore sets the optional parameter "createdBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or before this time.

func (*RasterCollectionsListCall) CreatorEmail

func (c *RasterCollectionsListCall) CreatorEmail(creatorEmail string) *RasterCollectionsListCall

CreatorEmail sets the optional parameter "creatorEmail": An email address representing a user. Returned assets that have been created by the user associated with the provided email address.

func (*RasterCollectionsListCall) Do

Do executes the "mapsengine.rasterCollections.list" call. Exactly one of *RasterCollectionsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RasterCollectionsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RasterCollectionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RasterCollectionsListCall) IfNoneMatch

func (c *RasterCollectionsListCall) IfNoneMatch(entityTag string) *RasterCollectionsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*RasterCollectionsListCall) MaxResults

func (c *RasterCollectionsListCall) MaxResults(maxResults int64) *RasterCollectionsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 100.

func (*RasterCollectionsListCall) ModifiedAfter

func (c *RasterCollectionsListCall) ModifiedAfter(modifiedAfter string) *RasterCollectionsListCall

ModifiedAfter sets the optional parameter "modifiedAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or after this time.

func (*RasterCollectionsListCall) ModifiedBefore

func (c *RasterCollectionsListCall) ModifiedBefore(modifiedBefore string) *RasterCollectionsListCall

ModifiedBefore sets the optional parameter "modifiedBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or before this time.

func (*RasterCollectionsListCall) PageToken

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

func (*RasterCollectionsListCall) ProcessingStatus

func (c *RasterCollectionsListCall) ProcessingStatus(processingStatus string) *RasterCollectionsListCall

ProcessingStatus sets the optional parameter "processingStatus":

Possible values:

"complete" - The raster collection has completed processing.
"failed" - The raster collection has failed processing.
"notReady" - The raster collection is not ready for processing.
"processing" - The raster collection is processing.
"ready" - The raster collection is ready for processing.

func (*RasterCollectionsListCall) ProjectId

ProjectId sets the optional parameter "projectId": The ID of a Maps Engine project, used to filter the response. To list all available projects with their IDs, send a Projects: list request. You can also find your project ID as the value of the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com.

func (*RasterCollectionsListCall) Role

Role sets the optional parameter "role": The role parameter indicates that the response should only contain assets where the current user has the specified level of access.

Possible values:

"owner" - The user can read, write and administer the asset.
"reader" - The user can read the asset.
"writer" - The user can read and write the asset.

func (*RasterCollectionsListCall) Search

Search sets the optional parameter "search": An unstructured search string used to filter the set of results based on asset metadata.

func (*RasterCollectionsListCall) Tags

Tags sets the optional parameter "tags": A comma separated list of tags. Returned assets will contain all the tags from the list.

type RasterCollectionsListResponse

type RasterCollectionsListResponse struct {
	// NextPageToken: Next page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// RasterCollections: Resources returned.
	RasterCollections []*RasterCollection `json:"rasterCollections,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

RasterCollectionsListResponse: The response returned by a call to raster_collections.List. Note: The list response does not include all the fields available in a raster collection. Refer to the RasterCollection resource description for details of the fields that are not included. You'll need to send a get request to retrieve the additional fields for each raster collection.

func (*RasterCollectionsListResponse) MarshalJSON

func (s *RasterCollectionsListResponse) MarshalJSON() ([]byte, error)

type RasterCollectionsParentsListCall

type RasterCollectionsParentsListCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsParentsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsParentsListCall) Do

Do executes the "mapsengine.rasterCollections.parents.list" call. Exactly one of *ParentsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ParentsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RasterCollectionsParentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RasterCollectionsParentsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*RasterCollectionsParentsListCall) MaxResults

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 50.

func (*RasterCollectionsParentsListCall) PageToken

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

type RasterCollectionsParentsService

type RasterCollectionsParentsService struct {
	// contains filtered or unexported fields
}

func NewRasterCollectionsParentsService

func NewRasterCollectionsParentsService(s *Service) *RasterCollectionsParentsService

func (*RasterCollectionsParentsService) List

List: Return all parent ids of the specified raster collection.

type RasterCollectionsPatchCall

type RasterCollectionsPatchCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsPatchCall) Do

Do executes the "mapsengine.rasterCollections.patch" call.

func (*RasterCollectionsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RasterCollectionsPermissionsBatchDeleteCall

type RasterCollectionsPermissionsBatchDeleteCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsPermissionsBatchDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsPermissionsBatchDeleteCall) Do

Do executes the "mapsengine.rasterCollections.permissions.batchDelete" call. Exactly one of *PermissionsBatchDeleteResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsBatchDeleteResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RasterCollectionsPermissionsBatchDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RasterCollectionsPermissionsBatchUpdateCall

type RasterCollectionsPermissionsBatchUpdateCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsPermissionsBatchUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsPermissionsBatchUpdateCall) Do

Do executes the "mapsengine.rasterCollections.permissions.batchUpdate" call. Exactly one of *PermissionsBatchUpdateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsBatchUpdateResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RasterCollectionsPermissionsBatchUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RasterCollectionsPermissionsListCall

type RasterCollectionsPermissionsListCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsPermissionsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsPermissionsListCall) Do

Do executes the "mapsengine.rasterCollections.permissions.list" call. Exactly one of *PermissionsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RasterCollectionsPermissionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RasterCollectionsPermissionsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type RasterCollectionsPermissionsService

type RasterCollectionsPermissionsService struct {
	// contains filtered or unexported fields
}

func NewRasterCollectionsPermissionsService

func NewRasterCollectionsPermissionsService(s *Service) *RasterCollectionsPermissionsService

func (*RasterCollectionsPermissionsService) BatchDelete

BatchDelete: Remove permission entries from an already existing asset.

func (*RasterCollectionsPermissionsService) BatchUpdate

BatchUpdate: Add or update permission entries to an already existing asset.

An asset can hold up to 20 different permission entries. Each batchInsert request is atomic.

func (*RasterCollectionsPermissionsService) List

List: Return all of the permissions for the specified asset.

type RasterCollectionsProcessCall

type RasterCollectionsProcessCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsProcessCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsProcessCall) Do

Do executes the "mapsengine.rasterCollections.process" call. Exactly one of *ProcessResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProcessResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RasterCollectionsProcessCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RasterCollectionsRaster

type RasterCollectionsRaster struct {
	// Bbox: A rectangular bounding box which contains all of the data in
	// this Raster. The box is expressed as \"west, south, east, north\".
	// The numbers represent latitudes and longitudes in decimal degrees.
	Bbox []float64 `json:"bbox,omitempty"`

	// CreationTime: The creation time of this raster. The value is an RFC
	// 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
	CreationTime string `json:"creationTime,omitempty"`

	// Description: The description of this Raster, supplied by the author.
	Description string `json:"description,omitempty"`

	// Id: A globally unique ID, used to refer to this Raster.
	Id string `json:"id,omitempty"`

	// LastModifiedTime: The last modified time of this raster. The value is
	// an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
	LastModifiedTime string `json:"lastModifiedTime,omitempty"`

	// Name: The name of this Raster, supplied by the author.
	Name string `json:"name,omitempty"`

	// ProjectId: The ID of the project that this Raster is in.
	ProjectId string `json:"projectId,omitempty"`

	// RasterType: The type of this Raster. Always "image" today.
	RasterType string `json:"rasterType,omitempty"`

	// Tags: Tags of this Raster.
	Tags []string `json:"tags,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Bbox") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

RasterCollectionsRaster: A raster resource.

func (*RasterCollectionsRaster) MarshalJSON

func (s *RasterCollectionsRaster) MarshalJSON() ([]byte, error)

type RasterCollectionsRasterBatchDeleteRequest

type RasterCollectionsRasterBatchDeleteRequest struct {
	// Ids: An array of Raster asset IDs to be removed from this
	// RasterCollection.
	Ids []string `json:"ids,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Ids") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

RasterCollectionsRasterBatchDeleteRequest: The request sent to rasterCollections.Rasters.BatchDelete.

func (*RasterCollectionsRasterBatchDeleteRequest) MarshalJSON

type RasterCollectionsRastersBatchDeleteCall

type RasterCollectionsRastersBatchDeleteCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsRastersBatchDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsRastersBatchDeleteCall) Do

Do executes the "mapsengine.rasterCollections.rasters.batchDelete" call. Exactly one of *RasterCollectionsRastersBatchDeleteResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RasterCollectionsRastersBatchDeleteResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RasterCollectionsRastersBatchDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RasterCollectionsRastersBatchDeleteResponse

type RasterCollectionsRastersBatchDeleteResponse struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

RasterCollectionsRastersBatchDeleteResponse: The response returned by a call to rasterCollections.rasters.batchDelete.

type RasterCollectionsRastersBatchInsertCall

type RasterCollectionsRastersBatchInsertCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsRastersBatchInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsRastersBatchInsertCall) Do

Do executes the "mapsengine.rasterCollections.rasters.batchInsert" call. Exactly one of *RasterCollectionsRastersBatchInsertResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RasterCollectionsRastersBatchInsertResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RasterCollectionsRastersBatchInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RasterCollectionsRastersBatchInsertRequest

type RasterCollectionsRastersBatchInsertRequest struct {
	// Ids: An array of Raster asset IDs to be added to this
	// RasterCollection.
	Ids []string `json:"ids,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Ids") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

RasterCollectionsRastersBatchInsertRequest: The request sent to rasterCollections.Rasters.BatchInsert.

func (*RasterCollectionsRastersBatchInsertRequest) MarshalJSON

type RasterCollectionsRastersBatchInsertResponse

type RasterCollectionsRastersBatchInsertResponse struct {
	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`
}

RasterCollectionsRastersBatchInsertResponse: The response returned by a call to rasterCollections.rasters.batchInsert.

type RasterCollectionsRastersListCall

type RasterCollectionsRastersListCall struct {
	// contains filtered or unexported fields
}

func (*RasterCollectionsRastersListCall) Bbox

Bbox sets the optional parameter "bbox": A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this bounding box will be returned.

func (*RasterCollectionsRastersListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RasterCollectionsRastersListCall) CreatedAfter

CreatedAfter sets the optional parameter "createdAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or after this time.

func (*RasterCollectionsRastersListCall) CreatedBefore

CreatedBefore sets the optional parameter "createdBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or before this time.

func (*RasterCollectionsRastersListCall) CreatorEmail

CreatorEmail sets the optional parameter "creatorEmail": An email address representing a user. Returned assets that have been created by the user associated with the provided email address.

func (*RasterCollectionsRastersListCall) Do

Do executes the "mapsengine.rasterCollections.rasters.list" call. Exactly one of *RasterCollectionsRastersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RasterCollectionsRastersListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RasterCollectionsRastersListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RasterCollectionsRastersListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*RasterCollectionsRastersListCall) MaxResults

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 100.

func (*RasterCollectionsRastersListCall) ModifiedAfter

ModifiedAfter sets the optional parameter "modifiedAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or after this time.

func (*RasterCollectionsRastersListCall) ModifiedBefore

ModifiedBefore sets the optional parameter "modifiedBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or before this time.

func (*RasterCollectionsRastersListCall) PageToken

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

func (*RasterCollectionsRastersListCall) Role

Role sets the optional parameter "role": The role parameter indicates that the response should only contain assets where the current user has the specified level of access.

Possible values:

"owner" - The user can read, write and administer the asset.
"reader" - The user can read the asset.
"writer" - The user can read and write the asset.

func (*RasterCollectionsRastersListCall) Search

Search sets the optional parameter "search": An unstructured search string used to filter the set of results based on asset metadata.

func (*RasterCollectionsRastersListCall) Tags

Tags sets the optional parameter "tags": A comma separated list of tags. Returned assets will contain all the tags from the list.

type RasterCollectionsRastersListResponse

type RasterCollectionsRastersListResponse struct {
	// NextPageToken: Next page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Rasters: Resources returned.
	Rasters []*RasterCollectionsRaster `json:"rasters,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

RasterCollectionsRastersListResponse: The response returned by a call to rasterCollections.rasters.List.

func (*RasterCollectionsRastersListResponse) MarshalJSON

func (s *RasterCollectionsRastersListResponse) MarshalJSON() ([]byte, error)

type RasterCollectionsRastersService

type RasterCollectionsRastersService struct {
	// contains filtered or unexported fields
}

func NewRasterCollectionsRastersService

func NewRasterCollectionsRastersService(s *Service) *RasterCollectionsRastersService

func (*RasterCollectionsRastersService) BatchDelete

BatchDelete: Remove rasters from an existing raster collection.

Up to 50 rasters can be included in a single batchDelete request. Each batchDelete request is atomic.

func (*RasterCollectionsRastersService) BatchInsert

BatchInsert: Add rasters to an existing raster collection. Rasters must be successfully processed in order to be added to a raster collection.

Up to 50 rasters can be included in a single batchInsert request. Each batchInsert request is atomic.

func (*RasterCollectionsRastersService) List

List: Return all rasters within a raster collection.

type RasterCollectionsService

type RasterCollectionsService struct {
	Parents *RasterCollectionsParentsService

	Permissions *RasterCollectionsPermissionsService

	Rasters *RasterCollectionsRastersService
	// contains filtered or unexported fields
}

func NewRasterCollectionsService

func NewRasterCollectionsService(s *Service) *RasterCollectionsService

func (*RasterCollectionsService) CancelProcessing

CancelProcessing: Cancel processing on a raster collection asset.

func (*RasterCollectionsService) Create

Create: Create a raster collection asset.

func (*RasterCollectionsService) Delete

Delete: Delete a raster collection.

func (*RasterCollectionsService) Get

Get: Return metadata for a particular raster collection.

func (*RasterCollectionsService) List

List: Return all raster collections readable by the current user.

func (*RasterCollectionsService) Patch

Patch: Mutate a raster collection asset.

func (*RasterCollectionsService) Process

Process: Process a raster collection asset.

type RastersDeleteCall

type RastersDeleteCall struct {
	// contains filtered or unexported fields
}

func (*RastersDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RastersDeleteCall) Do

func (c *RastersDeleteCall) Do() error

Do executes the "mapsengine.rasters.delete" call.

func (*RastersDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RastersFilesInsertCall

type RastersFilesInsertCall struct {
	// contains filtered or unexported fields
}

func (*RastersFilesInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

func (*RastersFilesInsertCall) Do

func (c *RastersFilesInsertCall) Do() error

Do executes the "mapsengine.rasters.files.insert" call.

func (*RastersFilesInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RastersFilesInsertCall) Media

Media specifies the media to upload in a single chunk. At most one of Media and ResumableMedia may be set.

func (*RastersFilesInsertCall) ProgressUpdater

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*RastersFilesInsertCall) ResumableMedia

func (c *RastersFilesInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *RastersFilesInsertCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx. At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type RastersFilesService

type RastersFilesService struct {
	// contains filtered or unexported fields
}

func NewRastersFilesService

func NewRastersFilesService(s *Service) *RastersFilesService

func (*RastersFilesService) Insert

func (r *RastersFilesService) Insert(id string, filename string) *RastersFilesInsertCall

Insert: Upload a file to a raster asset.

type RastersGetCall

type RastersGetCall struct {
	// contains filtered or unexported fields
}

func (*RastersGetCall) Context

func (c *RastersGetCall) Context(ctx context.Context) *RastersGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RastersGetCall) Do

func (c *RastersGetCall) Do() (*Raster, error)

Do executes the "mapsengine.rasters.get" call. Exactly one of *Raster or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Raster.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RastersGetCall) Fields

func (c *RastersGetCall) Fields(s ...googleapi.Field) *RastersGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RastersGetCall) IfNoneMatch

func (c *RastersGetCall) IfNoneMatch(entityTag string) *RastersGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type RastersListCall

type RastersListCall struct {
	// contains filtered or unexported fields
}

func (*RastersListCall) Bbox

func (c *RastersListCall) Bbox(bbox string) *RastersListCall

Bbox sets the optional parameter "bbox": A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this bounding box will be returned.

func (*RastersListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RastersListCall) CreatedAfter

func (c *RastersListCall) CreatedAfter(createdAfter string) *RastersListCall

CreatedAfter sets the optional parameter "createdAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or after this time.

func (*RastersListCall) CreatedBefore

func (c *RastersListCall) CreatedBefore(createdBefore string) *RastersListCall

CreatedBefore sets the optional parameter "createdBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or before this time.

func (*RastersListCall) CreatorEmail

func (c *RastersListCall) CreatorEmail(creatorEmail string) *RastersListCall

CreatorEmail sets the optional parameter "creatorEmail": An email address representing a user. Returned assets that have been created by the user associated with the provided email address.

func (*RastersListCall) Do

Do executes the "mapsengine.rasters.list" call. Exactly one of *RastersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RastersListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RastersListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RastersListCall) IfNoneMatch

func (c *RastersListCall) IfNoneMatch(entityTag string) *RastersListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*RastersListCall) MaxResults

func (c *RastersListCall) MaxResults(maxResults int64) *RastersListCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 100.

func (*RastersListCall) ModifiedAfter

func (c *RastersListCall) ModifiedAfter(modifiedAfter string) *RastersListCall

ModifiedAfter sets the optional parameter "modifiedAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or after this time.

func (*RastersListCall) ModifiedBefore

func (c *RastersListCall) ModifiedBefore(modifiedBefore string) *RastersListCall

ModifiedBefore sets the optional parameter "modifiedBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or before this time.

func (*RastersListCall) PageToken

func (c *RastersListCall) PageToken(pageToken string) *RastersListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

func (*RastersListCall) ProcessingStatus

func (c *RastersListCall) ProcessingStatus(processingStatus string) *RastersListCall

ProcessingStatus sets the optional parameter "processingStatus":

Possible values:

"complete" - The raster has completed processing.
"failed" - The raster has failed processing.
"notReady" - The raster is not ready for processing.
"processing" - The raster is processing.
"ready" - The raster is ready for processing.

func (*RastersListCall) Role

func (c *RastersListCall) Role(role string) *RastersListCall

Role sets the optional parameter "role": The role parameter indicates that the response should only contain assets where the current user has the specified level of access.

Possible values:

"owner" - The user can read, write and administer the asset.
"reader" - The user can read the asset.
"writer" - The user can read and write the asset.

func (*RastersListCall) Search

func (c *RastersListCall) Search(search string) *RastersListCall

Search sets the optional parameter "search": An unstructured search string used to filter the set of results based on asset metadata.

func (*RastersListCall) Tags

func (c *RastersListCall) Tags(tags string) *RastersListCall

Tags sets the optional parameter "tags": A comma separated list of tags. Returned assets will contain all the tags from the list.

type RastersListResponse

type RastersListResponse struct {
	// NextPageToken: Next page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Rasters: Resources returned.
	Rasters []*Raster `json:"rasters,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

RastersListResponse: The response returned by a call to rasters.List.

func (*RastersListResponse) MarshalJSON

func (s *RastersListResponse) MarshalJSON() ([]byte, error)

type RastersParentsListCall

type RastersParentsListCall struct {
	// contains filtered or unexported fields
}

func (*RastersParentsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RastersParentsListCall) Do

Do executes the "mapsengine.rasters.parents.list" call. Exactly one of *ParentsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ParentsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RastersParentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RastersParentsListCall) IfNoneMatch

func (c *RastersParentsListCall) IfNoneMatch(entityTag string) *RastersParentsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*RastersParentsListCall) MaxResults

func (c *RastersParentsListCall) MaxResults(maxResults int64) *RastersParentsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 50.

func (*RastersParentsListCall) PageToken

func (c *RastersParentsListCall) PageToken(pageToken string) *RastersParentsListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

type RastersParentsService

type RastersParentsService struct {
	// contains filtered or unexported fields
}

func NewRastersParentsService

func NewRastersParentsService(s *Service) *RastersParentsService

func (*RastersParentsService) List

List: Return all parent ids of the specified rasters.

type RastersPatchCall

type RastersPatchCall struct {
	// contains filtered or unexported fields
}

func (*RastersPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RastersPatchCall) Do

func (c *RastersPatchCall) Do() error

Do executes the "mapsengine.rasters.patch" call.

func (*RastersPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RastersPermissionsBatchDeleteCall

type RastersPermissionsBatchDeleteCall struct {
	// contains filtered or unexported fields
}

func (*RastersPermissionsBatchDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RastersPermissionsBatchDeleteCall) Do

Do executes the "mapsengine.rasters.permissions.batchDelete" call. Exactly one of *PermissionsBatchDeleteResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsBatchDeleteResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RastersPermissionsBatchDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RastersPermissionsBatchUpdateCall

type RastersPermissionsBatchUpdateCall struct {
	// contains filtered or unexported fields
}

func (*RastersPermissionsBatchUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RastersPermissionsBatchUpdateCall) Do

Do executes the "mapsengine.rasters.permissions.batchUpdate" call. Exactly one of *PermissionsBatchUpdateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsBatchUpdateResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RastersPermissionsBatchUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RastersPermissionsListCall

type RastersPermissionsListCall struct {
	// contains filtered or unexported fields
}

func (*RastersPermissionsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RastersPermissionsListCall) Do

Do executes the "mapsengine.rasters.permissions.list" call. Exactly one of *PermissionsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RastersPermissionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RastersPermissionsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type RastersPermissionsService

type RastersPermissionsService struct {
	// contains filtered or unexported fields
}

func NewRastersPermissionsService

func NewRastersPermissionsService(s *Service) *RastersPermissionsService

func (*RastersPermissionsService) BatchDelete

func (r *RastersPermissionsService) BatchDelete(id string, permissionsbatchdeleterequest *PermissionsBatchDeleteRequest) *RastersPermissionsBatchDeleteCall

BatchDelete: Remove permission entries from an already existing asset.

func (*RastersPermissionsService) BatchUpdate

func (r *RastersPermissionsService) BatchUpdate(id string, permissionsbatchupdaterequest *PermissionsBatchUpdateRequest) *RastersPermissionsBatchUpdateCall

BatchUpdate: Add or update permission entries to an already existing asset.

An asset can hold up to 20 different permission entries. Each batchInsert request is atomic.

func (*RastersPermissionsService) List

List: Return all of the permissions for the specified asset.

type RastersProcessCall

type RastersProcessCall struct {
	// contains filtered or unexported fields
}

func (*RastersProcessCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RastersProcessCall) Do

Do executes the "mapsengine.rasters.process" call. Exactly one of *ProcessResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProcessResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RastersProcessCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type RastersService

type RastersService struct {
	Files *RastersFilesService

	Parents *RastersParentsService

	Permissions *RastersPermissionsService
	// contains filtered or unexported fields
}

func NewRastersService

func NewRastersService(s *Service) *RastersService

func (*RastersService) Delete

func (r *RastersService) Delete(id string) *RastersDeleteCall

Delete: Delete a raster.

func (*RastersService) Get

func (r *RastersService) Get(id string) *RastersGetCall

Get: Return metadata for a single raster.

func (*RastersService) List

func (r *RastersService) List(projectId string) *RastersListCall

List: Return all rasters readable by the current user.

func (*RastersService) Patch

func (r *RastersService) Patch(id string, raster *Raster) *RastersPatchCall

Patch: Mutate a raster asset.

func (*RastersService) Process

func (r *RastersService) Process(id string) *RastersProcessCall

Process: Process a raster asset.

func (*RastersService) Upload

func (r *RastersService) Upload(raster *Raster) *RastersUploadCall

Upload: Create a skeleton raster asset for upload.

type RastersUploadCall

type RastersUploadCall struct {
	// contains filtered or unexported fields
}

func (*RastersUploadCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RastersUploadCall) Do

func (c *RastersUploadCall) Do() (*Raster, error)

Do executes the "mapsengine.rasters.upload" call. Exactly one of *Raster or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Raster.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RastersUploadCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ScaledShape

type ScaledShape struct {
	// Border: Border color/width of the shape. If not specified the shape
	// won't have a border.
	Border *Border `json:"border,omitempty"`

	// Fill: The fill color of the shape. If not specified the shape will be
	// transparent (although the borders may not be).
	Fill *Color `json:"fill,omitempty"`

	// Shape: Name of the shape.
	//
	// Possible values:
	//   "circle"
	Shape string `json:"shape,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Border") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

ScaledShape: Parameters for styling points as scaled shapes.

func (*ScaledShape) MarshalJSON

func (s *ScaledShape) MarshalJSON() ([]byte, error)

type ScalingFunction

type ScalingFunction struct {
	// Column: Name of the numeric column used to scale a shape.
	Column string `json:"column,omitempty"`

	// ScalingType: The type of scaling function to use. Defaults to SQRT.
	// Currently only linear and square root scaling are supported.
	//
	// Possible values:
	//   "linear"
	//   "sqrt"
	ScalingType string `json:"scalingType,omitempty"`

	// SizeRange: The range of shape sizes, in pixels. For circles, the size
	// corresponds to the diameter.
	SizeRange *SizeRange `json:"sizeRange,omitempty"`

	// ValueRange: The range of values to display across the size range.
	ValueRange *ValueRange `json:"valueRange,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Column") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

ScalingFunction: Parameters for scaling scaled shapes.

func (*ScalingFunction) MarshalJSON

func (s *ScalingFunction) MarshalJSON() ([]byte, error)

type Schema

type Schema struct {
	// Columns: An array of TableColumn objects. The first object in the
	// array must be named geometry and be of type points, lineStrings,
	// polygons, or mixedGeometry.
	Columns []*TableColumn `json:"columns,omitempty"`

	// PrimaryGeometry: The name of the column that contains a feature's
	// geometry. This field can be omitted during table create; Google Maps
	// Engine supports only a single geometry column, which must be named
	// geometry and be the first object in the columns array.
	PrimaryGeometry string `json:"primaryGeometry,omitempty"`

	// PrimaryKey: The name of the column that contains the unique
	// identifier of a Feature.
	PrimaryKey string `json:"primaryKey,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Columns") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Schema: A schema indicating the properties which may be associated with features within a Table, and the types of those properties.

func (*Schema) MarshalJSON

func (s *Schema) MarshalJSON() ([]byte, error)

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Assets *AssetsService

	Layers *LayersService

	Maps *MapsService

	Projects *ProjectsService

	RasterCollections *RasterCollectionsService

	Rasters *RastersService

	Tables *TablesService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

type SizeRange

type SizeRange struct {
	// Max: Maximum size, in pixels.
	Max float64 `json:"max,omitempty"`

	// Min: Minimum size, in pixels.
	Min float64 `json:"min,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Max") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

SizeRange: Scaled shape size range in pixels. For circles, size corresponds to diameter.

func (*SizeRange) MarshalJSON

func (s *SizeRange) MarshalJSON() ([]byte, error)

type Table

type Table struct {
	// Bbox: A rectangular bounding box which contains all of the data in
	// this Table. The box is expressed as \"west, south, east, north\". The
	// numbers represent latitude and longitude in decimal degrees.
	Bbox []float64 `json:"bbox,omitempty"`

	// CreationTime: The creation time of this table. The value is an RFC
	// 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
	CreationTime string `json:"creationTime,omitempty"`

	// CreatorEmail: The email address of the creator of this table. This is
	// only returned on GET requests and not LIST requests.
	CreatorEmail string `json:"creatorEmail,omitempty"`

	// Description: The description of this table, supplied by the author.
	Description string `json:"description,omitempty"`

	// DraftAccessList: Deprecated: The name of an access list of the Map
	// Editor type. The user on whose behalf the request is being sent must
	// be an editor on that access list. Note: Google Maps Engine no longer
	// uses access lists. Instead, each asset has its own list of
	// permissions. For backward compatibility, the API still accepts access
	// lists for projects that are already using access lists. If you
	// created a GME account/project after July 14th, 2014, you will not be
	// able to send API requests that include access lists. Note: This is an
	// input field only. It is not returned in response to a list or get
	// request.
	DraftAccessList string `json:"draftAccessList,omitempty"`

	// Etag: The ETag, used to refer to the current version of the asset.
	Etag string `json:"etag,omitempty"`

	// Files: The files associated with this table.
	Files []*File `json:"files,omitempty"`

	// Id: A globally unique ID, used to refer to this table.
	Id string `json:"id,omitempty"`

	// LastModifiedTime: The last modified time of this table. The value is
	// an RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z).
	LastModifiedTime string `json:"lastModifiedTime,omitempty"`

	// LastModifierEmail: The email address of the last modifier of this
	// table. This is only returned on GET requests and not LIST requests.
	LastModifierEmail string `json:"lastModifierEmail,omitempty"`

	// Name: The name of this table, supplied by the author.
	Name string `json:"name,omitempty"`

	// ProcessingStatus: The processing status of this table.
	//
	// Possible values:
	//   "complete"
	//   "failed"
	//   "notReady"
	//   "processing"
	//   "ready"
	ProcessingStatus string `json:"processingStatus,omitempty"`

	// ProjectId: The ID of the project to which the table belongs.
	ProjectId string `json:"projectId,omitempty"`

	// PublishedAccessList: Deprecated: The access list to whom view
	// permissions are granted. The value must be the name of a Maps Engine
	// access list of the Map Viewer type, and the user must be a viewer on
	// that list. Note: Google Maps Engine no longer uses access lists.
	// Instead, each asset has its own list of permissions. For backward
	// compatibility, the API still accepts access lists for projects that
	// are already using access lists. If you created a GME account/project
	// after July 14th, 2014, you will not be able to send API requests that
	// include access lists. Note: This is an input field only. It is not
	// returned in response to a list or get request.
	PublishedAccessList string `json:"publishedAccessList,omitempty"`

	// Schema: The schema for this table. Note: The schema is returned in
	// response to a get request but not a list request. After requesting a
	// list of tables, you'll need to send a get request to retrieve the
	// schema for each table.
	Schema *Schema `json:"schema,omitempty"`

	// SourceEncoding: Encoding of the uploaded files. Valid values include
	// UTF-8, CP1251, ISO 8859-1, and Shift_JIS.
	SourceEncoding string `json:"sourceEncoding,omitempty"`

	// Tags: An array of text strings, with each string representing a tag.
	// More information about tags can be found in the Tagging data article
	// of the Maps Engine help center.
	Tags []string `json:"tags,omitempty"`

	// WritersCanEditPermissions: If true, WRITERs of the asset are able to
	// edit the asset permissions.
	WritersCanEditPermissions bool `json:"writersCanEditPermissions,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Bbox") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Table: A collection of geographic features, and associated metadata.

func (*Table) MarshalJSON

func (s *Table) MarshalJSON() ([]byte, error)

type TableColumn

type TableColumn struct {
	// Name: The column name.
	Name string `json:"name,omitempty"`

	// Type: The type of data stored in this column.
	//
	// Possible values:
	//   "datetime"
	//   "double"
	//   "integer"
	//   "lineStrings"
	//   "mixedGeometry"
	//   "points"
	//   "polygons"
	//   "string"
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Name") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*TableColumn) MarshalJSON

func (s *TableColumn) MarshalJSON() ([]byte, error)

type TablesCreateCall

type TablesCreateCall struct {
	// contains filtered or unexported fields
}

func (*TablesCreateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesCreateCall) Do

func (c *TablesCreateCall) Do() (*Table, error)

Do executes the "mapsengine.tables.create" call. Exactly one of *Table or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Table.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesCreateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TablesDeleteCall

type TablesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*TablesDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesDeleteCall) Do

func (c *TablesDeleteCall) Do() error

Do executes the "mapsengine.tables.delete" call.

func (*TablesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TablesFeaturesBatchDeleteCall

type TablesFeaturesBatchDeleteCall struct {
	// contains filtered or unexported fields
}

func (*TablesFeaturesBatchDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesFeaturesBatchDeleteCall) Do

Do executes the "mapsengine.tables.features.batchDelete" call.

func (*TablesFeaturesBatchDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TablesFeaturesBatchInsertCall

type TablesFeaturesBatchInsertCall struct {
	// contains filtered or unexported fields
}

func (*TablesFeaturesBatchInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesFeaturesBatchInsertCall) Do

Do executes the "mapsengine.tables.features.batchInsert" call.

func (*TablesFeaturesBatchInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TablesFeaturesBatchPatchCall

type TablesFeaturesBatchPatchCall struct {
	// contains filtered or unexported fields
}

func (*TablesFeaturesBatchPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesFeaturesBatchPatchCall) Do

Do executes the "mapsengine.tables.features.batchPatch" call.

func (*TablesFeaturesBatchPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TablesFeaturesGetCall

type TablesFeaturesGetCall struct {
	// contains filtered or unexported fields
}

func (*TablesFeaturesGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesFeaturesGetCall) Do

func (c *TablesFeaturesGetCall) Do() (*Feature, error)

Do executes the "mapsengine.tables.features.get" call. Exactly one of *Feature or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Feature.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesFeaturesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesFeaturesGetCall) IfNoneMatch

func (c *TablesFeaturesGetCall) IfNoneMatch(entityTag string) *TablesFeaturesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TablesFeaturesGetCall) Select

Select sets the optional parameter "select": A SQL-like projection clause used to specify returned properties. If this parameter is not included, all properties are returned.

func (*TablesFeaturesGetCall) Version

func (c *TablesFeaturesGetCall) Version(version string) *TablesFeaturesGetCall

Version sets the optional parameter "version": The table version to access. See Accessing Public Data for information.

Possible values:

"draft" - The draft version.
"published" - The published version.

type TablesFeaturesListCall

type TablesFeaturesListCall struct {
	// contains filtered or unexported fields
}

func (*TablesFeaturesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesFeaturesListCall) Do

Do executes the "mapsengine.tables.features.list" call. Exactly one of *FeaturesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *FeaturesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesFeaturesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesFeaturesListCall) IfNoneMatch

func (c *TablesFeaturesListCall) IfNoneMatch(entityTag string) *TablesFeaturesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TablesFeaturesListCall) Include

Include sets the optional parameter "include": A comma separated list of optional data to include. Optional data available: schema.

func (*TablesFeaturesListCall) Intersects

func (c *TablesFeaturesListCall) Intersects(intersects string) *TablesFeaturesListCall

Intersects sets the optional parameter "intersects": A geometry literal that specifies the spatial restriction of the query.

func (*TablesFeaturesListCall) Limit

Limit sets the optional parameter "limit": The total number of features to return from the query, irrespective of the number of pages.

func (*TablesFeaturesListCall) MaxResults

func (c *TablesFeaturesListCall) MaxResults(maxResults int64) *TablesFeaturesListCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in the response, used for paging. The maximum supported value is 1000.

func (*TablesFeaturesListCall) OrderBy

OrderBy sets the optional parameter "orderBy": An SQL-like order by clause used to sort results. If this parameter is not included, the order of features is undefined.

func (*TablesFeaturesListCall) PageToken

func (c *TablesFeaturesListCall) PageToken(pageToken string) *TablesFeaturesListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

func (*TablesFeaturesListCall) Select

Select sets the optional parameter "select": A SQL-like projection clause used to specify returned properties. If this parameter is not included, all properties are returned.

func (*TablesFeaturesListCall) Version

Version sets the optional parameter "version": The table version to access. See Accessing Public Data for information.

Possible values:

"draft" - The draft version.
"published" - The published version.

func (*TablesFeaturesListCall) Where

Where sets the optional parameter "where": An SQL-like predicate used to filter results.

type TablesFeaturesService

type TablesFeaturesService struct {
	// contains filtered or unexported fields
}

func NewTablesFeaturesService

func NewTablesFeaturesService(s *Service) *TablesFeaturesService

func (*TablesFeaturesService) BatchDelete

func (r *TablesFeaturesService) BatchDelete(id string, featuresbatchdeleterequest *FeaturesBatchDeleteRequest) *TablesFeaturesBatchDeleteCall

BatchDelete: Delete all features matching the given IDs.

func (*TablesFeaturesService) BatchInsert

func (r *TablesFeaturesService) BatchInsert(id string, featuresbatchinsertrequest *FeaturesBatchInsertRequest) *TablesFeaturesBatchInsertCall

BatchInsert: Append features to an existing table.

A single batchInsert request can create:

- Up to 50 features. - A combined total of 10 000 vertices. Feature limits are documented in the Supported data formats and limits article of the Google Maps Engine help center. Note that free and paid accounts have different limits.

For more information about inserting features, read Creating features in the Google Maps Engine developer's guide.

func (*TablesFeaturesService) BatchPatch

func (r *TablesFeaturesService) BatchPatch(id string, featuresbatchpatchrequest *FeaturesBatchPatchRequest) *TablesFeaturesBatchPatchCall

BatchPatch: Update the supplied features.

A single batchPatch request can update:

- Up to 50 features. - A combined total of 10 000 vertices. Feature limits are documented in the Supported data formats and limits article of the Google Maps Engine help center. Note that free and paid accounts have different limits.

Feature updates use HTTP PATCH semantics:

- A supplied value replaces an existing value (if any) in that field. - Omitted fields remain unchanged. - Complex values in geometries and properties must be replaced as atomic units. For example, providing just the coordinates of a geometry is not allowed; the complete geometry, including type, must be supplied. - Setting a property's value to null deletes that property. For more information about updating features, read Updating features in the Google Maps Engine developer's guide.

func (*TablesFeaturesService) Get

Get: Return a single feature, given its ID.

func (*TablesFeaturesService) List

List: Return all features readable by the current user.

type TablesFilesInsertCall

type TablesFilesInsertCall struct {
	// contains filtered or unexported fields
}

func (*TablesFilesInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

func (*TablesFilesInsertCall) Do

func (c *TablesFilesInsertCall) Do() error

Do executes the "mapsengine.tables.files.insert" call.

func (*TablesFilesInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesFilesInsertCall) Media

Media specifies the media to upload in a single chunk. At most one of Media and ResumableMedia may be set.

func (*TablesFilesInsertCall) ProgressUpdater

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*TablesFilesInsertCall) ResumableMedia

func (c *TablesFilesInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TablesFilesInsertCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx. At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type TablesFilesService

type TablesFilesService struct {
	// contains filtered or unexported fields
}

func NewTablesFilesService

func NewTablesFilesService(s *Service) *TablesFilesService

func (*TablesFilesService) Insert

func (r *TablesFilesService) Insert(id string, filename string) *TablesFilesInsertCall

Insert: Upload a file to a placeholder table asset. See Table Upload in the Developer's Guide for more information. Supported file types are listed in the Supported data formats and limits article of the Google Maps Engine help center.

type TablesGetCall

type TablesGetCall struct {
	// contains filtered or unexported fields
}

func (*TablesGetCall) Context

func (c *TablesGetCall) Context(ctx context.Context) *TablesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesGetCall) Do

func (c *TablesGetCall) Do() (*Table, error)

Do executes the "mapsengine.tables.get" call. Exactly one of *Table or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Table.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesGetCall) Fields

func (c *TablesGetCall) Fields(s ...googleapi.Field) *TablesGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesGetCall) IfNoneMatch

func (c *TablesGetCall) IfNoneMatch(entityTag string) *TablesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TablesGetCall) Version

func (c *TablesGetCall) Version(version string) *TablesGetCall

Version sets the optional parameter "version":

Possible values:

"draft" - The draft version.
"published" - The published version.

type TablesListCall

type TablesListCall struct {
	// contains filtered or unexported fields
}

func (*TablesListCall) Bbox

func (c *TablesListCall) Bbox(bbox string) *TablesListCall

Bbox sets the optional parameter "bbox": A bounding box, expressed as "west,south,east,north". If set, only assets which intersect this bounding box will be returned.

func (*TablesListCall) Context

func (c *TablesListCall) Context(ctx context.Context) *TablesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesListCall) CreatedAfter

func (c *TablesListCall) CreatedAfter(createdAfter string) *TablesListCall

CreatedAfter sets the optional parameter "createdAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or after this time.

func (*TablesListCall) CreatedBefore

func (c *TablesListCall) CreatedBefore(createdBefore string) *TablesListCall

CreatedBefore sets the optional parameter "createdBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been created at or before this time.

func (*TablesListCall) CreatorEmail

func (c *TablesListCall) CreatorEmail(creatorEmail string) *TablesListCall

CreatorEmail sets the optional parameter "creatorEmail": An email address representing a user. Returned assets that have been created by the user associated with the provided email address.

func (*TablesListCall) Do

Do executes the "mapsengine.tables.list" call. Exactly one of *TablesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TablesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesListCall) Fields

func (c *TablesListCall) Fields(s ...googleapi.Field) *TablesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesListCall) IfNoneMatch

func (c *TablesListCall) IfNoneMatch(entityTag string) *TablesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TablesListCall) MaxResults

func (c *TablesListCall) MaxResults(maxResults int64) *TablesListCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 100.

func (*TablesListCall) ModifiedAfter

func (c *TablesListCall) ModifiedAfter(modifiedAfter string) *TablesListCall

ModifiedAfter sets the optional parameter "modifiedAfter": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or after this time.

func (*TablesListCall) ModifiedBefore

func (c *TablesListCall) ModifiedBefore(modifiedBefore string) *TablesListCall

ModifiedBefore sets the optional parameter "modifiedBefore": An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned assets will have been modified at or before this time.

func (*TablesListCall) PageToken

func (c *TablesListCall) PageToken(pageToken string) *TablesListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

func (*TablesListCall) ProcessingStatus

func (c *TablesListCall) ProcessingStatus(processingStatus string) *TablesListCall

ProcessingStatus sets the optional parameter "processingStatus":

Possible values:

"complete" - The table has completed processing.
"failed" - The table has failed processing.
"notReady" - The table is not ready for processing.
"processing" - The table is processing.
"ready" - The table is ready for processing.

func (*TablesListCall) ProjectId

func (c *TablesListCall) ProjectId(projectId string) *TablesListCall

ProjectId sets the optional parameter "projectId": The ID of a Maps Engine project, used to filter the response. To list all available projects with their IDs, send a Projects: list request. You can also find your project ID as the value of the DashboardPlace:cid URL parameter when signed in to mapsengine.google.com.

func (*TablesListCall) Role

func (c *TablesListCall) Role(role string) *TablesListCall

Role sets the optional parameter "role": The role parameter indicates that the response should only contain assets where the current user has the specified level of access.

Possible values:

"owner" - The user can read, write and administer the asset.
"reader" - The user can read the asset.
"writer" - The user can read and write the asset.

func (*TablesListCall) Search

func (c *TablesListCall) Search(search string) *TablesListCall

Search sets the optional parameter "search": An unstructured search string used to filter the set of results based on asset metadata.

func (*TablesListCall) Tags

func (c *TablesListCall) Tags(tags string) *TablesListCall

Tags sets the optional parameter "tags": A comma separated list of tags. Returned assets will contain all the tags from the list.

type TablesListResponse

type TablesListResponse struct {
	// NextPageToken: Next page token.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Tables: Resources returned.
	Tables []*Table `json:"tables,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

TablesListResponse: The response returned by a call to tables.List. Note: The list response does not include all the fields available in a table. Refer to the table resource description for details of the fields that are not included. You'll need to send a get request to retrieve the additional fields for each table.

func (*TablesListResponse) MarshalJSON

func (s *TablesListResponse) MarshalJSON() ([]byte, error)

type TablesParentsListCall

type TablesParentsListCall struct {
	// contains filtered or unexported fields
}

func (*TablesParentsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesParentsListCall) Do

Do executes the "mapsengine.tables.parents.list" call. Exactly one of *ParentsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ParentsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesParentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesParentsListCall) IfNoneMatch

func (c *TablesParentsListCall) IfNoneMatch(entityTag string) *TablesParentsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TablesParentsListCall) MaxResults

func (c *TablesParentsListCall) MaxResults(maxResults int64) *TablesParentsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of items to include in a single response page. The maximum supported value is 50.

func (*TablesParentsListCall) PageToken

func (c *TablesParentsListCall) PageToken(pageToken string) *TablesParentsListCall

PageToken sets the optional parameter "pageToken": The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.

type TablesParentsService

type TablesParentsService struct {
	// contains filtered or unexported fields
}

func NewTablesParentsService

func NewTablesParentsService(s *Service) *TablesParentsService

func (*TablesParentsService) List

List: Return all parent ids of the specified table.

type TablesPatchCall

type TablesPatchCall struct {
	// contains filtered or unexported fields
}

func (*TablesPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesPatchCall) Do

func (c *TablesPatchCall) Do() error

Do executes the "mapsengine.tables.patch" call.

func (*TablesPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TablesPermissionsBatchDeleteCall

type TablesPermissionsBatchDeleteCall struct {
	// contains filtered or unexported fields
}

func (*TablesPermissionsBatchDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesPermissionsBatchDeleteCall) Do

Do executes the "mapsengine.tables.permissions.batchDelete" call. Exactly one of *PermissionsBatchDeleteResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsBatchDeleteResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesPermissionsBatchDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TablesPermissionsBatchUpdateCall

type TablesPermissionsBatchUpdateCall struct {
	// contains filtered or unexported fields
}

func (*TablesPermissionsBatchUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesPermissionsBatchUpdateCall) Do

Do executes the "mapsengine.tables.permissions.batchUpdate" call. Exactly one of *PermissionsBatchUpdateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsBatchUpdateResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesPermissionsBatchUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TablesPermissionsListCall

type TablesPermissionsListCall struct {
	// contains filtered or unexported fields
}

func (*TablesPermissionsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesPermissionsListCall) Do

Do executes the "mapsengine.tables.permissions.list" call. Exactly one of *PermissionsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PermissionsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesPermissionsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesPermissionsListCall) IfNoneMatch

func (c *TablesPermissionsListCall) IfNoneMatch(entityTag string) *TablesPermissionsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type TablesPermissionsService

type TablesPermissionsService struct {
	// contains filtered or unexported fields
}

func NewTablesPermissionsService

func NewTablesPermissionsService(s *Service) *TablesPermissionsService

func (*TablesPermissionsService) BatchDelete

func (r *TablesPermissionsService) BatchDelete(id string, permissionsbatchdeleterequest *PermissionsBatchDeleteRequest) *TablesPermissionsBatchDeleteCall

BatchDelete: Remove permission entries from an already existing asset.

func (*TablesPermissionsService) BatchUpdate

func (r *TablesPermissionsService) BatchUpdate(id string, permissionsbatchupdaterequest *PermissionsBatchUpdateRequest) *TablesPermissionsBatchUpdateCall

BatchUpdate: Add or update permission entries to an already existing asset.

An asset can hold up to 20 different permission entries. Each batchInsert request is atomic.

func (*TablesPermissionsService) List

List: Return all of the permissions for the specified asset.

type TablesProcessCall

type TablesProcessCall struct {
	// contains filtered or unexported fields
}

func (*TablesProcessCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesProcessCall) Do

Do executes the "mapsengine.tables.process" call. Exactly one of *ProcessResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProcessResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesProcessCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type TablesService

type TablesService struct {
	Features *TablesFeaturesService

	Files *TablesFilesService

	Parents *TablesParentsService

	Permissions *TablesPermissionsService
	// contains filtered or unexported fields
}

func NewTablesService

func NewTablesService(s *Service) *TablesService

func (*TablesService) Create

func (r *TablesService) Create(table *Table) *TablesCreateCall

Create: Create a table asset.

func (*TablesService) Delete

func (r *TablesService) Delete(id string) *TablesDeleteCall

Delete: Delete a table.

func (*TablesService) Get

func (r *TablesService) Get(id string) *TablesGetCall

Get: Return metadata for a particular table, including the schema.

func (*TablesService) List

func (r *TablesService) List() *TablesListCall

List: Return all tables readable by the current user.

func (*TablesService) Patch

func (r *TablesService) Patch(id string, table *Table) *TablesPatchCall

Patch: Mutate a table asset.

func (*TablesService) Process

func (r *TablesService) Process(id string) *TablesProcessCall

Process: Process a table asset.

func (*TablesService) Upload

func (r *TablesService) Upload(table *Table) *TablesUploadCall

Upload: Create a placeholder table asset to which table files can be uploaded. Once the placeholder has been created, files are uploaded to the https://www.googleapis.com/upload/mapsengine/v1/tables/table_id/files endpoint. See Table Upload in the Developer's Guide or Table.files: insert in the reference documentation for more information.

type TablesUploadCall

type TablesUploadCall struct {
	// contains filtered or unexported fields
}

func (*TablesUploadCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesUploadCall) Do

func (c *TablesUploadCall) Do() (*Table, error)

Do executes the "mapsengine.tables.upload" call. Exactly one of *Table or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Table.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesUploadCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type ValueRange

type ValueRange struct {
	// Max: Maximum value.
	Max float64 `json:"max,omitempty"`

	// Min: Minimum value.
	Min float64 `json:"min,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Max") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

ValueRange: Range of values used for scaling shapes. The min/max values will be drawn as shapes with the min/max size.

func (*ValueRange) MarshalJSON

func (s *ValueRange) MarshalJSON() ([]byte, error)

type VectorStyle

type VectorStyle struct {
	DisplayRules []*DisplayRule `json:"displayRules,omitempty"`

	// FeatureInfo: Individual feature info, this is called Info Window in
	// Maps Engine UI. If not provided, a default template with all
	// attributes will be generated.
	FeatureInfo *FeatureInfo `json:"featureInfo,omitempty"`

	// Type: The type of the vector style. Currently, only displayRule is
	// supported.
	//
	// Possible values:
	//   "displayRule"
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "DisplayRules") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

VectorStyle: A vector style contains styling information for vector layer.

func (*VectorStyle) MarshalJSON

func (s *VectorStyle) MarshalJSON() ([]byte, error)

type ZoomLevels

type ZoomLevels struct {
	// Max: Maximum zoom level.
	Max int64 `json:"max,omitempty"`

	// Min: Minimum zoom level.
	Min int64 `json:"min,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Max") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

ZoomLevels: Zoom level range. Zoom levels are restricted between 0 and 24, inclusive.

func (*ZoomLevels) MarshalJSON

func (s *ZoomLevels) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL