~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/google.golang.org/api/google-api-go-generator/testdata/arrayofarray-1.want

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Package arrayofarray provides access to the Example API.
 
2
//
 
3
// Usage example:
 
4
//
 
5
//   import "google.golang.org/api/arrayofarray/v1"
 
6
//   ...
 
7
//   arrayofarrayService, err := arrayofarray.New(oauthHttpClient)
 
8
package arrayofarray
 
9
 
 
10
import (
 
11
        "bytes"
 
12
        "google.golang.org/api/googleapi"
 
13
        "encoding/json"
 
14
        "errors"
 
15
        "fmt"
 
16
        "io"
 
17
        "net/http"
 
18
        "net/url"
 
19
        "strconv"
 
20
        "strings"
 
21
)
 
22
 
 
23
// Always reference these packages, just in case the auto-generated code
 
24
// below doesn't.
 
25
var _ = bytes.NewBuffer
 
26
var _ = strconv.Itoa
 
27
var _ = fmt.Sprintf
 
28
var _ = json.NewDecoder
 
29
var _ = io.Copy
 
30
var _ = url.Parse
 
31
var _ = googleapi.Version
 
32
var _ = errors.New
 
33
var _ = strings.Replace
 
34
 
 
35
const apiId = "arrayofarray:v1"
 
36
const apiName = "arrayofarray"
 
37
const apiVersion = "v1"
 
38
const basePath = "https://www.googleapis.com/discovery/v1/apis"
 
39
 
 
40
func New(client *http.Client) (*Service, error) {
 
41
        if client == nil {
 
42
                return nil, errors.New("client is nil")
 
43
        }
 
44
        s := &Service{client: client, BasePath: basePath}
 
45
        return s, nil
 
46
}
 
47
 
 
48
type Service struct {
 
49
        client   *http.Client
 
50
        BasePath string // API endpoint base URL
 
51
}
 
52
 
 
53
type GeoJsonMultiPolygon struct {
 
54
        // Coordinates: Coordinate arrays.
 
55
        Coordinates [][][][]float64 `json:"coordinates,omitempty"`
 
56
 
 
57
        // Type: Identifies this object as a multi-polygon.
 
58
        Type string `json:"type,omitempty"`
 
59
}