forked from mystiq/dex
57 lines
1.2 KiB
Text
57 lines
1.2 KiB
Text
|
// Package arrayofmapofstrings provides access to the Example API.
|
||
|
//
|
||
|
// Usage example:
|
||
|
//
|
||
|
// import "google.golang.org/api/arrayofmapofstrings/v1"
|
||
|
// ...
|
||
|
// arrayofmapofstringsService, err := arrayofmapofstrings.New(oauthHttpClient)
|
||
|
package arrayofmapofstrings
|
||
|
|
||
|
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 = "arrayofmapofstrings:v1"
|
||
|
const apiName = "arrayofmapofstrings"
|
||
|
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 Analyze struct {
|
||
|
// Errors: List of errors with the data.
|
||
|
Errors []map[string]string `json:"errors,omitempty"`
|
||
|
}
|