@@ -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
3536var _ = googleapi .Version
3637var _ = errors .New
3738var _ = strings .Replace
39+ var _ = internal .MarshalJSON
3840
3941const apiId = "admin:datatransfer_v1"
4042const 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