dex/vendor/google.golang.org/api/google-api-go-generator/testdata/mapofany.want
2016-04-08 11:56:29 -07:00

68 lines
1.5 KiB
Text

// Package mapofany provides access to the Example API.
//
// Usage example:
//
// import "google.golang.org/api/mapofany/v1"
// ...
// mapofanyService, err := mapofany.New(oauthHttpClient)
package mapofany
import (
"bytes"
"google.golang.org/api/googleapi"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
const apiId = "mapofany:v1"
const apiName = "mapofany"
const apiVersion = "v1"
const basePath = "https://www.googleapis.com/discovery/v1/apis"
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
}
type JsonValue interface{}
type TableDataInsertAllRequest struct {
// Kind: The resource type of the response.
Kind string `json:"kind,omitempty"`
// Rows: The rows to insert.
Rows []*TableDataInsertAllRequestRows `json:"rows,omitempty"`
}
type TableDataInsertAllRequestRows struct {
// Json: [Required] A JSON object that contains a row of data. The
// object's properties and values must match the destination table's
// schema.
Json map[string]JsonValue `json:"json,omitempty"`
}