blob: d69daaf4d51aa9e8d293895b6c11405165a2185f [file] [log] [blame]
// Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package androidbuildinternal provides access to the .
//
// Creating a client
//
// Usage example:
//
// import "go.skia.org/infra/go/androidbuildinternal/v2beta1"
// ...
// ctx := context.Background()
// androidbuildinternalService, err := androidbuildinternal.NewService(ctx)
//
// In this example, Google Application Default Credentials are used for authentication.
//
// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
//
// Other authentication options
//
// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
//
// androidbuildinternalService, err := androidbuildinternal.NewService(ctx, option.WithAPIKey("AIza..."))
//
// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
//
// config := &oauth2.Config{...}
// // ...
// token, err := config.Exchange(ctx, ...)
// androidbuildinternalService, err := androidbuildinternal.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See https://godoc.org/google.golang.org/api/option/ for details on options.
package androidbuildinternal // import "go.skia.org/infra/go/androidbuildinternal/v2beta1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
gensupport "github.com/skia-dev/google-api-go-client/gensupport"
googleapi "google.golang.org/api/googleapi"
option "google.golang.org/api/option"
htransport "google.golang.org/api/transport/http"
)
// 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 _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
const apiId = "androidbuildinternal:v2beta1"
const apiName = "androidbuildinternal"
const apiVersion = "v2beta1"
const basePath = "https://www.googleapis.com/android/internal/build/v2beta1/"
// OAuth2 scopes used by this API.
const (
// View and manage Internal Android Build status and results
AndroidbuildInternalScope = "https://www.googleapis.com/auth/androidbuild.internal"
)
// NewService creates a new Service.
func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
scopesOption := option.WithScopes(
"https://www.googleapis.com/auth/androidbuild.internal",
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
}
s, err := New(client)
if err != nil {
return nil, err
}
if endpoint != "" {
s.BasePath = endpoint
}
return s, nil
}
// New creates a new Service. It uses the provided http.Client for requests.
//
// Deprecated: please use NewService instead.
// To provide a custom HTTP client, use option.WithHTTPClient.
// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Analyzerfinding = NewAnalyzerfindingService(s)
s.Analyzerresult = NewAnalyzerresultService(s)
s.Branch = NewBranchService(s)
s.Bughash = NewBughashService(s)
s.Build = NewBuildService(s)
s.Buildartifact = NewBuildartifactService(s)
s.Buildattempt = NewBuildattemptService(s)
s.Buildid = NewBuildidService(s)
s.Buildrequest = NewBuildrequestService(s)
s.Change = NewChangeService(s)
s.Changesetspec = NewChangesetspecService(s)
s.Deviceblob = NewDeviceblobService(s)
s.Externaldisk = NewExternaldiskService(s)
s.Imagerequest = NewImagerequestService(s)
s.Label = NewLabelService(s)
s.Machine = NewMachineService(s)
s.Message = NewMessageService(s)
s.Metric = NewMetricService(s)
s.Prebuiltfile = NewPrebuiltfileService(s)
s.Schedulingpool = NewSchedulingpoolService(s)
s.Software = NewSoftwareService(s)
s.Target = NewTargetService(s)
s.Testartifact = NewTestartifactService(s)
s.Testresult = NewTestresultService(s)
s.Worknode = NewWorknodeService(s)
s.Workplan = NewWorkplanService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Analyzerfinding *AnalyzerfindingService
Analyzerresult *AnalyzerresultService
Branch *BranchService
Bughash *BughashService
Build *BuildService
Buildartifact *BuildartifactService
Buildattempt *BuildattemptService
Buildid *BuildidService
Buildrequest *BuildrequestService
Change *ChangeService
Changesetspec *ChangesetspecService
Deviceblob *DeviceblobService
Externaldisk *ExternaldiskService
Imagerequest *ImagerequestService
Label *LabelService
Machine *MachineService
Message *MessageService
Metric *MetricService
Prebuiltfile *PrebuiltfileService
Schedulingpool *SchedulingpoolService
Software *SoftwareService
Target *TargetService
Testartifact *TestartifactService
Testresult *TestresultService
Worknode *WorknodeService
Workplan *WorkplanService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewAnalyzerfindingService(s *Service) *AnalyzerfindingService {
rs := &AnalyzerfindingService{s: s}
return rs
}
type AnalyzerfindingService struct {
s *Service
}
func NewAnalyzerresultService(s *Service) *AnalyzerresultService {
rs := &AnalyzerresultService{s: s}
return rs
}
type AnalyzerresultService struct {
s *Service
}
func NewBranchService(s *Service) *BranchService {
rs := &BranchService{s: s}
return rs
}
type BranchService struct {
s *Service
}
func NewBughashService(s *Service) *BughashService {
rs := &BughashService{s: s}
return rs
}
type BughashService struct {
s *Service
}
func NewBuildService(s *Service) *BuildService {
rs := &BuildService{s: s}
return rs
}
type BuildService struct {
s *Service
}
func NewBuildartifactService(s *Service) *BuildartifactService {
rs := &BuildartifactService{s: s}
return rs
}
type BuildartifactService struct {
s *Service
}
func NewBuildattemptService(s *Service) *BuildattemptService {
rs := &BuildattemptService{s: s}
return rs
}
type BuildattemptService struct {
s *Service
}
func NewBuildidService(s *Service) *BuildidService {
rs := &BuildidService{s: s}
return rs
}
type BuildidService struct {
s *Service
}
func NewBuildrequestService(s *Service) *BuildrequestService {
rs := &BuildrequestService{s: s}
return rs
}
type BuildrequestService struct {
s *Service
}
func NewChangeService(s *Service) *ChangeService {
rs := &ChangeService{s: s}
return rs
}
type ChangeService struct {
s *Service
}
func NewChangesetspecService(s *Service) *ChangesetspecService {
rs := &ChangesetspecService{s: s}
return rs
}
type ChangesetspecService struct {
s *Service
}
func NewDeviceblobService(s *Service) *DeviceblobService {
rs := &DeviceblobService{s: s}
return rs
}
type DeviceblobService struct {
s *Service
}
func NewExternaldiskService(s *Service) *ExternaldiskService {
rs := &ExternaldiskService{s: s}
return rs
}
type ExternaldiskService struct {
s *Service
}
func NewImagerequestService(s *Service) *ImagerequestService {
rs := &ImagerequestService{s: s}
return rs
}
type ImagerequestService struct {
s *Service
}
func NewLabelService(s *Service) *LabelService {
rs := &LabelService{s: s}
return rs
}
type LabelService struct {
s *Service
}
func NewMachineService(s *Service) *MachineService {
rs := &MachineService{s: s}
return rs
}
type MachineService struct {
s *Service
}
func NewMessageService(s *Service) *MessageService {
rs := &MessageService{s: s}
return rs
}
type MessageService struct {
s *Service
}
func NewMetricService(s *Service) *MetricService {
rs := &MetricService{s: s}
return rs
}
type MetricService struct {
s *Service
}
func NewPrebuiltfileService(s *Service) *PrebuiltfileService {
rs := &PrebuiltfileService{s: s}
return rs
}
type PrebuiltfileService struct {
s *Service
}
func NewSchedulingpoolService(s *Service) *SchedulingpoolService {
rs := &SchedulingpoolService{s: s}
return rs
}
type SchedulingpoolService struct {
s *Service
}
func NewSoftwareService(s *Service) *SoftwareService {
rs := &SoftwareService{s: s}
return rs
}
type SoftwareService struct {
s *Service
}
func NewTargetService(s *Service) *TargetService {
rs := &TargetService{s: s}
return rs
}
type TargetService struct {
s *Service
}
func NewTestartifactService(s *Service) *TestartifactService {
rs := &TestartifactService{s: s}
return rs
}
type TestartifactService struct {
s *Service
}
func NewTestresultService(s *Service) *TestresultService {
rs := &TestresultService{s: s}
return rs
}
type TestresultService struct {
s *Service
}
func NewWorknodeService(s *Service) *WorknodeService {
rs := &WorknodeService{s: s}
return rs
}
type WorknodeService struct {
s *Service
}
func NewWorkplanService(s *Service) *WorkplanService {
rs := &WorkplanService{s: s}
return rs
}
type WorkplanService struct {
s *Service
}
type AnalyzerFinding struct {
Actionable bool `json:"actionable,omitempty"`
AnalyzerResultId string `json:"analyzerResultId,omitempty"`
Category string `json:"category,omitempty"`
Fixes []*AnalyzerFindingFix `json:"fixes,omitempty"`
Id string `json:"id,omitempty"`
Level string `json:"level,omitempty"`
Location *AnalyzerFindingLocation `json:"location,omitempty"`
Message string `json:"message,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Actionable") 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:"-"`
// NullFields is a list of field names (e.g. "Actionable") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerFinding) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerFinding
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerFindingFix struct {
Description string `json:"description,omitempty"`
Replacements []*AnalyzerFindingFixReplacement `json:"replacements,omitempty"`
// 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:"-"`
// NullFields is a list of field names (e.g. "Description") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerFindingFix) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerFindingFix
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerFindingFixReplacement struct {
Location *AnalyzerFindingLocation `json:"location,omitempty"`
NewContent string `json:"newContent,omitempty"`
// ForceSendFields is a list of field names (e.g. "Location") 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:"-"`
// NullFields is a list of field names (e.g. "Location") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerFindingFixReplacement) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerFindingFixReplacement
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerFindingListResponse struct {
AnalyzerFindings []*AnalyzerFinding `json:"analyzerFindings,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AnalyzerFindings") 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:"-"`
// NullFields is a list of field names (e.g. "AnalyzerFindings") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerFindingListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerFindingListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerFindingLocation struct {
ColEnd int64 `json:"colEnd,omitempty"`
ColStart int64 `json:"colStart,omitempty"`
Filepath string `json:"filepath,omitempty"`
LineEnd int64 `json:"lineEnd,omitempty"`
LineStart int64 `json:"lineStart,omitempty"`
Metadata *AnalyzerFindingLocationMetadata `json:"metadata,omitempty"`
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "ColEnd") 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:"-"`
// NullFields is a list of field names (e.g. "ColEnd") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerFindingLocation) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerFindingLocation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerFindingLocationMetadata struct {
BuildArtifact *AnalyzerFindingLocationMetadataBuildArtifactLocationMetadata `json:"buildArtifact,omitempty"`
External *AnalyzerFindingLocationMetadataExternalLocationMetadata `json:"external,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildArtifact") 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:"-"`
// NullFields is a list of field names (e.g. "BuildArtifact") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerFindingLocationMetadata) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerFindingLocationMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerFindingLocationMetadataBuildArtifactLocationMetadata struct {
BuildId string `json:"buildId,omitempty"`
BuildType string `json:"buildType,omitempty"`
Target string `json:"target,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerFindingLocationMetadataBuildArtifactLocationMetadata) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerFindingLocationMetadataBuildArtifactLocationMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerFindingLocationMetadataExternalLocationMetadata struct {
CustomUrl string `json:"customUrl,omitempty"`
// ForceSendFields is a list of field names (e.g. "CustomUrl") 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:"-"`
// NullFields is a list of field names (e.g. "CustomUrl") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerFindingLocationMetadataExternalLocationMetadata) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerFindingLocationMetadataExternalLocationMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerResult struct {
Category string `json:"category,omitempty"`
ChangeNumber int64 `json:"changeNumber,omitempty,string"`
Host string `json:"host,omitempty"`
Id string `json:"id,omitempty"`
Patchset string `json:"patchset,omitempty"`
Revision string `json:"revision,omitempty"`
Status string `json:"status,omitempty"`
Timing *AnalyzerResultRunTiming `json:"timing,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Category") 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:"-"`
// NullFields is a list of field names (e.g. "Category") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerResult) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerResultAddFindingsRequest struct {
Findings []*AnalyzerFinding `json:"findings,omitempty"`
// ForceSendFields is a list of field names (e.g. "Findings") 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:"-"`
// NullFields is a list of field names (e.g. "Findings") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerResultAddFindingsRequest) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerResultAddFindingsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerResultAddFindingsResponse struct {
Findings []*AnalyzerFinding `json:"findings,omitempty"`
Result *AnalyzerResult `json:"result,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Findings") 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:"-"`
// NullFields is a list of field names (e.g. "Findings") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerResultAddFindingsResponse) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerResultAddFindingsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerResultCategoriesRequest struct {
Enabled bool `json:"enabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") 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:"-"`
// NullFields is a list of field names (e.g. "Enabled") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerResultCategoriesRequest) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerResultCategoriesRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerResultCategoriesResponse struct {
KnownCategories *KnownCategories `json:"knownCategories,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "KnownCategories") 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:"-"`
// NullFields is a list of field names (e.g. "KnownCategories") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerResultCategoriesResponse) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerResultCategoriesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerResultListResponse struct {
AnalyzerResults []*AnalyzerResult `json:"analyzerResults,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AnalyzerResults") 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:"-"`
// NullFields is a list of field names (e.g. "AnalyzerResults") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerResultListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerResultListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnalyzerResultRunTiming struct {
DurationMs int64 `json:"durationMs,omitempty,string"`
StartTimeMs int64 `json:"startTimeMs,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "DurationMs") 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:"-"`
// NullFields is a list of field names (e.g. "DurationMs") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnalyzerResultRunTiming) MarshalJSON() ([]byte, error) {
type NoMethod AnalyzerResultRunTiming
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnchorwatchMessage struct {
Kwargs []*AnchorwatchMessageMetricField `json:"kwargs,omitempty"`
Metadatas []*AnchorwatchMessageMetricField `json:"metadatas,omitempty"`
MethodCall *AnchorwatchMessageMethodCall `json:"methodCall,omitempty"`
MetricType string `json:"metricType,omitempty"`
ServiceName string `json:"serviceName,omitempty"`
StreamzName string `json:"streamzName,omitempty"`
// ForceSendFields is a list of field names (e.g. "Kwargs") 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:"-"`
// NullFields is a list of field names (e.g. "Kwargs") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnchorwatchMessage) MarshalJSON() ([]byte, error) {
type NoMethod AnchorwatchMessage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnchorwatchMessageFieldTuple struct {
FieldName string `json:"fieldName,omitempty"`
FieldType string `json:"fieldType,omitempty"`
// ForceSendFields is a list of field names (e.g. "FieldName") 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:"-"`
// NullFields is a list of field names (e.g. "FieldName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnchorwatchMessageFieldTuple) MarshalJSON() ([]byte, error) {
type NoMethod AnchorwatchMessageFieldTuple
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnchorwatchMessageMethodCall struct {
Args []*AnchorwatchMessageMetricValue `json:"args,omitempty"`
// ForceSendFields is a list of field names (e.g. "Args") 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:"-"`
// NullFields is a list of field names (e.g. "Args") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnchorwatchMessageMethodCall) MarshalJSON() ([]byte, error) {
type NoMethod AnchorwatchMessageMethodCall
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnchorwatchMessageMetricField struct {
FieldName string `json:"fieldName,omitempty"`
FieldValue *AnchorwatchMessageMetricValue `json:"fieldValue,omitempty"`
// ForceSendFields is a list of field names (e.g. "FieldName") 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:"-"`
// NullFields is a list of field names (e.g. "FieldName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnchorwatchMessageMetricField) MarshalJSON() ([]byte, error) {
type NoMethod AnchorwatchMessageMetricField
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AnchorwatchMessageMetricValue struct {
BoolValue bool `json:"boolValue,omitempty"`
DoubleValue float64 `json:"doubleValue,omitempty"`
FieldTuple *AnchorwatchMessageFieldTuple `json:"fieldTuple,omitempty"`
Int64Value int64 `json:"int64Value,omitempty,string"`
StringValue string `json:"stringValue,omitempty"`
// ForceSendFields is a list of field names (e.g. "BoolValue") 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:"-"`
// NullFields is a list of field names (e.g. "BoolValue") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AnchorwatchMessageMetricValue) MarshalJSON() ([]byte, error) {
type NoMethod AnchorwatchMessageMetricValue
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *AnchorwatchMessageMetricValue) UnmarshalJSON(data []byte) error {
type NoMethod AnchorwatchMessageMetricValue
var s1 struct {
DoubleValue gensupport.JSONFloat64 `json:"doubleValue"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.DoubleValue = float64(s1.DoubleValue)
return nil
}
type AndroidBuildDrop struct {
BuildId string `json:"buildId,omitempty"`
SourceFile string `json:"sourceFile,omitempty"`
Target string `json:"target,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AndroidBuildDrop) MarshalJSON() ([]byte, error) {
type NoMethod AndroidBuildDrop
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Annotation struct {
Name string `json:"name,omitempty"`
Value string `json:"value,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:"-"`
// NullFields is a list of field names (e.g. "Name") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Annotation) MarshalJSON() ([]byte, error) {
type NoMethod Annotation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ApkSignResult struct {
Apk string `json:"apk,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`
Path string `json:"path,omitempty"`
SignedApkArtifactName string `json:"signedApkArtifactName,omitempty"`
Success bool `json:"success,omitempty"`
// ForceSendFields is a list of field names (e.g. "Apk") 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:"-"`
// NullFields is a list of field names (e.g. "Apk") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ApkSignResult) MarshalJSON() ([]byte, error) {
type NoMethod ApkSignResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Arg struct {
Key string `json:"key,omitempty"`
Values []string `json:"values,omitempty"`
// ForceSendFields is a list of field names (e.g. "Key") 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:"-"`
// NullFields is a list of field names (e.g. "Key") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Arg) MarshalJSON() ([]byte, error) {
type NoMethod Arg
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfig struct {
BannedBuildIds []string `json:"bannedBuildIds,omitempty"`
BigstoreBucketName string `json:"bigstoreBucketName,omitempty"`
BuildCopConfig *BranchConfigBuildCopConfig `json:"buildCopConfig,omitempty"`
BuildLimitBuildId string `json:"buildLimitBuildId,omitempty"`
BuildPrefix string `json:"buildPrefix,omitempty"`
BuildRequest *BranchConfigBuildRequestConfig `json:"buildRequest,omitempty"`
BuildUpdateAcl string `json:"buildUpdateAcl,omitempty"`
ConductorConfig *BranchConfigConductorConfig `json:"conductorConfig,omitempty"`
DefaultBuildType string `json:"defaultBuildType,omitempty"`
DevelopmentBranch string `json:"developmentBranch,omitempty"`
Disabled bool `json:"disabled,omitempty"`
DisplayName string `json:"displayName,omitempty"`
External *BranchConfigExternalBuildConfig `json:"external,omitempty"`
Flashstation *BranchConfigFlashStationConfig `json:"flashstation,omitempty"`
Gitbuildkicker *BranchConfigGitbuildkickerConfig `json:"gitbuildkicker,omitempty"`
IgnoreCommits bool `json:"ignoreCommits,omitempty"`
IgnoreRobotCommit bool `json:"ignoreRobotCommit,omitempty"`
IncrementalBuild bool `json:"incrementalBuild,omitempty"`
JavaVersion string `json:"javaVersion,omitempty"`
LaunchcontrolConfig *BranchConfigLCBranchConfig `json:"launchcontrolConfig,omitempty"`
Manifest *ManifestLocation `json:"manifest,omitempty"`
Name string `json:"name,omitempty"`
NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
OwnerInfo *OwnerInfo `json:"ownerInfo,omitempty"`
PdkReleaseBranch bool `json:"pdkReleaseBranch,omitempty"`
PlatformVersion string `json:"platformVersion,omitempty"`
ProjectConfigs map[string]BranchConfigProjectConfig `json:"projectConfigs,omitempty"`
ReleaseBranch bool `json:"releaseBranch,omitempty"`
ScheduledBuildTimespec string `json:"scheduledBuildTimespec,omitempty"`
SigningAcl string `json:"signingAcl,omitempty"`
SubmitQueue *BranchConfigSubmitQueueBranchConfig `json:"submitQueue,omitempty"`
Submitted *BranchConfigSubmittedBuildConfig `json:"submitted,omitempty"`
TargetOwnerRequired bool `json:"targetOwnerRequired,omitempty"`
Targets []*Target `json:"targets,omitempty"`
TestRunnerConfigureds []string `json:"testRunnerConfigureds,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "BannedBuildIds") 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:"-"`
// NullFields is a list of field names (e.g. "BannedBuildIds") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *BranchConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigBuildCopConfig struct {
Enabled bool `json:"enabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") 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:"-"`
// NullFields is a list of field names (e.g. "Enabled") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigBuildCopConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigBuildCopConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigBuildRequestConfig struct {
AclName string `json:"aclName,omitempty"`
// ForceSendFields is a list of field names (e.g. "AclName") 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:"-"`
// NullFields is a list of field names (e.g. "AclName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigBuildRequestConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigBuildRequestConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigBuildSelectorConfig struct {
DefaultStrategyParameters *BranchConfigDefaultStrategyParameters `json:"defaultStrategyParameters,omitempty"`
Target string `json:"target,omitempty"`
TestFilterParameters *BranchConfigTestFilterParameters `json:"testFilterParameters,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "DefaultStrategyParameters") 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:"-"`
// NullFields is a list of field names (e.g.
// "DefaultStrategyParameters") to include in API requests with the JSON
// null value. By default, fields with empty values are omitted from API
// requests. However, any field with an empty value appearing in
// NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigBuildSelectorConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigBuildSelectorConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigConductorConfig struct {
ArtifactName string `json:"artifactName,omitempty"`
OemOptional bool `json:"oemOptional,omitempty"`
PackageName string `json:"packageName,omitempty"`
RebootRequired bool `json:"rebootRequired,omitempty"`
TestArtifacts []string `json:"testArtifacts,omitempty"`
// ForceSendFields is a list of field names (e.g. "ArtifactName") 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:"-"`
// NullFields is a list of field names (e.g. "ArtifactName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigConductorConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigConductorConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigDefaultStrategyParameters struct {
ShortCircuitInterval int64 `json:"shortCircuitInterval,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ShortCircuitInterval") 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:"-"`
// NullFields is a list of field names (e.g. "ShortCircuitInterval") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigDefaultStrategyParameters) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigDefaultStrategyParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigExternalBuildConfig struct {
Enabled bool `json:"enabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") 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:"-"`
// NullFields is a list of field names (e.g. "Enabled") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigExternalBuildConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigExternalBuildConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigFlashStationConfig struct {
Enabled bool `json:"enabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") 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:"-"`
// NullFields is a list of field names (e.g. "Enabled") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigFlashStationConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigFlashStationConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigGitbuildkickerConfig struct {
BuildSelectorConfigs []*BranchConfigBuildSelectorConfig `json:"buildSelectorConfigs,omitempty"`
GreenBuildTestFilters []string `json:"greenBuildTestFilters,omitempty"`
MainlineApexVersionInfo *BranchConfigGitbuildkickerConfigMainlineVersion `json:"mainlineApexVersionInfo,omitempty"`
MainlineApkVersionInfo *BranchConfigGitbuildkickerConfigMainlineVersion `json:"mainlineApkVersionInfo,omitempty"`
MainlineArtifacts []*BranchConfigGitbuildkickerConfigMainlineTarget `json:"mainlineArtifacts,omitempty"`
MainlineBuildPrefix string `json:"mainlineBuildPrefix,omitempty"`
MainlineTargetNames []string `json:"mainlineTargetNames,omitempty"`
MainlineTargets []*BranchConfigGitbuildkickerConfigMainlineTarget `json:"mainlineTargets,omitempty"`
Notifications []string `json:"notifications,omitempty"`
ShortCircuitInterval int64 `json:"shortCircuitInterval,omitempty"`
Targets []string `json:"targets,omitempty"`
VersionInfo *BranchConfigGitbuildkickerConfigVersionBumpingSpec `json:"versionInfo,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BuildSelectorConfigs") 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:"-"`
// NullFields is a list of field names (e.g. "BuildSelectorConfigs") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigGitbuildkickerConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigGitbuildkickerConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigGitbuildkickerConfigMainlineTarget struct {
ApexVersionInfo *BranchConfigGitbuildkickerConfigMainlineVersion `json:"apexVersionInfo,omitempty"`
ApkVersionInfo *BranchConfigGitbuildkickerConfigMainlineVersion `json:"apkVersionInfo,omitempty"`
ConductorConfig *BranchConfigConductorConfig `json:"conductorConfig,omitempty"`
TargetName string `json:"targetName,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApexVersionInfo") 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:"-"`
// NullFields is a list of field names (e.g. "ApexVersionInfo") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigGitbuildkickerConfigMainlineTarget) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigGitbuildkickerConfigMainlineTarget
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigGitbuildkickerConfigMainlineVersion struct {
File string `json:"file,omitempty"`
Project string `json:"project,omitempty"`
// ForceSendFields is a list of field names (e.g. "File") 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:"-"`
// NullFields is a list of field names (e.g. "File") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigGitbuildkickerConfigMainlineVersion) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigGitbuildkickerConfigMainlineVersion
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigGitbuildkickerConfigVersionBumpingSpec struct {
BumpDevBranch bool `json:"bumpDevBranch,omitempty"`
File string `json:"file,omitempty"`
PaddingWidth int64 `json:"paddingWidth,omitempty"`
Project string `json:"project,omitempty"`
VersionBranch string `json:"versionBranch,omitempty"`
VersionRegex string `json:"versionRegex,omitempty"`
// ForceSendFields is a list of field names (e.g. "BumpDevBranch") 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:"-"`
// NullFields is a list of field names (e.g. "BumpDevBranch") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigGitbuildkickerConfigVersionBumpingSpec) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigGitbuildkickerConfigVersionBumpingSpec
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigLCBranchConfig struct {
DisableTriggerBranchBuildGroupZero bool `json:"disableTriggerBranchBuildGroupZero,omitempty"`
Enabled bool `json:"enabled,omitempty"`
SchedulerConfig *BranchConfigLCBranchConfigSchedulerConfig `json:"schedulerConfig,omitempty"`
Weights []*BranchConfigLCBranchConfigWeightConfig `json:"weights,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "DisableTriggerBranchBuildGroupZero") 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:"-"`
// NullFields is a list of field names (e.g.
// "DisableTriggerBranchBuildGroupZero") to include in API requests with
// the JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigLCBranchConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigLCBranchConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigLCBranchConfigSchedulerConfig struct {
PollingTime int64 `json:"pollingTime,omitempty"`
RequirePlatformBuildIdUpdate bool `json:"requirePlatformBuildIdUpdate,omitempty"`
// ForceSendFields is a list of field names (e.g. "PollingTime") 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:"-"`
// NullFields is a list of field names (e.g. "PollingTime") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigLCBranchConfigSchedulerConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigLCBranchConfigSchedulerConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigLCBranchConfigWeightConfig struct {
Platform string `json:"platform,omitempty"`
PlatformVersion string `json:"platformVersion,omitempty"`
Weight int64 `json:"weight,omitempty"`
// ForceSendFields is a list of field names (e.g. "Platform") 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:"-"`
// NullFields is a list of field names (e.g. "Platform") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigLCBranchConfigWeightConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigLCBranchConfigWeightConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigProjectConfig struct {
Branch string `json:"branch,omitempty"`
Trigger bool `json:"trigger,omitempty"`
// ForceSendFields is a list of field names (e.g. "Branch") 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:"-"`
// NullFields is a list of field names (e.g. "Branch") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigProjectConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigProjectConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigSubmitQueueBranchConfig struct {
Enabled bool `json:"enabled,omitempty"`
TreehuggerEnabled bool `json:"treehuggerEnabled,omitempty"`
Weight int64 `json:"weight,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") 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:"-"`
// NullFields is a list of field names (e.g. "Enabled") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigSubmitQueueBranchConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigSubmitQueueBranchConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigSubmittedBuildConfig struct {
Enabled bool `json:"enabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") 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:"-"`
// NullFields is a list of field names (e.g. "Enabled") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigSubmittedBuildConfig) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigSubmittedBuildConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchConfigTestFilterParameters struct {
GreenBuildTestFilters []string `json:"greenBuildTestFilters,omitempty"`
ShortCircuitInterval int64 `json:"shortCircuitInterval,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "GreenBuildTestFilters") 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:"-"`
// NullFields is a list of field names (e.g. "GreenBuildTestFilters") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *BranchConfigTestFilterParameters) MarshalJSON() ([]byte, error) {
type NoMethod BranchConfigTestFilterParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BranchListResponse struct {
Branches []*BranchConfig `json:"branches,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Branches") 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:"-"`
// NullFields is a list of field names (e.g. "Branches") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BranchListResponse) MarshalJSON() ([]byte, error) {
type NoMethod BranchListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Bug struct {
BugId int64 `json:"bugId,omitempty,string"`
DuplicateBugId int64 `json:"duplicateBugId,omitempty,string"`
FixedIn googleapi.Int64s `json:"fixedIn,omitempty"`
Hotlists googleapi.Int64s `json:"hotlists,omitempty"`
LineGroups []*BugBugHashLines `json:"lineGroups,omitempty"`
ModifiedDate int64 `json:"modifiedDate,omitempty,string"`
Owner string `json:"owner,omitempty"`
Priority string `json:"priority,omitempty"`
Resolution string `json:"resolution,omitempty"`
ResolvedDate int64 `json:"resolvedDate,omitempty,string"`
Severity string `json:"severity,omitempty"`
Status string `json:"status,omitempty"`
Summary string `json:"summary,omitempty"`
TargetedToVersions []string `json:"targetedToVersions,omitempty"`
// ForceSendFields is a list of field names (e.g. "BugId") 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:"-"`
// NullFields is a list of field names (e.g. "BugId") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Bug) MarshalJSON() ([]byte, error) {
type NoMethod Bug
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BugBugHashLines struct {
Lines googleapi.Int64s `json:"lines,omitempty"`
// ForceSendFields is a list of field names (e.g. "Lines") 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:"-"`
// NullFields is a list of field names (e.g. "Lines") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BugBugHashLines) MarshalJSON() ([]byte, error) {
type NoMethod BugBugHashLines
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BugHash struct {
Bugs []*Bug `json:"bugs,omitempty"`
Hash string `json:"hash,omitempty"`
Namespace string `json:"namespace,omitempty"`
Revision string `json:"revision,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Bugs") 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:"-"`
// NullFields is a list of field names (e.g. "Bugs") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BugHash) MarshalJSON() ([]byte, error) {
type NoMethod BugHash
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BugHashListResponse struct {
BugHashes []*BugHash `json:"bug_hashes,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "BugHashes") 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:"-"`
// NullFields is a list of field names (e.g. "BugHashes") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BugHashListResponse) MarshalJSON() ([]byte, error) {
type NoMethod BugHashListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Build struct {
AppProps []*BuildApplicationPropEntry `json:"appProps,omitempty"`
Archived bool `json:"archived,omitempty"`
BaseBuild string `json:"baseBuild,omitempty"`
Branch string `json:"branch,omitempty"`
BuildAttemptStatus string `json:"buildAttemptStatus,omitempty"`
BuildConfigs map[string]string `json:"buildConfigs,omitempty"`
BuildId string `json:"buildId,omitempty"`
BuildbotAvailableSpaceGb int64 `json:"buildbotAvailableSpaceGb,omitempty,string"`
BuildbotSwVersion string `json:"buildbotSwVersion,omitempty"`
Changes []*Change `json:"changes,omitempty"`
CompletionTimestamp int64 `json:"completionTimestamp,omitempty,string"`
CreationTimestamp int64 `json:"creationTimestamp,omitempty,string"`
ExternalDiskName string `json:"externalDiskName,omitempty"`
ExternalId string `json:"externalId,omitempty"`
FallbackInternal bool `json:"fallbackInternal,omitempty"`
HasTests bool `json:"hasTests,omitempty"`
InstalledFiles map[string][]FileMetadataEntryFileMetadata `json:"installedFiles,omitempty"`
LastUpdatedTimestamp int64 `json:"lastUpdatedTimestamp,omitempty,string"`
MachineName string `json:"machineName,omitempty"`
PinnedManifest *ParsedManifest `json:"pinnedManifest,omitempty"`
ProofBuild bool `json:"proofBuild,omitempty"`
Rank int64 `json:"rank,omitempty"`
ReferenceBuildIds []string `json:"referenceBuildIds,omitempty"`
ReferenceReleaseCandidateName string `json:"referenceReleaseCandidateName,omitempty"`
ReleaseCandidateName string `json:"releaseCandidateName,omitempty"`
ResetImageBuild bool `json:"resetImageBuild,omitempty"`
Revision string `json:"revision,omitempty"`
Signed bool `json:"signed,omitempty"`
Successful bool `json:"successful,omitempty"`
Target *Target `json:"target,omitempty"`
TestResultSummary *TestResultSummary `json:"testResultSummary,omitempty"`
TridentImageFreshness *BuildTridentImageFreshness `json:"tridentImageFreshness,omitempty"`
WorknodeId string `json:"worknodeId,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AppProps") 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:"-"`
// NullFields is a list of field names (e.g. "AppProps") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Build) MarshalJSON() ([]byte, error) {
type NoMethod Build
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildApplicationPropEntry struct {
Application string `json:"application,omitempty"`
Key string `json:"key,omitempty"`
Value string `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "Application") 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:"-"`
// NullFields is a list of field names (e.g. "Application") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildApplicationPropEntry) MarshalJSON() ([]byte, error) {
type NoMethod BuildApplicationPropEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildArtifactCopyToBuildResponse struct {
DestinationArtifactName string `json:"destinationArtifactName,omitempty"`
DestinationBuildId string `json:"destinationBuildId,omitempty"`
DestinationTargetName string `json:"destinationTargetName,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g.
// "DestinationArtifactName") 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:"-"`
// NullFields is a list of field names (e.g. "DestinationArtifactName")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *BuildArtifactCopyToBuildResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildArtifactCopyToBuildResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildArtifactCopyToResponse struct {
DestinationBucket string `json:"destinationBucket,omitempty"`
DestinationPath string `json:"destinationPath,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DestinationBucket")
// 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:"-"`
// NullFields is a list of field names (e.g. "DestinationBucket") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *BuildArtifactCopyToResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildArtifactCopyToResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildArtifactListResponse struct {
Artifacts []*BuildArtifactMetadata `json:"artifacts,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Artifacts") 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:"-"`
// NullFields is a list of field names (e.g. "Artifacts") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildArtifactListResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildArtifactListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildArtifactMetadata struct {
ArtifactType string `json:"artifactType,omitempty"`
ContentType string `json:"contentType,omitempty"`
Crc32 int64 `json:"crc32,omitempty"`
CreationTime int64 `json:"creationTime,omitempty,string"`
InvocationId string `json:"invocationId,omitempty"`
LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"`
Md5 string `json:"md5,omitempty"`
Name string `json:"name,omitempty"`
Revision string `json:"revision,omitempty"`
Size int64 `json:"size,omitempty,string"`
TestResultId string `json:"testResultId,omitempty"`
WorkUnitId string `json:"workUnitId,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ArtifactType") 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:"-"`
// NullFields is a list of field names (e.g. "ArtifactType") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildArtifactMetadata) MarshalJSON() ([]byte, error) {
type NoMethod BuildArtifactMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildAttempt struct {
BuildProp map[string]string `json:"buildProp,omitempty"`
BuildStats *BuildStats `json:"buildStats,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`
ExternalDiskName string `json:"externalDiskName,omitempty"`
Id int64 `json:"id,omitempty"`
LastSuccessfulStatus string `json:"lastSuccessfulStatus,omitempty"`
MachineInformation *BuildAttemptMachineInformation `json:"machineInformation,omitempty"`
OtaFile string `json:"otaFile,omitempty"`
PartitionSizes map[string]PartitionSize `json:"partitionSizes,omitempty"`
RepoConfig map[string]string `json:"repoConfig,omitempty"`
ResetImageBuild bool `json:"resetImageBuild,omitempty"`
ResetImageReferenceBuild string `json:"resetImageReferenceBuild,omitempty"`
Revision string `json:"revision,omitempty"`
Status string `json:"status,omitempty"`
StoragePath string `json:"storagePath,omitempty"`
Successful bool `json:"successful,omitempty"`
SymbolFiles []string `json:"symbolFiles,omitempty"`
SyncEndTimestamp int64 `json:"syncEndTimestamp,omitempty,string"`
SyncStartTimestamp int64 `json:"syncStartTimestamp,omitempty,string"`
TimestampEnd int64 `json:"timestampEnd,omitempty,string"`
TimestampStart int64 `json:"timestampStart,omitempty,string"`
UpdaterFile string `json:"updaterFile,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "BuildProp") 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:"-"`
// NullFields is a list of field names (e.g. "BuildProp") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildAttempt) MarshalJSON() ([]byte, error) {
type NoMethod BuildAttempt
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildAttemptListResponse struct {
Attempts []*BuildAttempt `json:"attempts,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Attempts") 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:"-"`
// NullFields is a list of field names (e.g. "Attempts") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildAttemptListResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildAttemptListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildAttemptMachineInformation struct {
MachineName string `json:"machineName,omitempty"`
PreviousBuildId string `json:"previousBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "MachineName") 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:"-"`
// NullFields is a list of field names (e.g. "MachineName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildAttemptMachineInformation) MarshalJSON() ([]byte, error) {
type NoMethod BuildAttemptMachineInformation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildId struct {
BuildId string `json:"buildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildId) MarshalJSON() ([]byte, error) {
type NoMethod BuildId
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildIdListResponse struct {
BuildIds []*BuildId `json:"buildIds,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "BuildIds") 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:"-"`
// NullFields is a list of field names (e.g. "BuildIds") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildIdListResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildIdListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildIdPopResponse struct {
BuildId string `json:"buildId,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "BuildId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildIdPopResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildIdPopResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildListResponse struct {
Builds []*Build `json:"builds,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Builds") 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:"-"`
// NullFields is a list of field names (e.g. "Builds") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildListResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildPopRequest struct {
Machine *MachineDetails `json:"machine,omitempty"`
// ForceSendFields is a list of field names (e.g. "Machine") 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:"-"`
// NullFields is a list of field names (e.g. "Machine") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildPopRequest) MarshalJSON() ([]byte, error) {
type NoMethod BuildPopRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildQueueDepthResponse struct {
Builds []*Build `json:"builds,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Builds") 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:"-"`
// NullFields is a list of field names (e.g. "Builds") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildQueueDepthResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildQueueDepthResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildRange struct {
Branch string `json:"branch,omitempty"`
EndBuildId string `json:"endBuildId,omitempty"`
StartBuildId string `json:"startBuildId,omitempty"`
Target string `json:"target,omitempty"`
// ForceSendFields is a list of field names (e.g. "Branch") 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:"-"`
// NullFields is a list of field names (e.g. "Branch") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildRange) MarshalJSON() ([]byte, error) {
type NoMethod BuildRange
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildRequest struct {
Branch string `json:"branch,omitempty"`
Id int64 `json:"id,omitempty,string"`
Requester *Email `json:"requester,omitempty"`
Revision string `json:"revision,omitempty"`
Rollup *BuildRequestRollupConfig `json:"rollup,omitempty"`
Status string `json:"status,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. "Branch") 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:"-"`
// NullFields is a list of field names (e.g. "Branch") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildRequest) MarshalJSON() ([]byte, error) {
type NoMethod BuildRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildRequestListResponse struct {
BuildRequests []*BuildRequest `json:"build_requests,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "BuildRequests") 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:"-"`
// NullFields is a list of field names (e.g. "BuildRequests") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildRequestListResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildRequestListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildRequestRollupConfig struct {
BuildId string `json:"buildId,omitempty"`
CutBuildId string `json:"cutBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildRequestRollupConfig) MarshalJSON() ([]byte, error) {
type NoMethod BuildRequestRollupConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildSignResponse struct {
Results []*ApkSignResult `json:"results,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Results") 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:"-"`
// NullFields is a list of field names (e.g. "Results") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildSignResponse) MarshalJSON() ([]byte, error) {
type NoMethod BuildSignResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildStats struct {
WarningCount int64 `json:"warningCount,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "WarningCount") 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:"-"`
// NullFields is a list of field names (e.g. "WarningCount") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildStats) MarshalJSON() ([]byte, error) {
type NoMethod BuildStats
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BuildTridentImageFreshness struct {
BuildIdCount int64 `json:"buildIdCount,omitempty,string"`
ChangeCount int64 `json:"changeCount,omitempty,string"`
ImageBuildId string `json:"imageBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildIdCount") 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:"-"`
// NullFields is a list of field names (e.g. "BuildIdCount") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildTridentImageFreshness) MarshalJSON() ([]byte, error) {
type NoMethod BuildTridentImageFreshness
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Category struct {
BuganizerComponentId string `json:"buganizerComponentId,omitempty"`
Contact string `json:"contact,omitempty"`
Description string `json:"description,omitempty"`
Disabled bool `json:"disabled,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Name string `json:"name,omitempty"`
Subcategorys []*CategorySubcategory `json:"subcategorys,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BuganizerComponentId") 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:"-"`
// NullFields is a list of field names (e.g. "BuganizerComponentId") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Category) MarshalJSON() ([]byte, error) {
type NoMethod Category
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CategorySubcategory struct {
BuganizerComponentId string `json:"buganizerComponentId,omitempty"`
Contact string `json:"contact,omitempty"`
Description string `json:"description,omitempty"`
Disabled bool `json:"disabled,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Name string `json:"name,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BuganizerComponentId") 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:"-"`
// NullFields is a list of field names (e.g. "BuganizerComponentId") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *CategorySubcategory) MarshalJSON() ([]byte, error) {
type NoMethod CategorySubcategory
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Change struct {
Branch string `json:"branch,omitempty"`
ChangeId string `json:"changeId,omitempty"`
ChangeNumber int64 `json:"changeNumber,omitempty,string"`
CherrypickedFrom string `json:"cherrypickedFrom,omitempty"`
CreationTime int64 `json:"creationTime,omitempty,string"`
Host string `json:"host,omitempty"`
IsRapidChange bool `json:"isRapidChange,omitempty"`
LastModificationTime int64 `json:"lastModificationTime,omitempty,string"`
LatestRevision string `json:"latestRevision,omitempty"`
NewPatchsetBuildId string `json:"newPatchsetBuildId,omitempty"`
OriginalSource string `json:"originalSource,omitempty"`
Owner *User `json:"owner,omitempty"`
Patchset int64 `json:"patchset,omitempty"`
Project string `json:"project,omitempty"`
Revisions []*Revision `json:"revisions,omitempty"`
Status string `json:"status,omitempty"`
SubmittedTime int64 `json:"submittedTime,omitempty,string"`
Topic string `json:"topic,omitempty"`
// ForceSendFields is a list of field names (e.g. "Branch") 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:"-"`
// NullFields is a list of field names (e.g. "Branch") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Change) MarshalJSON() ([]byte, error) {
type NoMethod Change
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ChangeInfo struct {
ChangeNumber int64 `json:"changeNumber,omitempty"`
GerritName string `json:"gerritName,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChangeNumber") 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:"-"`
// NullFields is a list of field names (e.g. "ChangeNumber") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChangeInfo) MarshalJSON() ([]byte, error) {
type NoMethod ChangeInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ChangeListResponse struct {
Changes []*Change `json:"changes,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Changes") 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:"-"`
// NullFields is a list of field names (e.g. "Changes") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChangeListResponse) MarshalJSON() ([]byte, error) {
type NoMethod ChangeListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ChangeSetSpec struct {
ChangeSpecIds []string `json:"changeSpecIds,omitempty"`
ChangeSpecs []*ChangeSetSpecChangeSpec `json:"changeSpecs,omitempty"`
Id string `json:"id,omitempty"`
Revision string `json:"revision,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ChangeSpecIds") 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:"-"`
// NullFields is a list of field names (e.g. "ChangeSpecIds") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChangeSetSpec) MarshalJSON() ([]byte, error) {
type NoMethod ChangeSetSpec
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ChangeSetSpecChangeSpec struct {
DummySpecString string `json:"dummySpecString,omitempty"`
GerritChange *GerritChangeSpec `json:"gerritChange,omitempty"`
// ForceSendFields is a list of field names (e.g. "DummySpecString") 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:"-"`
// NullFields is a list of field names (e.g. "DummySpecString") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ChangeSetSpecChangeSpec) MarshalJSON() ([]byte, error) {
type NoMethod ChangeSetSpecChangeSpec
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ChangeSetSpecListSupersetsRequest struct {
ChangeSpecs []*ChangeSetSpecChangeSpec `json:"changeSpecs,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChangeSpecs") 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:"-"`
// NullFields is a list of field names (e.g. "ChangeSpecs") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChangeSetSpecListSupersetsRequest) MarshalJSON() ([]byte, error) {
type NoMethod ChangeSetSpecListSupersetsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ChangeSetSpecListSupersetsResponse struct {
ChangeSetSpecs []*ChangeSetSpec `json:"changeSetSpecs,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ChangeSetSpecs") 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:"-"`
// NullFields is a list of field names (e.g. "ChangeSetSpecs") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ChangeSetSpecListSupersetsResponse) MarshalJSON() ([]byte, error) {
type NoMethod ChangeSetSpecListSupersetsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CherryPickInfo struct {
BranchName string `json:"branchName,omitempty"`
ChangeInfos []*ChangeInfo `json:"changeInfos,omitempty"`
Cleanup bool `json:"cleanup,omitempty"`
CommitShas []string `json:"commitShas,omitempty"`
GerritName string `json:"gerritName,omitempty"`
// ForceSendFields is a list of field names (e.g. "BranchName") 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:"-"`
// NullFields is a list of field names (e.g. "BranchName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CherryPickInfo) MarshalJSON() ([]byte, error) {
type NoMethod CherryPickInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CherryPickOutput struct {
CherrypickResults []*CherryPickOutputCherryPickResult `json:"cherrypickResults,omitempty"`
// ForceSendFields is a list of field names (e.g. "CherrypickResults")
// 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:"-"`
// NullFields is a list of field names (e.g. "CherrypickResults") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *CherryPickOutput) MarshalJSON() ([]byte, error) {
type NoMethod CherryPickOutput
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CherryPickOutputCherryPickResult struct {
DisplayMessage string `json:"displayMessage,omitempty"`
NewChange *ChangeInfo `json:"newChange,omitempty"`
SourceChange *ChangeInfo `json:"sourceChange,omitempty"`
Status string `json:"status,omitempty"`
Success bool `json:"success,omitempty"`
Suggestions []*ChangeInfo `json:"suggestions,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayMessage") 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:"-"`
// NullFields is a list of field names (e.g. "DisplayMessage") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *CherryPickOutputCherryPickResult) MarshalJSON() ([]byte, error) {
type NoMethod CherryPickOutputCherryPickResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CommitInfo struct {
Author *User `json:"author,omitempty"`
BugIds googleapi.Int64s `json:"bugIds,omitempty"`
CommitId string `json:"commitId,omitempty"`
CommitMessage string `json:"commitMessage,omitempty"`
Committer *User `json:"committer,omitempty"`
IsRobotCommit bool `json:"isRobotCommit,omitempty"`
Parents []*CommitInfo `json:"parents,omitempty"`
Subject string `json:"subject,omitempty"`
// ForceSendFields is a list of field names (e.g. "Author") 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:"-"`
// NullFields is a list of field names (e.g. "Author") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CommitInfo) MarshalJSON() ([]byte, error) {
type NoMethod CommitInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ConductorOutput struct {
LspacePushOutput *ConductorOutputLspacePushOutput `json:"lspacePushOutput,omitempty"`
SigningOutput *ConductorOutputSigningOutput `json:"signingOutput,omitempty"`
UpdateGantryOutput *ConductorOutputUpdateGantryOutput `json:"updateGantryOutput,omitempty"`
// ForceSendFields is a list of field names (e.g. "LspacePushOutput") 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:"-"`
// NullFields is a list of field names (e.g. "LspacePushOutput") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ConductorOutput) MarshalJSON() ([]byte, error) {
type NoMethod ConductorOutput
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ConductorOutputLspacePushOutput struct {
PushedArtifacts []*ConductorOutputTargetArtifacts `json:"pushedArtifacts,omitempty"`
// ForceSendFields is a list of field names (e.g. "PushedArtifacts") 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:"-"`
// NullFields is a list of field names (e.g. "PushedArtifacts") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ConductorOutputLspacePushOutput) MarshalJSON() ([]byte, error) {
type NoMethod ConductorOutputLspacePushOutput
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ConductorOutputSigningOutput struct {
SignedArtifacts []*ConductorOutputTargetArtifacts `json:"signedArtifacts,omitempty"`
// ForceSendFields is a list of field names (e.g. "SignedArtifacts") 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:"-"`
// NullFields is a list of field names (e.g. "SignedArtifacts") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ConductorOutputSigningOutput) MarshalJSON() ([]byte, error) {
type NoMethod ConductorOutputSigningOutput
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ConductorOutputTargetArtifacts struct {
Artifacts []string `json:"artifacts,omitempty"`
Target string `json:"target,omitempty"`
// ForceSendFields is a list of field names (e.g. "Artifacts") 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:"-"`
// NullFields is a list of field names (e.g. "Artifacts") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ConductorOutputTargetArtifacts) MarshalJSON() ([]byte, error) {
type NoMethod ConductorOutputTargetArtifacts
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ConductorOutputUpdateGantryOutput struct {
UpdatedArtifacts []*ConductorOutputTargetArtifacts `json:"updatedArtifacts,omitempty"`
// ForceSendFields is a list of field names (e.g. "UpdatedArtifacts") 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:"-"`
// NullFields is a list of field names (e.g. "UpdatedArtifacts") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ConductorOutputUpdateGantryOutput) MarshalJSON() ([]byte, error) {
type NoMethod ConductorOutputUpdateGantryOutput
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ConductorRequest struct {
PostBuildParameters *ConductorRequestPostBuildParameters `json:"postBuildParameters,omitempty"`
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "PostBuildParameters")
// 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:"-"`
// NullFields is a list of field names (e.g. "PostBuildParameters") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ConductorRequest) MarshalJSON() ([]byte, error) {
type NoMethod ConductorRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ConductorRequestPostBuildParameters struct {
BranchName string `json:"branchName,omitempty"`
BuildId string `json:"buildId,omitempty"`
VersionName string `json:"versionName,omitempty"`
// ForceSendFields is a list of field names (e.g. "BranchName") 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:"-"`
// NullFields is a list of field names (e.g. "BranchName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ConductorRequestPostBuildParameters) MarshalJSON() ([]byte, error) {
type NoMethod ConductorRequestPostBuildParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CopyFile struct {
Dest string `json:"dest,omitempty"`
Src string `json:"src,omitempty"`
// ForceSendFields is a list of field names (e.g. "Dest") 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:"-"`
// NullFields is a list of field names (e.g. "Dest") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CopyFile) MarshalJSON() ([]byte, error) {
type NoMethod CopyFile
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Default struct {
DestBranch string `json:"destBranch,omitempty"`
Remote string `json:"remote,omitempty"`
Revision string `json:"revision,omitempty"`
SyncJ string `json:"syncJ,omitempty"`
SyncS string `json:"syncS,omitempty"`
// ForceSendFields is a list of field names (e.g. "DestBranch") 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:"-"`
// NullFields is a list of field names (e.g. "DestBranch") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Default) MarshalJSON() ([]byte, error) {
type NoMethod Default
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DeviceBlobCopyToResponse struct {
DestinationBucket string `json:"destinationBucket,omitempty"`
DestinationPath string `json:"destinationPath,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DestinationBucket")
// 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:"-"`
// NullFields is a list of field names (e.g. "DestinationBucket") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *DeviceBlobCopyToResponse) MarshalJSON() ([]byte, error) {
type NoMethod DeviceBlobCopyToResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DeviceBlobListResponse struct {
Blobs []*BuildArtifactMetadata `json:"blobs,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Blobs") 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:"-"`
// NullFields is a list of field names (e.g. "Blobs") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DeviceBlobListResponse) MarshalJSON() ([]byte, error) {
type NoMethod DeviceBlobListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DeviceSelection struct {
DeviceSerial string `json:"deviceSerial,omitempty"`
TestBench *TestBench `json:"testBench,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeviceSerial") 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:"-"`
// NullFields is a list of field names (e.g. "DeviceSerial") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DeviceSelection) MarshalJSON() ([]byte, error) {
type NoMethod DeviceSelection
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Email struct {
Email string `json:"email,omitempty"`
Id int64 `json:"id,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Email") 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:"-"`
// NullFields is a list of field names (e.g. "Email") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Email) MarshalJSON() ([]byte, error) {
type NoMethod Email
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ExternalDiskMessage struct {
ExternalDiskName string `json:"externalDiskName,omitempty"`
Hostname string `json:"hostname,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ExternalDiskName") 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:"-"`
// NullFields is a list of field names (e.g. "ExternalDiskName") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ExternalDiskMessage) MarshalJSON() ([]byte, error) {
type NoMethod ExternalDiskMessage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type FetchConfiguration struct {
Method string `json:"method,omitempty"`
Ref string `json:"ref,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Method") 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:"-"`
// NullFields is a list of field names (e.g. "Method") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *FetchConfiguration) MarshalJSON() ([]byte, error) {
type NoMethod FetchConfiguration
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type FileMetadataEntryFileMetadata struct {
Size int64 `json:"size,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Size") 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:"-"`
// NullFields is a list of field names (e.g. "Size") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *FileMetadataEntryFileMetadata) MarshalJSON() ([]byte, error) {
type NoMethod FileMetadataEntryFileMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ForrestSubmittedBuilds struct {
AtpTestParameters *WorkParametersAtpTestParameters `json:"atpTestParameters,omitempty"`
BuildIdToTest string `json:"buildIdToTest,omitempty"`
BuildRange *BuildRange `json:"buildRange,omitempty"`
ChangeSetSpec *ChangeSetSpec `json:"changeSetSpec,omitempty"`
ExcludedChangeSetSpec *ChangeSetSpec `json:"excludedChangeSetSpec,omitempty"`
ForrestRunId string `json:"forrestRunId,omitempty"`
TestRequest *TestRequest `json:"testRequest,omitempty"`
// ForceSendFields is a list of field names (e.g. "AtpTestParameters")
// 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:"-"`
// NullFields is a list of field names (e.g. "AtpTestParameters") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ForrestSubmittedBuilds) MarshalJSON() ([]byte, error) {
type NoMethod ForrestSubmittedBuilds
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GerritChangeDetail struct {
AutocalcDetail bool `json:"autocalcDetail,omitempty"`
ChangeInfo *GerritChangeDetailSerializedGerritChangeInfo `json:"changeInfo,omitempty"`
ChangeSpec *GerritChangeSpec `json:"changeSpec,omitempty"`
CommitMessage string `json:"commitMessage,omitempty"`
FetchInfo *GerritChangeDetailGerritFetchDetail `json:"fetchInfo,omitempty"`
Files []string `json:"files,omitempty"`
MoreFiles bool `json:"moreFiles,omitempty"`
Owner string `json:"owner,omitempty"`
Project string `json:"project,omitempty"`
Sha1 string `json:"sha1,omitempty"`
Subject string `json:"subject,omitempty"`
Timestamp int64 `json:"timestamp,omitempty,string"`
Topic string `json:"topic,omitempty"`
// ForceSendFields is a list of field names (e.g. "AutocalcDetail") 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:"-"`
// NullFields is a list of field names (e.g. "AutocalcDetail") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GerritChangeDetail) MarshalJSON() ([]byte, error) {
type NoMethod GerritChangeDetail
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GerritChangeDetailGerritFetchDetail struct {
Method string `json:"method,omitempty"`
Ref string `json:"ref,omitempty"`
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Method") 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:"-"`
// NullFields is a list of field names (e.g. "Method") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GerritChangeDetailGerritFetchDetail) MarshalJSON() ([]byte, error) {
type NoMethod GerritChangeDetailGerritFetchDetail
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GerritChangeDetailSerializedGerritChangeInfo struct {
JsonifiedChangeInfo string `json:"jsonifiedChangeInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "JsonifiedChangeInfo")
// 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:"-"`
// NullFields is a list of field names (e.g. "JsonifiedChangeInfo") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GerritChangeDetailSerializedGerritChangeInfo) MarshalJSON() ([]byte, error) {
type NoMethod GerritChangeDetailSerializedGerritChangeInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GerritChangeSpec struct {
ChangeNumber int64 `json:"changeNumber,omitempty,string"`
Hostname string `json:"hostname,omitempty"`
Patchset int64 `json:"patchset,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChangeNumber") 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:"-"`
// NullFields is a list of field names (e.g. "ChangeNumber") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GerritChangeSpec) MarshalJSON() ([]byte, error) {
type NoMethod GerritChangeSpec
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GitManifestLocation struct {
Branch string `json:"branch,omitempty"`
FilePath string `json:"filePath,omitempty"`
Host string `json:"host,omitempty"`
RepoPath string `json:"repoPath,omitempty"`
// ForceSendFields is a list of field names (e.g. "Branch") 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:"-"`
// NullFields is a list of field names (e.g. "Branch") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GitManifestLocation) MarshalJSON() ([]byte, error) {
type NoMethod GitManifestLocation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImageRequest struct {
Build *ImageRequestBuildInfo `json:"build,omitempty"`
Device string `json:"device,omitempty"`
Email string `json:"email,omitempty"`
FirmwareParams *ImageRequestFirmwareImageParams `json:"firmwareParams,omitempty"`
HexagonParams *ImageRequestHexagonImageParams `json:"hexagonParams,omitempty"`
Id string `json:"id,omitempty"`
Incrementals []*ImageRequestBuildInfo `json:"incrementals,omitempty"`
MainlineExternalBuild *ImageRequestBuildInfo `json:"mainlineExternalBuild,omitempty"`
MainlineModuleParams *ImageRequestMainlineModuleParams `json:"mainlineModuleParams,omitempty"`
OtaToolsBuild *ImageRequestBuildInfo `json:"otaToolsBuild,omitempty"`
Params *ImageRequestParams `json:"params,omitempty"`
ReleaseParams *ImageRequestReleaseImageParams `json:"releaseParams,omitempty"`
Revision string `json:"revision,omitempty"`
Signed bool `json:"signed,omitempty"`
Status string `json:"status,omitempty"`
Type string `json:"type,omitempty"`
UserdebugParams *ImageRequestUserdebugImageParams `json:"userdebugParams,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Build") 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:"-"`
// NullFields is a list of field names (e.g. "Build") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ImageRequest) MarshalJSON() ([]byte, error) {
type NoMethod ImageRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImageRequestBuildInfo struct {
Branch string `json:"branch,omitempty"`
BuildId string `json:"buildId,omitempty"`
RcName string `json:"rcName,omitempty"`
Target string `json:"target,omitempty"`
// ForceSendFields is a list of field names (e.g. "Branch") 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:"-"`
// NullFields is a list of field names (e.g. "Branch") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ImageRequestBuildInfo) MarshalJSON() ([]byte, error) {
type NoMethod ImageRequestBuildInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImageRequestFirmwareImageParams struct {
ImageName string `json:"imageName,omitempty"`
SerialNums []string `json:"serialNums,omitempty"`
UseSerialSigning bool `json:"useSerialSigning,omitempty"`
// ForceSendFields is a list of field names (e.g. "ImageName") 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:"-"`
// NullFields is a list of field names (e.g. "ImageName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ImageRequestFirmwareImageParams) MarshalJSON() ([]byte, error) {
type NoMethod ImageRequestFirmwareImageParams
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImageRequestHexagonImageParams struct {
ImageName string `json:"imageName,omitempty"`
// ForceSendFields is a list of field names (e.g. "ImageName") 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:"-"`
// NullFields is a list of field names (e.g. "ImageName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ImageRequestHexagonImageParams) MarshalJSON() ([]byte, error) {
type NoMethod ImageRequestHexagonImageParams
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImageRequestListResponse struct {
ImageRequests []*ImageRequest `json:"image_requests,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ImageRequests") 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:"-"`
// NullFields is a list of field names (e.g. "ImageRequests") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ImageRequestListResponse) MarshalJSON() ([]byte, error) {
type NoMethod ImageRequestListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImageRequestMainlineModuleParams struct {
ReleaseKeySigned bool `json:"releaseKeySigned,omitempty"`
// ForceSendFields is a list of field names (e.g. "ReleaseKeySigned") 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:"-"`
// NullFields is a list of field names (e.g. "ReleaseKeySigned") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ImageRequestMainlineModuleParams) MarshalJSON() ([]byte, error) {
type NoMethod ImageRequestMainlineModuleParams
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImageRequestOtaOptions struct {
Downgrade bool `json:"downgrade,omitempty"`
FactoryOta bool `json:"factoryOta,omitempty"`
FullRadio bool `json:"fullRadio,omitempty"`
OverrideTimestamp bool `json:"overrideTimestamp,omitempty"`
SkipCompatibilityCheck bool `json:"skipCompatibilityCheck,omitempty"`
SkipPostInstall bool `json:"skipPostInstall,omitempty"`
TwoStep bool `json:"twoStep,omitempty"`
WipeIncrementalOta bool `json:"wipeIncrementalOta,omitempty"`
// ForceSendFields is a list of field names (e.g. "Downgrade") 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:"-"`
// NullFields is a list of field names (e.g. "Downgrade") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ImageRequestOtaOptions) MarshalJSON() ([]byte, error) {
type NoMethod ImageRequestOtaOptions
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImageRequestParams struct {
ArtifactNames []string `json:"artifactNames,omitempty"`
// ForceSendFields is a list of field names (e.g. "ArtifactNames") 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:"-"`
// NullFields is a list of field names (e.g. "ArtifactNames") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ImageRequestParams) MarshalJSON() ([]byte, error) {
type NoMethod ImageRequestParams
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImageRequestReleaseImageParams struct {
IncludeFullRadio bool `json:"includeFullRadio,omitempty"`
OemVariants []string `json:"oemVariants,omitempty"`
OtaFlags []string `json:"otaFlags,omitempty"`
OtaOptions *ImageRequestOtaOptions `json:"otaOptions,omitempty"`
SignatureCheck bool `json:"signatureCheck,omitempty"`
// ForceSendFields is a list of field names (e.g. "IncludeFullRadio") 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:"-"`
// NullFields is a list of field names (e.g. "IncludeFullRadio") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ImageRequestReleaseImageParams) MarshalJSON() ([]byte, error) {
type NoMethod ImageRequestReleaseImageParams
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImageRequestUserdebugImageParams struct {
OemVariants []string `json:"oemVariants,omitempty"`
OtaOptions *ImageRequestOtaOptions `json:"otaOptions,omitempty"`
// ForceSendFields is a list of field names (e.g. "OemVariants") 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:"-"`
// NullFields is a list of field names (e.g. "OemVariants") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ImageRequestUserdebugImageParams) MarshalJSON() ([]byte, error) {
type NoMethod ImageRequestUserdebugImageParams
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type InputEdge struct {
NeighborId string `json:"neighborId,omitempty"`
// ForceSendFields is a list of field names (e.g. "NeighborId") 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:"-"`
// NullFields is a list of field names (e.g. "NeighborId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *InputEdge) MarshalJSON() ([]byte, error) {
type NoMethod InputEdge
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type KnownCategories struct {
Categorys []*Category `json:"categorys,omitempty"`
// ForceSendFields is a list of field names (e.g. "Categorys") 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:"-"`
// NullFields is a list of field names (e.g. "Categorys") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *KnownCategories) MarshalJSON() ([]byte, error) {
type NoMethod KnownCategories
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type KokoroDrop struct {
ArtifactGcsBucket string `json:"artifactGcsBucket,omitempty"`
ArtifactName string `json:"artifactName,omitempty"`
ArtifactPermissionMode string `json:"artifactPermissionMode,omitempty"`
ArtifactRoot string `json:"artifactRoot,omitempty"`
BuildNumber string `json:"buildNumber,omitempty"`
FullJobName string `json:"fullJobName,omitempty"`
// ForceSendFields is a list of field names (e.g. "ArtifactGcsBucket")
// 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:"-"`
// NullFields is a list of field names (e.g. "ArtifactGcsBucket") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *KokoroDrop) MarshalJSON() ([]byte, error) {
type NoMethod KokoroDrop
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Label struct {
Builds []*LabelLabeledBuild `json:"builds,omitempty"`
Description string `json:"description,omitempty"`
LastUpdatedMillis int64 `json:"lastUpdatedMillis,omitempty,string"`
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
Revision string `json:"revision,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Builds") 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:"-"`
// NullFields is a list of field names (e.g. "Builds") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Label) MarshalJSON() ([]byte, error) {
type NoMethod Label
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LabelAddBuildsRequest struct {
Builds []*LabelLabeledBuild `json:"builds,omitempty"`
// ForceSendFields is a list of field names (e.g. "Builds") 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:"-"`
// NullFields is a list of field names (e.g. "Builds") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LabelAddBuildsRequest) MarshalJSON() ([]byte, error) {
type NoMethod LabelAddBuildsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LabelAddBuildsResponse struct {
Label *Label `json:"label,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Label") 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:"-"`
// NullFields is a list of field names (e.g. "Label") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LabelAddBuildsResponse) MarshalJSON() ([]byte, error) {
type NoMethod LabelAddBuildsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LabelCloneResponse struct {
Label *Label `json:"label,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Label") 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:"-"`
// NullFields is a list of field names (e.g. "Label") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LabelCloneResponse) MarshalJSON() ([]byte, error) {
type NoMethod LabelCloneResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LabelLabeledBuild struct {
Annotation string `json:"annotation,omitempty"`
BuildId string `json:"buildId,omitempty"`
TargetName string `json:"targetName,omitempty"`
// ForceSendFields is a list of field names (e.g. "Annotation") 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:"-"`
// NullFields is a list of field names (e.g. "Annotation") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LabelLabeledBuild) MarshalJSON() ([]byte, error) {
type NoMethod LabelLabeledBuild
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LabelListResponse struct {
Labels []*Label `json:"labels,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Labels") 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:"-"`
// NullFields is a list of field names (e.g. "Labels") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LabelListResponse) MarshalJSON() ([]byte, error) {
type NoMethod LabelListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LabelRemoveBuildsRequest struct {
Builds []*LabelLabeledBuild `json:"builds,omitempty"`
// ForceSendFields is a list of field names (e.g. "Builds") 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:"-"`
// NullFields is a list of field names (e.g. "Builds") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LabelRemoveBuildsRequest) MarshalJSON() ([]byte, error) {
type NoMethod LabelRemoveBuildsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LabelRemoveBuildsResponse struct {
Label *Label `json:"label,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Label") 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:"-"`
// NullFields is a list of field names (e.g. "Label") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LabelRemoveBuildsResponse) MarshalJSON() ([]byte, error) {
type NoMethod LabelRemoveBuildsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LabelResetResponse struct {
Label *Label `json:"label,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Label") 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:"-"`
// NullFields is a list of field names (e.g. "Label") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LabelResetResponse) MarshalJSON() ([]byte, error) {
type NoMethod LabelResetResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LinkFile struct {
Dest string `json:"dest,omitempty"`
Src string `json:"src,omitempty"`
// ForceSendFields is a list of field names (e.g. "Dest") 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:"-"`
// NullFields is a list of field names (e.g. "Dest") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LinkFile) MarshalJSON() ([]byte, error) {
type NoMethod LinkFile
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LocalDrop struct {
SourceFile string `json:"sourceFile,omitempty"`
// ForceSendFields is a list of field names (e.g. "SourceFile") 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:"-"`
// NullFields is a list of field names (e.g. "SourceFile") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LocalDrop) MarshalJSON() ([]byte, error) {
type NoMethod LocalDrop
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type MPMFile struct {
FilePath string `json:"filePath,omitempty"`
PackageName string `json:"packageName,omitempty"`
Version string `json:"version,omitempty"`
// ForceSendFields is a list of field names (e.g. "FilePath") 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:"-"`
// NullFields is a list of field names (e.g. "FilePath") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MPMFile) MarshalJSON() ([]byte, error) {
type NoMethod MPMFile
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Machine struct {
AutoscalingEnabled bool `json:"autoscalingEnabled,omitempty"`
BuildId string `json:"buildId,omitempty"`
BuildType string `json:"buildType,omitempty"`
CurrentStatus string `json:"currentStatus,omitempty"`
CurrentVersion string `json:"currentVersion,omitempty"`
CycleId int64 `json:"cycleId,omitempty,string"`
DesiredStatus string `json:"desiredStatus,omitempty"`
DesiredVersion string `json:"desiredVersion,omitempty"`
Details *MachineDetails `json:"details,omitempty"`
GitProxy string `json:"gitProxy,omitempty"`
LastUpdatedMillis int64 `json:"lastUpdatedMillis,omitempty,string"`
MachineName string `json:"machineName,omitempty"`
Operation string `json:"operation,omitempty"`
OperationTimestampMs int64 `json:"operationTimestampMs,omitempty,string"`
OsType string `json:"osType,omitempty"`
OsVersion string `json:"osVersion,omitempty"`
Pools []string `json:"pools,omitempty"`
Revision string `json:"revision,omitempty"`
SubmitQueue bool `json:"submitQueue,omitempty"`
Target string `json:"target,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AutoscalingEnabled")
// 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:"-"`
// NullFields is a list of field names (e.g. "AutoscalingEnabled") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Machine) MarshalJSON() ([]byte, error) {
type NoMethod Machine
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type MachineDetails struct {
CloudZone string `json:"cloudZone,omitempty"`
GcpProject string `json:"gcpProject,omitempty"`
MachineType string `json:"machineType,omitempty"`
OsType string `json:"osType,omitempty"`
OsVersion string `json:"osVersion,omitempty"`
PhysicalCores int64 `json:"physicalCores,omitempty,string"`
SpecificMachineType string `json:"specificMachineType,omitempty"`
TotalMemory float64 `json:"totalMemory,omitempty"`
VirtualCores int64 `json:"virtualCores,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "CloudZone") 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:"-"`
// NullFields is a list of field names (e.g. "CloudZone") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MachineDetails) MarshalJSON() ([]byte, error) {
type NoMethod MachineDetails
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *MachineDetails) UnmarshalJSON(data []byte) error {
type NoMethod MachineDetails
var s1 struct {
TotalMemory gensupport.JSONFloat64 `json:"totalMemory"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.TotalMemory = float64(s1.TotalMemory)
return nil
}
type MachineListResponse struct {
Machines []*Machine `json:"machines,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Machines") 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:"-"`
// NullFields is a list of field names (e.g. "Machines") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MachineListResponse) MarshalJSON() ([]byte, error) {
type NoMethod MachineListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ManifestLocation struct {
Git *GitManifestLocation `json:"git,omitempty"`
Url *UrlManifestLocation `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Git") 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:"-"`
// NullFields is a list of field names (e.g. "Git") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ManifestLocation) MarshalJSON() ([]byte, error) {
type NoMethod ManifestLocation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ManifestServer struct {
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Url") 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:"-"`
// NullFields is a list of field names (e.g. "Url") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ManifestServer) MarshalJSON() ([]byte, error) {
type NoMethod ManifestServer
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type MessageListResponse struct {
Messages []*SemaphoreMessage `json:"messages,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Messages") 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:"-"`
// NullFields is a list of field names (e.g. "Messages") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MessageListResponse) MarshalJSON() ([]byte, error) {
type NoMethod MessageListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type MetricIncrementByRequest struct {
Metric *AnchorwatchMessage `json:"metric,omitempty"`
// ForceSendFields is a list of field names (e.g. "Metric") 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:"-"`
// NullFields is a list of field names (e.g. "Metric") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MetricIncrementByRequest) MarshalJSON() ([]byte, error) {
type NoMethod MetricIncrementByRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type MetricIncrementByResponse struct {
Metric *AnchorwatchMessage `json:"metric,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Metric") 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:"-"`
// NullFields is a list of field names (e.g. "Metric") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MetricIncrementByResponse) MarshalJSON() ([]byte, error) {
type NoMethod MetricIncrementByResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type MetricIncrementRequest struct {
Metric *AnchorwatchMessage `json:"metric,omitempty"`
// ForceSendFields is a list of field names (e.g. "Metric") 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:"-"`
// NullFields is a list of field names (e.g. "Metric") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MetricIncrementRequest) MarshalJSON() ([]byte, error) {
type NoMethod MetricIncrementRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type MetricIncrementResponse struct {
Metric *AnchorwatchMessage `json:"metric,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Metric") 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:"-"`
// NullFields is a list of field names (e.g. "Metric") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MetricIncrementResponse) MarshalJSON() ([]byte, error) {
type NoMethod MetricIncrementResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type MetricSetRequest struct {
Metric *AnchorwatchMessage `json:"metric,omitempty"`
// ForceSendFields is a list of field names (e.g. "Metric") 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:"-"`
// NullFields is a list of field names (e.g. "Metric") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MetricSetRequest) MarshalJSON() ([]byte, error) {
type NoMethod MetricSetRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type MetricSetResponse struct {
Metric *AnchorwatchMessage `json:"metric,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Metric") 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:"-"`
// NullFields is a list of field names (e.g. "Metric") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MetricSetResponse) MarshalJSON() ([]byte, error) {
type NoMethod MetricSetResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type NewEdge struct {
NeighborId string `json:"neighborId,omitempty"`
NodeId string `json:"nodeId,omitempty"`
Revision string `json:"revision,omitempty"`
// ForceSendFields is a list of field names (e.g. "NeighborId") 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:"-"`
// NullFields is a list of field names (e.g. "NeighborId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *NewEdge) MarshalJSON() ([]byte, error) {
type NoMethod NewEdge
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type NotificationConfig struct {
AdminNotifys []string `json:"adminNotifys,omitempty"`
IsRestricted bool `json:"isRestricted,omitempty"`
Notifys []string `json:"notifys,omitempty"`
ReplyTo string `json:"replyTo,omitempty"`
SkipRowNotification bool `json:"skipRowNotification,omitempty"`
// ForceSendFields is a list of field names (e.g. "AdminNotifys") 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:"-"`
// NullFields is a list of field names (e.g. "AdminNotifys") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *NotificationConfig) MarshalJSON() ([]byte, error) {
type NoMethod NotificationConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type OwnerInfo struct {
ExpirationDate int64 `json:"expirationDate,omitempty,string"`
Owner string `json:"owner,omitempty"`
// ForceSendFields is a list of field names (e.g. "ExpirationDate") 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:"-"`
// NullFields is a list of field names (e.g. "ExpirationDate") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *OwnerInfo) MarshalJSON() ([]byte, error) {
type NoMethod OwnerInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ParsedManifest struct {
ManifestServer *ManifestServer `json:"manifestServer,omitempty"`
ParsedDefault *Default `json:"parsedDefault,omitempty"`
Projects []*ParsedProject `json:"projects,omitempty"`
Remotes []*Remote `json:"remotes,omitempty"`
RepoHooks *RepoHooks `json:"repoHooks,omitempty"`
// ForceSendFields is a list of field names (e.g. "ManifestServer") 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:"-"`
// NullFields is a list of field names (e.g. "ManifestServer") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ParsedManifest) MarshalJSON() ([]byte, error) {
type NoMethod ParsedManifest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ParsedProject struct {
Annotations []*Annotation `json:"annotations,omitempty"`
CloneDepth string `json:"cloneDepth,omitempty"`
CopyFiles []*CopyFile `json:"copyFiles,omitempty"`
DestBranch string `json:"destBranch,omitempty"`
Groups []string `json:"groups,omitempty"`
LinkFiles []*LinkFile `json:"linkFiles,omitempty"`
Name string `json:"name,omitempty"`
Path string `json:"path,omitempty"`
Remote *Remote `json:"remote,omitempty"`
Revision string `json:"revision,omitempty"`
SyncC string `json:"syncC,omitempty"`
SyncS string `json:"syncS,omitempty"`
// ForceSendFields is a list of field names (e.g. "Annotations") 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:"-"`
// NullFields is a list of field names (e.g. "Annotations") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ParsedProject) MarshalJSON() ([]byte, error) {
type NoMethod ParsedProject
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type PartitionSize struct {
Limit int64 `json:"limit,omitempty,string"`
Reserve int64 `json:"reserve,omitempty,string"`
Size int64 `json:"size,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Limit") 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:"-"`
// NullFields is a list of field names (e.g. "Limit") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PartitionSize) MarshalJSON() ([]byte, error) {
type NoMethod PartitionSize
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type PrebuiltDrop struct {
AndroidBuildDrop *AndroidBuildDrop `json:"androidBuildDrop,omitempty"`
CreationTimestamp int64 `json:"creationTimestamp,omitempty,string"`
DestFile string `json:"destFile,omitempty"`
GitBranch string `json:"gitBranch,omitempty"`
GitProject string `json:"gitProject,omitempty"`
KokoroDrop *KokoroDrop `json:"kokoroDrop,omitempty"`
LocalDrop *LocalDrop `json:"localDrop,omitempty"`
RapidDrop *RapidDrop `json:"rapidDrop,omitempty"`
Revision string `json:"revision,omitempty"`
Version string `json:"version,omitempty"`
VersionGroup string `json:"versionGroup,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AndroidBuildDrop") 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:"-"`
// NullFields is a list of field names (e.g. "AndroidBuildDrop") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *PrebuiltDrop) MarshalJSON() ([]byte, error) {
type NoMethod PrebuiltDrop
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type PrebuiltfileListResponse struct {
NextPageToken string `json:"nextPageToken,omitempty"`
Prebuiltfiles []*PrebuiltDrop `json:"prebuiltfiles,omitempty"`
PreviousPageToken string `json:"previousPageToken,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:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PrebuiltfileListResponse) MarshalJSON() ([]byte, error) {
type NoMethod PrebuiltfileListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type RapidDrop struct {
CandidateName string `json:"candidateName,omitempty"`
MpmFile *MPMFile `json:"mpmFile,omitempty"`
PiperChangeNumbers googleapi.Int64s `json:"piperChangeNumbers,omitempty"`
PrevCandidateName string `json:"prevCandidateName,omitempty"`
PrevReleaseName string `json:"prevReleaseName,omitempty"`
ProjectName string `json:"projectName,omitempty"`
ReleaseName string `json:"releaseName,omitempty"`
// ForceSendFields is a list of field names (e.g. "CandidateName") 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:"-"`
// NullFields is a list of field names (e.g. "CandidateName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *RapidDrop) MarshalJSON() ([]byte, error) {
type NoMethod RapidDrop
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ReleaseRequest struct {
CherryPickInfo *CherryPickInfo `json:"cherryPickInfo,omitempty"`
IsSparseBranch bool `json:"isSparseBranch,omitempty"`
Manifest *ParsedManifest `json:"manifest,omitempty"`
ReleaseSnapInfo *ReleaseSnapInfo `json:"releaseSnapInfo,omitempty"`
SourceBuildId string `json:"sourceBuildId,omitempty"`
SubmitReleaseInfo *SubmitReleaseInfo `json:"submitReleaseInfo,omitempty"`
Topic string `json:"topic,omitempty"`
Type string `json:"type,omitempty"`
VersionBumpInfo *VersionBumpInfo `json:"versionBumpInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "CherryPickInfo") 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:"-"`
// NullFields is a list of field names (e.g. "CherryPickInfo") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ReleaseRequest) MarshalJSON() ([]byte, error) {
type NoMethod ReleaseRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ReleaseSnapInfo struct {
BuildId string `json:"buildId,omitempty"`
DestBranch string `json:"destBranch,omitempty"`
DevBranch string `json:"devBranch,omitempty"`
GerritName string `json:"gerritName,omitempty"`
TargetName string `json:"targetName,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ReleaseSnapInfo) MarshalJSON() ([]byte, error) {
type NoMethod ReleaseSnapInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Remote struct {
Fetch string `json:"fetch,omitempty"`
Name string `json:"name,omitempty"`
Review string `json:"review,omitempty"`
Revision string `json:"revision,omitempty"`
// ForceSendFields is a list of field names (e.g. "Fetch") 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:"-"`
// NullFields is a list of field names (e.g. "Fetch") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Remote) MarshalJSON() ([]byte, error) {
type NoMethod Remote
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type RepoHooks struct {
EnabledList string `json:"enabledList,omitempty"`
InProject string `json:"inProject,omitempty"`
// ForceSendFields is a list of field names (e.g. "EnabledList") 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:"-"`
// NullFields is a list of field names (e.g. "EnabledList") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *RepoHooks) MarshalJSON() ([]byte, error) {
type NoMethod RepoHooks
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Revision struct {
Commit *CommitInfo `json:"commit,omitempty"`
CreationTime int64 `json:"creationTime,omitempty,string"`
Fetchs []*FetchConfiguration `json:"fetchs,omitempty"`
GitRevision string `json:"gitRevision,omitempty"`
PatchSet int64 `json:"patchSet,omitempty"`
Ref string `json:"ref,omitempty"`
Uploader *User `json:"uploader,omitempty"`
// ForceSendFields is a list of field names (e.g. "Commit") 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:"-"`
// NullFields is a list of field names (e.g. "Commit") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Revision) MarshalJSON() ([]byte, error) {
type NoMethod Revision
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SchedulingPoolConfig struct {
Contact string `json:"contact,omitempty"`
Exclusive bool `json:"exclusive,omitempty"`
HostnameRegexs []string `json:"hostnameRegexs,omitempty"`
JavaVersion string `json:"javaVersion,omitempty"`
Name string `json:"name,omitempty"`
RuleConfig *SchedulingPoolConfigRuleConfig `json:"ruleConfig,omitempty"`
RuleRegexp string `json:"ruleRegexp,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Contact") 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:"-"`
// NullFields is a list of field names (e.g. "Contact") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SchedulingPoolConfig) MarshalJSON() ([]byte, error) {
type NoMethod SchedulingPoolConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SchedulingPoolConfigRuleConfig struct {
BuildType string `json:"buildType,omitempty"`
PinnedTargets []*SchedulingPoolConfigRuleConfigPinnedTarget `json:"pinnedTargets,omitempty"`
Priority string `json:"priority,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildType") 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:"-"`
// NullFields is a list of field names (e.g. "BuildType") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SchedulingPoolConfigRuleConfig) MarshalJSON() ([]byte, error) {
type NoMethod SchedulingPoolConfigRuleConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SchedulingPoolConfigRuleConfigPinnedTarget struct {
Branch string `json:"branch,omitempty"`
Targets []string `json:"targets,omitempty"`
// ForceSendFields is a list of field names (e.g. "Branch") 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:"-"`
// NullFields is a list of field names (e.g. "Branch") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SchedulingPoolConfigRuleConfigPinnedTarget) MarshalJSON() ([]byte, error) {
type NoMethod SchedulingPoolConfigRuleConfigPinnedTarget
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SchedulingPoolListResponse struct {
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
SchedulingPools []*SchedulingPoolConfig `json:"schedulingPools,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:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SchedulingPoolListResponse) MarshalJSON() ([]byte, error) {
type NoMethod SchedulingPoolListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperation struct {
CreateBranchParameters *SelfserviceOperationCreateBranchParameters `json:"createBranchParameters,omitempty"`
CreateKeyParameters *SelfserviceOperationCreateKeyParameters `json:"createKeyParameters,omitempty"`
CreateRepoBranchParameters *SelfserviceOperationCreateRepoBranchParameters `json:"createRepoBranchParameters,omitempty"`
GenericParameters *SelfserviceOperationGenericParameters `json:"genericParameters,omitempty"`
Id string `json:"id,omitempty"`
MergeRepoBranchParameters *SelfserviceOperationMergeRepoBranchParameters `json:"mergeRepoBranchParameters,omitempty"`
Revision string `json:"revision,omitempty"`
Type string `json:"type,omitempty"`
UpdateAclParameters *SelfserviceOperationManageAclParameters `json:"updateAclParameters,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "CreateBranchParameters") 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:"-"`
// NullFields is a list of field names (e.g. "CreateBranchParameters")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperation) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationAclChange struct {
AclName string `json:"aclName,omitempty"`
AclOp string `json:"aclOp,omitempty"`
AclRole string `json:"aclRole,omitempty"`
Email string `json:"email,omitempty"`
VerifiedGaiaRobotAccount bool `json:"verifiedGaiaRobotAccount,omitempty"`
// ForceSendFields is a list of field names (e.g. "AclName") 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:"-"`
// NullFields is a list of field names (e.g. "AclName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationAclChange) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationAclChange
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationCreateBranchParameters struct {
BugId int64 `json:"bugId,omitempty"`
DryRun bool `json:"dryRun,omitempty"`
ForceUpdate bool `json:"forceUpdate,omitempty"`
IgnoreExistingDownstream bool `json:"ignoreExistingDownstream,omitempty"`
IncludeDownstream bool `json:"includeDownstream,omitempty"`
NewBranch string `json:"newBranch,omitempty"`
Projects []*SelfserviceOperationProject `json:"projects,omitempty"`
// ForceSendFields is a list of field names (e.g. "BugId") 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:"-"`
// NullFields is a list of field names (e.g. "BugId") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationCreateBranchParameters) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationCreateBranchParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationCreateKeyParameters struct {
BugId int64 `json:"bugId,omitempty"`
Contacts string `json:"contacts,omitempty"`
DeviceCategory string `json:"deviceCategory,omitempty"`
DryRun bool `json:"dryRun,omitempty"`
KeyName string `json:"keyName,omitempty"`
KeyRealm string `json:"keyRealm,omitempty"`
KeyType string `json:"keyType,omitempty"`
KeyTypes []string `json:"keyTypes,omitempty"`
PackageName string `json:"packageName,omitempty"`
SecurityReviewBug string `json:"securityReviewBug,omitempty"`
SigningUtilServer string `json:"signingUtilServer,omitempty"`
UseExistingKey bool `json:"useExistingKey,omitempty"`
// ForceSendFields is a list of field names (e.g. "BugId") 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:"-"`
// NullFields is a list of field names (e.g. "BugId") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationCreateKeyParameters) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationCreateKeyParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationCreateRepoBranchParameters struct {
BranchType string `json:"branchType,omitempty"`
BugId int64 `json:"bugId,omitempty"`
DryRun bool `json:"dryRun,omitempty"`
ForceUpdate bool `json:"forceUpdate,omitempty"`
GerritInstance string `json:"gerritInstance,omitempty"`
Manifest string `json:"manifest,omitempty"`
NewRepoBranch string `json:"newRepoBranch,omitempty"`
SkipProjects []string `json:"skipProjects,omitempty"`
Source *SelfserviceOperationRepoSource `json:"source,omitempty"`
// ForceSendFields is a list of field names (e.g. "BranchType") 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:"-"`
// NullFields is a list of field names (e.g. "BranchType") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationCreateRepoBranchParameters) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationCreateRepoBranchParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationGenericParameters struct {
Parameters []*SelfserviceOperationSimpleParameter `json:"parameters,omitempty"`
// ForceSendFields is a list of field names (e.g. "Parameters") 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:"-"`
// NullFields is a list of field names (e.g. "Parameters") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationGenericParameters) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationGenericParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationManageAclParameters struct {
AclChanges []*SelfserviceOperationAclChange `json:"aclChanges,omitempty"`
BugId int64 `json:"bugId,omitempty"`
CreateIfNeeded bool `json:"createIfNeeded,omitempty"`
DryRun bool `json:"dryRun,omitempty"`
// ForceSendFields is a list of field names (e.g. "AclChanges") 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:"-"`
// NullFields is a list of field names (e.g. "AclChanges") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationManageAclParameters) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationManageAclParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationMergeRepoBranchParameters struct {
BugId int64 `json:"bugId,omitempty"`
DryRun bool `json:"dryRun,omitempty"`
ForceUpdate bool `json:"forceUpdate,omitempty"`
IgnoreExistingDownstream bool `json:"ignoreExistingDownstream,omitempty"`
IncludeDownstream bool `json:"includeDownstream,omitempty"`
MergeStrategy string `json:"mergeStrategy,omitempty"`
SkipProjects []string `json:"skipProjects,omitempty"`
Source string `json:"source,omitempty"`
Subject string `json:"subject,omitempty"`
Target string `json:"target,omitempty"`
Topic string `json:"topic,omitempty"`
// ForceSendFields is a list of field names (e.g. "BugId") 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:"-"`
// NullFields is a list of field names (e.g. "BugId") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationMergeRepoBranchParameters) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationMergeRepoBranchParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationProduct struct {
CreateBranchOutputProduct *SelfserviceOperationProductCreateBranchProduct `json:"createBranchOutputProduct,omitempty"`
OutputProduct *SelfserviceOperationProductGenericProduct `json:"outputProduct,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "CreateBranchOutputProduct") 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:"-"`
// NullFields is a list of field names (e.g.
// "CreateBranchOutputProduct") to include in API requests with the JSON
// null value. By default, fields with empty values are omitted from API
// requests. However, any field with an empty value appearing in
// NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationProduct) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationProduct
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationProductCreateBranchProduct struct {
CreateBranchStatus []*SelfserviceOperationProductCreateBranchStatus `json:"createBranchStatus,omitempty"`
FailedMessages []*SelfserviceOperationProductFailedMessage `json:"failedMessages,omitempty"`
StatusMessages []string `json:"statusMessages,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateBranchStatus")
// 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:"-"`
// NullFields is a list of field names (e.g. "CreateBranchStatus") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationProductCreateBranchProduct) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationProductCreateBranchProduct
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationProductCreateBranchStatus struct {
AlreadyAtRevision bool `json:"alreadyAtRevision,omitempty"`
BranchName string `json:"branchName,omitempty"`
Created bool `json:"created,omitempty"`
Deleted bool `json:"deleted,omitempty"`
FailedMessages []*SelfserviceOperationProductFailedMessage `json:"failedMessages,omitempty"`
NotBranched bool `json:"notBranched,omitempty"`
OriginalSha string `json:"originalSha,omitempty"`
Project *SelfserviceOperationProject `json:"project,omitempty"`
RequiredForceUpdate bool `json:"requiredForceUpdate,omitempty"`
StatusMessages []string `json:"statusMessages,omitempty"`
// ForceSendFields is a list of field names (e.g. "AlreadyAtRevision")
// 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:"-"`
// NullFields is a list of field names (e.g. "AlreadyAtRevision") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationProductCreateBranchStatus) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationProductCreateBranchStatus
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationProductFailedMessage struct {
ErrorMessage string `json:"errorMessage,omitempty"`
Subject string `json:"subject,omitempty"`
// ForceSendFields is a list of field names (e.g. "ErrorMessage") 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:"-"`
// NullFields is a list of field names (e.g. "ErrorMessage") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationProductFailedMessage) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationProductFailedMessage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationProductGenericProduct struct {
BugId int64 `json:"bugId,omitempty"`
ResultMessages []*SelfserviceOperationProductResultMessage `json:"resultMessages,omitempty"`
Results []*SelfserviceOperationProductGenericResult `json:"results,omitempty"`
Status string `json:"status,omitempty"`
// ForceSendFields is a list of field names (e.g. "BugId") 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:"-"`
// NullFields is a list of field names (e.g. "BugId") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationProductGenericProduct) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationProductGenericProduct
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationProductGenericResult struct {
ErrorMsgs []string `json:"errorMsgs,omitempty"`
InfoMsgs []string `json:"infoMsgs,omitempty"`
RequestId string `json:"requestId,omitempty"`
Status string `json:"status,omitempty"`
WarnMsgs []string `json:"warnMsgs,omitempty"`
// ForceSendFields is a list of field names (e.g. "ErrorMsgs") 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:"-"`
// NullFields is a list of field names (e.g. "ErrorMsgs") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationProductGenericResult) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationProductGenericResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationProductResultMessage struct {
MessageBody string `json:"messageBody,omitempty"`
MessageType string `json:"messageType,omitempty"`
// ForceSendFields is a list of field names (e.g. "MessageBody") 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:"-"`
// NullFields is a list of field names (e.g. "MessageBody") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationProductResultMessage) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationProductResultMessage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationProject struct {
GerritInstance string `json:"gerritInstance,omitempty"`
Project string `json:"project,omitempty"`
Revision string `json:"revision,omitempty"`
// ForceSendFields is a list of field names (e.g. "GerritInstance") 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:"-"`
// NullFields is a list of field names (e.g. "GerritInstance") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationProject) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationProject
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationRepoSource struct {
BuildId int64 `json:"buildId,omitempty"`
BuildRcName string `json:"buildRcName,omitempty"`
RepoBranch string `json:"repoBranch,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationRepoSource) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationRepoSource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SelfserviceOperationSimpleParameter struct {
BoolValue bool `json:"boolValue,omitempty"`
IntValue int64 `json:"intValue,omitempty"`
IsNone bool `json:"isNone,omitempty"`
Name string `json:"name,omitempty"`
StrValue string `json:"strValue,omitempty"`
// ForceSendFields is a list of field names (e.g. "BoolValue") 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:"-"`
// NullFields is a list of field names (e.g. "BoolValue") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SelfserviceOperationSimpleParameter) MarshalJSON() ([]byte, error) {
type NoMethod SelfserviceOperationSimpleParameter
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SemaphoreMessage struct {
CreationTimestamp int64 `json:"creationTimestamp,omitempty,string"`
Enabled bool `json:"enabled,omitempty"`
Id string `json:"id,omitempty"`
LastModifiedTimestamp int64 `json:"lastModifiedTimestamp,omitempty,string"`
LongMessage string `json:"longMessage,omitempty"`
Revision string `json:"revision,omitempty"`
Scopes []string `json:"scopes,omitempty"`
ShortMessage string `json:"shortMessage,omitempty"`
Urgency string `json:"urgency,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CreationTimestamp")
// 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:"-"`
// NullFields is a list of field names (e.g. "CreationTimestamp") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SemaphoreMessage) MarshalJSON() ([]byte, error) {
type NoMethod SemaphoreMessage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SoftwareVersion struct {
DownloadUrl string `json:"downloadUrl,omitempty"`
Version string `json:"version,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DownloadUrl") 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:"-"`
// NullFields is a list of field names (e.g. "DownloadUrl") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SoftwareVersion) MarshalJSON() ([]byte, error) {
type NoMethod SoftwareVersion
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type SubmitReleaseInfo struct {
BranchName string `json:"branchName,omitempty"`
GerritName string `json:"gerritName,omitempty"`
// ForceSendFields is a list of field names (e.g. "BranchName") 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:"-"`
// NullFields is a list of field names (e.g. "BranchName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SubmitReleaseInfo) MarshalJSON() ([]byte, error) {
type NoMethod SubmitReleaseInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Target struct {
AdditionalBuildTargets []string `json:"additionalBuildTargets,omitempty"`
BuildCommands []string `json:"buildCommands,omitempty"`
BuildLimitBuildId string `json:"buildLimitBuildId,omitempty"`
BuildPlatform string `json:"buildPlatform,omitempty"`
BuildbotRolloutFlags []*TargetFeatureRolloutFlag `json:"buildbotRolloutFlags,omitempty"`
BusytownBuilder bool `json:"busytownBuilder,omitempty"`
DependencyTargets []*TargetDependencyNode `json:"dependencyTargets,omitempty"`
Disabled bool `json:"disabled,omitempty"`
EnableWorknodeMonitor bool `json:"enableWorknodeMonitor,omitempty"`
Environments map[string]string `json:"environments,omitempty"`
ExternalBuilder *TargetExternalBuilderConfig `json:"externalBuilder,omitempty"`
Flashstation *TargetFlashStationConfig `json:"flashstation,omitempty"`
HasDependent bool `json:"hasDependent,omitempty"`
IncrementalBuild bool `json:"incrementalBuild,omitempty"`
JavaVersion string `json:"javaVersion,omitempty"`
LaunchcontrolConfig *TargetLCTargetConfig `json:"launchcontrolConfig,omitempty"`
LaunchcontrolName string `json:"launchcontrolName,omitempty"`
Name string `json:"name,omitempty"`
NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"`
OwnerInfo *OwnerInfo `json:"ownerInfo,omitempty"`
PlatformVersion string `json:"platformVersion,omitempty"`
PresubmitIncrementalBuild bool `json:"presubmitIncrementalBuild,omitempty"`
Priority string `json:"priority,omitempty"`
Product string `json:"product,omitempty"`
Signing *TargetSigningConfig `json:"signing,omitempty"`
SubmitQueue *TargetSubmitQueueTargetConfig `json:"submitQueue,omitempty"`
Target string `json:"target,omitempty"`
TreehuggerValidationCheck *TargetTreehuggerValidationCheck `json:"treehuggerValidationCheck,omitempty"`
TridentConfig *TargetTridentConfig `json:"tridentConfig,omitempty"`
TridentPostsubmitPriority string `json:"tridentPostsubmitPriority,omitempty"`
TridentPresubmitPriority string `json:"tridentPresubmitPriority,omitempty"`
UseTrident bool `json:"useTrident,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g.
// "AdditionalBuildTargets") 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:"-"`
// NullFields is a list of field names (e.g. "AdditionalBuildTargets")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Target) MarshalJSON() ([]byte, error) {
type NoMethod Target
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TargetDependencyNode struct {
ArtifactPrefixs []string `json:"artifactPrefixs,omitempty"`
DestDir string `json:"destDir,omitempty"`
TargetName string `json:"targetName,omitempty"`
// ForceSendFields is a list of field names (e.g. "ArtifactPrefixs") 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:"-"`
// NullFields is a list of field names (e.g. "ArtifactPrefixs") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TargetDependencyNode) MarshalJSON() ([]byte, error) {
type NoMethod TargetDependencyNode
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TargetExternalBuilderConfig struct {
Enabled bool `json:"enabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") 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:"-"`
// NullFields is a list of field names (e.g. "Enabled") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TargetExternalBuilderConfig) MarshalJSON() ([]byte, error) {
type NoMethod TargetExternalBuilderConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TargetFeatureRolloutFlag struct {
BoolValue bool `json:"boolValue,omitempty"`
FlagName string `json:"flagName,omitempty"`
FloatValue float64 `json:"floatValue,omitempty"`
IntValue int64 `json:"intValue,omitempty"`
StringValue string `json:"stringValue,omitempty"`
// ForceSendFields is a list of field names (e.g. "BoolValue") 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:"-"`
// NullFields is a list of field names (e.g. "BoolValue") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TargetFeatureRolloutFlag) MarshalJSON() ([]byte, error) {
type NoMethod TargetFeatureRolloutFlag
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *TargetFeatureRolloutFlag) UnmarshalJSON(data []byte) error {
type NoMethod TargetFeatureRolloutFlag
var s1 struct {
FloatValue gensupport.JSONFloat64 `json:"floatValue"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.FloatValue = float64(s1.FloatValue)
return nil
}
type TargetFlashStationConfig struct {
Enabled bool `json:"enabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") 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:"-"`
// NullFields is a list of field names (e.g. "Enabled") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TargetFlashStationConfig) MarshalJSON() ([]byte, error) {
type NoMethod TargetFlashStationConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TargetLCTargetConfig struct {
BuildGroup int64 `json:"buildGroup,omitempty"`
Priority int64 `json:"priority,omitempty"`
TesterRequireSpecificFiles bool `json:"testerRequireSpecificFiles,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildGroup") 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:"-"`
// NullFields is a list of field names (e.g. "BuildGroup") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TargetLCTargetConfig) MarshalJSON() ([]byte, error) {
type NoMethod TargetLCTargetConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TargetListResponse struct {
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
Targets []*Target `json:"targets,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:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TargetListResponse) MarshalJSON() ([]byte, error) {
type NoMethod TargetListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TargetSigningConfig struct {
Apks []*TargetSigningConfigApk `json:"apks,omitempty"`
DefaultApks []string `json:"defaultApks,omitempty"`
Otas []*TargetSigningConfigLooseOTA `json:"otas,omitempty"`
PackageType string `json:"packageType,omitempty"`
SigningBackend string `json:"signingBackend,omitempty"`
// ForceSendFields is a list of field names (e.g. "Apks") 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:"-"`
// NullFields is a list of field names (e.g. "Apks") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TargetSigningConfig) MarshalJSON() ([]byte, error) {
type NoMethod TargetSigningConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TargetSigningConfigApk struct {
AclName string `json:"aclName,omitempty"`
ApkRegex string `json:"apkRegex,omitempty"`
InnerApks []*TargetSigningConfigApk `json:"innerApks,omitempty"`
Key string `json:"key,omitempty"`
MicroApks []*TargetSigningConfigMicroApk `json:"microApks,omitempty"`
Name string `json:"name,omitempty"`
PackageName string `json:"packageName,omitempty"`
// ForceSendFields is a list of field names (e.g. "AclName") 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:"-"`
// NullFields is a list of field names (e.g. "AclName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TargetSigningConfigApk) MarshalJSON() ([]byte, error) {
type NoMethod TargetSigningConfigApk
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TargetSigningConfigLooseOTA struct {
AclName string `json:"aclName,omitempty"`
Key string `json:"key,omitempty"`
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "AclName") 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:"-"`
// NullFields is a list of field names (e.g. "AclName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TargetSigningConfigLooseOTA) MarshalJSON() ([]byte, error) {
type NoMethod TargetSigningConfigLooseOTA
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TargetSigningConfigMicroApk struct {
Key string `json:"key,omitempty"`
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Key") 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:"-"`
// NullFields is a list of field names (e.g. "Key") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TargetSigningConfigMicroApk) MarshalJSON() ([]byte, error) {
type NoMethod TargetSigningConfigMicroApk
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TargetSubmitQueueTargetConfig struct {
Enabled bool `json:"enabled,omitempty"`
TreehuggerEnabled bool `json:"treehuggerEnabled,omitempty"`
Weight int64 `json:"weight,omitempty"`
Whitelists []string `json:"whitelists,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") 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:"-"`
// NullFields is a list of field names (e.g. "Enabled") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TargetSubmitQueueTargetConfig) MarshalJSON() ([]byte, error) {
type NoMethod TargetSubmitQueueTargetConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TargetTreehuggerValidationCheck struct {
BypassValidatorPlatformCheck bool `json:"bypassValidatorPlatformCheck,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "BypassValidatorPlatformCheck") 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:"-"`
// NullFields is a list of field names (e.g.
// "BypassValidatorPlatformCheck") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TargetTreehuggerValidationCheck) MarshalJSON() ([]byte, error) {
type NoMethod TargetTreehuggerValidationCheck
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TargetTridentConfig struct {
DefaultEmptyImageSize int64 `json:"defaultEmptyImageSize,omitempty,string"`
// ForceSendFields is a list of field names (e.g.
// "DefaultEmptyImageSize") 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:"-"`
// NullFields is a list of field names (e.g. "DefaultEmptyImageSize") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TargetTridentConfig) MarshalJSON() ([]byte, error) {
type NoMethod TargetTridentConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestArtifactCopyToResponse struct {
DestinationBucket string `json:"destinationBucket,omitempty"`
DestinationPath string `json:"destinationPath,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DestinationBucket")
// 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:"-"`
// NullFields is a list of field names (e.g. "DestinationBucket") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TestArtifactCopyToResponse) MarshalJSON() ([]byte, error) {
type NoMethod TestArtifactCopyToResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestArtifactListResponse struct {
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
TestArtifacts []*BuildArtifactMetadata `json:"test_artifacts,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:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestArtifactListResponse) MarshalJSON() ([]byte, error) {
type NoMethod TestArtifactListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestBench struct {
Cluster string `json:"cluster,omitempty"`
ExtraArgs []*Arg `json:"extraArgs,omitempty"`
Name string `json:"name,omitempty"`
RunTarget string `json:"runTarget,omitempty"`
// ForceSendFields is a list of field names (e.g. "Cluster") 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:"-"`
// NullFields is a list of field names (e.g. "Cluster") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestBench) MarshalJSON() ([]byte, error) {
type NoMethod TestBench
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestRequest struct {
Atest *TestRequestATest `json:"atest,omitempty"`
AtpTest *TestRequestAtpTest `json:"atpTest,omitempty"`
BranchGcl string `json:"branchGcl,omitempty"`
DeviceSelection *DeviceSelection `json:"deviceSelection,omitempty"`
ExtraOptions []*Arg `json:"extraOptions,omitempty"`
ExtraTargets []string `json:"extraTargets,omitempty"`
GclTest *TestRequestAtpGclTest `json:"gclTest,omitempty"`
ImportExtraArgs bool `json:"importExtraArgs,omitempty"`
LocalTest *TestRequestLocalTest `json:"localTest,omitempty"`
Location string `json:"location,omitempty"`
PrimaryBuildDevice string `json:"primaryBuildDevice,omitempty"`
RunCount int64 `json:"runCount,omitempty"`
Runner string `json:"runner,omitempty"`
RunnerOptions []*Arg `json:"runnerOptions,omitempty"`
ShardCount int64 `json:"shardCount,omitempty"`
TestBenchGcl string `json:"testBenchGcl,omitempty"`
TestRunContext string `json:"testRunContext,omitempty"`
TradefedTest *TestRequestTradefedTest `json:"tradefedTest,omitempty"`
// ForceSendFields is a list of field names (e.g. "Atest") 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:"-"`
// NullFields is a list of field names (e.g. "Atest") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestRequest) MarshalJSON() ([]byte, error) {
type NoMethod TestRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestRequestATest struct {
Command string `json:"command,omitempty"`
DeviceSelection *TestRequestATestDeviceSelection `json:"deviceSelection,omitempty"`
// ForceSendFields is a list of field names (e.g. "Command") 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:"-"`
// NullFields is a list of field names (e.g. "Command") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestRequestATest) MarshalJSON() ([]byte, error) {
type NoMethod TestRequestATest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestRequestATestDeviceSelection struct {
Product string `json:"product,omitempty"`
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Product") 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:"-"`
// NullFields is a list of field names (e.g. "Product") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestRequestATestDeviceSelection) MarshalJSON() ([]byte, error) {
type NoMethod TestRequestATestDeviceSelection
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestRequestAtpGclTest struct {
TestGcl string `json:"testGcl,omitempty"`
// ForceSendFields is a list of field names (e.g. "TestGcl") 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:"-"`
// NullFields is a list of field names (e.g. "TestGcl") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestRequestAtpGclTest) MarshalJSON() ([]byte, error) {
type NoMethod TestRequestAtpGclTest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestRequestAtpTest struct {
TestName string `json:"testName,omitempty"`
// ForceSendFields is a list of field names (e.g. "TestName") 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:"-"`
// NullFields is a list of field names (e.g. "TestName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestRequestAtpTest) MarshalJSON() ([]byte, error) {
type NoMethod TestRequestAtpTest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestRequestLocalTest struct {
SkipBuild bool `json:"skipBuild,omitempty"`
SubConfig string `json:"subConfig,omitempty"`
TestName string `json:"testName,omitempty"`
// ForceSendFields is a list of field names (e.g. "SkipBuild") 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:"-"`
// NullFields is a list of field names (e.g. "SkipBuild") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestRequestLocalTest) MarshalJSON() ([]byte, error) {
type NoMethod TestRequestLocalTest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestRequestTradefedTest struct {
CommandLine string `json:"commandLine,omitempty"`
// ForceSendFields is a list of field names (e.g. "CommandLine") 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:"-"`
// NullFields is a list of field names (e.g. "CommandLine") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestRequestTradefedTest) MarshalJSON() ([]byte, error) {
type NoMethod TestRequestTradefedTest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestResult struct {
CompleteTimestamp int64 `json:"completeTimestamp,omitempty,string"`
CreationTimestamp int64 `json:"creationTimestamp,omitempty,string"`
Critical bool `json:"critical,omitempty"`
Id int64 `json:"id,omitempty,string"`
PostedToGerrit bool `json:"postedToGerrit,omitempty"`
Revision string `json:"revision,omitempty"`
Status string `json:"status,omitempty"`
Summary string `json:"summary,omitempty"`
TestRunnerType string `json:"testRunnerType,omitempty"`
TestSuite string `json:"testSuite,omitempty"`
TestTag string `json:"testTag,omitempty"`
TestUri string `json:"testUri,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CompleteTimestamp")
// 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:"-"`
// NullFields is a list of field names (e.g. "CompleteTimestamp") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TestResult) MarshalJSON() ([]byte, error) {
type NoMethod TestResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestResultListResponse struct {
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
TestResults []*TestResult `json:"testResults,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:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestResultListResponse) MarshalJSON() ([]byte, error) {
type NoMethod TestResultListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestResultSummary struct {
AllCriticalTestsPassed bool `json:"allCriticalTestsPassed,omitempty"`
CompletedTools []string `json:"completedTools,omitempty"`
TestsComplete bool `json:"testsComplete,omitempty"`
ToolGroups map[string]TestResultSummaryToolGroup `json:"toolGroups,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AllCriticalTestsPassed") 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:"-"`
// NullFields is a list of field names (e.g. "AllCriticalTestsPassed")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TestResultSummary) MarshalJSON() ([]byte, error) {
type NoMethod TestResultSummary
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestResultSummaryToolGroup struct {
TestSuites map[string]TestResultSummaryToolGroupTestSuite `json:"testSuites,omitempty"`
ToolgroupStatus string `json:"toolgroupStatus,omitempty"`
// ForceSendFields is a list of field names (e.g. "TestSuites") 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:"-"`
// NullFields is a list of field names (e.g. "TestSuites") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestResultSummaryToolGroup) MarshalJSON() ([]byte, error) {
type NoMethod TestResultSummaryToolGroup
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TestResultSummaryToolGroupTestSuite struct {
Passed bool `json:"passed,omitempty"`
PassedTestTags map[string]string `json:"passedTestTags,omitempty"`
TestTags map[string]string `json:"testTags,omitempty"`
TestsuiteStatus string `json:"testsuiteStatus,omitempty"`
// ForceSendFields is a list of field names (e.g. "Passed") 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:"-"`
// NullFields is a list of field names (e.g. "Passed") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TestResultSummaryToolGroupTestSuite) MarshalJSON() ([]byte, error) {
type NoMethod TestResultSummaryToolGroupTestSuite
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TokenPageResult struct {
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// 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:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TokenPageResult) MarshalJSON() ([]byte, error) {
type NoMethod TokenPageResult
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type UrlManifestLocation struct {
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Url") 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:"-"`
// NullFields is a list of field names (e.g. "Url") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UrlManifestLocation) MarshalJSON() ([]byte, error) {
type NoMethod UrlManifestLocation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type User struct {
AccountId int64 `json:"accountId,omitempty,string"`
Email string `json:"email,omitempty"`
Name string `json:"name,omitempty"`
Username string `json:"username,omitempty"`
// ForceSendFields is a list of field names (e.g. "AccountId") 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:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *User) MarshalJSON() ([]byte, error) {
type NoMethod User
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type VersionBumpInfo struct {
Filename string `json:"filename,omitempty"`
GerritName string `json:"gerritName,omitempty"`
Project string `json:"project,omitempty"`
Regex string `json:"regex,omitempty"`
ReleaseBranch string `json:"releaseBranch,omitempty"`
VersionName string `json:"versionName,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:"-"`
// NullFields is a list of field names (e.g. "Filename") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *VersionBumpInfo) MarshalJSON() ([]byte, error) {
type NoMethod VersionBumpInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNode struct {
AvailabilityTimeMillis int64 `json:"availabilityTimeMillis,omitempty,string"`
ChangeSetSpecIds []string `json:"changeSetSpecIds,omitempty"`
ContainerId string `json:"containerId,omitempty"`
CreationTimeMillis int64 `json:"creationTimeMillis,omitempty,string"`
CurrentAttempt *WorkNodeAttempt `json:"currentAttempt,omitempty"`
ExpirationTimeMillis int64 `json:"expirationTimeMillis,omitempty,string"`
HardDeadlineMillis int64 `json:"hardDeadlineMillis,omitempty,string"`
HeartbeatTimeMillis int64 `json:"heartbeatTimeMillis,omitempty,string"`
Id string `json:"id,omitempty"`
InputEdges []*InputEdge `json:"inputEdges,omitempty"`
IsFinal bool `json:"isFinal,omitempty"`
LastUpdatedMillis int64 `json:"lastUpdatedMillis,omitempty,string"`
NodeClass string `json:"nodeClass,omitempty"`
PreviousAttempts []*WorkNodeAttempt `json:"previousAttempts,omitempty"`
Priority int64 `json:"priority,omitempty,string"`
RetryStatus *WorkNodeRetry `json:"retryStatus,omitempty"`
Revision string `json:"revision,omitempty"`
Status string `json:"status,omitempty"`
StepTrackers []*WorkNodeStepTracker `json:"stepTrackers,omitempty"`
Tag string `json:"tag,omitempty"`
User string `json:"user,omitempty"`
WorkExecutorType string `json:"workExecutorType,omitempty"`
WorkOutput *WorkProduct `json:"workOutput,omitempty"`
WorkParameters *WorkParameters `json:"workParameters,omitempty"`
WorkerId string `json:"workerId,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g.
// "AvailabilityTimeMillis") 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:"-"`
// NullFields is a list of field names (e.g. "AvailabilityTimeMillis")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkNode) MarshalJSON() ([]byte, error) {
type NoMethod WorkNode
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeAttempt struct {
AttemptId string `json:"attemptId,omitempty"`
ProgressMessages []*WorkNodeProgressMessage `json:"progressMessages,omitempty"`
StartTimeMillis int64 `json:"startTimeMillis,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "AttemptId") 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:"-"`
// NullFields is a list of field names (e.g. "AttemptId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeAttempt) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeAttempt
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeCompleteRequest struct {
ProgressMessage *WorkNodeProgressMessage `json:"progressMessage,omitempty"`
ProgressMessages []*WorkNodeProgressMessage `json:"progressMessages,omitempty"`
Reason string `json:"reason,omitempty"`
Status string `json:"status,omitempty"`
WorkNode *WorkNode `json:"workNode,omitempty"`
WorkProduct *WorkProduct `json:"workProduct,omitempty"`
// ForceSendFields is a list of field names (e.g. "ProgressMessage") 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:"-"`
// NullFields is a list of field names (e.g. "ProgressMessage") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeCompleteRequest) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeCompleteRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeCompleteResponse struct {
WorkNode *WorkNode `json:"workNode,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "WorkNode") 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:"-"`
// NullFields is a list of field names (e.g. "WorkNode") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeCompleteResponse) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeCompleteResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeFailRequest struct {
ProgressMessage *WorkNodeProgressMessage `json:"progressMessage,omitempty"`
ProgressMessages []*WorkNodeProgressMessage `json:"progressMessages,omitempty"`
Reason string `json:"reason,omitempty"`
RetryDelayMillis int64 `json:"retryDelayMillis,omitempty,string"`
WorkNode *WorkNode `json:"workNode,omitempty"`
// ForceSendFields is a list of field names (e.g. "ProgressMessage") 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:"-"`
// NullFields is a list of field names (e.g. "ProgressMessage") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeFailRequest) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeFailRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeFailResponse struct {
WorkNode *WorkNode `json:"workNode,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "WorkNode") 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:"-"`
// NullFields is a list of field names (e.g. "WorkNode") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeFailResponse) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeFailResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeListResponse struct {
TokenPageResult *TokenPageResult `json:"tokenPageResult,omitempty"`
WorkNodes []*WorkNode `json:"workNodes,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "TokenPageResult") 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:"-"`
// NullFields is a list of field names (e.g. "TokenPageResult") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeListResponse) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeMakeAvailableResponse struct {
WorkNode *WorkNode `json:"workNode,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "WorkNode") 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:"-"`
// NullFields is a list of field names (e.g. "WorkNode") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeMakeAvailableResponse) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeMakeAvailableResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodePopRequest struct {
HeartbeatTimeMillis int64 `json:"heartbeatTimeMillis,omitempty,string"`
MaximumRetries int64 `json:"maximumRetries,omitempty"`
NodeId string `json:"nodeId,omitempty"`
PoppedStatus string `json:"poppedStatus,omitempty"`
ProgressMessage *WorkNodeProgressMessage `json:"progressMessage,omitempty"`
ProgressMessages []*WorkNodeProgressMessage `json:"progressMessages,omitempty"`
WorkExecutorType string `json:"workExecutorType,omitempty"`
WorkerId string `json:"workerId,omitempty"`
// ForceSendFields is a list of field names (e.g. "HeartbeatTimeMillis")
// 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:"-"`
// NullFields is a list of field names (e.g. "HeartbeatTimeMillis") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkNodePopRequest) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodePopRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodePopResponse struct {
InputWorkNodes []*WorkNode `json:"inputWorkNodes,omitempty"`
WorkNode *WorkNode `json:"workNode,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "InputWorkNodes") 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:"-"`
// NullFields is a list of field names (e.g. "InputWorkNodes") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkNodePopResponse) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodePopResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeProgressMessage struct {
AtpMessage *WorkNodeProgressMessageAtpMachineReadableMessage `json:"atpMessage,omitempty"`
AttemptEnded *WorkNodeProgressMessageAttemptEnded `json:"attemptEnded,omitempty"`
DisplayMessage string `json:"displayMessage,omitempty"`
MessageString string `json:"messageString,omitempty"`
TimeMillis int64 `json:"timeMillis,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "AtpMessage") 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:"-"`
// NullFields is a list of field names (e.g. "AtpMessage") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeProgressMessage) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeProgressMessage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeProgressMessageAtpMachineReadableMessage struct {
State string `json:"state,omitempty"`
// ForceSendFields is a list of field names (e.g. "State") 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:"-"`
// NullFields is a list of field names (e.g. "State") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeProgressMessageAtpMachineReadableMessage) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeProgressMessageAtpMachineReadableMessage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeProgressMessageAttemptEnded struct {
ActionType string `json:"actionType,omitempty"`
Reason string `json:"reason,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActionType") 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:"-"`
// NullFields is a list of field names (e.g. "ActionType") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeProgressMessageAttemptEnded) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeProgressMessageAttemptEnded
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeRemovePiiResponse struct {
WorkNode *WorkNode `json:"workNode,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "WorkNode") 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:"-"`
// NullFields is a list of field names (e.g. "WorkNode") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeRemovePiiResponse) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeRemovePiiResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeRetry struct {
MaximumRetries int64 `json:"maximumRetries,omitempty"`
RetryCount int64 `json:"retryCount,omitempty"`
// ForceSendFields is a list of field names (e.g. "MaximumRetries") 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:"-"`
// NullFields is a list of field names (e.g. "MaximumRetries") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeRetry) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeRetry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeStepTracker struct {
FinalMessage string `json:"finalMessage,omitempty"`
ItemIndex int64 `json:"itemIndex,omitempty"`
ItemName string `json:"itemName,omitempty"`
ItemType string `json:"itemType,omitempty"`
LastTimestamp int64 `json:"lastTimestamp,omitempty,string"`
StartTimestamp int64 `json:"startTimestamp,omitempty,string"`
Status string `json:"status,omitempty"`
StepName string `json:"stepName,omitempty"`
TotalItems int64 `json:"totalItems,omitempty"`
// ForceSendFields is a list of field names (e.g. "FinalMessage") 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:"-"`
// NullFields is a list of field names (e.g. "FinalMessage") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeStepTracker) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeStepTracker
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkNodeTouchResponse struct {
WorkNode *WorkNode `json:"workNode,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "WorkNode") 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:"-"`
// NullFields is a list of field names (e.g. "WorkNode") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkNodeTouchResponse) MarshalJSON() ([]byte, error) {
type NoMethod WorkNodeTouchResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParameters struct {
AtpTestParameters *WorkParametersAtpTestParameters `json:"atpTestParameters,omitempty"`
AutomergeMergePath *WorkParametersAutomergeMergePathParameters `json:"automergeMergePath,omitempty"`
BisectionStep *WorkParametersBisectionStepParameters `json:"bisectionStep,omitempty"`
ChangeFinished *WorkParametersPendingChangeFinishedParameters `json:"changeFinished,omitempty"`
ConductorRequest *ConductorRequest `json:"conductorRequest,omitempty"`
FetchChangesRequest *WorkParametersFetchChangesRequestParameters `json:"fetchChangesRequest,omitempty"`
GerritPollerMonitorRequest *WorkParametersGerritPollerMonitorRequestParameters `json:"gerritPollerMonitorRequest,omitempty"`
ImageRequest *ImageRequest `json:"imageRequest,omitempty"`
ManifestAssembler *WorkParametersManifestAssemblerParameters `json:"manifestAssembler,omitempty"`
PresubmitAnalysis *WorkParametersPresubmitAnalysisParameters `json:"presubmitAnalysis,omitempty"`
PresubmitPreflight *WorkParametersPresubmitPreflightParameters `json:"presubmitPreflight,omitempty"`
ReleaseRequest *ReleaseRequest `json:"releaseRequest,omitempty"`
SelfserviceOperation *SelfserviceOperation `json:"selfserviceOperation,omitempty"`
SubmitQueue *WorkParametersPendingChangeBuildParameters `json:"submitQueue,omitempty"`
SubmittedBuild *WorkParametersSubmittedBuildParameters `json:"submittedBuild,omitempty"`
SubmittedBuildRequest *WorkParametersSubmittedBuildRequestParameters `json:"submittedBuildRequest,omitempty"`
TestProviderParameters *WorkParametersTestProviderParameters `json:"testProviderParameters,omitempty"`
TrybotFinished *WorkParametersTrybotFinishedParameters `json:"trybotFinished,omitempty"`
// ForceSendFields is a list of field names (e.g. "AtpTestParameters")
// 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:"-"`
// NullFields is a list of field names (e.g. "AtpTestParameters") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersAtpTestParameters struct {
Branch string `json:"branch,omitempty"`
CommandLine string `json:"commandLine,omitempty"`
ConfigChangeId string `json:"configChangeId,omitempty"`
Experimental bool `json:"experimental,omitempty"`
ExtraOptions []*Arg `json:"extraOptions,omitempty"`
ExtraTargets []string `json:"extraTargets,omitempty"`
Labels []string `json:"labels,omitempty"`
PrimaryBuildDevice string `json:"primaryBuildDevice,omitempty"`
RunCount int64 `json:"runCount,omitempty"`
Runner string `json:"runner,omitempty"`
RunnerOptions []*Arg `json:"runnerOptions,omitempty"`
Severity string `json:"severity,omitempty"`
ShardCount int64 `json:"shardCount,omitempty"`
Target string `json:"target,omitempty"`
TestBench *TestBench `json:"testBench,omitempty"`
TestName string `json:"testName,omitempty"`
// ForceSendFields is a list of field names (e.g. "Branch") 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:"-"`
// NullFields is a list of field names (e.g. "Branch") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersAtpTestParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersAtpTestParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersAutomergeMergePathParameters struct {
DestinationBranch string `json:"destinationBranch,omitempty"`
DestinationHostServer string `json:"destinationHostServer,omitempty"`
OriginalSourceBranch string `json:"originalSourceBranch,omitempty"`
OriginalSourceHostServer string `json:"originalSourceHostServer,omitempty"`
ProjectsToMerges []string `json:"projectsToMerges,omitempty"`
Settings *WorkParametersAutomergeMergePathParametersAutomergeMergePathSettings `json:"settings,omitempty"`
SourceBranch string `json:"sourceBranch,omitempty"`
SourceHostServer string `json:"sourceHostServer,omitempty"`
// ForceSendFields is a list of field names (e.g. "DestinationBranch")
// 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:"-"`
// NullFields is a list of field names (e.g. "DestinationBranch") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersAutomergeMergePathParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersAutomergeMergePathParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersAutomergeMergePathParametersAutomergeMergePathSettings struct {
BlankMergeRegexes []string `json:"blankMergeRegexes,omitempty"`
CcEmails []string `json:"ccEmails,omitempty"`
ConflictOwnerEmails []string `json:"conflictOwnerEmails,omitempty"`
// ForceSendFields is a list of field names (e.g. "BlankMergeRegexes")
// 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:"-"`
// NullFields is a list of field names (e.g. "BlankMergeRegexes") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersAutomergeMergePathParametersAutomergeMergePathSettings) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersAutomergeMergePathParametersAutomergeMergePathSettings
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersBisectionStepParameters struct {
ForrestSubmittedBuilds *ForrestSubmittedBuilds `json:"forrestSubmittedBuilds,omitempty"`
IsValidationStep bool `json:"isValidationStep,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ForrestSubmittedBuilds") 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:"-"`
// NullFields is a list of field names (e.g. "ForrestSubmittedBuilds")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersBisectionStepParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersBisectionStepParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersFetchChangesRequestParameters struct {
BuildId string `json:"buildId,omitempty"`
PreviousBuildId string `json:"previousBuildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersFetchChangesRequestParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersFetchChangesRequestParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersGerritPollerMonitorRequestParameters struct {
ConfigPath string `json:"configPath,omitempty"`
GerritHost string `json:"gerritHost,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConfigPath") 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:"-"`
// NullFields is a list of field names (e.g. "ConfigPath") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersGerritPollerMonitorRequestParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersGerritPollerMonitorRequestParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersManifestAssemblerParameters struct {
BuildId string `json:"buildId,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersManifestAssemblerParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersManifestAssemblerParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersPendingChangeBuildParameters struct {
Automerged bool `json:"automerged,omitempty"`
Branch string `json:"branch,omitempty"`
BuildIds []string `json:"buildIds,omitempty"`
ChangeDetails []*GerritChangeDetail `json:"changeDetails,omitempty"`
ChangeSpecsToBuilds []*ChangeSetSpecChangeSpec `json:"changeSpecsToBuilds,omitempty"`
ReferenceBuildIds []string `json:"referenceBuildIds,omitempty"`
SyncTimeoutSecond int64 `json:"syncTimeoutSecond,omitempty"`
Target string `json:"target,omitempty"`
// ForceSendFields is a list of field names (e.g. "Automerged") 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:"-"`
// NullFields is a list of field names (e.g. "Automerged") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersPendingChangeBuildParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersPendingChangeBuildParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersPendingChangeFinishedParameters struct {
DisplayMessage string `json:"displayMessage,omitempty"`
LeaderChangeSpecs []*ChangeSetSpecChangeSpec `json:"leaderChangeSpecs,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayMessage") 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:"-"`
// NullFields is a list of field names (e.g. "DisplayMessage") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersPendingChangeFinishedParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersPendingChangeFinishedParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersPresubmitAnalysisParameters struct {
Changes []*GerritChangeDetail `json:"changes,omitempty"`
Stage string `json:"stage,omitempty"`
// ForceSendFields is a list of field names (e.g. "Changes") 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:"-"`
// NullFields is a list of field names (e.g. "Changes") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersPresubmitAnalysisParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersPresubmitAnalysisParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersPresubmitPreflightParameters struct {
Changes []*GerritChangeDetail `json:"changes,omitempty"`
// ForceSendFields is a list of field names (e.g. "Changes") 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:"-"`
// NullFields is a list of field names (e.g. "Changes") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersPresubmitPreflightParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersPresubmitPreflightParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersSubmittedBuildParameters struct {
Branch string `json:"branch,omitempty"`
BuildId string `json:"buildId,omitempty"`
GerritPollerTimestamp int64 `json:"gerritPollerTimestamp,omitempty,string"`
Manifest *ParsedManifest `json:"manifest,omitempty"`
ManuallyTriggered bool `json:"manuallyTriggered,omitempty"`
ProofBuild bool `json:"proofBuild,omitempty"`
ReleaseCandidateName string `json:"releaseCandidateName,omitempty"`
ResetImageBuildReference string `json:"resetImageBuildReference,omitempty"`
SyncTimeoutSecond int64 `json:"syncTimeoutSecond,omitempty"`
Target *Target `json:"target,omitempty"`
// ForceSendFields is a list of field names (e.g. "Branch") 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:"-"`
// NullFields is a list of field names (e.g. "Branch") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersSubmittedBuildParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersSubmittedBuildParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersSubmittedBuildRequestParameters struct {
Manifest *ParsedManifest `json:"manifest,omitempty"`
// ForceSendFields is a list of field names (e.g. "Manifest") 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:"-"`
// NullFields is a list of field names (e.g. "Manifest") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersSubmittedBuildRequestParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersSubmittedBuildRequestParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersTestMappingParameters struct {
TestGroup string `json:"testGroup,omitempty"`
// ForceSendFields is a list of field names (e.g. "TestGroup") 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:"-"`
// NullFields is a list of field names (e.g. "TestGroup") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersTestMappingParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersTestMappingParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersTestProviderParameters struct {
ChangeSpecs []*ChangeSetSpecChangeSpec `json:"changeSpecs,omitempty"`
SuiteParameters *WorkParametersAtpTestParameters `json:"suiteParameters,omitempty"`
TestMappingParameters *WorkParametersTestMappingParameters `json:"testMappingParameters,omitempty"`
TestMappingTestType string `json:"testMappingTestType,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChangeSpecs") 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:"-"`
// NullFields is a list of field names (e.g. "ChangeSpecs") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersTestProviderParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersTestProviderParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkParametersTrybotFinishedParameters struct {
BisectionStepId string `json:"bisectionStepId,omitempty"`
// ForceSendFields is a list of field names (e.g. "BisectionStepId") 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:"-"`
// NullFields is a list of field names (e.g. "BisectionStepId") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkParametersTrybotFinishedParameters) MarshalJSON() ([]byte, error) {
type NoMethod WorkParametersTrybotFinishedParameters
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkPlan struct {
CreationTimeMillis int64 `json:"creationTimeMillis,omitempty,string"`
Id string `json:"id,omitempty"`
LastUpdatedMillis int64 `json:"lastUpdatedMillis,omitempty,string"`
Revision string `json:"revision,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CreationTimeMillis")
// 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:"-"`
// NullFields is a list of field names (e.g. "CreationTimeMillis") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *WorkPlan) MarshalJSON() ([]byte, error) {
type NoMethod WorkPlan
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkPlanAddNodesRequest struct {
NewEdges []*NewEdge `json:"newEdges,omitempty"`
Resource *WorkPlan `json:"resource,omitempty"`
WorkNodes []*WorkNode `json:"workNodes,omitempty"`
// ForceSendFields is a list of field names (e.g. "NewEdges") 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:"-"`
// NullFields is a list of field names (e.g. "NewEdges") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkPlanAddNodesRequest) MarshalJSON() ([]byte, error) {
type NoMethod WorkPlanAddNodesRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkPlanAddNodesResponse struct {
NewWorkNodes []*WorkNode `json:"newWorkNodes,omitempty"`
Resource *WorkPlan `json:"resource,omitempty"`
WorkNodes []*WorkNode `json:"workNodes,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NewWorkNodes") 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:"-"`
// NullFields is a list of field names (e.g. "NewWorkNodes") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkPlanAddNodesResponse) MarshalJSON() ([]byte, error) {
type NoMethod WorkPlanAddNodesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkPlanCreateWithNodesRequest struct {
Template *WorkPlan `json:"template,omitempty"`
WorkNodes []*WorkNode `json:"workNodes,omitempty"`
// ForceSendFields is a list of field names (e.g. "Template") 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:"-"`
// NullFields is a list of field names (e.g. "Template") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkPlanCreateWithNodesRequest) MarshalJSON() ([]byte, error) {
type NoMethod WorkPlanCreateWithNodesRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkPlanCreateWithNodesResponse struct {
Resource *WorkPlan `json:"resource,omitempty"`
WorkNodes []*WorkNode `json:"workNodes,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Resource") 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:"-"`
// NullFields is a list of field names (e.g. "Resource") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkPlanCreateWithNodesResponse) MarshalJSON() ([]byte, error) {
type NoMethod WorkPlanCreateWithNodesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkPlanListResponse struct {
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
WorkPlans []*WorkPlan `json:"workPlans,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:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkPlanListResponse) MarshalJSON() ([]byte, error) {
type NoMethod WorkPlanListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkProduct struct {
BuildOutput *WorkProductBuildOutputProduct `json:"buildOutput,omitempty"`
CherrypickOutput *CherryPickOutput `json:"cherrypickOutput,omitempty"`
ConductorOutput *ConductorOutput `json:"conductorOutput,omitempty"`
DisplayMessage string `json:"displayMessage,omitempty"`
DummyOutput *WorkProductDummyOutputProduct `json:"dummyOutput,omitempty"`
GerritPollerMonitorOutput *WorkProductGerritPollerMonitorProduct `json:"gerritPollerMonitorOutput,omitempty"`
ImageRequestOutput *WorkProductImageRequestOutputProduct `json:"imageRequestOutput,omitempty"`
PinnedManifestOutput *WorkProductPinnedManifestOutputProduct `json:"pinnedManifestOutput,omitempty"`
SelfserviceOperationOutput *SelfserviceOperationProduct `json:"selfserviceOperationOutput,omitempty"`
Success bool `json:"success,omitempty"`
TestOutput *WorkProductTestOutputProduct `json:"testOutput,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildOutput") 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:"-"`
// NullFields is a list of field names (e.g. "BuildOutput") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkProduct) MarshalJSON() ([]byte, error) {
type NoMethod WorkProduct
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkProductBuildOutputProduct struct {
BuildId string `json:"buildId,omitempty"`
BuildType string `json:"buildType,omitempty"`
Target string `json:"target,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkProductBuildOutputProduct) MarshalJSON() ([]byte, error) {
type NoMethod WorkProductBuildOutputProduct
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkProductDummyOutputProduct struct {
DummyString string `json:"dummyString,omitempty"`
// ForceSendFields is a list of field names (e.g. "DummyString") 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:"-"`
// NullFields is a list of field names (e.g. "DummyString") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkProductDummyOutputProduct) MarshalJSON() ([]byte, error) {
type NoMethod WorkProductDummyOutputProduct
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkProductGerritPollerMonitorProduct struct {
OutputPath string `json:"outputPath,omitempty"`
// ForceSendFields is a list of field names (e.g. "OutputPath") 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:"-"`
// NullFields is a list of field names (e.g. "OutputPath") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkProductGerritPollerMonitorProduct) MarshalJSON() ([]byte, error) {
type NoMethod WorkProductGerritPollerMonitorProduct
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkProductImageRequestOutputProduct struct {
ArtifactPaths []string `json:"artifactPaths,omitempty"`
BuildId string `json:"buildId,omitempty"`
Target string `json:"target,omitempty"`
// ForceSendFields is a list of field names (e.g. "ArtifactPaths") 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:"-"`
// NullFields is a list of field names (e.g. "ArtifactPaths") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkProductImageRequestOutputProduct) MarshalJSON() ([]byte, error) {
type NoMethod WorkProductImageRequestOutputProduct
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkProductPinnedManifestOutputProduct struct {
BaseBuildId string `json:"baseBuildId,omitempty"`
Manifest *ParsedManifest `json:"manifest,omitempty"`
// ForceSendFields is a list of field names (e.g. "BaseBuildId") 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:"-"`
// NullFields is a list of field names (e.g. "BaseBuildId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkProductPinnedManifestOutputProduct) MarshalJSON() ([]byte, error) {
type NoMethod WorkProductPinnedManifestOutputProduct
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type WorkProductTestOutputProduct struct {
BuildId string `json:"buildId,omitempty"`
ErrorAttempts int64 `json:"errorAttempts,omitempty"`
FailedAttempts int64 `json:"failedAttempts,omitempty"`
PassedAttempts int64 `json:"passedAttempts,omitempty"`
Target string `json:"target,omitempty"`
TestResultId string `json:"testResultId,omitempty"`
// ForceSendFields is a list of field names (e.g. "BuildId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *WorkProductTestOutputProduct) MarshalJSON() ([]byte, error) {
type NoMethod WorkProductTestOutputProduct
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// method id "androidbuildinternal.analyzerfinding.get":
type AnalyzerfindingGetCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *AnalyzerfindingService) Get(resourceId string) *AnalyzerfindingGetCall {
c := &AnalyzerfindingGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AnalyzerfindingGetCall) Fields(s ...googleapi.Field) *AnalyzerfindingGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *AnalyzerfindingGetCall) IfNoneMatch(entityTag string) *AnalyzerfindingGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *AnalyzerfindingGetCall) Context(ctx context.Context) *AnalyzerfindingGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AnalyzerfindingGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AnalyzerfindingGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "analyzerFindings/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.analyzerfinding.get" call.
// Exactly one of *AnalyzerFinding or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *AnalyzerFinding.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 (c *AnalyzerfindingGetCall) Do(opts ...googleapi.CallOption) (*AnalyzerFinding, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &AnalyzerFinding{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.analyzerfinding.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "analyzerFindings/{resourceId}",
// "response": {
// "$ref": "AnalyzerFinding"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.analyzerfinding.list":
type AnalyzerfindingListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *AnalyzerfindingService) List() *AnalyzerfindingListCall {
c := &AnalyzerfindingListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// AnalyzerResultId sets the optional parameter "analyzerResultId":
func (c *AnalyzerfindingListCall) AnalyzerResultId(analyzerResultId string) *AnalyzerfindingListCall {
c.urlParams_.Set("analyzerResultId", analyzerResultId)
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *AnalyzerfindingListCall) MaxResults(maxResults int64) *AnalyzerfindingListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *AnalyzerfindingListCall) PageToken(pageToken string) *AnalyzerfindingListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AnalyzerfindingListCall) Fields(s ...googleapi.Field) *AnalyzerfindingListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *AnalyzerfindingListCall) IfNoneMatch(entityTag string) *AnalyzerfindingListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *AnalyzerfindingListCall) Context(ctx context.Context) *AnalyzerfindingListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AnalyzerfindingListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AnalyzerfindingListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "analyzerFindings")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.analyzerfinding.list" call.
// Exactly one of *AnalyzerFindingListResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *AnalyzerFindingListResponse.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 (c *AnalyzerfindingListCall) Do(opts ...googleapi.CallOption) (*AnalyzerFindingListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &AnalyzerFindingListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.analyzerfinding.list",
// "parameters": {
// "analyzerResultId": {
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "analyzerFindings",
// "response": {
// "$ref": "AnalyzerFindingListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *AnalyzerfindingListCall) Pages(ctx context.Context, f func(*AnalyzerFindingListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.analyzerresult.addFindings":
type AnalyzerresultAddFindingsCall struct {
s *Service
analyzerResultId string
analyzerresultaddfindingsrequest *AnalyzerResultAddFindingsRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// AddFindings:
func (r *AnalyzerresultService) AddFindings(analyzerResultId string, analyzerresultaddfindingsrequest *AnalyzerResultAddFindingsRequest) *AnalyzerresultAddFindingsCall {
c := &AnalyzerresultAddFindingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.analyzerResultId = analyzerResultId
c.analyzerresultaddfindingsrequest = analyzerresultaddfindingsrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AnalyzerresultAddFindingsCall) Fields(s ...googleapi.Field) *AnalyzerresultAddFindingsCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *AnalyzerresultAddFindingsCall) Context(ctx context.Context) *AnalyzerresultAddFindingsCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AnalyzerresultAddFindingsCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AnalyzerresultAddFindingsCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzerresultaddfindingsrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "analyzerResults/{analyzerResultId}/addFindings")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"analyzerResultId": c.analyzerResultId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.analyzerresult.addFindings" call.
// Exactly one of *AnalyzerResultAddFindingsResponse or error will be
// non-nil. Any non-2xx status code is an error. Response headers are in
// either *AnalyzerResultAddFindingsResponse.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 (c *AnalyzerresultAddFindingsCall) Do(opts ...googleapi.CallOption) (*AnalyzerResultAddFindingsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &AnalyzerResultAddFindingsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.analyzerresult.addFindings",
// "parameterOrder": [
// "analyzerResultId"
// ],
// "parameters": {
// "analyzerResultId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "analyzerResults/{analyzerResultId}/addFindings",
// "request": {
// "$ref": "AnalyzerResultAddFindingsRequest"
// },
// "response": {
// "$ref": "AnalyzerResultAddFindingsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.analyzerresult.categories":
type AnalyzerresultCategoriesCall struct {
s *Service
analyzerresultcategoriesrequest *AnalyzerResultCategoriesRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Categories:
func (r *AnalyzerresultService) Categories(analyzerresultcategoriesrequest *AnalyzerResultCategoriesRequest) *AnalyzerresultCategoriesCall {
c := &AnalyzerresultCategoriesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.analyzerresultcategoriesrequest = analyzerresultcategoriesrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AnalyzerresultCategoriesCall) Fields(s ...googleapi.Field) *AnalyzerresultCategoriesCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *AnalyzerresultCategoriesCall) Context(ctx context.Context) *AnalyzerresultCategoriesCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AnalyzerresultCategoriesCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AnalyzerresultCategoriesCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzerresultcategoriesrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "analyzerResults/categories")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.analyzerresult.categories" call.
// Exactly one of *AnalyzerResultCategoriesResponse or error will be
// non-nil. Any non-2xx status code is an error. Response headers are in
// either *AnalyzerResultCategoriesResponse.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 (c *AnalyzerresultCategoriesCall) Do(opts ...googleapi.CallOption) (*AnalyzerResultCategoriesResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &AnalyzerResultCategoriesResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.analyzerresult.categories",
// "path": "analyzerResults/categories",
// "request": {
// "$ref": "AnalyzerResultCategoriesRequest"
// },
// "response": {
// "$ref": "AnalyzerResultCategoriesResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.analyzerresult.get":
type AnalyzerresultGetCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *AnalyzerresultService) Get(resourceId string) *AnalyzerresultGetCall {
c := &AnalyzerresultGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AnalyzerresultGetCall) Fields(s ...googleapi.Field) *AnalyzerresultGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *AnalyzerresultGetCall) IfNoneMatch(entityTag string) *AnalyzerresultGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *AnalyzerresultGetCall) Context(ctx context.Context) *AnalyzerresultGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AnalyzerresultGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AnalyzerresultGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "analyzerResults/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.analyzerresult.get" call.
// Exactly one of *AnalyzerResult or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *AnalyzerResult.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 (c *AnalyzerresultGetCall) Do(opts ...googleapi.CallOption) (*AnalyzerResult, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &AnalyzerResult{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.analyzerresult.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "analyzerResults/{resourceId}",
// "response": {
// "$ref": "AnalyzerResult"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.analyzerresult.insert":
type AnalyzerresultInsertCall struct {
s *Service
analyzerresult *AnalyzerResult
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Insert:
func (r *AnalyzerresultService) Insert(analyzerresult *AnalyzerResult) *AnalyzerresultInsertCall {
c := &AnalyzerresultInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.analyzerresult = analyzerresult
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AnalyzerresultInsertCall) Fields(s ...googleapi.Field) *AnalyzerresultInsertCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *AnalyzerresultInsertCall) Context(ctx context.Context) *AnalyzerresultInsertCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AnalyzerresultInsertCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AnalyzerresultInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzerresult)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "analyzerResults")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.analyzerresult.insert" call.
// Exactly one of *AnalyzerResult or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *AnalyzerResult.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 (c *AnalyzerresultInsertCall) Do(opts ...googleapi.CallOption) (*AnalyzerResult, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &AnalyzerResult{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.analyzerresult.insert",
// "path": "analyzerResults",
// "request": {
// "$ref": "AnalyzerResult"
// },
// "response": {
// "$ref": "AnalyzerResult"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.analyzerresult.list":
type AnalyzerresultListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *AnalyzerresultService) List() *AnalyzerresultListCall {
c := &AnalyzerresultListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// Category sets the optional parameter "category":
func (c *AnalyzerresultListCall) Category(category string) *AnalyzerresultListCall {
c.urlParams_.Set("category", category)
return c
}
// ChangeNumber sets the optional parameter "changeNumber":
func (c *AnalyzerresultListCall) ChangeNumber(changeNumber int64) *AnalyzerresultListCall {
c.urlParams_.Set("changeNumber", fmt.Sprint(changeNumber))
return c
}
// Hostname sets the optional parameter "hostname":
func (c *AnalyzerresultListCall) Hostname(hostname string) *AnalyzerresultListCall {
c.urlParams_.Set("hostname", hostname)
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *AnalyzerresultListCall) MaxResults(maxResults int64) *AnalyzerresultListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *AnalyzerresultListCall) PageToken(pageToken string) *AnalyzerresultListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Patchset sets the optional parameter "patchset":
func (c *AnalyzerresultListCall) Patchset(patchset string) *AnalyzerresultListCall {
c.urlParams_.Set("patchset", patchset)
return c
}
// Status sets the optional parameter "status":
//
// Possible values:
// "canceled"
// "completeFail"
// "completePass"
// "completeSkip"
// "error"
// "inProgress"
// "timedOut"
// "unknown"
func (c *AnalyzerresultListCall) Status(status string) *AnalyzerresultListCall {
c.urlParams_.Set("status", status)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AnalyzerresultListCall) Fields(s ...googleapi.Field) *AnalyzerresultListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *AnalyzerresultListCall) IfNoneMatch(entityTag string) *AnalyzerresultListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *AnalyzerresultListCall) Context(ctx context.Context) *AnalyzerresultListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AnalyzerresultListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AnalyzerresultListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "analyzerResults")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.analyzerresult.list" call.
// Exactly one of *AnalyzerResultListResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *AnalyzerResultListResponse.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 (c *AnalyzerresultListCall) Do(opts ...googleapi.CallOption) (*AnalyzerResultListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &AnalyzerResultListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.analyzerresult.list",
// "parameters": {
// "category": {
// "location": "query",
// "type": "string"
// },
// "changeNumber": {
// "format": "int64",
// "location": "query",
// "type": "string"
// },
// "hostname": {
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "patchset": {
// "location": "query",
// "type": "string"
// },
// "status": {
// "enum": [
// "canceled",
// "completeFail",
// "completePass",
// "completeSkip",
// "error",
// "inProgress",
// "timedOut",
// "unknown"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// }
// },
// "path": "analyzerResults",
// "response": {
// "$ref": "AnalyzerResultListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *AnalyzerresultListCall) Pages(ctx context.Context, f func(*AnalyzerResultListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.analyzerresult.patch":
type AnalyzerresultPatchCall struct {
s *Service
resourceId string
analyzerresult *AnalyzerResult
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *AnalyzerresultService) Patch(resourceId string, analyzerresult *AnalyzerResult) *AnalyzerresultPatchCall {
c := &AnalyzerresultPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.analyzerresult = analyzerresult
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AnalyzerresultPatchCall) Fields(s ...googleapi.Field) *AnalyzerresultPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *AnalyzerresultPatchCall) Context(ctx context.Context) *AnalyzerresultPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AnalyzerresultPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AnalyzerresultPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzerresult)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "analyzerResults/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.analyzerresult.patch" call.
// Exactly one of *AnalyzerResult or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *AnalyzerResult.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 (c *AnalyzerresultPatchCall) Do(opts ...googleapi.CallOption) (*AnalyzerResult, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &AnalyzerResult{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.analyzerresult.patch",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "analyzerResults/{resourceId}",
// "request": {
// "$ref": "AnalyzerResult"
// },
// "response": {
// "$ref": "AnalyzerResult"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.analyzerresult.update":
type AnalyzerresultUpdateCall struct {
s *Service
resourceId string
analyzerresult *AnalyzerResult
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *AnalyzerresultService) Update(resourceId string, analyzerresult *AnalyzerResult) *AnalyzerresultUpdateCall {
c := &AnalyzerresultUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.analyzerresult = analyzerresult
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AnalyzerresultUpdateCall) Fields(s ...googleapi.Field) *AnalyzerresultUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *AnalyzerresultUpdateCall) Context(ctx context.Context) *AnalyzerresultUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AnalyzerresultUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AnalyzerresultUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.analyzerresult)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "analyzerResults/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.analyzerresult.update" call.
// Exactly one of *AnalyzerResult or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *AnalyzerResult.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 (c *AnalyzerresultUpdateCall) Do(opts ...googleapi.CallOption) (*AnalyzerResult, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &AnalyzerResult{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.analyzerresult.update",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "analyzerResults/{resourceId}",
// "request": {
// "$ref": "AnalyzerResult"
// },
// "response": {
// "$ref": "AnalyzerResult"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.branch.get":
type BranchGetCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *BranchService) Get(resourceId string) *BranchGetCall {
c := &BranchGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BranchGetCall) Fields(s ...googleapi.Field) *BranchGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BranchGetCall) IfNoneMatch(entityTag string) *BranchGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BranchGetCall) Context(ctx context.Context) *BranchGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BranchGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BranchGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "branches/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.branch.get" call.
// Exactly one of *BranchConfig or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *BranchConfig.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 (c *BranchGetCall) Do(opts ...googleapi.CallOption) (*BranchConfig, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BranchConfig{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.branch.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "branches/{resourceId}",
// "response": {
// "$ref": "BranchConfig"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.branch.list":
type BranchListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *BranchService) List() *BranchListCall {
c := &BranchListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// BuildPrefix sets the optional parameter "buildPrefix":
func (c *BranchListCall) BuildPrefix(buildPrefix string) *BranchListCall {
c.urlParams_.Set("buildPrefix", buildPrefix)
return c
}
// Disabled sets the optional parameter "disabled":
func (c *BranchListCall) Disabled(disabled bool) *BranchListCall {
c.urlParams_.Set("disabled", fmt.Sprint(disabled))
return c
}
// ExcludeIfEmptyFields sets the optional parameter
// "excludeIfEmptyFields":
//
// Possible values:
// "buildPrefix"
// "buildUpdateAcl"
// "flashstation"
func (c *BranchListCall) ExcludeIfEmptyFields(excludeIfEmptyFields ...string) *BranchListCall {
c.urlParams_.SetMulti("excludeIfEmptyFields", append([]string{}, excludeIfEmptyFields...))
return c
}
// FlashstationEnabled sets the optional parameter
// "flashstationEnabled":
func (c *BranchListCall) FlashstationEnabled(flashstationEnabled bool) *BranchListCall {
c.urlParams_.Set("flashstationEnabled", fmt.Sprint(flashstationEnabled))
return c
}
// FlashstationProduct sets the optional parameter
// "flashstationProduct":
func (c *BranchListCall) FlashstationProduct(flashstationProduct string) *BranchListCall {
c.urlParams_.Set("flashstationProduct", flashstationProduct)
return c
}
// IsBuildCopBranch sets the optional parameter "isBuildCopBranch":
func (c *BranchListCall) IsBuildCopBranch(isBuildCopBranch bool) *BranchListCall {
c.urlParams_.Set("isBuildCopBranch", fmt.Sprint(isBuildCopBranch))
return c
}
// IsExternal sets the optional parameter "isExternal":
func (c *BranchListCall) IsExternal(isExternal bool) *BranchListCall {
c.urlParams_.Set("isExternal", fmt.Sprint(isExternal))
return c
}
// IsReleaseBranch sets the optional parameter "isReleaseBranch":
func (c *BranchListCall) IsReleaseBranch(isReleaseBranch bool) *BranchListCall {
c.urlParams_.Set("isReleaseBranch", fmt.Sprint(isReleaseBranch))
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *BranchListCall) MaxResults(maxResults int64) *BranchListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *BranchListCall) PageToken(pageToken string) *BranchListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// TargetProducts sets the optional parameter "targetProducts":
func (c *BranchListCall) TargetProducts(targetProducts ...string) *BranchListCall {
c.urlParams_.SetMulti("targetProducts", append([]string{}, targetProducts...))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BranchListCall) Fields(s ...googleapi.Field) *BranchListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BranchListCall) IfNoneMatch(entityTag string) *BranchListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BranchListCall) Context(ctx context.Context) *BranchListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BranchListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BranchListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "branches")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.branch.list" call.
// Exactly one of *BranchListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BranchListResponse.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 (c *BranchListCall) Do(opts ...googleapi.CallOption) (*BranchListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BranchListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.branch.list",
// "parameters": {
// "buildPrefix": {
// "location": "query",
// "type": "string"
// },
// "disabled": {
// "location": "query",
// "type": "boolean"
// },
// "excludeIfEmptyFields": {
// "enum": [
// "buildPrefix",
// "buildUpdateAcl",
// "flashstation"
// ],
// "enumDescriptions": [
// "",
// "",
// ""
// ],
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "flashstationEnabled": {
// "location": "query",
// "type": "boolean"
// },
// "flashstationProduct": {
// "location": "query",
// "type": "string"
// },
// "isBuildCopBranch": {
// "location": "query",
// "type": "boolean"
// },
// "isExternal": {
// "location": "query",
// "type": "boolean"
// },
// "isReleaseBranch": {
// "location": "query",
// "type": "boolean"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "targetProducts": {
// "location": "query",
// "repeated": true,
// "type": "string"
// }
// },
// "path": "branches",
// "response": {
// "$ref": "BranchListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *BranchListCall) Pages(ctx context.Context, f func(*BranchListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.branch.trigger":
type BranchTriggerCall struct {
s *Service
branch string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Trigger:
func (r *BranchService) Trigger(branch string) *BranchTriggerCall {
c := &BranchTriggerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.branch = branch
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BranchTriggerCall) Fields(s ...googleapi.Field) *BranchTriggerCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BranchTriggerCall) Context(ctx context.Context) *BranchTriggerCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BranchTriggerCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BranchTriggerCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "branches/{branch}/trigger")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"branch": c.branch,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.branch.trigger" call.
func (c *BranchTriggerCall) Do(opts ...googleapi.CallOption) error {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if err != nil {
return err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return err
}
return nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.branch.trigger",
// "parameterOrder": [
// "branch"
// ],
// "parameters": {
// "branch": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "branches/{branch}/trigger",
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.bughash.get":
type BughashGetCall struct {
s *Service
namespace string
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *BughashService) Get(namespace string, resourceId string) *BughashGetCall {
c := &BughashGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.namespace = namespace
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BughashGetCall) Fields(s ...googleapi.Field) *BughashGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BughashGetCall) IfNoneMatch(entityTag string) *BughashGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BughashGetCall) Context(ctx context.Context) *BughashGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BughashGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BughashGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "bugHashes/{namespace}/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"namespace": c.namespace,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.bughash.get" call.
// Exactly one of *BugHash or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *BugHash.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 (c *BughashGetCall) Do(opts ...googleapi.CallOption) (*BugHash, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BugHash{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.bughash.get",
// "parameterOrder": [
// "namespace",
// "resourceId"
// ],
// "parameters": {
// "namespace": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "bugHashes/{namespace}/{resourceId}",
// "response": {
// "$ref": "BugHash"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.bughash.list":
type BughashListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *BughashService) List() *BughashListCall {
c := &BughashListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// BugId sets the optional parameter "bugId":
func (c *BughashListCall) BugId(bugId int64) *BughashListCall {
c.urlParams_.Set("bugId", fmt.Sprint(bugId))
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *BughashListCall) MaxResults(maxResults int64) *BughashListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// Namespace sets the optional parameter "namespace":
func (c *BughashListCall) Namespace(namespace string) *BughashListCall {
c.urlParams_.Set("namespace", namespace)
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *BughashListCall) PageToken(pageToken string) *BughashListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BughashListCall) Fields(s ...googleapi.Field) *BughashListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BughashListCall) IfNoneMatch(entityTag string) *BughashListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BughashListCall) Context(ctx context.Context) *BughashListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BughashListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BughashListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "bugHashes")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.bughash.list" call.
// Exactly one of *BugHashListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BugHashListResponse.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 (c *BughashListCall) Do(opts ...googleapi.CallOption) (*BugHashListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BugHashListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.bughash.list",
// "parameters": {
// "bugId": {
// "format": "int64",
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "namespace": {
// "location": "query",
// "type": "string"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "bugHashes",
// "response": {
// "$ref": "BugHashListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *BughashListCall) Pages(ctx context.Context, f func(*BugHashListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.bughash.patch":
type BughashPatchCall struct {
s *Service
namespace string
resourceId string
bughash *BugHash
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *BughashService) Patch(namespace string, resourceId string, bughash *BugHash) *BughashPatchCall {
c := &BughashPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.namespace = namespace
c.resourceId = resourceId
c.bughash = bughash
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BughashPatchCall) Fields(s ...googleapi.Field) *BughashPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BughashPatchCall) Context(ctx context.Context) *BughashPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BughashPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BughashPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.bughash)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "bugHashes/{namespace}/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"namespace": c.namespace,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.bughash.patch" call.
// Exactly one of *BugHash or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *BugHash.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 (c *BughashPatchCall) Do(opts ...googleapi.CallOption) (*BugHash, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BugHash{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.bughash.patch",
// "parameterOrder": [
// "namespace",
// "resourceId"
// ],
// "parameters": {
// "namespace": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "bugHashes/{namespace}/{resourceId}",
// "request": {
// "$ref": "BugHash"
// },
// "response": {
// "$ref": "BugHash"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.bughash.update":
type BughashUpdateCall struct {
s *Service
namespace string
resourceId string
bughash *BugHash
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *BughashService) Update(namespace string, resourceId string, bughash *BugHash) *BughashUpdateCall {
c := &BughashUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.namespace = namespace
c.resourceId = resourceId
c.bughash = bughash
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BughashUpdateCall) Fields(s ...googleapi.Field) *BughashUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BughashUpdateCall) Context(ctx context.Context) *BughashUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BughashUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BughashUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.bughash)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "bugHashes/{namespace}/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"namespace": c.namespace,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.bughash.update" call.
// Exactly one of *BugHash or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *BugHash.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 (c *BughashUpdateCall) Do(opts ...googleapi.CallOption) (*BugHash, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BugHash{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.bughash.update",
// "parameterOrder": [
// "namespace",
// "resourceId"
// ],
// "parameters": {
// "namespace": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "bugHashes/{namespace}/{resourceId}",
// "request": {
// "$ref": "BugHash"
// },
// "response": {
// "$ref": "BugHash"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.build.get":
type BuildGetCall struct {
s *Service
buildId string
target string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *BuildService) Get(buildId string, target string) *BuildGetCall {
c := &BuildGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
return c
}
// ExtraFields sets the optional parameter "extraFields":
//
// Possible values:
// "all"
// "changeInfo"
// "pinnedManifest"
// "prebuiltChangeInfo"
func (c *BuildGetCall) ExtraFields(extraFields ...string) *BuildGetCall {
c.urlParams_.SetMulti("extraFields", append([]string{}, extraFields...))
return c
}
// ResourceId sets the optional parameter "resourceId":
func (c *BuildGetCall) ResourceId(resourceId string) *BuildGetCall {
c.urlParams_.Set("resourceId", resourceId)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildGetCall) Fields(s ...googleapi.Field) *BuildGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildGetCall) IfNoneMatch(entityTag string) *BuildGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BuildGetCall) Context(ctx context.Context) *BuildGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.build.get" call.
// Exactly one of *Build or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Build.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 (c *BuildGetCall) Do(opts ...googleapi.CallOption) (*Build, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Build{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.build.get",
// "parameterOrder": [
// "buildId",
// "target"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "extraFields": {
// "enum": [
// "all",
// "changeInfo",
// "pinnedManifest",
// "prebuiltChangeInfo"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "resourceId": {
// "location": "query",
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}",
// "response": {
// "$ref": "Build"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.build.insert":
type BuildInsertCall struct {
s *Service
buildType string
build *Build
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Insert:
func (r *BuildService) Insert(buildType string, build *Build) *BuildInsertCall {
c := &BuildInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildType = buildType
c.build = build
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildInsertCall) Fields(s ...googleapi.Field) *BuildInsertCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildInsertCall) Context(ctx context.Context) *BuildInsertCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildInsertCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.build)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildType}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildType": c.buildType,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.build.insert" call.
// Exactly one of *Build or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Build.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 (c *BuildInsertCall) Do(opts ...googleapi.CallOption) (*Build, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Build{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.build.insert",
// "parameterOrder": [
// "buildType"
// ],
// "parameters": {
// "buildType": {
// "enum": [
// "external",
// "local",
// "pending",
// "submitted",
// "train"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildType}",
// "request": {
// "$ref": "Build"
// },
// "response": {
// "$ref": "Build"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.build.list":
type BuildListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *BuildService) List() *BuildListCall {
c := &BuildListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// Branch sets the optional parameter "branch":
func (c *BuildListCall) Branch(branch string) *BuildListCall {
c.urlParams_.Set("branch", branch)
return c
}
// BugId sets the optional parameter "bugId":
func (c *BuildListCall) BugId(bugId string) *BuildListCall {
c.urlParams_.Set("bugId", bugId)
return c
}
// BuildAttemptStatus sets the optional parameter "buildAttemptStatus":
//
// Possible values:
// "abandoned"
// "building"
// "built"
// "complete"
// "error"
// "new"
// "pending"
// "pendingGerritUpload"
// "popped"
// "synced"
// "syncing"
// "testing"
func (c *BuildListCall) BuildAttemptStatus(buildAttemptStatus string) *BuildListCall {
c.urlParams_.Set("buildAttemptStatus", buildAttemptStatus)
return c
}
// BuildId sets the optional parameter "buildId":
func (c *BuildListCall) BuildId(buildId string) *BuildListCall {
c.urlParams_.Set("buildId", buildId)
return c
}
// BuildType sets the optional parameter "buildType":
//
// Possible values:
// "external"
// "local"
// "pending"
// "submitted"
// "train"
func (c *BuildListCall) BuildType(buildType string) *BuildListCall {
c.urlParams_.Set("buildType", buildType)
return c
}
// EndBuildId sets the optional parameter "endBuildId":
func (c *BuildListCall) EndBuildId(endBuildId string) *BuildListCall {
c.urlParams_.Set("endBuildId", endBuildId)
return c
}
// EndCreationTimestamp sets the optional parameter
// "endCreationTimestamp":
func (c *BuildListCall) EndCreationTimestamp(endCreationTimestamp int64) *BuildListCall {
c.urlParams_.Set("endCreationTimestamp", fmt.Sprint(endCreationTimestamp))
return c
}
// ExternalId sets the optional parameter "externalId":
func (c *BuildListCall) ExternalId(externalId string) *BuildListCall {
c.urlParams_.Set("externalId", externalId)
return c
}
// ExtraFields sets the optional parameter "extraFields":
//
// Possible values:
// "all"
// "changeInfo"
// "pinnedManifest"
// "prebuiltChangeInfo"
func (c *BuildListCall) ExtraFields(extraFields ...string) *BuildListCall {
c.urlParams_.SetMulti("extraFields", append([]string{}, extraFields...))
return c
}
// FailedTests sets the optional parameter "failedTests":
func (c *BuildListCall) FailedTests(failedTests ...string) *BuildListCall {
c.urlParams_.SetMulti("failedTests", append([]string{}, failedTests...))
return c
}
// GitSha1 sets the optional parameter "gitSha1":
func (c *BuildListCall) GitSha1(gitSha1 string) *BuildListCall {
c.urlParams_.Set("gitSha1", gitSha1)
return c
}
// MachineName sets the optional parameter "machineName":
func (c *BuildListCall) MachineName(machineName string) *BuildListCall {
c.urlParams_.Set("machineName", machineName)
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *BuildListCall) MaxResults(maxResults int64) *BuildListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *BuildListCall) PageToken(pageToken string) *BuildListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// PassedTests sets the optional parameter "passedTests":
func (c *BuildListCall) PassedTests(passedTests ...string) *BuildListCall {
c.urlParams_.SetMulti("passedTests", append([]string{}, passedTests...))
return c
}
// PrebuiltSha1 sets the optional parameter "prebuiltSha1":
func (c *BuildListCall) PrebuiltSha1(prebuiltSha1 string) *BuildListCall {
c.urlParams_.Set("prebuiltSha1", prebuiltSha1)
return c
}
// ReleaseCandidateName sets the optional parameter
// "releaseCandidateName":
func (c *BuildListCall) ReleaseCandidateName(releaseCandidateName string) *BuildListCall {
c.urlParams_.Set("releaseCandidateName", releaseCandidateName)
return c
}
// ReleaseCandidateNameSubstring sets the optional parameter
// "releaseCandidateNameSubstring":
func (c *BuildListCall) ReleaseCandidateNameSubstring(releaseCandidateNameSubstring string) *BuildListCall {
c.urlParams_.Set("releaseCandidateNameSubstring", releaseCandidateNameSubstring)
return c
}
// Signed sets the optional parameter "signed":
func (c *BuildListCall) Signed(signed bool) *BuildListCall {
c.urlParams_.Set("signed", fmt.Sprint(signed))
return c
}
// SortingType sets the optional parameter "sortingType":
//
// Possible values:
// "baseBuildId"
// "buildId" (default)
// "creationTimestamp"
// "default"
func (c *BuildListCall) SortingType(sortingType string) *BuildListCall {
c.urlParams_.Set("sortingType", sortingType)
return c
}
// StartBuildId sets the optional parameter "startBuildId":
func (c *BuildListCall) StartBuildId(startBuildId string) *BuildListCall {
c.urlParams_.Set("startBuildId", startBuildId)
return c
}
// StartCreationTimestamp sets the optional parameter
// "startCreationTimestamp":
func (c *BuildListCall) StartCreationTimestamp(startCreationTimestamp int64) *BuildListCall {
c.urlParams_.Set("startCreationTimestamp", fmt.Sprint(startCreationTimestamp))
return c
}
// Successful sets the optional parameter "successful":
func (c *BuildListCall) Successful(successful bool) *BuildListCall {
c.urlParams_.Set("successful", fmt.Sprint(successful))
return c
}
// Target sets the optional parameter "target":
func (c *BuildListCall) Target(target string) *BuildListCall {
c.urlParams_.Set("target", target)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildListCall) Fields(s ...googleapi.Field) *BuildListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildListCall) IfNoneMatch(entityTag string) *BuildListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BuildListCall) Context(ctx context.Context) *BuildListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.build.list" call.
// Exactly one of *BuildListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildListResponse.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 (c *BuildListCall) Do(opts ...googleapi.CallOption) (*BuildListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.build.list",
// "parameters": {
// "branch": {
// "location": "query",
// "type": "string"
// },
// "bugId": {
// "location": "query",
// "type": "string"
// },
// "buildAttemptStatus": {
// "enum": [
// "abandoned",
// "building",
// "built",
// "complete",
// "error",
// "new",
// "pending",
// "pendingGerritUpload",
// "popped",
// "synced",
// "syncing",
// "testing"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// },
// "buildId": {
// "location": "query",
// "type": "string"
// },
// "buildType": {
// "enum": [
// "external",
// "local",
// "pending",
// "submitted",
// "train"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// },
// "endBuildId": {
// "location": "query",
// "type": "string"
// },
// "endCreationTimestamp": {
// "format": "int64",
// "location": "query",
// "type": "string"
// },
// "externalId": {
// "location": "query",
// "type": "string"
// },
// "extraFields": {
// "enum": [
// "all",
// "changeInfo",
// "pinnedManifest",
// "prebuiltChangeInfo"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "failedTests": {
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "gitSha1": {
// "location": "query",
// "type": "string"
// },
// "machineName": {
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "passedTests": {
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "prebuiltSha1": {
// "location": "query",
// "type": "string"
// },
// "releaseCandidateName": {
// "location": "query",
// "type": "string"
// },
// "releaseCandidateNameSubstring": {
// "location": "query",
// "type": "string"
// },
// "signed": {
// "location": "query",
// "type": "boolean"
// },
// "sortingType": {
// "default": "buildId",
// "enum": [
// "baseBuildId",
// "buildId",
// "creationTimestamp",
// "default"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// },
// "startBuildId": {
// "location": "query",
// "type": "string"
// },
// "startCreationTimestamp": {
// "format": "int64",
// "location": "query",
// "type": "string"
// },
// "successful": {
// "location": "query",
// "type": "boolean"
// },
// "target": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "builds",
// "response": {
// "$ref": "BuildListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *BuildListCall) Pages(ctx context.Context, f func(*BuildListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.build.markTestComplete":
type BuildMarkTestCompleteCall struct {
s *Service
buildId string
target string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// MarkTestComplete:
func (r *BuildService) MarkTestComplete(buildId string, target string, testRunner string) *BuildMarkTestCompleteCall {
c := &BuildMarkTestCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.urlParams_.Set("testRunner", testRunner)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildMarkTestCompleteCall) Fields(s ...googleapi.Field) *BuildMarkTestCompleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildMarkTestCompleteCall) Context(ctx context.Context) *BuildMarkTestCompleteCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildMarkTestCompleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildMarkTestCompleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/markTestComplete")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.build.markTestComplete" call.
// Exactly one of *Build or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Build.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 (c *BuildMarkTestCompleteCall) Do(opts ...googleapi.CallOption) (*Build, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Build{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.build.markTestComplete",
// "parameterOrder": [
// "buildId",
// "target",
// "testRunner"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "testRunner": {
// "enum": [
// "atp",
// "batcave"
// ],
// "enumDescriptions": [
// "",
// ""
// ],
// "location": "query",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/markTestComplete",
// "response": {
// "$ref": "Build"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.build.patch":
type BuildPatchCall struct {
s *Service
buildId string
target string
build *Build
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *BuildService) Patch(buildId string, target string, build *Build) *BuildPatchCall {
c := &BuildPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.build = build
return c
}
// ResourceId sets the optional parameter "resourceId":
func (c *BuildPatchCall) ResourceId(resourceId string) *BuildPatchCall {
c.urlParams_.Set("resourceId", resourceId)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildPatchCall) Fields(s ...googleapi.Field) *BuildPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildPatchCall) Context(ctx context.Context) *BuildPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.build)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.build.patch" call.
// Exactly one of *Build or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Build.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 (c *BuildPatchCall) Do(opts ...googleapi.CallOption) (*Build, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Build{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.build.patch",
// "parameterOrder": [
// "buildId",
// "target"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "query",
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}",
// "request": {
// "$ref": "Build"
// },
// "response": {
// "$ref": "Build"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.build.pop":
type BuildPopCall struct {
s *Service
buildpoprequest *BuildPopRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Pop:
func (r *BuildService) Pop(buildpoprequest *BuildPopRequest) *BuildPopCall {
c := &BuildPopCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildpoprequest = buildpoprequest
return c
}
// BuildType sets the optional parameter "buildType":
//
// Possible values:
// "external"
// "local"
// "pending"
// "submitted"
// "train"
func (c *BuildPopCall) BuildType(buildType string) *BuildPopCall {
c.urlParams_.Set("buildType", buildType)
return c
}
// MachineName sets the optional parameter "machineName":
func (c *BuildPopCall) MachineName(machineName string) *BuildPopCall {
c.urlParams_.Set("machineName", machineName)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildPopCall) Fields(s ...googleapi.Field) *BuildPopCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildPopCall) Context(ctx context.Context) *BuildPopCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildPopCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildPopCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildpoprequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/pop")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.build.pop" call.
// Exactly one of *Build or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Build.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 (c *BuildPopCall) Do(opts ...googleapi.CallOption) (*Build, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Build{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.build.pop",
// "parameters": {
// "buildType": {
// "enum": [
// "external",
// "local",
// "pending",
// "submitted",
// "train"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// },
// "machineName": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "builds/pop",
// "request": {
// "$ref": "BuildPopRequest"
// },
// "response": {
// "$ref": "Build"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.build.queueDepth":
type BuildQueueDepthCall struct {
s *Service
poolName string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// QueueDepth:
func (r *BuildService) QueueDepth(poolName string) *BuildQueueDepthCall {
c := &BuildQueueDepthCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.poolName = poolName
return c
}
// Depth sets the optional parameter "depth":
func (c *BuildQueueDepthCall) Depth(depth int64) *BuildQueueDepthCall {
c.urlParams_.Set("depth", fmt.Sprint(depth))
return c
}
// OsType sets the optional parameter "osType":
func (c *BuildQueueDepthCall) OsType(osType string) *BuildQueueDepthCall {
c.urlParams_.Set("osType", osType)
return c
}
// OsVersion sets the optional parameter "osVersion":
func (c *BuildQueueDepthCall) OsVersion(osVersion string) *BuildQueueDepthCall {
c.urlParams_.Set("osVersion", osVersion)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildQueueDepthCall) Fields(s ...googleapi.Field) *BuildQueueDepthCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildQueueDepthCall) Context(ctx context.Context) *BuildQueueDepthCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildQueueDepthCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildQueueDepthCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{poolName}/queueDepth")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"poolName": c.poolName,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.build.queueDepth" call.
// Exactly one of *BuildQueueDepthResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildQueueDepthResponse.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 (c *BuildQueueDepthCall) Do(opts ...googleapi.CallOption) (*BuildQueueDepthResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildQueueDepthResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.build.queueDepth",
// "parameterOrder": [
// "poolName"
// ],
// "parameters": {
// "depth": {
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "osType": {
// "location": "query",
// "type": "string"
// },
// "osVersion": {
// "location": "query",
// "type": "string"
// },
// "poolName": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{poolName}/queueDepth",
// "response": {
// "$ref": "BuildQueueDepthResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.build.refreshChanges":
type BuildRefreshChangesCall struct {
s *Service
buildId string
target string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// RefreshChanges:
func (r *BuildService) RefreshChanges(buildId string, target string) *BuildRefreshChangesCall {
c := &BuildRefreshChangesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
return c
}
// ForceRefresh sets the optional parameter "forceRefresh":
func (c *BuildRefreshChangesCall) ForceRefresh(forceRefresh bool) *BuildRefreshChangesCall {
c.urlParams_.Set("forceRefresh", fmt.Sprint(forceRefresh))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildRefreshChangesCall) Fields(s ...googleapi.Field) *BuildRefreshChangesCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildRefreshChangesCall) Context(ctx context.Context) *BuildRefreshChangesCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildRefreshChangesCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildRefreshChangesCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/refreshChanges")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.build.refreshChanges" call.
// Exactly one of *Build or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Build.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 (c *BuildRefreshChangesCall) Do(opts ...googleapi.CallOption) (*Build, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Build{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.build.refreshChanges",
// "parameterOrder": [
// "buildId",
// "target"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "forceRefresh": {
// "location": "query",
// "type": "boolean"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/refreshChanges",
// "response": {
// "$ref": "Build"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.build.sign":
type BuildSignCall struct {
s *Service
buildId string
target string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Sign:
func (r *BuildService) Sign(buildId string, target string) *BuildSignCall {
c := &BuildSignCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
return c
}
// Apks sets the optional parameter "apks":
func (c *BuildSignCall) Apks(apks ...string) *BuildSignCall {
c.urlParams_.SetMulti("apks", append([]string{}, apks...))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildSignCall) Fields(s ...googleapi.Field) *BuildSignCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildSignCall) Context(ctx context.Context) *BuildSignCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildSignCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildSignCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/sign")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.build.sign" call.
// Exactly one of *BuildSignResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildSignResponse.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 (c *BuildSignCall) Do(opts ...googleapi.CallOption) (*BuildSignResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildSignResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.build.sign",
// "parameterOrder": [
// "buildId",
// "target"
// ],
// "parameters": {
// "apks": {
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/sign",
// "response": {
// "$ref": "BuildSignResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.build.unsetTestComplete":
type BuildUnsetTestCompleteCall struct {
s *Service
buildId string
target string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// UnsetTestComplete:
func (r *BuildService) UnsetTestComplete(buildId string, target string, testRunner string) *BuildUnsetTestCompleteCall {
c := &BuildUnsetTestCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.urlParams_.Set("testRunner", testRunner)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildUnsetTestCompleteCall) Fields(s ...googleapi.Field) *BuildUnsetTestCompleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildUnsetTestCompleteCall) Context(ctx context.Context) *BuildUnsetTestCompleteCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildUnsetTestCompleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildUnsetTestCompleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/unsetTestComplete")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.build.unsetTestComplete" call.
// Exactly one of *Build or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Build.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 (c *BuildUnsetTestCompleteCall) Do(opts ...googleapi.CallOption) (*Build, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Build{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.build.unsetTestComplete",
// "parameterOrder": [
// "buildId",
// "target",
// "testRunner"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "testRunner": {
// "enum": [
// "atp",
// "batcave"
// ],
// "enumDescriptions": [
// "",
// ""
// ],
// "location": "query",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/unsetTestComplete",
// "response": {
// "$ref": "Build"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.build.update":
type BuildUpdateCall struct {
s *Service
buildId string
target string
build *Build
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *BuildService) Update(buildId string, target string, build *Build) *BuildUpdateCall {
c := &BuildUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.build = build
return c
}
// ResourceId sets the optional parameter "resourceId":
func (c *BuildUpdateCall) ResourceId(resourceId string) *BuildUpdateCall {
c.urlParams_.Set("resourceId", resourceId)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildUpdateCall) Fields(s ...googleapi.Field) *BuildUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildUpdateCall) Context(ctx context.Context) *BuildUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.build)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.build.update" call.
// Exactly one of *Build or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Build.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 (c *BuildUpdateCall) Do(opts ...googleapi.CallOption) (*Build, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Build{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.build.update",
// "parameterOrder": [
// "buildId",
// "target"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "query",
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}",
// "request": {
// "$ref": "Build"
// },
// "response": {
// "$ref": "Build"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildartifact.copyTo":
type BuildartifactCopyToCall struct {
s *Service
buildId string
target string
attemptId string
artifactName string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// CopyTo:
func (r *BuildartifactService) CopyTo(buildId string, target string, attemptId string, artifactName string) *BuildartifactCopyToCall {
c := &BuildartifactCopyToCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.artifactName = artifactName
return c
}
// DestinationBucket sets the optional parameter "destinationBucket":
func (c *BuildartifactCopyToCall) DestinationBucket(destinationBucket string) *BuildartifactCopyToCall {
c.urlParams_.Set("destinationBucket", destinationBucket)
return c
}
// DestinationPath sets the optional parameter "destinationPath":
func (c *BuildartifactCopyToCall) DestinationPath(destinationPath string) *BuildartifactCopyToCall {
c.urlParams_.Set("destinationPath", destinationPath)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildartifactCopyToCall) Fields(s ...googleapi.Field) *BuildartifactCopyToCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildartifactCopyToCall) Context(ctx context.Context) *BuildartifactCopyToCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildartifactCopyToCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildartifactCopyToCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{artifactName}/copyTo")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"artifactName": c.artifactName,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildartifact.copyTo" call.
// Exactly one of *BuildArtifactCopyToResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *BuildArtifactCopyToResponse.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 (c *BuildartifactCopyToCall) Do(opts ...googleapi.CallOption) (*BuildArtifactCopyToResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildArtifactCopyToResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.buildartifact.copyTo",
// "parameterOrder": [
// "buildId",
// "target",
// "attemptId",
// "artifactName"
// ],
// "parameters": {
// "artifactName": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "destinationBucket": {
// "location": "query",
// "type": "string"
// },
// "destinationPath": {
// "location": "query",
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{artifactName}/copyTo",
// "response": {
// "$ref": "BuildArtifactCopyToResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildartifact.copyToBuild":
type BuildartifactCopyToBuildCall struct {
s *Service
buildId string
target string
attemptId string
artifactName string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// CopyToBuild:
func (r *BuildartifactService) CopyToBuild(buildId string, target string, attemptId string, artifactName string) *BuildartifactCopyToBuildCall {
c := &BuildartifactCopyToBuildCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.artifactName = artifactName
return c
}
// DestinationArtifactName sets the optional parameter
// "destinationArtifactName":
func (c *BuildartifactCopyToBuildCall) DestinationArtifactName(destinationArtifactName string) *BuildartifactCopyToBuildCall {
c.urlParams_.Set("destinationArtifactName", destinationArtifactName)
return c
}
// DestinationBuildId sets the optional parameter "destinationBuildId":
func (c *BuildartifactCopyToBuildCall) DestinationBuildId(destinationBuildId string) *BuildartifactCopyToBuildCall {
c.urlParams_.Set("destinationBuildId", destinationBuildId)
return c
}
// DestinationTargetName sets the optional parameter
// "destinationTargetName":
func (c *BuildartifactCopyToBuildCall) DestinationTargetName(destinationTargetName string) *BuildartifactCopyToBuildCall {
c.urlParams_.Set("destinationTargetName", destinationTargetName)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildartifactCopyToBuildCall) Fields(s ...googleapi.Field) *BuildartifactCopyToBuildCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildartifactCopyToBuildCall) Context(ctx context.Context) *BuildartifactCopyToBuildCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildartifactCopyToBuildCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildartifactCopyToBuildCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{artifactName}/copyToBuild")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"artifactName": c.artifactName,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildartifact.copyToBuild" call.
// Exactly one of *BuildArtifactCopyToBuildResponse or error will be
// non-nil. Any non-2xx status code is an error. Response headers are in
// either *BuildArtifactCopyToBuildResponse.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 (c *BuildartifactCopyToBuildCall) Do(opts ...googleapi.CallOption) (*BuildArtifactCopyToBuildResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildArtifactCopyToBuildResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.buildartifact.copyToBuild",
// "parameterOrder": [
// "buildId",
// "target",
// "attemptId",
// "artifactName"
// ],
// "parameters": {
// "artifactName": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "destinationArtifactName": {
// "location": "query",
// "type": "string"
// },
// "destinationBuildId": {
// "location": "query",
// "type": "string"
// },
// "destinationTargetName": {
// "location": "query",
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{artifactName}/copyToBuild",
// "response": {
// "$ref": "BuildArtifactCopyToBuildResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildartifact.delete":
type BuildartifactDeleteCall struct {
s *Service
buildId string
target string
attemptId string
resourceId string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Delete:
func (r *BuildartifactService) Delete(buildId string, target string, attemptId string, resourceId string) *BuildartifactDeleteCall {
c := &BuildartifactDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.resourceId = resourceId
return c
}
// DeleteObject sets the optional parameter "deleteObject":
func (c *BuildartifactDeleteCall) DeleteObject(deleteObject bool) *BuildartifactDeleteCall {
c.urlParams_.Set("deleteObject", fmt.Sprint(deleteObject))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildartifactDeleteCall) Fields(s ...googleapi.Field) *BuildartifactDeleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildartifactDeleteCall) Context(ctx context.Context) *BuildartifactDeleteCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildartifactDeleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildartifactDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("DELETE", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildartifact.delete" call.
func (c *BuildartifactDeleteCall) Do(opts ...googleapi.CallOption) error {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if err != nil {
return err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return err
}
return nil
// {
// "httpMethod": "DELETE",
// "id": "androidbuildinternal.buildartifact.delete",
// "parameterOrder": [
// "buildId",
// "target",
// "attemptId",
// "resourceId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "deleteObject": {
// "default": "true",
// "location": "query",
// "type": "boolean"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{resourceId}",
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildartifact.get":
type BuildartifactGetCall struct {
s *Service
buildId string
target string
attemptId string
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *BuildartifactService) Get(buildId string, target string, attemptId string, resourceId string) *BuildartifactGetCall {
c := &BuildartifactGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildartifactGetCall) Fields(s ...googleapi.Field) *BuildartifactGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildartifactGetCall) IfNoneMatch(entityTag string) *BuildartifactGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BuildartifactGetCall) Context(ctx context.Context) *BuildartifactGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildartifactGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildartifactGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// 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 (c *BuildartifactGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("media")
if err != nil {
return nil, err
}
if err := googleapi.CheckMediaResponse(res); err != nil {
res.Body.Close()
return nil, err
}
return res, nil
}
// Do executes the "androidbuildinternal.buildartifact.get" call.
// Exactly one of *BuildArtifactMetadata or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildArtifactMetadata.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 (c *BuildartifactGetCall) Do(opts ...googleapi.CallOption) (*BuildArtifactMetadata, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildArtifactMetadata{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.buildartifact.get",
// "parameterOrder": [
// "buildId",
// "target",
// "attemptId",
// "resourceId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{resourceId}",
// "response": {
// "$ref": "BuildArtifactMetadata"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ],
// "supportsMediaDownload": true,
// "useMediaDownloadService": true
// }
}
// method id "androidbuildinternal.buildartifact.list":
type BuildartifactListCall struct {
s *Service
buildId string
target string
attemptId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *BuildartifactService) List(buildId string, target string, attemptId string) *BuildartifactListCall {
c := &BuildartifactListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.attemptId = attemptId
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *BuildartifactListCall) MaxResults(maxResults int64) *BuildartifactListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *BuildartifactListCall) PageToken(pageToken string) *BuildartifactListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildartifactListCall) Fields(s ...googleapi.Field) *BuildartifactListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildartifactListCall) IfNoneMatch(entityTag string) *BuildartifactListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BuildartifactListCall) Context(ctx context.Context) *BuildartifactListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildartifactListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildartifactListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{attemptId}/artifacts")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildartifact.list" call.
// Exactly one of *BuildArtifactListResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *BuildArtifactListResponse.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 (c *BuildartifactListCall) Do(opts ...googleapi.CallOption) (*BuildArtifactListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildArtifactListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.buildartifact.list",
// "parameterOrder": [
// "buildId",
// "target",
// "attemptId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{attemptId}/artifacts",
// "response": {
// "$ref": "BuildArtifactListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *BuildartifactListCall) Pages(ctx context.Context, f func(*BuildArtifactListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.buildartifact.patch":
type BuildartifactPatchCall struct {
s *Service
buildId string
target string
attemptId string
resourceId string
buildartifactmetadata *BuildArtifactMetadata
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *BuildartifactService) Patch(buildId string, target string, attemptId string, resourceId string, buildartifactmetadata *BuildArtifactMetadata) *BuildartifactPatchCall {
c := &BuildartifactPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.resourceId = resourceId
c.buildartifactmetadata = buildartifactmetadata
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildartifactPatchCall) Fields(s ...googleapi.Field) *BuildartifactPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildartifactPatchCall) Context(ctx context.Context) *BuildartifactPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildartifactPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildartifactPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildartifactmetadata)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildartifact.patch" call.
// Exactly one of *BuildArtifactMetadata or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildArtifactMetadata.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 (c *BuildartifactPatchCall) Do(opts ...googleapi.CallOption) (*BuildArtifactMetadata, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildArtifactMetadata{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.buildartifact.patch",
// "parameterOrder": [
// "buildId",
// "target",
// "attemptId",
// "resourceId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{resourceId}",
// "request": {
// "$ref": "BuildArtifactMetadata"
// },
// "response": {
// "$ref": "BuildArtifactMetadata"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildartifact.update":
type BuildartifactUpdateCall struct {
s *Service
buildId string
target string
attemptId string
resourceId string
buildartifactmetadata *BuildArtifactMetadata
urlParams_ gensupport.URLParams
mediaInfo_ *gensupport.MediaInfo
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *BuildartifactService) Update(buildId string, target string, attemptId string, resourceId string, buildartifactmetadata *BuildArtifactMetadata) *BuildartifactUpdateCall {
c := &BuildartifactUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.resourceId = resourceId
c.buildartifactmetadata = buildartifactmetadata
return c
}
// Media specifies the media to upload in one or more chunks. The chunk
// size may be controlled by supplying a MediaOption generated by
// googleapi.ChunkSize. The chunk size defaults to
// googleapi.DefaultUploadChunkSize.The Content-Type header used in the
// upload request will be determined by sniffing the contents of r,
// unless a MediaOption generated by googleapi.ContentType is
// supplied.
// At most one of Media and ResumableMedia may be set.
func (c *BuildartifactUpdateCall) Media(r io.Reader, options ...googleapi.MediaOption) *BuildartifactUpdateCall {
if ct := c.buildartifactmetadata.ContentType; ct != "" {
options = append([]googleapi.MediaOption{googleapi.ContentType(ct)}, options...)
}
c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
return c
}
// ResumableMedia specifies the media to upload in chunks and can be
// canceled with ctx.
//
// Deprecated: use Media instead.
//
// 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.
func (c *BuildartifactUpdateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *BuildartifactUpdateCall {
c.ctx_ = ctx
c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
return c
}
// 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 (c *BuildartifactUpdateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *BuildartifactUpdateCall {
c.mediaInfo_.SetProgressUpdater(pu)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildartifactUpdateCall) Fields(s ...googleapi.Field) *BuildartifactUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildartifactUpdateCall) Context(ctx context.Context) *BuildartifactUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildartifactUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildartifactUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildartifactmetadata)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{resourceId}")
if c.mediaInfo_ != nil {
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
}
if body == nil {
body = new(bytes.Buffer)
reqHeaders.Set("Content-Type", "application/json")
}
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
defer cleanup()
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
req.GetBody = getBody
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildartifact.update" call.
// Exactly one of *BuildArtifactMetadata or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildArtifactMetadata.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 (c *BuildartifactUpdateCall) Do(opts ...googleapi.CallOption) (*BuildArtifactMetadata, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
if rx != nil {
rx.Client = c.s.client
rx.UserAgent = c.s.userAgent()
ctx := c.ctx_
if ctx == nil {
ctx = context.TODO()
}
res, err = rx.Upload(ctx)
if err != nil {
return nil, err
}
defer res.Body.Close()
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
}
ret := &BuildArtifactMetadata{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.buildartifact.update",
// "mediaUpload": {
// "accept": [
// "*/*"
// ],
// "maxSize": "10GB",
// "protocols": {
// "resumable": {
// "multipart": true,
// "path": "/resumable/upload/android/internal/build/v2beta1/builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{resourceId}"
// },
// "simple": {
// "multipart": true,
// "path": "/upload/android/internal/build/v2beta1/builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{resourceId}"
// }
// }
// },
// "parameterOrder": [
// "buildId",
// "target",
// "attemptId",
// "resourceId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{attemptId}/artifacts/{resourceId}",
// "request": {
// "$ref": "BuildArtifactMetadata"
// },
// "response": {
// "$ref": "BuildArtifactMetadata"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ],
// "supportsMediaUpload": true
// }
}
// method id "androidbuildinternal.buildattempt.get":
type BuildattemptGetCall struct {
s *Service
buildId string
target string
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *BuildattemptService) Get(buildId string, target string, resourceId string) *BuildattemptGetCall {
c := &BuildattemptGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.resourceId = resourceId
return c
}
// ExtraFields sets the optional parameter "extraFields":
//
// Possible values:
// "all"
// "buildProp"
// "repoConfig"
func (c *BuildattemptGetCall) ExtraFields(extraFields ...string) *BuildattemptGetCall {
c.urlParams_.SetMulti("extraFields", append([]string{}, extraFields...))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildattemptGetCall) Fields(s ...googleapi.Field) *BuildattemptGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildattemptGetCall) IfNoneMatch(entityTag string) *BuildattemptGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BuildattemptGetCall) Context(ctx context.Context) *BuildattemptGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildattemptGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildattemptGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildattempt.get" call.
// Exactly one of *BuildAttempt or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *BuildAttempt.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 (c *BuildattemptGetCall) Do(opts ...googleapi.CallOption) (*BuildAttempt, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildAttempt{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.buildattempt.get",
// "parameterOrder": [
// "buildId",
// "target",
// "resourceId"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "extraFields": {
// "enum": [
// "all",
// "buildProp",
// "repoConfig"
// ],
// "enumDescriptions": [
// "",
// "",
// ""
// ],
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{resourceId}",
// "response": {
// "$ref": "BuildAttempt"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildattempt.insert":
type BuildattemptInsertCall struct {
s *Service
buildId string
target string
buildattempt *BuildAttempt
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Insert:
func (r *BuildattemptService) Insert(buildId string, target string, buildattempt *BuildAttempt) *BuildattemptInsertCall {
c := &BuildattemptInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.buildattempt = buildattempt
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildattemptInsertCall) Fields(s ...googleapi.Field) *BuildattemptInsertCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildattemptInsertCall) Context(ctx context.Context) *BuildattemptInsertCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildattemptInsertCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildattemptInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildattempt)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildattempt.insert" call.
// Exactly one of *BuildAttempt or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *BuildAttempt.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 (c *BuildattemptInsertCall) Do(opts ...googleapi.CallOption) (*BuildAttempt, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildAttempt{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.buildattempt.insert",
// "parameterOrder": [
// "buildId",
// "target"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts",
// "request": {
// "$ref": "BuildAttempt"
// },
// "response": {
// "$ref": "BuildAttempt"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildattempt.list":
type BuildattemptListCall struct {
s *Service
buildId string
target string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *BuildattemptService) List(buildId string, target string) *BuildattemptListCall {
c := &BuildattemptListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
return c
}
// ExtraFields sets the optional parameter "extraFields":
//
// Possible values:
// "all"
// "buildProp"
// "repoConfig"
func (c *BuildattemptListCall) ExtraFields(extraFields ...string) *BuildattemptListCall {
c.urlParams_.SetMulti("extraFields", append([]string{}, extraFields...))
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *BuildattemptListCall) MaxResults(maxResults int64) *BuildattemptListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *BuildattemptListCall) PageToken(pageToken string) *BuildattemptListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildattemptListCall) Fields(s ...googleapi.Field) *BuildattemptListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildattemptListCall) IfNoneMatch(entityTag string) *BuildattemptListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BuildattemptListCall) Context(ctx context.Context) *BuildattemptListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildattemptListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildattemptListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildattempt.list" call.
// Exactly one of *BuildAttemptListResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *BuildAttemptListResponse.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 (c *BuildattemptListCall) Do(opts ...googleapi.CallOption) (*BuildAttemptListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildAttemptListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.buildattempt.list",
// "parameterOrder": [
// "buildId",
// "target"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "extraFields": {
// "enum": [
// "all",
// "buildProp",
// "repoConfig"
// ],
// "enumDescriptions": [
// "",
// "",
// ""
// ],
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts",
// "response": {
// "$ref": "BuildAttemptListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *BuildattemptListCall) Pages(ctx context.Context, f func(*BuildAttemptListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.buildattempt.patch":
type BuildattemptPatchCall struct {
s *Service
target string
resourceId string
buildattempt *BuildAttempt
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *BuildattemptService) Patch(target string, resourceId string, buildId string, buildattempt *BuildAttempt) *BuildattemptPatchCall {
c := &BuildattemptPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.target = target
c.resourceId = resourceId
c.urlParams_.Set("buildId", buildId)
c.buildattempt = buildattempt
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildattemptPatchCall) Fields(s ...googleapi.Field) *BuildattemptPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildattemptPatchCall) Context(ctx context.Context) *BuildattemptPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildattemptPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildattemptPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildattempt)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{target}/attempts/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"target": c.target,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildattempt.patch" call.
// Exactly one of *BuildAttempt or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *BuildAttempt.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 (c *BuildattemptPatchCall) Do(opts ...googleapi.CallOption) (*BuildAttempt, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildAttempt{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.buildattempt.patch",
// "parameterOrder": [
// "target",
// "resourceId",
// "buildId"
// ],
// "parameters": {
// "buildId": {
// "location": "query",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{target}/attempts/{resourceId}",
// "request": {
// "$ref": "BuildAttempt"
// },
// "response": {
// "$ref": "BuildAttempt"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildattempt.update":
type BuildattemptUpdateCall struct {
s *Service
target string
resourceId string
buildattempt *BuildAttempt
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *BuildattemptService) Update(target string, resourceId string, buildattempt *BuildAttempt) *BuildattemptUpdateCall {
c := &BuildattemptUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.target = target
c.resourceId = resourceId
c.buildattempt = buildattempt
return c
}
// BuildId sets the optional parameter "buildId":
func (c *BuildattemptUpdateCall) BuildId(buildId string) *BuildattemptUpdateCall {
c.urlParams_.Set("buildId", buildId)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildattemptUpdateCall) Fields(s ...googleapi.Field) *BuildattemptUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildattemptUpdateCall) Context(ctx context.Context) *BuildattemptUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildattemptUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildattemptUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildattempt)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{target}/attempts/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"target": c.target,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildattempt.update" call.
// Exactly one of *BuildAttempt or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *BuildAttempt.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 (c *BuildattemptUpdateCall) Do(opts ...googleapi.CallOption) (*BuildAttempt, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildAttempt{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.buildattempt.update",
// "parameterOrder": [
// "target",
// "resourceId"
// ],
// "parameters": {
// "buildId": {
// "location": "query",
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{target}/attempts/{resourceId}",
// "request": {
// "$ref": "BuildAttempt"
// },
// "response": {
// "$ref": "BuildAttempt"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildid.list":
type BuildidListCall struct {
s *Service
branch string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *BuildidService) List(branch string) *BuildidListCall {
c := &BuildidListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.branch = branch
return c
}
// BuildType sets the optional parameter "buildType":
//
// Possible values:
// "external"
// "local"
// "pending"
// "submitted"
// "train"
func (c *BuildidListCall) BuildType(buildType string) *BuildidListCall {
c.urlParams_.Set("buildType", buildType)
return c
}
// EndBuildId sets the optional parameter "endBuildId":
func (c *BuildidListCall) EndBuildId(endBuildId string) *BuildidListCall {
c.urlParams_.Set("endBuildId", endBuildId)
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *BuildidListCall) MaxResults(maxResults int64) *BuildidListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *BuildidListCall) PageToken(pageToken string) *BuildidListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// StartBuildId sets the optional parameter "startBuildId":
func (c *BuildidListCall) StartBuildId(startBuildId string) *BuildidListCall {
c.urlParams_.Set("startBuildId", startBuildId)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildidListCall) Fields(s ...googleapi.Field) *BuildidListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildidListCall) IfNoneMatch(entityTag string) *BuildidListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BuildidListCall) Context(ctx context.Context) *BuildidListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildidListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildidListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "buildIds/{branch}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"branch": c.branch,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildid.list" call.
// Exactly one of *BuildIdListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildIdListResponse.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 (c *BuildidListCall) Do(opts ...googleapi.CallOption) (*BuildIdListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildIdListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.buildid.list",
// "parameterOrder": [
// "branch"
// ],
// "parameters": {
// "branch": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildType": {
// "enum": [
// "external",
// "local",
// "pending",
// "submitted",
// "train"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// },
// "endBuildId": {
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "startBuildId": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "buildIds/{branch}",
// "response": {
// "$ref": "BuildIdListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *BuildidListCall) Pages(ctx context.Context, f func(*BuildIdListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.buildid.pop":
type BuildidPopCall struct {
s *Service
buildType string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Pop:
func (r *BuildidService) Pop(buildType string) *BuildidPopCall {
c := &BuildidPopCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildType = buildType
return c
}
// Branch sets the optional parameter "branch":
func (c *BuildidPopCall) Branch(branch string) *BuildidPopCall {
c.urlParams_.Set("branch", branch)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildidPopCall) Fields(s ...googleapi.Field) *BuildidPopCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildidPopCall) Context(ctx context.Context) *BuildidPopCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildidPopCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildidPopCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "buildIds/{buildType}/pop")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildType": c.buildType,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildid.pop" call.
// Exactly one of *BuildIdPopResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildIdPopResponse.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 (c *BuildidPopCall) Do(opts ...googleapi.CallOption) (*BuildIdPopResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildIdPopResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.buildid.pop",
// "parameterOrder": [
// "buildType"
// ],
// "parameters": {
// "branch": {
// "location": "query",
// "type": "string"
// },
// "buildType": {
// "enum": [
// "external",
// "local",
// "pending",
// "submitted",
// "train"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "buildIds/{buildType}/pop",
// "response": {
// "$ref": "BuildIdPopResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildrequest.get":
type BuildrequestGetCall struct {
s *Service
resourceId int64
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *BuildrequestService) Get(resourceId int64) *BuildrequestGetCall {
c := &BuildrequestGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildrequestGetCall) Fields(s ...googleapi.Field) *BuildrequestGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildrequestGetCall) IfNoneMatch(entityTag string) *BuildrequestGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BuildrequestGetCall) Context(ctx context.Context) *BuildrequestGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildrequestGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildrequestGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "buildRequests/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": strconv.FormatInt(c.resourceId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildrequest.get" call.
// Exactly one of *BuildRequest or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *BuildRequest.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 (c *BuildrequestGetCall) Do(opts ...googleapi.CallOption) (*BuildRequest, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildRequest{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.buildrequest.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "buildRequests/{resourceId}",
// "response": {
// "$ref": "BuildRequest"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildrequest.insert":
type BuildrequestInsertCall struct {
s *Service
buildrequest *BuildRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Insert:
func (r *BuildrequestService) Insert(buildrequest *BuildRequest) *BuildrequestInsertCall {
c := &BuildrequestInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildrequest = buildrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildrequestInsertCall) Fields(s ...googleapi.Field) *BuildrequestInsertCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildrequestInsertCall) Context(ctx context.Context) *BuildrequestInsertCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildrequestInsertCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildrequestInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "buildRequests")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildrequest.insert" call.
// Exactly one of *BuildRequest or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *BuildRequest.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 (c *BuildrequestInsertCall) Do(opts ...googleapi.CallOption) (*BuildRequest, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildRequest{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.buildrequest.insert",
// "path": "buildRequests",
// "request": {
// "$ref": "BuildRequest"
// },
// "response": {
// "$ref": "BuildRequest"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildrequest.list":
type BuildrequestListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *BuildrequestService) List() *BuildrequestListCall {
c := &BuildrequestListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// Branch sets the optional parameter "branch":
func (c *BuildrequestListCall) Branch(branch string) *BuildrequestListCall {
c.urlParams_.Set("branch", branch)
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *BuildrequestListCall) MaxResults(maxResults int64) *BuildrequestListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *BuildrequestListCall) PageToken(pageToken string) *BuildrequestListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Status sets the optional parameter "status":
//
// Possible values:
// "complete"
// "failed"
// "inProgress"
// "pending"
func (c *BuildrequestListCall) Status(status string) *BuildrequestListCall {
c.urlParams_.Set("status", status)
return c
}
// Type sets the optional parameter "type":
//
// Possible values:
// "rollup"
func (c *BuildrequestListCall) Type(type_ string) *BuildrequestListCall {
c.urlParams_.Set("type", type_)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildrequestListCall) Fields(s ...googleapi.Field) *BuildrequestListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildrequestListCall) IfNoneMatch(entityTag string) *BuildrequestListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *BuildrequestListCall) Context(ctx context.Context) *BuildrequestListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildrequestListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildrequestListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "buildRequests")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildrequest.list" call.
// Exactly one of *BuildRequestListResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *BuildRequestListResponse.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 (c *BuildrequestListCall) Do(opts ...googleapi.CallOption) (*BuildRequestListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildRequestListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.buildrequest.list",
// "parameters": {
// "branch": {
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "status": {
// "enum": [
// "complete",
// "failed",
// "inProgress",
// "pending"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// },
// "type": {
// "enum": [
// "rollup"
// ],
// "enumDescriptions": [
// ""
// ],
// "location": "query",
// "type": "string"
// }
// },
// "path": "buildRequests",
// "response": {
// "$ref": "BuildRequestListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *BuildrequestListCall) Pages(ctx context.Context, f func(*BuildRequestListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.buildrequest.patch":
type BuildrequestPatchCall struct {
s *Service
resourceId int64
buildrequest *BuildRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *BuildrequestService) Patch(resourceId int64, buildrequest *BuildRequest) *BuildrequestPatchCall {
c := &BuildrequestPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.buildrequest = buildrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildrequestPatchCall) Fields(s ...googleapi.Field) *BuildrequestPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildrequestPatchCall) Context(ctx context.Context) *BuildrequestPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildrequestPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildrequestPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "buildRequests/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": strconv.FormatInt(c.resourceId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildrequest.patch" call.
// Exactly one of *BuildRequest or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *BuildRequest.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 (c *BuildrequestPatchCall) Do(opts ...googleapi.CallOption) (*BuildRequest, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildRequest{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.buildrequest.patch",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "buildRequests/{resourceId}",
// "request": {
// "$ref": "BuildRequest"
// },
// "response": {
// "$ref": "BuildRequest"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.buildrequest.update":
type BuildrequestUpdateCall struct {
s *Service
resourceId int64
buildrequest *BuildRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *BuildrequestService) Update(resourceId int64, buildrequest *BuildRequest) *BuildrequestUpdateCall {
c := &BuildrequestUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.buildrequest = buildrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *BuildrequestUpdateCall) Fields(s ...googleapi.Field) *BuildrequestUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *BuildrequestUpdateCall) Context(ctx context.Context) *BuildrequestUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *BuildrequestUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *BuildrequestUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "buildRequests/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": strconv.FormatInt(c.resourceId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.buildrequest.update" call.
// Exactly one of *BuildRequest or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *BuildRequest.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 (c *BuildrequestUpdateCall) Do(opts ...googleapi.CallOption) (*BuildRequest, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildRequest{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.buildrequest.update",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "buildRequests/{resourceId}",
// "request": {
// "$ref": "BuildRequest"
// },
// "response": {
// "$ref": "BuildRequest"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.change.list":
type ChangeListCall struct {
s *Service
buildId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *ChangeService) List(buildId string) *ChangeListCall {
c := &ChangeListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *ChangeListCall) MaxResults(maxResults int64) *ChangeListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *ChangeListCall) PageToken(pageToken string) *ChangeListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// PrebuiltChanges sets the optional parameter "prebuiltChanges":
func (c *ChangeListCall) PrebuiltChanges(prebuiltChanges bool) *ChangeListCall {
c.urlParams_.Set("prebuiltChanges", fmt.Sprint(prebuiltChanges))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ChangeListCall) Fields(s ...googleapi.Field) *ChangeListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ChangeListCall) IfNoneMatch(entityTag string) *ChangeListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *ChangeListCall) Context(ctx context.Context) *ChangeListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ChangeListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ChangeListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changes/{buildId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.change.list" call.
// Exactly one of *ChangeListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ChangeListResponse.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 (c *ChangeListCall) Do(opts ...googleapi.CallOption) (*ChangeListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ChangeListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.change.list",
// "parameterOrder": [
// "buildId"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "prebuiltChanges": {
// "location": "query",
// "type": "boolean"
// }
// },
// "path": "changes/{buildId}",
// "response": {
// "$ref": "ChangeListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *ChangeListCall) Pages(ctx context.Context, f func(*ChangeListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.changesetspec.get":
type ChangesetspecGetCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *ChangesetspecService) Get(resourceId string) *ChangesetspecGetCall {
c := &ChangesetspecGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ChangesetspecGetCall) Fields(s ...googleapi.Field) *ChangesetspecGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ChangesetspecGetCall) IfNoneMatch(entityTag string) *ChangesetspecGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *ChangesetspecGetCall) Context(ctx context.Context) *ChangesetspecGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ChangesetspecGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ChangesetspecGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changeSetSpecs/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.changesetspec.get" call.
// Exactly one of *ChangeSetSpec or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *ChangeSetSpec.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 (c *ChangesetspecGetCall) Do(opts ...googleapi.CallOption) (*ChangeSetSpec, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ChangeSetSpec{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.changesetspec.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "changeSetSpecs/{resourceId}",
// "response": {
// "$ref": "ChangeSetSpec"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.changesetspec.insert":
type ChangesetspecInsertCall struct {
s *Service
changesetspec *ChangeSetSpec
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Insert:
func (r *ChangesetspecService) Insert(changesetspec *ChangeSetSpec) *ChangesetspecInsertCall {
c := &ChangesetspecInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.changesetspec = changesetspec
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ChangesetspecInsertCall) Fields(s ...googleapi.Field) *ChangesetspecInsertCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ChangesetspecInsertCall) Context(ctx context.Context) *ChangesetspecInsertCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ChangesetspecInsertCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ChangesetspecInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.changesetspec)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changeSetSpecs")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.changesetspec.insert" call.
// Exactly one of *ChangeSetSpec or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *ChangeSetSpec.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 (c *ChangesetspecInsertCall) Do(opts ...googleapi.CallOption) (*ChangeSetSpec, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ChangeSetSpec{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.changesetspec.insert",
// "path": "changeSetSpecs",
// "request": {
// "$ref": "ChangeSetSpec"
// },
// "response": {
// "$ref": "ChangeSetSpec"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.changesetspec.listsupersets":
type ChangesetspecListsupersetsCall struct {
s *Service
changesetspeclistsupersetsrequest *ChangeSetSpecListSupersetsRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Listsupersets:
func (r *ChangesetspecService) Listsupersets(changesetspeclistsupersetsrequest *ChangeSetSpecListSupersetsRequest) *ChangesetspecListsupersetsCall {
c := &ChangesetspecListsupersetsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.changesetspeclistsupersetsrequest = changesetspeclistsupersetsrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ChangesetspecListsupersetsCall) Fields(s ...googleapi.Field) *ChangesetspecListsupersetsCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ChangesetspecListsupersetsCall) Context(ctx context.Context) *ChangesetspecListsupersetsCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ChangesetspecListsupersetsCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ChangesetspecListsupersetsCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.changesetspeclistsupersetsrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changeSetSpecs/listSupersets")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.changesetspec.listsupersets" call.
// Exactly one of *ChangeSetSpecListSupersetsResponse or error will be
// non-nil. Any non-2xx status code is an error. Response headers are in
// either *ChangeSetSpecListSupersetsResponse.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 (c *ChangesetspecListsupersetsCall) Do(opts ...googleapi.CallOption) (*ChangeSetSpecListSupersetsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ChangeSetSpecListSupersetsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.changesetspec.listsupersets",
// "path": "changeSetSpecs/listSupersets",
// "request": {
// "$ref": "ChangeSetSpecListSupersetsRequest"
// },
// "response": {
// "$ref": "ChangeSetSpecListSupersetsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.changesetspec.patch":
type ChangesetspecPatchCall struct {
s *Service
resourceId string
changesetspec *ChangeSetSpec
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *ChangesetspecService) Patch(resourceId string, changesetspec *ChangeSetSpec) *ChangesetspecPatchCall {
c := &ChangesetspecPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.changesetspec = changesetspec
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ChangesetspecPatchCall) Fields(s ...googleapi.Field) *ChangesetspecPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ChangesetspecPatchCall) Context(ctx context.Context) *ChangesetspecPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ChangesetspecPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ChangesetspecPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.changesetspec)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changeSetSpecs/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.changesetspec.patch" call.
// Exactly one of *ChangeSetSpec or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *ChangeSetSpec.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 (c *ChangesetspecPatchCall) Do(opts ...googleapi.CallOption) (*ChangeSetSpec, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ChangeSetSpec{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.changesetspec.patch",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "changeSetSpecs/{resourceId}",
// "request": {
// "$ref": "ChangeSetSpec"
// },
// "response": {
// "$ref": "ChangeSetSpec"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.changesetspec.update":
type ChangesetspecUpdateCall struct {
s *Service
resourceId string
changesetspec *ChangeSetSpec
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *ChangesetspecService) Update(resourceId string, changesetspec *ChangeSetSpec) *ChangesetspecUpdateCall {
c := &ChangesetspecUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.changesetspec = changesetspec
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ChangesetspecUpdateCall) Fields(s ...googleapi.Field) *ChangesetspecUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ChangesetspecUpdateCall) Context(ctx context.Context) *ChangesetspecUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ChangesetspecUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ChangesetspecUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.changesetspec)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "changeSetSpecs/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.changesetspec.update" call.
// Exactly one of *ChangeSetSpec or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *ChangeSetSpec.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 (c *ChangesetspecUpdateCall) Do(opts ...googleapi.CallOption) (*ChangeSetSpec, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ChangeSetSpec{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.changesetspec.update",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "changeSetSpecs/{resourceId}",
// "request": {
// "$ref": "ChangeSetSpec"
// },
// "response": {
// "$ref": "ChangeSetSpec"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.deviceblob.copyTo":
type DeviceblobCopyToCall struct {
s *Service
deviceName string
binaryType string
version string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// CopyTo:
func (r *DeviceblobService) CopyTo(deviceName string, binaryType string, version string) *DeviceblobCopyToCall {
c := &DeviceblobCopyToCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.deviceName = deviceName
c.binaryType = binaryType
c.version = version
return c
}
// DestinationBucket sets the optional parameter "destinationBucket":
func (c *DeviceblobCopyToCall) DestinationBucket(destinationBucket string) *DeviceblobCopyToCall {
c.urlParams_.Set("destinationBucket", destinationBucket)
return c
}
// DestinationPath sets the optional parameter "destinationPath":
func (c *DeviceblobCopyToCall) DestinationPath(destinationPath string) *DeviceblobCopyToCall {
c.urlParams_.Set("destinationPath", destinationPath)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DeviceblobCopyToCall) Fields(s ...googleapi.Field) *DeviceblobCopyToCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *DeviceblobCopyToCall) Context(ctx context.Context) *DeviceblobCopyToCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DeviceblobCopyToCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DeviceblobCopyToCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "deviceBlobs/{deviceName}/{binaryType}/{version}/copyTo")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"deviceName": c.deviceName,
"binaryType": c.binaryType,
"version": c.version,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.deviceblob.copyTo" call.
// Exactly one of *DeviceBlobCopyToResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *DeviceBlobCopyToResponse.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 (c *DeviceblobCopyToCall) Do(opts ...googleapi.CallOption) (*DeviceBlobCopyToResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &DeviceBlobCopyToResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.deviceblob.copyTo",
// "parameterOrder": [
// "deviceName",
// "binaryType",
// "version"
// ],
// "parameters": {
// "binaryType": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "destinationBucket": {
// "location": "query",
// "type": "string"
// },
// "destinationPath": {
// "location": "query",
// "type": "string"
// },
// "deviceName": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "version": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "deviceBlobs/{deviceName}/{binaryType}/{version}/copyTo",
// "response": {
// "$ref": "DeviceBlobCopyToResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.deviceblob.delete":
type DeviceblobDeleteCall struct {
s *Service
deviceName string
binaryType string
resourceId string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Delete:
func (r *DeviceblobService) Delete(deviceName string, binaryType string, resourceId string) *DeviceblobDeleteCall {
c := &DeviceblobDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.deviceName = deviceName
c.binaryType = binaryType
c.resourceId = resourceId
return c
}
// DeleteObject sets the optional parameter "deleteObject":
func (c *DeviceblobDeleteCall) DeleteObject(deleteObject bool) *DeviceblobDeleteCall {
c.urlParams_.Set("deleteObject", fmt.Sprint(deleteObject))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DeviceblobDeleteCall) Fields(s ...googleapi.Field) *DeviceblobDeleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *DeviceblobDeleteCall) Context(ctx context.Context) *DeviceblobDeleteCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DeviceblobDeleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DeviceblobDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "deviceBlobs/{deviceName}/{binaryType}/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("DELETE", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"deviceName": c.deviceName,
"binaryType": c.binaryType,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.deviceblob.delete" call.
func (c *DeviceblobDeleteCall) Do(opts ...googleapi.CallOption) error {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if err != nil {
return err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return err
}
return nil
// {
// "httpMethod": "DELETE",
// "id": "androidbuildinternal.deviceblob.delete",
// "parameterOrder": [
// "deviceName",
// "binaryType",
// "resourceId"
// ],
// "parameters": {
// "binaryType": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "deleteObject": {
// "default": "true",
// "location": "query",
// "type": "boolean"
// },
// "deviceName": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "deviceBlobs/{deviceName}/{binaryType}/{resourceId}",
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.deviceblob.get":
type DeviceblobGetCall struct {
s *Service
deviceName string
binaryType string
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *DeviceblobService) Get(deviceName string, binaryType string, resourceId string) *DeviceblobGetCall {
c := &DeviceblobGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.deviceName = deviceName
c.binaryType = binaryType
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DeviceblobGetCall) Fields(s ...googleapi.Field) *DeviceblobGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *DeviceblobGetCall) IfNoneMatch(entityTag string) *DeviceblobGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *DeviceblobGetCall) Context(ctx context.Context) *DeviceblobGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DeviceblobGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DeviceblobGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "deviceBlobs/{deviceName}/{binaryType}/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"deviceName": c.deviceName,
"binaryType": c.binaryType,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// 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 (c *DeviceblobGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("media")
if err != nil {
return nil, err
}
if err := googleapi.CheckMediaResponse(res); err != nil {
res.Body.Close()
return nil, err
}
return res, nil
}
// Do executes the "androidbuildinternal.deviceblob.get" call.
// Exactly one of *BuildArtifactMetadata or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildArtifactMetadata.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 (c *DeviceblobGetCall) Do(opts ...googleapi.CallOption) (*BuildArtifactMetadata, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildArtifactMetadata{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.deviceblob.get",
// "parameterOrder": [
// "deviceName",
// "binaryType",
// "resourceId"
// ],
// "parameters": {
// "binaryType": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "deviceName": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "deviceBlobs/{deviceName}/{binaryType}/{resourceId}",
// "response": {
// "$ref": "BuildArtifactMetadata"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ],
// "supportsMediaDownload": true,
// "useMediaDownloadService": true
// }
}
// method id "androidbuildinternal.deviceblob.list":
type DeviceblobListCall struct {
s *Service
deviceName string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *DeviceblobService) List(deviceName string) *DeviceblobListCall {
c := &DeviceblobListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.deviceName = deviceName
return c
}
// BinaryType sets the optional parameter "binaryType":
func (c *DeviceblobListCall) BinaryType(binaryType string) *DeviceblobListCall {
c.urlParams_.Set("binaryType", binaryType)
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *DeviceblobListCall) MaxResults(maxResults int64) *DeviceblobListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *DeviceblobListCall) PageToken(pageToken string) *DeviceblobListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Version sets the optional parameter "version":
func (c *DeviceblobListCall) Version(version string) *DeviceblobListCall {
c.urlParams_.Set("version", version)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DeviceblobListCall) Fields(s ...googleapi.Field) *DeviceblobListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *DeviceblobListCall) IfNoneMatch(entityTag string) *DeviceblobListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *DeviceblobListCall) Context(ctx context.Context) *DeviceblobListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DeviceblobListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DeviceblobListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "deviceBlobs/{deviceName}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"deviceName": c.deviceName,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.deviceblob.list" call.
// Exactly one of *DeviceBlobListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *DeviceBlobListResponse.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 (c *DeviceblobListCall) Do(opts ...googleapi.CallOption) (*DeviceBlobListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &DeviceBlobListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.deviceblob.list",
// "parameterOrder": [
// "deviceName"
// ],
// "parameters": {
// "binaryType": {
// "location": "query",
// "type": "string"
// },
// "deviceName": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "version": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "deviceBlobs/{deviceName}",
// "response": {
// "$ref": "DeviceBlobListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *DeviceblobListCall) Pages(ctx context.Context, f func(*DeviceBlobListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.deviceblob.patch":
type DeviceblobPatchCall struct {
s *Service
deviceName string
binaryType string
resourceId string
buildartifactmetadata *BuildArtifactMetadata
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *DeviceblobService) Patch(deviceName string, binaryType string, resourceId string, buildartifactmetadata *BuildArtifactMetadata) *DeviceblobPatchCall {
c := &DeviceblobPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.deviceName = deviceName
c.binaryType = binaryType
c.resourceId = resourceId
c.buildartifactmetadata = buildartifactmetadata
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DeviceblobPatchCall) Fields(s ...googleapi.Field) *DeviceblobPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *DeviceblobPatchCall) Context(ctx context.Context) *DeviceblobPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DeviceblobPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DeviceblobPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildartifactmetadata)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "deviceBlobs/{deviceName}/{binaryType}/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"deviceName": c.deviceName,
"binaryType": c.binaryType,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.deviceblob.patch" call.
// Exactly one of *BuildArtifactMetadata or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildArtifactMetadata.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 (c *DeviceblobPatchCall) Do(opts ...googleapi.CallOption) (*BuildArtifactMetadata, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildArtifactMetadata{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.deviceblob.patch",
// "parameterOrder": [
// "deviceName",
// "binaryType",
// "resourceId"
// ],
// "parameters": {
// "binaryType": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "deviceName": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "deviceBlobs/{deviceName}/{binaryType}/{resourceId}",
// "request": {
// "$ref": "BuildArtifactMetadata"
// },
// "response": {
// "$ref": "BuildArtifactMetadata"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.deviceblob.update":
type DeviceblobUpdateCall struct {
s *Service
deviceName string
binaryType string
resourceId string
buildartifactmetadata *BuildArtifactMetadata
urlParams_ gensupport.URLParams
mediaInfo_ *gensupport.MediaInfo
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *DeviceblobService) Update(deviceName string, binaryType string, resourceId string, buildartifactmetadata *BuildArtifactMetadata) *DeviceblobUpdateCall {
c := &DeviceblobUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.deviceName = deviceName
c.binaryType = binaryType
c.resourceId = resourceId
c.buildartifactmetadata = buildartifactmetadata
return c
}
// Media specifies the media to upload in one or more chunks. The chunk
// size may be controlled by supplying a MediaOption generated by
// googleapi.ChunkSize. The chunk size defaults to
// googleapi.DefaultUploadChunkSize.The Content-Type header used in the
// upload request will be determined by sniffing the contents of r,
// unless a MediaOption generated by googleapi.ContentType is
// supplied.
// At most one of Media and ResumableMedia may be set.
func (c *DeviceblobUpdateCall) Media(r io.Reader, options ...googleapi.MediaOption) *DeviceblobUpdateCall {
if ct := c.buildartifactmetadata.ContentType; ct != "" {
options = append([]googleapi.MediaOption{googleapi.ContentType(ct)}, options...)
}
c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
return c
}
// ResumableMedia specifies the media to upload in chunks and can be
// canceled with ctx.
//
// Deprecated: use Media instead.
//
// 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.
func (c *DeviceblobUpdateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *DeviceblobUpdateCall {
c.ctx_ = ctx
c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
return c
}
// 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 (c *DeviceblobUpdateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *DeviceblobUpdateCall {
c.mediaInfo_.SetProgressUpdater(pu)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *DeviceblobUpdateCall) Fields(s ...googleapi.Field) *DeviceblobUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *DeviceblobUpdateCall) Context(ctx context.Context) *DeviceblobUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *DeviceblobUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *DeviceblobUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildartifactmetadata)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "deviceBlobs/{deviceName}/{binaryType}/{resourceId}")
if c.mediaInfo_ != nil {
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
}
if body == nil {
body = new(bytes.Buffer)
reqHeaders.Set("Content-Type", "application/json")
}
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
defer cleanup()
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
req.GetBody = getBody
googleapi.Expand(req.URL, map[string]string{
"deviceName": c.deviceName,
"binaryType": c.binaryType,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.deviceblob.update" call.
// Exactly one of *BuildArtifactMetadata or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildArtifactMetadata.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 (c *DeviceblobUpdateCall) Do(opts ...googleapi.CallOption) (*BuildArtifactMetadata, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
if rx != nil {
rx.Client = c.s.client
rx.UserAgent = c.s.userAgent()
ctx := c.ctx_
if ctx == nil {
ctx = context.TODO()
}
res, err = rx.Upload(ctx)
if err != nil {
return nil, err
}
defer res.Body.Close()
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
}
ret := &BuildArtifactMetadata{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.deviceblob.update",
// "mediaUpload": {
// "accept": [
// "*/*"
// ],
// "maxSize": "10GB",
// "protocols": {
// "resumable": {
// "multipart": true,
// "path": "/resumable/upload/android/internal/build/v2beta1/deviceBlobs/{deviceName}/{binaryType}/{resourceId}"
// },
// "simple": {
// "multipart": true,
// "path": "/upload/android/internal/build/v2beta1/deviceBlobs/{deviceName}/{binaryType}/{resourceId}"
// }
// }
// },
// "parameterOrder": [
// "deviceName",
// "binaryType",
// "resourceId"
// ],
// "parameters": {
// "binaryType": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "deviceName": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "deviceBlobs/{deviceName}/{binaryType}/{resourceId}",
// "request": {
// "$ref": "BuildArtifactMetadata"
// },
// "response": {
// "$ref": "BuildArtifactMetadata"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ],
// "supportsMediaUpload": true
// }
}
// method id "androidbuildinternal.externaldisk.get":
type ExternaldiskGetCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *ExternaldiskService) Get(resourceId string) *ExternaldiskGetCall {
c := &ExternaldiskGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ExternaldiskGetCall) Fields(s ...googleapi.Field) *ExternaldiskGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ExternaldiskGetCall) IfNoneMatch(entityTag string) *ExternaldiskGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *ExternaldiskGetCall) Context(ctx context.Context) *ExternaldiskGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ExternaldiskGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ExternaldiskGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "externaldisks/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.externaldisk.get" call.
// Exactly one of *ExternalDiskMessage or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *ExternalDiskMessage.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 (c *ExternaldiskGetCall) Do(opts ...googleapi.CallOption) (*ExternalDiskMessage, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ExternalDiskMessage{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.externaldisk.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "externaldisks/{resourceId}",
// "response": {
// "$ref": "ExternalDiskMessage"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.imagerequest.get":
type ImagerequestGetCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *ImagerequestService) Get(resourceId string) *ImagerequestGetCall {
c := &ImagerequestGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ImagerequestGetCall) Fields(s ...googleapi.Field) *ImagerequestGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ImagerequestGetCall) IfNoneMatch(entityTag string) *ImagerequestGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *ImagerequestGetCall) Context(ctx context.Context) *ImagerequestGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ImagerequestGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ImagerequestGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "imageRequests/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.imagerequest.get" call.
// Exactly one of *ImageRequest or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *ImageRequest.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 (c *ImagerequestGetCall) Do(opts ...googleapi.CallOption) (*ImageRequest, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ImageRequest{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.imagerequest.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "imageRequests/{resourceId}",
// "response": {
// "$ref": "ImageRequest"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.imagerequest.insert":
type ImagerequestInsertCall struct {
s *Service
imagerequest *ImageRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Insert:
func (r *ImagerequestService) Insert(imagerequest *ImageRequest) *ImagerequestInsertCall {
c := &ImagerequestInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.imagerequest = imagerequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ImagerequestInsertCall) Fields(s ...googleapi.Field) *ImagerequestInsertCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ImagerequestInsertCall) Context(ctx context.Context) *ImagerequestInsertCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ImagerequestInsertCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ImagerequestInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.imagerequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "imageRequests")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.imagerequest.insert" call.
// Exactly one of *ImageRequest or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *ImageRequest.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 (c *ImagerequestInsertCall) Do(opts ...googleapi.CallOption) (*ImageRequest, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ImageRequest{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.imagerequest.insert",
// "path": "imageRequests",
// "request": {
// "$ref": "ImageRequest"
// },
// "response": {
// "$ref": "ImageRequest"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.imagerequest.list":
type ImagerequestListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *ImagerequestService) List() *ImagerequestListCall {
c := &ImagerequestListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// Device sets the optional parameter "device":
func (c *ImagerequestListCall) Device(device string) *ImagerequestListCall {
c.urlParams_.Set("device", device)
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *ImagerequestListCall) MaxResults(maxResults int64) *ImagerequestListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *ImagerequestListCall) PageToken(pageToken string) *ImagerequestListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Status sets the optional parameter "status":
//
// Possible values:
// "complete"
// "failed"
// "inProgress"
// "pending"
func (c *ImagerequestListCall) Status(status string) *ImagerequestListCall {
c.urlParams_.Set("status", status)
return c
}
// Type sets the optional parameter "type":
//
// Possible values:
// "accessories"
// "firmware"
// "gms"
// "hexagon"
// "looseOta"
// "mainlineModules"
// "ota"
// "release"
// "tos"
// "userdebug"
func (c *ImagerequestListCall) Type(type_ string) *ImagerequestListCall {
c.urlParams_.Set("type", type_)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ImagerequestListCall) Fields(s ...googleapi.Field) *ImagerequestListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ImagerequestListCall) IfNoneMatch(entityTag string) *ImagerequestListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *ImagerequestListCall) Context(ctx context.Context) *ImagerequestListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ImagerequestListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ImagerequestListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "imageRequests")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.imagerequest.list" call.
// Exactly one of *ImageRequestListResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *ImageRequestListResponse.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 (c *ImagerequestListCall) Do(opts ...googleapi.CallOption) (*ImageRequestListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ImageRequestListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.imagerequest.list",
// "parameters": {
// "device": {
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "status": {
// "enum": [
// "complete",
// "failed",
// "inProgress",
// "pending"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// },
// "type": {
// "enum": [
// "accessories",
// "firmware",
// "gms",
// "hexagon",
// "looseOta",
// "mainlineModules",
// "ota",
// "release",
// "tos",
// "userdebug"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// }
// },
// "path": "imageRequests",
// "response": {
// "$ref": "ImageRequestListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *ImagerequestListCall) Pages(ctx context.Context, f func(*ImageRequestListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.imagerequest.patch":
type ImagerequestPatchCall struct {
s *Service
resourceId string
imagerequest *ImageRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *ImagerequestService) Patch(resourceId string, imagerequest *ImageRequest) *ImagerequestPatchCall {
c := &ImagerequestPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.imagerequest = imagerequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ImagerequestPatchCall) Fields(s ...googleapi.Field) *ImagerequestPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ImagerequestPatchCall) Context(ctx context.Context) *ImagerequestPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ImagerequestPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ImagerequestPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.imagerequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "imageRequests/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.imagerequest.patch" call.
// Exactly one of *ImageRequest or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *ImageRequest.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 (c *ImagerequestPatchCall) Do(opts ...googleapi.CallOption) (*ImageRequest, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ImageRequest{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.imagerequest.patch",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "imageRequests/{resourceId}",
// "request": {
// "$ref": "ImageRequest"
// },
// "response": {
// "$ref": "ImageRequest"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.imagerequest.update":
type ImagerequestUpdateCall struct {
s *Service
resourceId string
imagerequest *ImageRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *ImagerequestService) Update(resourceId string, imagerequest *ImageRequest) *ImagerequestUpdateCall {
c := &ImagerequestUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.imagerequest = imagerequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ImagerequestUpdateCall) Fields(s ...googleapi.Field) *ImagerequestUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *ImagerequestUpdateCall) Context(ctx context.Context) *ImagerequestUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ImagerequestUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ImagerequestUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.imagerequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "imageRequests/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.imagerequest.update" call.
// Exactly one of *ImageRequest or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *ImageRequest.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 (c *ImagerequestUpdateCall) Do(opts ...googleapi.CallOption) (*ImageRequest, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ImageRequest{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.imagerequest.update",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "imageRequests/{resourceId}",
// "request": {
// "$ref": "ImageRequest"
// },
// "response": {
// "$ref": "ImageRequest"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.label.addBuilds":
type LabelAddBuildsCall struct {
s *Service
namespace string
name string
labeladdbuildsrequest *LabelAddBuildsRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// AddBuilds:
func (r *LabelService) AddBuilds(namespace string, name string, labeladdbuildsrequest *LabelAddBuildsRequest) *LabelAddBuildsCall {
c := &LabelAddBuildsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.namespace = namespace
c.name = name
c.labeladdbuildsrequest = labeladdbuildsrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *LabelAddBuildsCall) Fields(s ...googleapi.Field) *LabelAddBuildsCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *LabelAddBuildsCall) Context(ctx context.Context) *LabelAddBuildsCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *LabelAddBuildsCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *LabelAddBuildsCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.labeladdbuildsrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "labels/{namespace}/{name}/addBuilds")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"namespace": c.namespace,
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.label.addBuilds" call.
// Exactly one of *LabelAddBuildsResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *LabelAddBuildsResponse.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 (c *LabelAddBuildsCall) Do(opts ...googleapi.CallOption) (*LabelAddBuildsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &LabelAddBuildsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.label.addBuilds",
// "parameterOrder": [
// "namespace",
// "name"
// ],
// "parameters": {
// "name": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "namespace": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "labels/{namespace}/{name}/addBuilds",
// "request": {
// "$ref": "LabelAddBuildsRequest"
// },
// "response": {
// "$ref": "LabelAddBuildsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.label.clone":
type LabelCloneCall struct {
s *Service
namespace string
name string
destinationName string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Clone:
func (r *LabelService) Clone(namespace string, name string, destinationName string) *LabelCloneCall {
c := &LabelCloneCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.namespace = namespace
c.name = name
c.destinationName = destinationName
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *LabelCloneCall) Fields(s ...googleapi.Field) *LabelCloneCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *LabelCloneCall) Context(ctx context.Context) *LabelCloneCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *LabelCloneCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *LabelCloneCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "labels/{namespace}/{name}/reset/{destinationName}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"namespace": c.namespace,
"name": c.name,
"destinationName": c.destinationName,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.label.clone" call.
// Exactly one of *LabelCloneResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *LabelCloneResponse.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 (c *LabelCloneCall) Do(opts ...googleapi.CallOption) (*LabelCloneResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &LabelCloneResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.label.clone",
// "parameterOrder": [
// "namespace",
// "name",
// "destinationName"
// ],
// "parameters": {
// "destinationName": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "name": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "namespace": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "labels/{namespace}/{name}/reset/{destinationName}",
// "response": {
// "$ref": "LabelCloneResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.label.delete":
type LabelDeleteCall struct {
s *Service
namespace string
resourceId string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Delete:
func (r *LabelService) Delete(namespace string, resourceId string) *LabelDeleteCall {
c := &LabelDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.namespace = namespace
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *LabelDeleteCall) Fields(s ...googleapi.Field) *LabelDeleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *LabelDeleteCall) Context(ctx context.Context) *LabelDeleteCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *LabelDeleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *LabelDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "labels/{namespace}/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("DELETE", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"namespace": c.namespace,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.label.delete" call.
func (c *LabelDeleteCall) Do(opts ...googleapi.CallOption) error {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if err != nil {
return err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return err
}
return nil
// {
// "httpMethod": "DELETE",
// "id": "androidbuildinternal.label.delete",
// "parameterOrder": [
// "namespace",
// "resourceId"
// ],
// "parameters": {
// "namespace": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "labels/{namespace}/{resourceId}",
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.label.get":
type LabelGetCall struct {
s *Service
namespace string
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *LabelService) Get(namespace string, resourceId string) *LabelGetCall {
c := &LabelGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.namespace = namespace
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *LabelGetCall) Fields(s ...googleapi.Field) *LabelGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *LabelGetCall) IfNoneMatch(entityTag string) *LabelGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *LabelGetCall) Context(ctx context.Context) *LabelGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *LabelGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *LabelGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "labels/{namespace}/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"namespace": c.namespace,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.label.get" call.
// Exactly one of *Label or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Label.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 (c *LabelGetCall) Do(opts ...googleapi.CallOption) (*Label, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Label{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.label.get",
// "parameterOrder": [
// "namespace",
// "resourceId"
// ],
// "parameters": {
// "namespace": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "labels/{namespace}/{resourceId}",
// "response": {
// "$ref": "Label"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.label.list":
type LabelListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *LabelService) List() *LabelListCall {
c := &LabelListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// Annotation sets the optional parameter "annotation":
func (c *LabelListCall) Annotation(annotation string) *LabelListCall {
c.urlParams_.Set("annotation", annotation)
return c
}
// BuildId sets the optional parameter "buildId":
func (c *LabelListCall) BuildId(buildId string) *LabelListCall {
c.urlParams_.Set("buildId", buildId)
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *LabelListCall) MaxResults(maxResults int64) *LabelListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// Name sets the optional parameter "name":
func (c *LabelListCall) Name(name string) *LabelListCall {
c.urlParams_.Set("name", name)
return c
}
// Namespace sets the optional parameter "namespace":
func (c *LabelListCall) Namespace(namespace string) *LabelListCall {
c.urlParams_.Set("namespace", namespace)
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *LabelListCall) PageToken(pageToken string) *LabelListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *LabelListCall) Fields(s ...googleapi.Field) *LabelListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *LabelListCall) IfNoneMatch(entityTag string) *LabelListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *LabelListCall) Context(ctx context.Context) *LabelListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *LabelListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *LabelListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "labels")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.label.list" call.
// Exactly one of *LabelListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *LabelListResponse.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 (c *LabelListCall) Do(opts ...googleapi.CallOption) (*LabelListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &LabelListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.label.list",
// "parameters": {
// "annotation": {
// "location": "query",
// "type": "string"
// },
// "buildId": {
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "name": {
// "location": "query",
// "type": "string"
// },
// "namespace": {
// "location": "query",
// "type": "string"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "labels",
// "response": {
// "$ref": "LabelListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *LabelListCall) Pages(ctx context.Context, f func(*LabelListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.label.patch":
type LabelPatchCall struct {
s *Service
namespace string
resourceId string
label *Label
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *LabelService) Patch(namespace string, resourceId string, label *Label) *LabelPatchCall {
c := &LabelPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.namespace = namespace
c.resourceId = resourceId
c.label = label
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *LabelPatchCall) Fields(s ...googleapi.Field) *LabelPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *LabelPatchCall) Context(ctx context.Context) *LabelPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *LabelPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *LabelPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.label)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "labels/{namespace}/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"namespace": c.namespace,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.label.patch" call.
// Exactly one of *Label or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Label.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 (c *LabelPatchCall) Do(opts ...googleapi.CallOption) (*Label, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Label{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.label.patch",
// "parameterOrder": [
// "namespace",
// "resourceId"
// ],
// "parameters": {
// "namespace": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "labels/{namespace}/{resourceId}",
// "request": {
// "$ref": "Label"
// },
// "response": {
// "$ref": "Label"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.label.removeBuilds":
type LabelRemoveBuildsCall struct {
s *Service
namespace string
name string
labelremovebuildsrequest *LabelRemoveBuildsRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// RemoveBuilds:
func (r *LabelService) RemoveBuilds(namespace string, name string, labelremovebuildsrequest *LabelRemoveBuildsRequest) *LabelRemoveBuildsCall {
c := &LabelRemoveBuildsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.namespace = namespace
c.name = name
c.labelremovebuildsrequest = labelremovebuildsrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *LabelRemoveBuildsCall) Fields(s ...googleapi.Field) *LabelRemoveBuildsCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *LabelRemoveBuildsCall) Context(ctx context.Context) *LabelRemoveBuildsCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *LabelRemoveBuildsCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *LabelRemoveBuildsCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.labelremovebuildsrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "labels/{namespace}/{name}/removeBuilds")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"namespace": c.namespace,
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.label.removeBuilds" call.
// Exactly one of *LabelRemoveBuildsResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *LabelRemoveBuildsResponse.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 (c *LabelRemoveBuildsCall) Do(opts ...googleapi.CallOption) (*LabelRemoveBuildsResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &LabelRemoveBuildsResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.label.removeBuilds",
// "parameterOrder": [
// "namespace",
// "name"
// ],
// "parameters": {
// "name": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "namespace": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "labels/{namespace}/{name}/removeBuilds",
// "request": {
// "$ref": "LabelRemoveBuildsRequest"
// },
// "response": {
// "$ref": "LabelRemoveBuildsResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.label.reset":
type LabelResetCall struct {
s *Service
namespace string
name string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Reset:
func (r *LabelService) Reset(namespace string, name string) *LabelResetCall {
c := &LabelResetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.namespace = namespace
c.name = name
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *LabelResetCall) Fields(s ...googleapi.Field) *LabelResetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *LabelResetCall) Context(ctx context.Context) *LabelResetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *LabelResetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *LabelResetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "labels/{namespace}/{name}/reset")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"namespace": c.namespace,
"name": c.name,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.label.reset" call.
// Exactly one of *LabelResetResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *LabelResetResponse.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 (c *LabelResetCall) Do(opts ...googleapi.CallOption) (*LabelResetResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &LabelResetResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.label.reset",
// "parameterOrder": [
// "namespace",
// "name"
// ],
// "parameters": {
// "name": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "namespace": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "labels/{namespace}/{name}/reset",
// "response": {
// "$ref": "LabelResetResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.label.update":
type LabelUpdateCall struct {
s *Service
namespace string
resourceId string
label *Label
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *LabelService) Update(namespace string, resourceId string, label *Label) *LabelUpdateCall {
c := &LabelUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.namespace = namespace
c.resourceId = resourceId
c.label = label
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *LabelUpdateCall) Fields(s ...googleapi.Field) *LabelUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *LabelUpdateCall) Context(ctx context.Context) *LabelUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *LabelUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *LabelUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.label)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "labels/{namespace}/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"namespace": c.namespace,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.label.update" call.
// Exactly one of *Label or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Label.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 (c *LabelUpdateCall) Do(opts ...googleapi.CallOption) (*Label, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Label{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.label.update",
// "parameterOrder": [
// "namespace",
// "resourceId"
// ],
// "parameters": {
// "namespace": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "labels/{namespace}/{resourceId}",
// "request": {
// "$ref": "Label"
// },
// "response": {
// "$ref": "Label"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.machine.delete":
type MachineDeleteCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Delete:
func (r *MachineService) Delete(resourceId string) *MachineDeleteCall {
c := &MachineDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MachineDeleteCall) Fields(s ...googleapi.Field) *MachineDeleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MachineDeleteCall) Context(ctx context.Context) *MachineDeleteCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MachineDeleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MachineDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "machines/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("DELETE", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.machine.delete" call.
func (c *MachineDeleteCall) Do(opts ...googleapi.CallOption) error {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if err != nil {
return err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return err
}
return nil
// {
// "httpMethod": "DELETE",
// "id": "androidbuildinternal.machine.delete",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "machines/{resourceId}",
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.machine.get":
type MachineGetCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *MachineService) Get(resourceId string) *MachineGetCall {
c := &MachineGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MachineGetCall) Fields(s ...googleapi.Field) *MachineGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MachineGetCall) IfNoneMatch(entityTag string) *MachineGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *MachineGetCall) Context(ctx context.Context) *MachineGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MachineGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MachineGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "machines/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.machine.get" call.
// Exactly one of *Machine or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Machine.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 (c *MachineGetCall) Do(opts ...googleapi.CallOption) (*Machine, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Machine{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.machine.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "machines/{resourceId}",
// "response": {
// "$ref": "Machine"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.machine.list":
type MachineListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *MachineService) List() *MachineListCall {
c := &MachineListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// Branch sets the optional parameter "branch":
func (c *MachineListCall) Branch(branch string) *MachineListCall {
c.urlParams_.Set("branch", branch)
return c
}
// BuildPlatform sets the optional parameter "buildPlatform":
func (c *MachineListCall) BuildPlatform(buildPlatform string) *MachineListCall {
c.urlParams_.Set("buildPlatform", buildPlatform)
return c
}
// BuildType sets the optional parameter "buildType":
//
// Possible values:
// "external"
// "local"
// "pending"
// "submitted"
// "train"
func (c *MachineListCall) BuildType(buildType string) *MachineListCall {
c.urlParams_.Set("buildType", buildType)
return c
}
// MachineName sets the optional parameter "machineName":
func (c *MachineListCall) MachineName(machineName string) *MachineListCall {
c.urlParams_.Set("machineName", machineName)
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *MachineListCall) MaxResults(maxResults int64) *MachineListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// Operation sets the optional parameter "operation":
//
// Possible values:
// "booting"
// "building"
// "built"
// "copying"
// "finish"
// "idle"
// "popping"
// "preparing"
// "queueBuild"
// "resetBuild"
// "start"
// "synced"
// "syncing"
func (c *MachineListCall) Operation(operation string) *MachineListCall {
c.urlParams_.Set("operation", operation)
return c
}
// OsType sets the optional parameter "osType":
func (c *MachineListCall) OsType(osType string) *MachineListCall {
c.urlParams_.Set("osType", osType)
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *MachineListCall) PageToken(pageToken string) *MachineListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// PoolName sets the optional parameter "poolName":
func (c *MachineListCall) PoolName(poolName string) *MachineListCall {
c.urlParams_.Set("poolName", poolName)
return c
}
// Status sets the optional parameter "status":
//
// Possible values:
// "offline"
// "online"
func (c *MachineListCall) Status(status string) *MachineListCall {
c.urlParams_.Set("status", status)
return c
}
// Target sets the optional parameter "target":
func (c *MachineListCall) Target(target string) *MachineListCall {
c.urlParams_.Set("target", target)
return c
}
// Version sets the optional parameter "version":
func (c *MachineListCall) Version(version string) *MachineListCall {
c.urlParams_.Set("version", version)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MachineListCall) Fields(s ...googleapi.Field) *MachineListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MachineListCall) IfNoneMatch(entityTag string) *MachineListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *MachineListCall) Context(ctx context.Context) *MachineListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MachineListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MachineListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "machines")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.machine.list" call.
// Exactly one of *MachineListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *MachineListResponse.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 (c *MachineListCall) Do(opts ...googleapi.CallOption) (*MachineListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &MachineListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.machine.list",
// "parameters": {
// "branch": {
// "location": "query",
// "type": "string"
// },
// "buildPlatform": {
// "location": "query",
// "type": "string"
// },
// "buildType": {
// "enum": [
// "external",
// "local",
// "pending",
// "submitted",
// "train"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// },
// "machineName": {
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "operation": {
// "enum": [
// "booting",
// "building",
// "built",
// "copying",
// "finish",
// "idle",
// "popping",
// "preparing",
// "queueBuild",
// "resetBuild",
// "start",
// "synced",
// "syncing"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// },
// "osType": {
// "location": "query",
// "type": "string"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "poolName": {
// "location": "query",
// "type": "string"
// },
// "status": {
// "enum": [
// "offline",
// "online"
// ],
// "enumDescriptions": [
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// },
// "target": {
// "location": "query",
// "type": "string"
// },
// "version": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "machines",
// "response": {
// "$ref": "MachineListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *MachineListCall) Pages(ctx context.Context, f func(*MachineListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.machine.patch":
type MachinePatchCall struct {
s *Service
resourceId string
machine *Machine
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *MachineService) Patch(resourceId string, machine *Machine) *MachinePatchCall {
c := &MachinePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.machine = machine
return c
}
// Comment sets the optional parameter "comment":
func (c *MachinePatchCall) Comment(comment string) *MachinePatchCall {
c.urlParams_.Set("comment", comment)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MachinePatchCall) Fields(s ...googleapi.Field) *MachinePatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MachinePatchCall) Context(ctx context.Context) *MachinePatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MachinePatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MachinePatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.machine)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "machines/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.machine.patch" call.
// Exactly one of *Machine or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Machine.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 (c *MachinePatchCall) Do(opts ...googleapi.CallOption) (*Machine, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Machine{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.machine.patch",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "comment": {
// "location": "query",
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "machines/{resourceId}",
// "request": {
// "$ref": "Machine"
// },
// "response": {
// "$ref": "Machine"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.machine.update":
type MachineUpdateCall struct {
s *Service
resourceId string
machine *Machine
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *MachineService) Update(resourceId string, machine *Machine) *MachineUpdateCall {
c := &MachineUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.machine = machine
return c
}
// Comment sets the optional parameter "comment":
func (c *MachineUpdateCall) Comment(comment string) *MachineUpdateCall {
c.urlParams_.Set("comment", comment)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MachineUpdateCall) Fields(s ...googleapi.Field) *MachineUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MachineUpdateCall) Context(ctx context.Context) *MachineUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MachineUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MachineUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.machine)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "machines/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.machine.update" call.
// Exactly one of *Machine or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Machine.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 (c *MachineUpdateCall) Do(opts ...googleapi.CallOption) (*Machine, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Machine{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.machine.update",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "comment": {
// "location": "query",
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "machines/{resourceId}",
// "request": {
// "$ref": "Machine"
// },
// "response": {
// "$ref": "Machine"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.message.get":
type MessageGetCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *MessageService) Get(resourceId string) *MessageGetCall {
c := &MessageGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MessageGetCall) Fields(s ...googleapi.Field) *MessageGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MessageGetCall) IfNoneMatch(entityTag string) *MessageGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *MessageGetCall) Context(ctx context.Context) *MessageGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MessageGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MessageGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "messages/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.message.get" call.
// Exactly one of *SemaphoreMessage or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *SemaphoreMessage.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 (c *MessageGetCall) Do(opts ...googleapi.CallOption) (*SemaphoreMessage, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &SemaphoreMessage{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.message.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "messages/{resourceId}",
// "response": {
// "$ref": "SemaphoreMessage"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.message.insert":
type MessageInsertCall struct {
s *Service
semaphoremessage *SemaphoreMessage
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Insert:
func (r *MessageService) Insert(semaphoremessage *SemaphoreMessage) *MessageInsertCall {
c := &MessageInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.semaphoremessage = semaphoremessage
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MessageInsertCall) Fields(s ...googleapi.Field) *MessageInsertCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MessageInsertCall) Context(ctx context.Context) *MessageInsertCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MessageInsertCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MessageInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.semaphoremessage)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "messages")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.message.insert" call.
// Exactly one of *SemaphoreMessage or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *SemaphoreMessage.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 (c *MessageInsertCall) Do(opts ...googleapi.CallOption) (*SemaphoreMessage, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &SemaphoreMessage{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.message.insert",
// "path": "messages",
// "request": {
// "$ref": "SemaphoreMessage"
// },
// "response": {
// "$ref": "SemaphoreMessage"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.message.list":
type MessageListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *MessageService) List() *MessageListCall {
c := &MessageListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// Enabled sets the optional parameter "enabled":
func (c *MessageListCall) Enabled(enabled bool) *MessageListCall {
c.urlParams_.Set("enabled", fmt.Sprint(enabled))
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *MessageListCall) MaxResults(maxResults int64) *MessageListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *MessageListCall) PageToken(pageToken string) *MessageListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Scopes sets the optional parameter "scopes":
func (c *MessageListCall) Scopes(scopes ...string) *MessageListCall {
c.urlParams_.SetMulti("scopes", append([]string{}, scopes...))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MessageListCall) Fields(s ...googleapi.Field) *MessageListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MessageListCall) IfNoneMatch(entityTag string) *MessageListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *MessageListCall) Context(ctx context.Context) *MessageListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MessageListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MessageListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "messages")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.message.list" call.
// Exactly one of *MessageListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *MessageListResponse.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 (c *MessageListCall) Do(opts ...googleapi.CallOption) (*MessageListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &MessageListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.message.list",
// "parameters": {
// "enabled": {
// "default": "true",
// "location": "query",
// "type": "boolean"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "scopes": {
// "location": "query",
// "repeated": true,
// "type": "string"
// }
// },
// "path": "messages",
// "response": {
// "$ref": "MessageListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *MessageListCall) Pages(ctx context.Context, f func(*MessageListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.message.patch":
type MessagePatchCall struct {
s *Service
resourceId string
semaphoremessage *SemaphoreMessage
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *MessageService) Patch(resourceId string, semaphoremessage *SemaphoreMessage) *MessagePatchCall {
c := &MessagePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.semaphoremessage = semaphoremessage
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MessagePatchCall) Fields(s ...googleapi.Field) *MessagePatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MessagePatchCall) Context(ctx context.Context) *MessagePatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MessagePatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MessagePatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.semaphoremessage)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "messages/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.message.patch" call.
// Exactly one of *SemaphoreMessage or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *SemaphoreMessage.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 (c *MessagePatchCall) Do(opts ...googleapi.CallOption) (*SemaphoreMessage, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &SemaphoreMessage{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.message.patch",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "messages/{resourceId}",
// "request": {
// "$ref": "SemaphoreMessage"
// },
// "response": {
// "$ref": "SemaphoreMessage"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.message.update":
type MessageUpdateCall struct {
s *Service
resourceId string
semaphoremessage *SemaphoreMessage
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *MessageService) Update(resourceId string, semaphoremessage *SemaphoreMessage) *MessageUpdateCall {
c := &MessageUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.semaphoremessage = semaphoremessage
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MessageUpdateCall) Fields(s ...googleapi.Field) *MessageUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MessageUpdateCall) Context(ctx context.Context) *MessageUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MessageUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MessageUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.semaphoremessage)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "messages/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.message.update" call.
// Exactly one of *SemaphoreMessage or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *SemaphoreMessage.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 (c *MessageUpdateCall) Do(opts ...googleapi.CallOption) (*SemaphoreMessage, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &SemaphoreMessage{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.message.update",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "messages/{resourceId}",
// "request": {
// "$ref": "SemaphoreMessage"
// },
// "response": {
// "$ref": "SemaphoreMessage"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.metric.increment":
type MetricIncrementCall struct {
s *Service
metricincrementrequest *MetricIncrementRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Increment:
func (r *MetricService) Increment(metricincrementrequest *MetricIncrementRequest) *MetricIncrementCall {
c := &MetricIncrementCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.metricincrementrequest = metricincrementrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MetricIncrementCall) Fields(s ...googleapi.Field) *MetricIncrementCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MetricIncrementCall) Context(ctx context.Context) *MetricIncrementCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MetricIncrementCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MetricIncrementCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.metricincrementrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "metrics/increment")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.metric.increment" call.
// Exactly one of *MetricIncrementResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *MetricIncrementResponse.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 (c *MetricIncrementCall) Do(opts ...googleapi.CallOption) (*MetricIncrementResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &MetricIncrementResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.metric.increment",
// "path": "metrics/increment",
// "request": {
// "$ref": "MetricIncrementRequest"
// },
// "response": {
// "$ref": "MetricIncrementResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.metric.incrementby":
type MetricIncrementbyCall struct {
s *Service
metricincrementbyrequest *MetricIncrementByRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Incrementby:
func (r *MetricService) Incrementby(metricincrementbyrequest *MetricIncrementByRequest) *MetricIncrementbyCall {
c := &MetricIncrementbyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.metricincrementbyrequest = metricincrementbyrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MetricIncrementbyCall) Fields(s ...googleapi.Field) *MetricIncrementbyCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MetricIncrementbyCall) Context(ctx context.Context) *MetricIncrementbyCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MetricIncrementbyCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MetricIncrementbyCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.metricincrementbyrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "metrics/incrementby")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.metric.incrementby" call.
// Exactly one of *MetricIncrementByResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *MetricIncrementByResponse.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 (c *MetricIncrementbyCall) Do(opts ...googleapi.CallOption) (*MetricIncrementByResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &MetricIncrementByResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.metric.incrementby",
// "path": "metrics/incrementby",
// "request": {
// "$ref": "MetricIncrementByRequest"
// },
// "response": {
// "$ref": "MetricIncrementByResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.metric.set":
type MetricSetCall struct {
s *Service
metricsetrequest *MetricSetRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Set:
func (r *MetricService) Set(metricsetrequest *MetricSetRequest) *MetricSetCall {
c := &MetricSetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.metricsetrequest = metricsetrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *MetricSetCall) Fields(s ...googleapi.Field) *MetricSetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *MetricSetCall) Context(ctx context.Context) *MetricSetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *MetricSetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *MetricSetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.metricsetrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "metrics/set")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.metric.set" call.
// Exactly one of *MetricSetResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *MetricSetResponse.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 (c *MetricSetCall) Do(opts ...googleapi.CallOption) (*MetricSetResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &MetricSetResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.metric.set",
// "path": "metrics/set",
// "request": {
// "$ref": "MetricSetRequest"
// },
// "response": {
// "$ref": "MetricSetResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.prebuiltfile.delete":
type PrebuiltfileDeleteCall struct {
s *Service
buildId string
destGitProject string
destFile string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Delete:
func (r *PrebuiltfileService) Delete(buildId string, destGitProject string, destFile string) *PrebuiltfileDeleteCall {
c := &PrebuiltfileDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.destGitProject = destGitProject
c.destFile = destFile
return c
}
// ResourceId sets the optional parameter "resourceId":
func (c *PrebuiltfileDeleteCall) ResourceId(resourceId string) *PrebuiltfileDeleteCall {
c.urlParams_.Set("resourceId", resourceId)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *PrebuiltfileDeleteCall) Fields(s ...googleapi.Field) *PrebuiltfileDeleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *PrebuiltfileDeleteCall) Context(ctx context.Context) *PrebuiltfileDeleteCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *PrebuiltfileDeleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *PrebuiltfileDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "prebuiltfiles/{buildId}/{destGitProject}/{destFile}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("DELETE", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"destGitProject": c.destGitProject,
"destFile": c.destFile,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.prebuiltfile.delete" call.
func (c *PrebuiltfileDeleteCall) Do(opts ...googleapi.CallOption) error {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if err != nil {
return err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return err
}
return nil
// {
// "httpMethod": "DELETE",
// "id": "androidbuildinternal.prebuiltfile.delete",
// "parameterOrder": [
// "buildId",
// "destGitProject",
// "destFile"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "destFile": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "destGitProject": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "prebuiltfiles/{buildId}/{destGitProject}/{destFile}",
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.prebuiltfile.get":
type PrebuiltfileGetCall struct {
s *Service
buildId string
destGitProject string
destFile string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *PrebuiltfileService) Get(buildId string, destGitProject string, destFile string) *PrebuiltfileGetCall {
c := &PrebuiltfileGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.destGitProject = destGitProject
c.destFile = destFile
return c
}
// ResourceId sets the optional parameter "resourceId":
func (c *PrebuiltfileGetCall) ResourceId(resourceId string) *PrebuiltfileGetCall {
c.urlParams_.Set("resourceId", resourceId)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *PrebuiltfileGetCall) Fields(s ...googleapi.Field) *PrebuiltfileGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *PrebuiltfileGetCall) IfNoneMatch(entityTag string) *PrebuiltfileGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *PrebuiltfileGetCall) Context(ctx context.Context) *PrebuiltfileGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *PrebuiltfileGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *PrebuiltfileGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "prebuiltfiles/{buildId}/{destGitProject}/{destFile}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"destGitProject": c.destGitProject,
"destFile": c.destFile,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.prebuiltfile.get" call.
// Exactly one of *PrebuiltDrop or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *PrebuiltDrop.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 (c *PrebuiltfileGetCall) Do(opts ...googleapi.CallOption) (*PrebuiltDrop, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &PrebuiltDrop{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.prebuiltfile.get",
// "parameterOrder": [
// "buildId",
// "destGitProject",
// "destFile"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "destFile": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "destGitProject": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "prebuiltfiles/{buildId}/{destGitProject}/{destFile}",
// "response": {
// "$ref": "PrebuiltDrop"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.prebuiltfile.list":
type PrebuiltfileListCall struct {
s *Service
buildId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *PrebuiltfileService) List(buildId string) *PrebuiltfileListCall {
c := &PrebuiltfileListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *PrebuiltfileListCall) MaxResults(maxResults int64) *PrebuiltfileListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *PrebuiltfileListCall) PageToken(pageToken string) *PrebuiltfileListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *PrebuiltfileListCall) Fields(s ...googleapi.Field) *PrebuiltfileListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *PrebuiltfileListCall) IfNoneMatch(entityTag string) *PrebuiltfileListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *PrebuiltfileListCall) Context(ctx context.Context) *PrebuiltfileListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *PrebuiltfileListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *PrebuiltfileListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "prebuiltfiles/{buildId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.prebuiltfile.list" call.
// Exactly one of *PrebuiltfileListResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *PrebuiltfileListResponse.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 (c *PrebuiltfileListCall) Do(opts ...googleapi.CallOption) (*PrebuiltfileListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &PrebuiltfileListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.prebuiltfile.list",
// "parameterOrder": [
// "buildId"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "prebuiltfiles/{buildId}",
// "response": {
// "$ref": "PrebuiltfileListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *PrebuiltfileListCall) Pages(ctx context.Context, f func(*PrebuiltfileListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.prebuiltfile.patch":
type PrebuiltfilePatchCall struct {
s *Service
buildId string
destGitProject string
destFile string
prebuiltdrop *PrebuiltDrop
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *PrebuiltfileService) Patch(buildId string, destGitProject string, destFile string, prebuiltdrop *PrebuiltDrop) *PrebuiltfilePatchCall {
c := &PrebuiltfilePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.destGitProject = destGitProject
c.destFile = destFile
c.prebuiltdrop = prebuiltdrop
return c
}
// ResourceId sets the optional parameter "resourceId":
func (c *PrebuiltfilePatchCall) ResourceId(resourceId string) *PrebuiltfilePatchCall {
c.urlParams_.Set("resourceId", resourceId)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *PrebuiltfilePatchCall) Fields(s ...googleapi.Field) *PrebuiltfilePatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *PrebuiltfilePatchCall) Context(ctx context.Context) *PrebuiltfilePatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *PrebuiltfilePatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *PrebuiltfilePatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.prebuiltdrop)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "prebuiltfiles/{buildId}/{destGitProject}/{destFile}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"destGitProject": c.destGitProject,
"destFile": c.destFile,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.prebuiltfile.patch" call.
// Exactly one of *PrebuiltDrop or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *PrebuiltDrop.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 (c *PrebuiltfilePatchCall) Do(opts ...googleapi.CallOption) (*PrebuiltDrop, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &PrebuiltDrop{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.prebuiltfile.patch",
// "parameterOrder": [
// "buildId",
// "destGitProject",
// "destFile"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "destFile": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "destGitProject": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "prebuiltfiles/{buildId}/{destGitProject}/{destFile}",
// "request": {
// "$ref": "PrebuiltDrop"
// },
// "response": {
// "$ref": "PrebuiltDrop"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.prebuiltfile.update":
type PrebuiltfileUpdateCall struct {
s *Service
buildId string
destGitProject string
destFile string
prebuiltdrop *PrebuiltDrop
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *PrebuiltfileService) Update(buildId string, destGitProject string, destFile string, prebuiltdrop *PrebuiltDrop) *PrebuiltfileUpdateCall {
c := &PrebuiltfileUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.destGitProject = destGitProject
c.destFile = destFile
c.prebuiltdrop = prebuiltdrop
return c
}
// ResourceId sets the optional parameter "resourceId":
func (c *PrebuiltfileUpdateCall) ResourceId(resourceId string) *PrebuiltfileUpdateCall {
c.urlParams_.Set("resourceId", resourceId)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *PrebuiltfileUpdateCall) Fields(s ...googleapi.Field) *PrebuiltfileUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *PrebuiltfileUpdateCall) Context(ctx context.Context) *PrebuiltfileUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *PrebuiltfileUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *PrebuiltfileUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.prebuiltdrop)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "prebuiltfiles/{buildId}/{destGitProject}/{destFile}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"destGitProject": c.destGitProject,
"destFile": c.destFile,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.prebuiltfile.update" call.
// Exactly one of *PrebuiltDrop or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *PrebuiltDrop.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 (c *PrebuiltfileUpdateCall) Do(opts ...googleapi.CallOption) (*PrebuiltDrop, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &PrebuiltDrop{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.prebuiltfile.update",
// "parameterOrder": [
// "buildId",
// "destGitProject",
// "destFile"
// ],
// "parameters": {
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "destFile": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "destGitProject": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "prebuiltfiles/{buildId}/{destGitProject}/{destFile}",
// "request": {
// "$ref": "PrebuiltDrop"
// },
// "response": {
// "$ref": "PrebuiltDrop"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.schedulingpool.get":
type SchedulingpoolGetCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *SchedulingpoolService) Get(resourceId string) *SchedulingpoolGetCall {
c := &SchedulingpoolGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *SchedulingpoolGetCall) Fields(s ...googleapi.Field) *SchedulingpoolGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *SchedulingpoolGetCall) IfNoneMatch(entityTag string) *SchedulingpoolGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *SchedulingpoolGetCall) Context(ctx context.Context) *SchedulingpoolGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *SchedulingpoolGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *SchedulingpoolGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "schedulingPools/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.schedulingpool.get" call.
// Exactly one of *SchedulingPoolConfig or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *SchedulingPoolConfig.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 (c *SchedulingpoolGetCall) Do(opts ...googleapi.CallOption) (*SchedulingPoolConfig, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &SchedulingPoolConfig{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.schedulingpool.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "schedulingPools/{resourceId}",
// "response": {
// "$ref": "SchedulingPoolConfig"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.schedulingpool.list":
type SchedulingpoolListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *SchedulingpoolService) List() *SchedulingpoolListCall {
c := &SchedulingpoolListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// Exclusive sets the optional parameter "exclusive":
func (c *SchedulingpoolListCall) Exclusive(exclusive bool) *SchedulingpoolListCall {
c.urlParams_.Set("exclusive", fmt.Sprint(exclusive))
return c
}
// HostName sets the optional parameter "hostName":
func (c *SchedulingpoolListCall) HostName(hostName string) *SchedulingpoolListCall {
c.urlParams_.Set("hostName", hostName)
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *SchedulingpoolListCall) MaxResults(maxResults int64) *SchedulingpoolListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *SchedulingpoolListCall) PageToken(pageToken string) *SchedulingpoolListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *SchedulingpoolListCall) Fields(s ...googleapi.Field) *SchedulingpoolListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *SchedulingpoolListCall) IfNoneMatch(entityTag string) *SchedulingpoolListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *SchedulingpoolListCall) Context(ctx context.Context) *SchedulingpoolListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *SchedulingpoolListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *SchedulingpoolListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "schedulingPools")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.schedulingpool.list" call.
// Exactly one of *SchedulingPoolListResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *SchedulingPoolListResponse.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 (c *SchedulingpoolListCall) Do(opts ...googleapi.CallOption) (*SchedulingPoolListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &SchedulingPoolListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.schedulingpool.list",
// "parameters": {
// "exclusive": {
// "location": "query",
// "type": "boolean"
// },
// "hostName": {
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "schedulingPools",
// "response": {
// "$ref": "SchedulingPoolListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *SchedulingpoolListCall) Pages(ctx context.Context, f func(*SchedulingPoolListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.software.get":
type SoftwareGetCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *SoftwareService) Get(resourceId string) *SoftwareGetCall {
c := &SoftwareGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *SoftwareGetCall) Fields(s ...googleapi.Field) *SoftwareGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *SoftwareGetCall) IfNoneMatch(entityTag string) *SoftwareGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *SoftwareGetCall) Context(ctx context.Context) *SoftwareGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *SoftwareGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *SoftwareGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "software/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.software.get" call.
// Exactly one of *SoftwareVersion or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *SoftwareVersion.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 (c *SoftwareGetCall) Do(opts ...googleapi.CallOption) (*SoftwareVersion, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &SoftwareVersion{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.software.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "software/{resourceId}",
// "response": {
// "$ref": "SoftwareVersion"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.target.get":
type TargetGetCall struct {
s *Service
branch string
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *TargetService) Get(branch string, resourceId string) *TargetGetCall {
c := &TargetGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.branch = branch
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TargetGetCall) Fields(s ...googleapi.Field) *TargetGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TargetGetCall) IfNoneMatch(entityTag string) *TargetGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *TargetGetCall) Context(ctx context.Context) *TargetGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TargetGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TargetGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "branches/{branch}/targets/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"branch": c.branch,
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.target.get" call.
// Exactly one of *Target or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *Target.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 (c *TargetGetCall) Do(opts ...googleapi.CallOption) (*Target, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &Target{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.target.get",
// "parameterOrder": [
// "branch",
// "resourceId"
// ],
// "parameters": {
// "branch": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "branches/{branch}/targets/{resourceId}",
// "response": {
// "$ref": "Target"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.target.list":
type TargetListCall struct {
s *Service
branch string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *TargetService) List(branch string) *TargetListCall {
c := &TargetListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.branch = branch
return c
}
// AdditionalBuildTarget sets the optional parameter
// "additionalBuildTarget":
func (c *TargetListCall) AdditionalBuildTarget(additionalBuildTarget string) *TargetListCall {
c.urlParams_.Set("additionalBuildTarget", additionalBuildTarget)
return c
}
// Disabled sets the optional parameter "disabled":
func (c *TargetListCall) Disabled(disabled bool) *TargetListCall {
c.urlParams_.Set("disabled", fmt.Sprint(disabled))
return c
}
// EnvironmentVariable sets the optional parameter
// "environmentVariable":
func (c *TargetListCall) EnvironmentVariable(environmentVariable string) *TargetListCall {
c.urlParams_.Set("environmentVariable", environmentVariable)
return c
}
// EnvironmentVariableKey sets the optional parameter
// "environmentVariableKey":
func (c *TargetListCall) EnvironmentVariableKey(environmentVariableKey string) *TargetListCall {
c.urlParams_.Set("environmentVariableKey", environmentVariableKey)
return c
}
// LaunchcontrolName sets the optional parameter "launchcontrolName":
func (c *TargetListCall) LaunchcontrolName(launchcontrolName string) *TargetListCall {
c.urlParams_.Set("launchcontrolName", launchcontrolName)
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *TargetListCall) MaxResults(maxResults int64) *TargetListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *TargetListCall) PageToken(pageToken string) *TargetListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Product sets the optional parameter "product":
func (c *TargetListCall) Product(product string) *TargetListCall {
c.urlParams_.Set("product", product)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TargetListCall) Fields(s ...googleapi.Field) *TargetListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TargetListCall) IfNoneMatch(entityTag string) *TargetListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *TargetListCall) Context(ctx context.Context) *TargetListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TargetListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TargetListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "branches/{branch}/targets")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"branch": c.branch,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.target.list" call.
// Exactly one of *TargetListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *TargetListResponse.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 (c *TargetListCall) Do(opts ...googleapi.CallOption) (*TargetListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &TargetListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.target.list",
// "parameterOrder": [
// "branch"
// ],
// "parameters": {
// "additionalBuildTarget": {
// "location": "query",
// "type": "string"
// },
// "branch": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "disabled": {
// "location": "query",
// "type": "boolean"
// },
// "environmentVariable": {
// "location": "query",
// "type": "string"
// },
// "environmentVariableKey": {
// "location": "query",
// "type": "string"
// },
// "launchcontrolName": {
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "product": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "branches/{branch}/targets",
// "response": {
// "$ref": "TargetListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *TargetListCall) Pages(ctx context.Context, f func(*TargetListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.testartifact.copyTo":
type TestartifactCopyToCall struct {
s *Service
buildType string
buildId string
target string
attemptId string
testResultId int64
artifactName string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// CopyTo:
func (r *TestartifactService) CopyTo(buildType string, buildId string, target string, attemptId string, testResultId int64, artifactName string) *TestartifactCopyToCall {
c := &TestartifactCopyToCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildType = buildType
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.testResultId = testResultId
c.artifactName = artifactName
return c
}
// DestinationBucket sets the optional parameter "destinationBucket":
func (c *TestartifactCopyToCall) DestinationBucket(destinationBucket string) *TestartifactCopyToCall {
c.urlParams_.Set("destinationBucket", destinationBucket)
return c
}
// DestinationPath sets the optional parameter "destinationPath":
func (c *TestartifactCopyToCall) DestinationPath(destinationPath string) *TestartifactCopyToCall {
c.urlParams_.Set("destinationPath", destinationPath)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TestartifactCopyToCall) Fields(s ...googleapi.Field) *TestartifactCopyToCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TestartifactCopyToCall) Context(ctx context.Context) *TestartifactCopyToCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TestartifactCopyToCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TestartifactCopyToCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts/{artifactName}/copyTo")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildType": c.buildType,
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"testResultId": strconv.FormatInt(c.testResultId, 10),
"artifactName": c.artifactName,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.testartifact.copyTo" call.
// Exactly one of *TestArtifactCopyToResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *TestArtifactCopyToResponse.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 (c *TestartifactCopyToCall) Do(opts ...googleapi.CallOption) (*TestArtifactCopyToResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &TestArtifactCopyToResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.testartifact.copyTo",
// "parameterOrder": [
// "buildType",
// "buildId",
// "target",
// "attemptId",
// "testResultId",
// "artifactName"
// ],
// "parameters": {
// "artifactName": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildType": {
// "enum": [
// "external",
// "local",
// "pending",
// "submitted",
// "train"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "path",
// "required": true,
// "type": "string"
// },
// "destinationBucket": {
// "location": "query",
// "type": "string"
// },
// "destinationPath": {
// "location": "query",
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "testResultId": {
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts/{artifactName}/copyTo",
// "response": {
// "$ref": "TestArtifactCopyToResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.testartifact.delete":
type TestartifactDeleteCall struct {
s *Service
buildType string
buildId string
target string
attemptId string
testResultId int64
resourceId string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Delete:
func (r *TestartifactService) Delete(buildType string, buildId string, target string, attemptId string, testResultId int64, resourceId string) *TestartifactDeleteCall {
c := &TestartifactDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildType = buildType
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.testResultId = testResultId
c.resourceId = resourceId
return c
}
// DeleteObject sets the optional parameter "deleteObject":
func (c *TestartifactDeleteCall) DeleteObject(deleteObject bool) *TestartifactDeleteCall {
c.urlParams_.Set("deleteObject", fmt.Sprint(deleteObject))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TestartifactDeleteCall) Fields(s ...googleapi.Field) *TestartifactDeleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TestartifactDeleteCall) Context(ctx context.Context) *TestartifactDeleteCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TestartifactDeleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TestartifactDeleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("DELETE", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildType": c.buildType,
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"testResultId": strconv.FormatInt(c.testResultId, 10),
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.testartifact.delete" call.
func (c *TestartifactDeleteCall) Do(opts ...googleapi.CallOption) error {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if err != nil {
return err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return err
}
return nil
// {
// "httpMethod": "DELETE",
// "id": "androidbuildinternal.testartifact.delete",
// "parameterOrder": [
// "buildType",
// "buildId",
// "target",
// "attemptId",
// "testResultId",
// "resourceId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildType": {
// "enum": [
// "external",
// "local",
// "pending",
// "submitted",
// "train"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "path",
// "required": true,
// "type": "string"
// },
// "deleteObject": {
// "default": "true",
// "location": "query",
// "type": "boolean"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "testResultId": {
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts/{resourceId}",
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.testartifact.get":
type TestartifactGetCall struct {
s *Service
buildType string
buildId string
target string
attemptId string
testResultId int64
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *TestartifactService) Get(buildType string, buildId string, target string, attemptId string, testResultId int64, resourceId string) *TestartifactGetCall {
c := &TestartifactGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildType = buildType
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.testResultId = testResultId
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TestartifactGetCall) Fields(s ...googleapi.Field) *TestartifactGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TestartifactGetCall) IfNoneMatch(entityTag string) *TestartifactGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *TestartifactGetCall) Context(ctx context.Context) *TestartifactGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TestartifactGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TestartifactGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildType": c.buildType,
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"testResultId": strconv.FormatInt(c.testResultId, 10),
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// 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 (c *TestartifactGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("media")
if err != nil {
return nil, err
}
if err := googleapi.CheckMediaResponse(res); err != nil {
res.Body.Close()
return nil, err
}
return res, nil
}
// Do executes the "androidbuildinternal.testartifact.get" call.
// Exactly one of *BuildArtifactMetadata or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildArtifactMetadata.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 (c *TestartifactGetCall) Do(opts ...googleapi.CallOption) (*BuildArtifactMetadata, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildArtifactMetadata{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.testartifact.get",
// "parameterOrder": [
// "buildType",
// "buildId",
// "target",
// "attemptId",
// "testResultId",
// "resourceId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildType": {
// "enum": [
// "external",
// "local",
// "pending",
// "submitted",
// "train"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "testResultId": {
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts/{resourceId}",
// "response": {
// "$ref": "BuildArtifactMetadata"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ],
// "supportsMediaDownload": true,
// "useMediaDownloadService": true
// }
}
// method id "androidbuildinternal.testartifact.list":
type TestartifactListCall struct {
s *Service
buildType string
buildId string
target string
attemptId string
testResultId int64
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *TestartifactService) List(buildType string, buildId string, target string, attemptId string, testResultId int64) *TestartifactListCall {
c := &TestartifactListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildType = buildType
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.testResultId = testResultId
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *TestartifactListCall) MaxResults(maxResults int64) *TestartifactListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *TestartifactListCall) PageToken(pageToken string) *TestartifactListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TestartifactListCall) Fields(s ...googleapi.Field) *TestartifactListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TestartifactListCall) IfNoneMatch(entityTag string) *TestartifactListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *TestartifactListCall) Context(ctx context.Context) *TestartifactListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TestartifactListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TestartifactListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildType": c.buildType,
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"testResultId": strconv.FormatInt(c.testResultId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.testartifact.list" call.
// Exactly one of *TestArtifactListResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *TestArtifactListResponse.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 (c *TestartifactListCall) Do(opts ...googleapi.CallOption) (*TestArtifactListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &TestArtifactListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.testartifact.list",
// "parameterOrder": [
// "buildType",
// "buildId",
// "target",
// "attemptId",
// "testResultId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildType": {
// "enum": [
// "external",
// "local",
// "pending",
// "submitted",
// "train"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "path",
// "required": true,
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "testResultId": {
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts",
// "response": {
// "$ref": "TestArtifactListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *TestartifactListCall) Pages(ctx context.Context, f func(*TestArtifactListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.testartifact.patch":
type TestartifactPatchCall struct {
s *Service
buildType string
buildId string
target string
attemptId string
testResultId int64
resourceId string
buildartifactmetadata *BuildArtifactMetadata
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *TestartifactService) Patch(buildType string, buildId string, target string, attemptId string, testResultId int64, resourceId string, buildartifactmetadata *BuildArtifactMetadata) *TestartifactPatchCall {
c := &TestartifactPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildType = buildType
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.testResultId = testResultId
c.resourceId = resourceId
c.buildartifactmetadata = buildartifactmetadata
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TestartifactPatchCall) Fields(s ...googleapi.Field) *TestartifactPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TestartifactPatchCall) Context(ctx context.Context) *TestartifactPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TestartifactPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TestartifactPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildartifactmetadata)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildType": c.buildType,
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"testResultId": strconv.FormatInt(c.testResultId, 10),
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.testartifact.patch" call.
// Exactly one of *BuildArtifactMetadata or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildArtifactMetadata.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 (c *TestartifactPatchCall) Do(opts ...googleapi.CallOption) (*BuildArtifactMetadata, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &BuildArtifactMetadata{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.testartifact.patch",
// "parameterOrder": [
// "buildType",
// "buildId",
// "target",
// "attemptId",
// "testResultId",
// "resourceId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildType": {
// "enum": [
// "external",
// "local",
// "pending",
// "submitted",
// "train"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "testResultId": {
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts/{resourceId}",
// "request": {
// "$ref": "BuildArtifactMetadata"
// },
// "response": {
// "$ref": "BuildArtifactMetadata"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.testartifact.update":
type TestartifactUpdateCall struct {
s *Service
buildType string
buildId string
target string
attemptId string
testResultId int64
resourceId string
buildartifactmetadata *BuildArtifactMetadata
urlParams_ gensupport.URLParams
mediaInfo_ *gensupport.MediaInfo
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *TestartifactService) Update(buildType string, buildId string, target string, attemptId string, testResultId int64, resourceId string, buildartifactmetadata *BuildArtifactMetadata) *TestartifactUpdateCall {
c := &TestartifactUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildType = buildType
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.testResultId = testResultId
c.resourceId = resourceId
c.buildartifactmetadata = buildartifactmetadata
return c
}
// Media specifies the media to upload in one or more chunks. The chunk
// size may be controlled by supplying a MediaOption generated by
// googleapi.ChunkSize. The chunk size defaults to
// googleapi.DefaultUploadChunkSize.The Content-Type header used in the
// upload request will be determined by sniffing the contents of r,
// unless a MediaOption generated by googleapi.ContentType is
// supplied.
// At most one of Media and ResumableMedia may be set.
func (c *TestartifactUpdateCall) Media(r io.Reader, options ...googleapi.MediaOption) *TestartifactUpdateCall {
if ct := c.buildartifactmetadata.ContentType; ct != "" {
options = append([]googleapi.MediaOption{googleapi.ContentType(ct)}, options...)
}
c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
return c
}
// ResumableMedia specifies the media to upload in chunks and can be
// canceled with ctx.
//
// Deprecated: use Media instead.
//
// 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.
func (c *TestartifactUpdateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *TestartifactUpdateCall {
c.ctx_ = ctx
c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
return c
}
// 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 (c *TestartifactUpdateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *TestartifactUpdateCall {
c.mediaInfo_.SetProgressUpdater(pu)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TestartifactUpdateCall) Fields(s ...googleapi.Field) *TestartifactUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TestartifactUpdateCall) Context(ctx context.Context) *TestartifactUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TestartifactUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TestartifactUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.buildartifactmetadata)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts/{resourceId}")
if c.mediaInfo_ != nil {
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
}
if body == nil {
body = new(bytes.Buffer)
reqHeaders.Set("Content-Type", "application/json")
}
body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
defer cleanup()
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
req.GetBody = getBody
googleapi.Expand(req.URL, map[string]string{
"buildType": c.buildType,
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"testResultId": strconv.FormatInt(c.testResultId, 10),
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.testartifact.update" call.
// Exactly one of *BuildArtifactMetadata or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *BuildArtifactMetadata.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 (c *TestartifactUpdateCall) Do(opts ...googleapi.CallOption) (*BuildArtifactMetadata, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
if rx != nil {
rx.Client = c.s.client
rx.UserAgent = c.s.userAgent()
ctx := c.ctx_
if ctx == nil {
ctx = context.TODO()
}
res, err = rx.Upload(ctx)
if err != nil {
return nil, err
}
defer res.Body.Close()
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
}
ret := &BuildArtifactMetadata{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.testartifact.update",
// "mediaUpload": {
// "accept": [
// "*/*"
// ],
// "maxSize": "10GB",
// "protocols": {
// "resumable": {
// "multipart": true,
// "path": "/resumable/upload/android/internal/build/v2beta1/builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts/{resourceId}"
// },
// "simple": {
// "multipart": true,
// "path": "/upload/android/internal/build/v2beta1/builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts/{resourceId}"
// }
// }
// },
// "parameterOrder": [
// "buildType",
// "buildId",
// "target",
// "attemptId",
// "testResultId",
// "resourceId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildType": {
// "enum": [
// "external",
// "local",
// "pending",
// "submitted",
// "train"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "testResultId": {
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildType}/{buildId}/{target}/attempts/{attemptId}/tests/{testResultId}/artifacts/{resourceId}",
// "request": {
// "$ref": "BuildArtifactMetadata"
// },
// "response": {
// "$ref": "BuildArtifactMetadata"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ],
// "supportsMediaUpload": true
// }
}
// method id "androidbuildinternal.testresult.get":
type TestresultGetCall struct {
s *Service
buildId string
target string
attemptId string
resourceId int64
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *TestresultService) Get(buildId string, target string, attemptId string, resourceId int64) *TestresultGetCall {
c := &TestresultGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TestresultGetCall) Fields(s ...googleapi.Field) *TestresultGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TestresultGetCall) IfNoneMatch(entityTag string) *TestresultGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *TestresultGetCall) Context(ctx context.Context) *TestresultGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TestresultGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TestresultGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{attemptId}/tests/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"resourceId": strconv.FormatInt(c.resourceId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.testresult.get" call.
// Exactly one of *TestResult or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *TestResult.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 (c *TestresultGetCall) Do(opts ...googleapi.CallOption) (*TestResult, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &TestResult{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.testresult.get",
// "parameterOrder": [
// "buildId",
// "target",
// "attemptId",
// "resourceId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{attemptId}/tests/{resourceId}",
// "response": {
// "$ref": "TestResult"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.testresult.insert":
type TestresultInsertCall struct {
s *Service
buildId string
target string
attemptId string
testresult *TestResult
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Insert:
func (r *TestresultService) Insert(buildId string, target string, attemptId string, testresult *TestResult) *TestresultInsertCall {
c := &TestresultInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.testresult = testresult
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TestresultInsertCall) Fields(s ...googleapi.Field) *TestresultInsertCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TestresultInsertCall) Context(ctx context.Context) *TestresultInsertCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TestresultInsertCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TestresultInsertCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.testresult)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{attemptId}/tests")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.testresult.insert" call.
// Exactly one of *TestResult or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *TestResult.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 (c *TestresultInsertCall) Do(opts ...googleapi.CallOption) (*TestResult, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &TestResult{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.testresult.insert",
// "parameterOrder": [
// "buildId",
// "target",
// "attemptId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{attemptId}/tests",
// "request": {
// "$ref": "TestResult"
// },
// "response": {
// "$ref": "TestResult"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.testresult.list":
type TestresultListCall struct {
s *Service
buildId string
target string
attemptId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *TestresultService) List(buildId string, target string, attemptId string) *TestresultListCall {
c := &TestresultListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.attemptId = attemptId
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *TestresultListCall) MaxResults(maxResults int64) *TestresultListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *TestresultListCall) PageToken(pageToken string) *TestresultListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Status sets the optional parameter "status":
//
// Possible values:
// "cancelled"
// "completeFail"
// "completePass"
// "error"
// "inProgress"
// "infraError"
// "unknown"
func (c *TestresultListCall) Status(status string) *TestresultListCall {
c.urlParams_.Set("status", status)
return c
}
// TestSuites sets the optional parameter "testSuites":
func (c *TestresultListCall) TestSuites(testSuites ...string) *TestresultListCall {
c.urlParams_.SetMulti("testSuites", append([]string{}, testSuites...))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TestresultListCall) Fields(s ...googleapi.Field) *TestresultListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TestresultListCall) IfNoneMatch(entityTag string) *TestresultListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *TestresultListCall) Context(ctx context.Context) *TestresultListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TestresultListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TestresultListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{attemptId}/tests")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.testresult.list" call.
// Exactly one of *TestResultListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *TestResultListResponse.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 (c *TestresultListCall) Do(opts ...googleapi.CallOption) (*TestResultListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &TestResultListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.testresult.list",
// "parameterOrder": [
// "buildId",
// "target",
// "attemptId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "status": {
// "enum": [
// "cancelled",
// "completeFail",
// "completePass",
// "error",
// "inProgress",
// "infraError",
// "unknown"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "testSuites": {
// "location": "query",
// "repeated": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{attemptId}/tests",
// "response": {
// "$ref": "TestResultListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *TestresultListCall) Pages(ctx context.Context, f func(*TestResultListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "androidbuildinternal.testresult.patch":
type TestresultPatchCall struct {
s *Service
buildId string
target string
attemptId string
resourceId int64
testresult *TestResult
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *TestresultService) Patch(buildId string, target string, attemptId string, resourceId int64, testresult *TestResult) *TestresultPatchCall {
c := &TestresultPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.resourceId = resourceId
c.testresult = testresult
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TestresultPatchCall) Fields(s ...googleapi.Field) *TestresultPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TestresultPatchCall) Context(ctx context.Context) *TestresultPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TestresultPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TestresultPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.testresult)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{attemptId}/tests/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"resourceId": strconv.FormatInt(c.resourceId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.testresult.patch" call.
// Exactly one of *TestResult or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *TestResult.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 (c *TestresultPatchCall) Do(opts ...googleapi.CallOption) (*TestResult, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &TestResult{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.testresult.patch",
// "parameterOrder": [
// "buildId",
// "target",
// "attemptId",
// "resourceId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{attemptId}/tests/{resourceId}",
// "request": {
// "$ref": "TestResult"
// },
// "response": {
// "$ref": "TestResult"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.testresult.update":
type TestresultUpdateCall struct {
s *Service
buildId string
target string
attemptId string
resourceId int64
testresult *TestResult
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *TestresultService) Update(buildId string, target string, attemptId string, resourceId int64, testresult *TestResult) *TestresultUpdateCall {
c := &TestresultUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.buildId = buildId
c.target = target
c.attemptId = attemptId
c.resourceId = resourceId
c.testresult = testresult
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *TestresultUpdateCall) Fields(s ...googleapi.Field) *TestresultUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *TestresultUpdateCall) Context(ctx context.Context) *TestresultUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *TestresultUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *TestresultUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.testresult)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "builds/{buildId}/{target}/attempts/{attemptId}/tests/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"buildId": c.buildId,
"target": c.target,
"attemptId": c.attemptId,
"resourceId": strconv.FormatInt(c.resourceId, 10),
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.testresult.update" call.
// Exactly one of *TestResult or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *TestResult.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 (c *TestresultUpdateCall) Do(opts ...googleapi.CallOption) (*TestResult, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &TestResult{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.testresult.update",
// "parameterOrder": [
// "buildId",
// "target",
// "attemptId",
// "resourceId"
// ],
// "parameters": {
// "attemptId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "buildId": {
// "location": "path",
// "required": true,
// "type": "string"
// },
// "resourceId": {
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "target": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "builds/{buildId}/{target}/attempts/{attemptId}/tests/{resourceId}",
// "request": {
// "$ref": "TestResult"
// },
// "response": {
// "$ref": "TestResult"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.worknode.complete":
type WorknodeCompleteCall struct {
s *Service
worknodecompleterequest *WorkNodeCompleteRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Complete:
func (r *WorknodeService) Complete(worknodecompleterequest *WorkNodeCompleteRequest) *WorknodeCompleteCall {
c := &WorknodeCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.worknodecompleterequest = worknodecompleterequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorknodeCompleteCall) Fields(s ...googleapi.Field) *WorknodeCompleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorknodeCompleteCall) Context(ctx context.Context) *WorknodeCompleteCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorknodeCompleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorknodeCompleteCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.worknodecompleterequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workNodes/complete")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.worknode.complete" call.
// Exactly one of *WorkNodeCompleteResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *WorkNodeCompleteResponse.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 (c *WorknodeCompleteCall) Do(opts ...googleapi.CallOption) (*WorkNodeCompleteResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkNodeCompleteResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.worknode.complete",
// "path": "workNodes/complete",
// "request": {
// "$ref": "WorkNodeCompleteRequest"
// },
// "response": {
// "$ref": "WorkNodeCompleteResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.worknode.fail":
type WorknodeFailCall struct {
s *Service
worknodefailrequest *WorkNodeFailRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Fail:
func (r *WorknodeService) Fail(worknodefailrequest *WorkNodeFailRequest) *WorknodeFailCall {
c := &WorknodeFailCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.worknodefailrequest = worknodefailrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorknodeFailCall) Fields(s ...googleapi.Field) *WorknodeFailCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorknodeFailCall) Context(ctx context.Context) *WorknodeFailCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorknodeFailCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorknodeFailCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.worknodefailrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workNodes/fail")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.worknode.fail" call.
// Exactly one of *WorkNodeFailResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *WorkNodeFailResponse.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 (c *WorknodeFailCall) Do(opts ...googleapi.CallOption) (*WorkNodeFailResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkNodeFailResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.worknode.fail",
// "path": "workNodes/fail",
// "request": {
// "$ref": "WorkNodeFailRequest"
// },
// "response": {
// "$ref": "WorkNodeFailResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.worknode.get":
type WorknodeGetCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *WorknodeService) Get(resourceId string) *WorknodeGetCall {
c := &WorknodeGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorknodeGetCall) Fields(s ...googleapi.Field) *WorknodeGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorknodeGetCall) IfNoneMatch(entityTag string) *WorknodeGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *WorknodeGetCall) Context(ctx context.Context) *WorknodeGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorknodeGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorknodeGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workNodes/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.worknode.get" call.
// Exactly one of *WorkNode or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *WorkNode.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 (c *WorknodeGetCall) Do(opts ...googleapi.CallOption) (*WorkNode, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkNode{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.worknode.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "workNodes/{resourceId}",
// "response": {
// "$ref": "WorkNode"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.worknode.list":
type WorknodeListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *WorknodeService) List() *WorknodeListCall {
c := &WorknodeListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// AvailabilityTimeBefore sets the optional parameter
// "availabilityTimeBefore":
func (c *WorknodeListCall) AvailabilityTimeBefore(availabilityTimeBefore int64) *WorknodeListCall {
c.urlParams_.Set("availabilityTimeBefore", fmt.Sprint(availabilityTimeBefore))
return c
}
// ChangeSetSpecId sets the optional parameter "changeSetSpecId":
func (c *WorknodeListCall) ChangeSetSpecId(changeSetSpecId string) *WorknodeListCall {
c.urlParams_.Set("changeSetSpecId", changeSetSpecId)
return c
}
// IsFinal sets the optional parameter "isFinal":
func (c *WorknodeListCall) IsFinal(isFinal bool) *WorknodeListCall {
c.urlParams_.Set("isFinal", fmt.Sprint(isFinal))
return c
}
// IsTimedOut sets the optional parameter "isTimedOut":
func (c *WorknodeListCall) IsTimedOut(isTimedOut bool) *WorknodeListCall {
c.urlParams_.Set("isTimedOut", fmt.Sprint(isTimedOut))
return c
}
// LastUpdatedAfter sets the optional parameter "lastUpdatedAfter":
func (c *WorknodeListCall) LastUpdatedAfter(lastUpdatedAfter int64) *WorknodeListCall {
c.urlParams_.Set("lastUpdatedAfter", fmt.Sprint(lastUpdatedAfter))
return c
}
// LastUpdatedBefore sets the optional parameter "lastUpdatedBefore":
func (c *WorknodeListCall) LastUpdatedBefore(lastUpdatedBefore int64) *WorknodeListCall {
c.urlParams_.Set("lastUpdatedBefore", fmt.Sprint(lastUpdatedBefore))
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *WorknodeListCall) MaxResults(maxResults int64) *WorknodeListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// NodeClass sets the optional parameter "nodeClass":
func (c *WorknodeListCall) NodeClass(nodeClass ...string) *WorknodeListCall {
c.urlParams_.SetMulti("nodeClass", append([]string{}, nodeClass...))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *WorknodeListCall) PageToken(pageToken string) *WorknodeListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Status sets the optional parameter "status":
//
// Possible values:
// "cancelled"
// "complete"
// "created"
// "failed"
// "pending"
// "running"
// "scheduled"
// "unknownWorkNodeStatus"
// "waiting"
func (c *WorknodeListCall) Status(status ...string) *WorknodeListCall {
c.urlParams_.SetMulti("status", append([]string{}, status...))
return c
}
// WorkExecutorTypes sets the optional parameter "workExecutorTypes":
//
// Possible values:
// "abssWorkerSmokeTest"
// "androidStudioBuild"
// "atpTest"
// "automergeMergePath"
// "bisectionFinished"
// "bisectionStep"
// "chaselistBackendSmokeTest"
// "dummyNode"
// "fetchChangesRequest"
// "gerritPollerMonitorRequest"
// "gerritSelfserviceOperations"
// "imageRequest"
// "mainlineConductor"
// "manifestAssembler"
// "mergeServiceOperations"
// "partialRerun"
// "pendingChangeBuild"
// "pendingChangeFinished"
// "presubmitAnalysis"
// "presubmitAnalysisFinished"
// "presubmitPreflight"
// "releaseRequest"
// "selfserviceOperations"
// "selfserviceSecureOperations"
// "signingAdminOperations"
// "signingAdminSecureOperations"
// "signingWorkerSmokeTest"
// "submittedBuild"
// "submittedBuildRequest"
// "testGroupFinished"
// "testProvider"
// "trybotFinished"
// "unknownWorkExecutorType"
func (c *WorknodeListCall) WorkExecutorTypes(workExecutorTypes ...string) *WorknodeListCall {
c.urlParams_.SetMulti("workExecutorTypes", append([]string{}, workExecutorTypes...))
return c
}
// WorkPlanId sets the optional parameter "workPlanId":
func (c *WorknodeListCall) WorkPlanId(workPlanId string) *WorknodeListCall {
c.urlParams_.Set("workPlanId", workPlanId)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorknodeListCall) Fields(s ...googleapi.Field) *WorknodeListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorknodeListCall) IfNoneMatch(entityTag string) *WorknodeListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *WorknodeListCall) Context(ctx context.Context) *WorknodeListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorknodeListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorknodeListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workNodes")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.worknode.list" call.
// Exactly one of *WorkNodeListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *WorkNodeListResponse.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 (c *WorknodeListCall) Do(opts ...googleapi.CallOption) (*WorkNodeListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkNodeListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.worknode.list",
// "parameters": {
// "availabilityTimeBefore": {
// "format": "int64",
// "location": "query",
// "type": "string"
// },
// "changeSetSpecId": {
// "location": "query",
// "type": "string"
// },
// "isFinal": {
// "location": "query",
// "type": "boolean"
// },
// "isTimedOut": {
// "location": "query",
// "type": "boolean"
// },
// "lastUpdatedAfter": {
// "format": "int64",
// "location": "query",
// "type": "string"
// },
// "lastUpdatedBefore": {
// "format": "int64",
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "nodeClass": {
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// },
// "status": {
// "enum": [
// "cancelled",
// "complete",
// "created",
// "failed",
// "pending",
// "running",
// "scheduled",
// "unknownWorkNodeStatus",
// "waiting"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "workExecutorTypes": {
// "enum": [
// "abssWorkerSmokeTest",
// "androidStudioBuild",
// "atpTest",
// "automergeMergePath",
// "bisectionFinished",
// "bisectionStep",
// "chaselistBackendSmokeTest",
// "dummyNode",
// "fetchChangesRequest",
// "gerritPollerMonitorRequest",
// "gerritSelfserviceOperations",
// "imageRequest",
// "mainlineConductor",
// "manifestAssembler",
// "mergeServiceOperations",
// "partialRerun",
// "pendingChangeBuild",
// "pendingChangeFinished",
// "presubmitAnalysis",
// "presubmitAnalysisFinished",
// "presubmitPreflight",
// "releaseRequest",
// "selfserviceOperations",
// "selfserviceSecureOperations",
// "signingAdminOperations",
// "signingAdminSecureOperations",
// "signingWorkerSmokeTest",
// "submittedBuild",
// "submittedBuildRequest",
// "testGroupFinished",
// "testProvider",
// "trybotFinished",
// "unknownWorkExecutorType"
// ],
// "enumDescriptions": [
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// "",
// ""
// ],
// "location": "query",
// "repeated": true,
// "type": "string"
// },
// "workPlanId": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "workNodes",
// "response": {
// "$ref": "WorkNodeListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.worknode.makeavailable":
type WorknodeMakeavailableCall struct {
s *Service
workNodeId string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Makeavailable:
func (r *WorknodeService) Makeavailable(workNodeId string) *WorknodeMakeavailableCall {
c := &WorknodeMakeavailableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.workNodeId = workNodeId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorknodeMakeavailableCall) Fields(s ...googleapi.Field) *WorknodeMakeavailableCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorknodeMakeavailableCall) Context(ctx context.Context) *WorknodeMakeavailableCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorknodeMakeavailableCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorknodeMakeavailableCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workNodes/{workNodeId}/makeAvailable")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"workNodeId": c.workNodeId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.worknode.makeavailable" call.
// Exactly one of *WorkNodeMakeAvailableResponse or error will be
// non-nil. Any non-2xx status code is an error. Response headers are in
// either *WorkNodeMakeAvailableResponse.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 (c *WorknodeMakeavailableCall) Do(opts ...googleapi.CallOption) (*WorkNodeMakeAvailableResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkNodeMakeAvailableResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.worknode.makeavailable",
// "parameterOrder": [
// "workNodeId"
// ],
// "parameters": {
// "workNodeId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "workNodes/{workNodeId}/makeAvailable",
// "response": {
// "$ref": "WorkNodeMakeAvailableResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.worknode.patch":
type WorknodePatchCall struct {
s *Service
resourceId string
worknode *WorkNode
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch:
func (r *WorknodeService) Patch(resourceId string, worknode *WorkNode) *WorknodePatchCall {
c := &WorknodePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.worknode = worknode
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorknodePatchCall) Fields(s ...googleapi.Field) *WorknodePatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorknodePatchCall) Context(ctx context.Context) *WorknodePatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorknodePatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorknodePatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.worknode)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workNodes/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.worknode.patch" call.
// Exactly one of *WorkNode or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *WorkNode.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 (c *WorknodePatchCall) Do(opts ...googleapi.CallOption) (*WorkNode, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkNode{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PATCH",
// "id": "androidbuildinternal.worknode.patch",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "workNodes/{resourceId}",
// "request": {
// "$ref": "WorkNode"
// },
// "response": {
// "$ref": "WorkNode"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.worknode.pop":
type WorknodePopCall struct {
s *Service
worknodepoprequest *WorkNodePopRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Pop:
func (r *WorknodeService) Pop(worknodepoprequest *WorkNodePopRequest) *WorknodePopCall {
c := &WorknodePopCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.worknodepoprequest = worknodepoprequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorknodePopCall) Fields(s ...googleapi.Field) *WorknodePopCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorknodePopCall) Context(ctx context.Context) *WorknodePopCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorknodePopCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorknodePopCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.worknodepoprequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workNodes/pop")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.worknode.pop" call.
// Exactly one of *WorkNodePopResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *WorkNodePopResponse.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 (c *WorknodePopCall) Do(opts ...googleapi.CallOption) (*WorkNodePopResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkNodePopResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.worknode.pop",
// "path": "workNodes/pop",
// "request": {
// "$ref": "WorkNodePopRequest"
// },
// "response": {
// "$ref": "WorkNodePopResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.worknode.removepii":
type WorknodeRemovepiiCall struct {
s *Service
workNodeId string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Removepii:
func (r *WorknodeService) Removepii(workNodeId string) *WorknodeRemovepiiCall {
c := &WorknodeRemovepiiCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.workNodeId = workNodeId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorknodeRemovepiiCall) Fields(s ...googleapi.Field) *WorknodeRemovepiiCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorknodeRemovepiiCall) Context(ctx context.Context) *WorknodeRemovepiiCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorknodeRemovepiiCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorknodeRemovepiiCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workNodes/{workNodeId}/removePii")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"workNodeId": c.workNodeId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.worknode.removepii" call.
// Exactly one of *WorkNodeRemovePiiResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *WorkNodeRemovePiiResponse.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 (c *WorknodeRemovepiiCall) Do(opts ...googleapi.CallOption) (*WorkNodeRemovePiiResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkNodeRemovePiiResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.worknode.removepii",
// "parameterOrder": [
// "workNodeId"
// ],
// "parameters": {
// "workNodeId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "workNodes/{workNodeId}/removePii",
// "response": {
// "$ref": "WorkNodeRemovePiiResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.worknode.touch":
type WorknodeTouchCall struct {
s *Service
workNodeId string
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Touch:
func (r *WorknodeService) Touch(workNodeId string) *WorknodeTouchCall {
c := &WorknodeTouchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.workNodeId = workNodeId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorknodeTouchCall) Fields(s ...googleapi.Field) *WorknodeTouchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorknodeTouchCall) Context(ctx context.Context) *WorknodeTouchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorknodeTouchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorknodeTouchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workNodes/{workNodeId}/touch")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"workNodeId": c.workNodeId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.worknode.touch" call.
// Exactly one of *WorkNodeTouchResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *WorkNodeTouchResponse.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 (c *WorknodeTouchCall) Do(opts ...googleapi.CallOption) (*WorkNodeTouchResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkNodeTouchResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.worknode.touch",
// "parameterOrder": [
// "workNodeId"
// ],
// "parameters": {
// "workNodeId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "workNodes/{workNodeId}/touch",
// "response": {
// "$ref": "WorkNodeTouchResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.worknode.update":
type WorknodeUpdateCall struct {
s *Service
resourceId string
worknode *WorkNode
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Update:
func (r *WorknodeService) Update(resourceId string, worknode *WorkNode) *WorknodeUpdateCall {
c := &WorknodeUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
c.worknode = worknode
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorknodeUpdateCall) Fields(s ...googleapi.Field) *WorknodeUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorknodeUpdateCall) Context(ctx context.Context) *WorknodeUpdateCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorknodeUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorknodeUpdateCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.worknode)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workNodes/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PUT", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.worknode.update" call.
// Exactly one of *WorkNode or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *WorkNode.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 (c *WorknodeUpdateCall) Do(opts ...googleapi.CallOption) (*WorkNode, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkNode{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "PUT",
// "id": "androidbuildinternal.worknode.update",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "workNodes/{resourceId}",
// "request": {
// "$ref": "WorkNode"
// },
// "response": {
// "$ref": "WorkNode"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.workplan.addnodes":
type WorkplanAddnodesCall struct {
s *Service
workplanaddnodesrequest *WorkPlanAddNodesRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Addnodes:
func (r *WorkplanService) Addnodes(workplanaddnodesrequest *WorkPlanAddNodesRequest) *WorkplanAddnodesCall {
c := &WorkplanAddnodesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.workplanaddnodesrequest = workplanaddnodesrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorkplanAddnodesCall) Fields(s ...googleapi.Field) *WorkplanAddnodesCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorkplanAddnodesCall) Context(ctx context.Context) *WorkplanAddnodesCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorkplanAddnodesCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorkplanAddnodesCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.workplanaddnodesrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workPlans/addNodes")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.workplan.addnodes" call.
// Exactly one of *WorkPlanAddNodesResponse or error will be non-nil.
// Any non-2xx status code is an error. Response headers are in either
// *WorkPlanAddNodesResponse.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 (c *WorkplanAddnodesCall) Do(opts ...googleapi.CallOption) (*WorkPlanAddNodesResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkPlanAddNodesResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.workplan.addnodes",
// "path": "workPlans/addNodes",
// "request": {
// "$ref": "WorkPlanAddNodesRequest"
// },
// "response": {
// "$ref": "WorkPlanAddNodesResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.workplan.createwithnodes":
type WorkplanCreatewithnodesCall struct {
s *Service
workplancreatewithnodesrequest *WorkPlanCreateWithNodesRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Createwithnodes:
func (r *WorkplanService) Createwithnodes(workplancreatewithnodesrequest *WorkPlanCreateWithNodesRequest) *WorkplanCreatewithnodesCall {
c := &WorkplanCreatewithnodesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.workplancreatewithnodesrequest = workplancreatewithnodesrequest
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorkplanCreatewithnodesCall) Fields(s ...googleapi.Field) *WorkplanCreatewithnodesCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorkplanCreatewithnodesCall) Context(ctx context.Context) *WorkplanCreatewithnodesCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorkplanCreatewithnodesCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorkplanCreatewithnodesCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.workplancreatewithnodesrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workPlans/createWithNodes")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.workplan.createwithnodes" call.
// Exactly one of *WorkPlanCreateWithNodesResponse or error will be
// non-nil. Any non-2xx status code is an error. Response headers are in
// either *WorkPlanCreateWithNodesResponse.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 (c *WorkplanCreatewithnodesCall) Do(opts ...googleapi.CallOption) (*WorkPlanCreateWithNodesResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkPlanCreateWithNodesResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "POST",
// "id": "androidbuildinternal.workplan.createwithnodes",
// "path": "workPlans/createWithNodes",
// "request": {
// "$ref": "WorkPlanCreateWithNodesRequest"
// },
// "response": {
// "$ref": "WorkPlanCreateWithNodesResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.workplan.get":
type WorkplanGetCall struct {
s *Service
resourceId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// Get:
func (r *WorkplanService) Get(resourceId string) *WorkplanGetCall {
c := &WorkplanGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.resourceId = resourceId
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorkplanGetCall) Fields(s ...googleapi.Field) *WorkplanGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorkplanGetCall) IfNoneMatch(entityTag string) *WorkplanGetCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *WorkplanGetCall) Context(ctx context.Context) *WorkplanGetCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorkplanGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorkplanGetCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workPlans/{resourceId}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"resourceId": c.resourceId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.workplan.get" call.
// Exactly one of *WorkPlan or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *WorkPlan.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 (c *WorkplanGetCall) Do(opts ...googleapi.CallOption) (*WorkPlan, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkPlan{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.workplan.get",
// "parameterOrder": [
// "resourceId"
// ],
// "parameters": {
// "resourceId": {
// "location": "path",
// "required": true,
// "type": "string"
// }
// },
// "path": "workPlans/{resourceId}",
// "response": {
// "$ref": "WorkPlan"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// method id "androidbuildinternal.workplan.list":
type WorkplanListCall struct {
s *Service
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List:
func (r *WorkplanService) List() *WorkplanListCall {
c := &WorkplanListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
}
// MaxResults sets the optional parameter "maxResults":
func (c *WorkplanListCall) MaxResults(maxResults int64) *WorkplanListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// PageToken sets the optional parameter "pageToken":
func (c *WorkplanListCall) PageToken(pageToken string) *WorkplanListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *WorkplanListCall) Fields(s ...googleapi.Field) *WorkplanListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// 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 (c *WorkplanListCall) IfNoneMatch(entityTag string) *WorkplanListCall {
c.ifNoneMatch_ = entityTag
return c
}
// 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 (c *WorkplanListCall) Context(ctx context.Context) *WorkplanListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *WorkplanListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *WorkplanListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/1.13.5 gdcl/20190905")
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "workPlans")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "androidbuildinternal.workplan.list" call.
// Exactly one of *WorkPlanListResponse or error will be non-nil. Any
// non-2xx status code is an error. Response headers are in either
// *WorkPlanListResponse.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 (c *WorkplanListCall) Do(opts ...googleapi.CallOption) (*WorkPlanListResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &WorkPlanListResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "httpMethod": "GET",
// "id": "androidbuildinternal.workplan.list",
// "parameters": {
// "maxResults": {
// "default": "10",
// "format": "uint32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "location": "query",
// "type": "string"
// }
// },
// "path": "workPlans",
// "response": {
// "$ref": "WorkPlanListResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/androidbuild.internal"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *WorkplanListCall) Pages(ctx context.Context, f func(*WorkPlanListResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}