Skip to content

Commit a402444

Browse files
committed
google-api-go-client: fix breakage caused by d604dad
Change-Id: Iad8de83866bc60c5265d6dd784482e18a964bac9 Reviewed-on: https://code-review.googlesource.com/3510 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
1 parent 78786a0 commit a402444

151 files changed

Lines changed: 1054 additions & 3 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

adexchangebuyer/v1.2/adexchangebuyer-gen.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var _ = url.Parse
3636
var _ = googleapi.Version
3737
var _ = errors.New
3838
var _ = strings.Replace
39+
var _ = internal.MarshalJSON
3940

4041
const apiId = "adexchangebuyer:v1.2"
4142
const apiName = "adexchangebuyer"

adexchangebuyer/v1.3/adexchangebuyer-gen.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var _ = url.Parse
3636
var _ = googleapi.Version
3737
var _ = errors.New
3838
var _ = strings.Replace
39+
var _ = internal.MarshalJSON
3940

4041
const apiId = "adexchangebuyer:v1.3"
4142
const apiName = "adexchangebuyer"

adexchangebuyer/v1.4/adexchangebuyer-gen.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var _ = url.Parse
3636
var _ = googleapi.Version
3737
var _ = errors.New
3838
var _ = strings.Replace
39+
var _ = internal.MarshalJSON
3940

4041
const apiId = "adexchangebuyer:v1.4"
4142
const apiName = "adexchangebuyer"

adexchangeseller/v1.1/adexchangeseller-gen.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var _ = url.Parse
3636
var _ = googleapi.Version
3737
var _ = errors.New
3838
var _ = strings.Replace
39+
var _ = internal.MarshalJSON
3940

4041
const apiId = "adexchangeseller:v1.1"
4142
const apiName = "adexchangeseller"

adexchangeseller/v1/adexchangeseller-gen.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var _ = url.Parse
3636
var _ = googleapi.Version
3737
var _ = errors.New
3838
var _ = strings.Replace
39+
var _ = internal.MarshalJSON
3940

4041
const apiId = "adexchangeseller:v1"
4142
const apiName = "adexchangeseller"

adexchangeseller/v2.0/adexchangeseller-gen.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ var _ = url.Parse
3636
var _ = googleapi.Version
3737
var _ = errors.New
3838
var _ = strings.Replace
39+
var _ = internal.MarshalJSON
3940

4041
const apiId = "adexchangeseller:v2.0"
4142
const apiName = "adexchangeseller"

admin/datatransfer/v1/admin-gen.go

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"golang.org/x/net/context"
1818
"golang.org/x/net/context/ctxhttp"
1919
"google.golang.org/api/googleapi"
20+
"google.golang.org/api/internal"
2021
"io"
2122
"net/http"
2223
"net/url"
@@ -35,6 +36,7 @@ var _ = url.Parse
3536
var _ = googleapi.Version
3637
var _ = errors.New
3738
var _ = strings.Replace
39+
var _ = internal.MarshalJSON
3840

3941
const apiId = "admin:datatransfer_v1"
4042
const apiName = "admin"
@@ -113,6 +115,20 @@ type Application struct {
113115
// application. These parameters can be used to select the data of the
114116
// user in this application to be transfered.
115117
TransferParams []*ApplicationTransferParam `json:"transferParams,omitempty"`
118+
119+
// ForceSendFields is a list of field names (e.g. "Etag") to
120+
// unconditionally include in API requests. By default, fields with
121+
// empty values are omitted from API requests. However, any non-pointer,
122+
// non-interface field appearing in ForceSendFields will be sent to the
123+
// server regardless of whether the field is empty or not. This may be
124+
// used to include empty fields in Patch requests.
125+
ForceSendFields []string `json:"-"`
126+
}
127+
128+
func (s *Application) MarshalJSON() ([]byte, error) {
129+
type noMethod Application
130+
raw := noMethod(*s)
131+
return internal.MarshalJSON(raw, s.ForceSendFields)
116132
}
117133

118134
// ApplicationDataTransfer: Template to map fields of
@@ -129,6 +145,20 @@ type ApplicationDataTransfer struct {
129145
// ApplicationTransferStatus: Current status of transfer for this
130146
// application. (Read-only)
131147
ApplicationTransferStatus string `json:"applicationTransferStatus,omitempty"`
148+
149+
// ForceSendFields is a list of field names (e.g. "ApplicationId") to
150+
// unconditionally include in API requests. By default, fields with
151+
// empty values are omitted from API requests. However, any non-pointer,
152+
// non-interface field appearing in ForceSendFields will be sent to the
153+
// server regardless of whether the field is empty or not. This may be
154+
// used to include empty fields in Patch requests.
155+
ForceSendFields []string `json:"-"`
156+
}
157+
158+
func (s *ApplicationDataTransfer) MarshalJSON() ([]byte, error) {
159+
type noMethod ApplicationDataTransfer
160+
raw := noMethod(*s)
161+
return internal.MarshalJSON(raw, s.ForceSendFields)
132162
}
133163

134164
// ApplicationTransferParam: Template for application transfer
@@ -140,6 +170,20 @@ type ApplicationTransferParam struct {
140170
// Value: The value of the coressponding transfer parameter. eg:
141171
// 'PRIVATE' or 'SHARED'
142172
Value []string `json:"value,omitempty"`
173+
174+
// ForceSendFields is a list of field names (e.g. "Key") to
175+
// unconditionally include in API requests. By default, fields with
176+
// empty values are omitted from API requests. However, any non-pointer,
177+
// non-interface field appearing in ForceSendFields will be sent to the
178+
// server regardless of whether the field is empty or not. This may be
179+
// used to include empty fields in Patch requests.
180+
ForceSendFields []string `json:"-"`
181+
}
182+
183+
func (s *ApplicationTransferParam) MarshalJSON() ([]byte, error) {
184+
type noMethod ApplicationTransferParam
185+
raw := noMethod(*s)
186+
return internal.MarshalJSON(raw, s.ForceSendFields)
143187
}
144188

145189
// ApplicationsListResponse: Template for a collection of Applications.
@@ -157,6 +201,20 @@ type ApplicationsListResponse struct {
157201
// NextPageToken: Continuation token which will be used to specify next
158202
// page in list API.
159203
NextPageToken string `json:"nextPageToken,omitempty"`
204+
205+
// ForceSendFields is a list of field names (e.g. "Applications") to
206+
// unconditionally include in API requests. By default, fields with
207+
// empty values are omitted from API requests. However, any non-pointer,
208+
// non-interface field appearing in ForceSendFields will be sent to the
209+
// server regardless of whether the field is empty or not. This may be
210+
// used to include empty fields in Patch requests.
211+
ForceSendFields []string `json:"-"`
212+
}
213+
214+
func (s *ApplicationsListResponse) MarshalJSON() ([]byte, error) {
215+
type noMethod ApplicationsListResponse
216+
raw := noMethod(*s)
217+
return internal.MarshalJSON(raw, s.ForceSendFields)
160218
}
161219

162220
// DataTransfer: The JSON template for a DataTransfer resource.
@@ -189,6 +247,21 @@ type DataTransfer struct {
189247
// RequestTime: The time at which the data transfer was requested
190248
// (Read-only).
191249
RequestTime string `json:"requestTime,omitempty"`
250+
251+
// ForceSendFields is a list of field names (e.g.
252+
// "ApplicationDataTransfers") to unconditionally include in API
253+
// requests. By default, fields with empty values are omitted from API
254+
// requests. However, any non-pointer, non-interface field appearing in
255+
// ForceSendFields will be sent to the server regardless of whether the
256+
// field is empty or not. This may be used to include empty fields in
257+
// Patch requests.
258+
ForceSendFields []string `json:"-"`
259+
}
260+
261+
func (s *DataTransfer) MarshalJSON() ([]byte, error) {
262+
type noMethod DataTransfer
263+
raw := noMethod(*s)
264+
return internal.MarshalJSON(raw, s.ForceSendFields)
192265
}
193266

194267
// DataTransfersListResponse: Template for a collection of DataTransfer
@@ -207,6 +280,20 @@ type DataTransfersListResponse struct {
207280
// NextPageToken: Continuation token which will be used to specify next
208281
// page in list API.
209282
NextPageToken string `json:"nextPageToken,omitempty"`
283+
284+
// ForceSendFields is a list of field names (e.g. "DataTransfers") to
285+
// unconditionally include in API requests. By default, fields with
286+
// empty values are omitted from API requests. However, any non-pointer,
287+
// non-interface field appearing in ForceSendFields will be sent to the
288+
// server regardless of whether the field is empty or not. This may be
289+
// used to include empty fields in Patch requests.
290+
ForceSendFields []string `json:"-"`
291+
}
292+
293+
func (s *DataTransfersListResponse) MarshalJSON() ([]byte, error) {
294+
type noMethod DataTransfersListResponse
295+
raw := noMethod(*s)
296+
return internal.MarshalJSON(raw, s.ForceSendFields)
210297
}
211298

212299
// method id "datatransfer.applications.get":

0 commit comments

Comments
 (0)