-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
bigtableadmin-gen.go
637 lines (561 loc) · 24.8 KB
/
bigtableadmin-gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
// 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 bigtableadmin provides access to the Cloud Bigtable Admin API.
//
// For product documentation, see: https://cloud.google.com/bigtable/
//
// Creating a client
//
// Usage example:
//
// import "google.golang.org/api/bigtableadmin/v1"
// ...
// ctx := context.Background()
// bigtableadminService, err := bigtableadmin.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:
//
// bigtableadminService, err := bigtableadmin.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, ...)
// bigtableadminService, err := bigtableadmin.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See https://godoc.org/google.golang.org/api/option/ for details on options.
package bigtableadmin // import "google.golang.org/api/bigtableadmin/v1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
googleapi "google.golang.org/api/googleapi"
gensupport "google.golang.org/api/internal/gensupport"
option "google.golang.org/api/option"
internaloption "google.golang.org/api/option/internaloption"
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
var _ = internaloption.WithDefaultEndpoint
const apiId = "bigtableadmin:v1"
const apiName = "bigtableadmin"
const apiVersion = "v1"
const basePath = "https://bigtableadmin.googleapis.com/"
// NewService creates a new Service.
func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
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}
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
// Cluster: A resizable group of nodes in a particular cloud location,
// capable
// of serving all Tables in the parent
// Instance.
type Cluster struct {
// DefaultStorageType: Immutable. The type of storage used by this
// cluster to serve its
// parent instance's tables, unless explicitly overridden.
//
// Possible values:
// "STORAGE_TYPE_UNSPECIFIED" - The user did not specify a storage
// type.
// "SSD" - Flash (SSD) storage should be used.
// "HDD" - Magnetic drive (HDD) storage should be used.
DefaultStorageType string `json:"defaultStorageType,omitempty"`
// Location: Immutable. The location where this cluster's nodes and
// storage reside. For best
// performance, clients should be located as close as possible to
// this
// cluster. Currently only zones are supported, so values should be of
// the
// form `projects/{project}/locations/{zone}`.
Location string `json:"location,omitempty"`
// Name: The unique name of the cluster. Values are of the
// form
// `projects/{project}/instances/{instance}/clusters/a-z*`.
Name string `json:"name,omitempty"`
// ServeNodes: Required. The number of nodes allocated to this cluster.
// More nodes enable higher
// throughput and more consistent performance.
ServeNodes int64 `json:"serveNodes,omitempty"`
// State: Output only. The current state of the cluster.
//
// Possible values:
// "STATE_NOT_KNOWN" - The state of the cluster could not be
// determined.
// "READY" - The cluster has been successfully created and is ready to
// serve requests.
// "CREATING" - The cluster is currently being created, and may be
// destroyed
// if the creation process encounters an error.
// A cluster may not be able to serve requests while being created.
// "RESIZING" - The cluster is currently being resized, and may revert
// to its previous
// node count if the process encounters an error.
// A cluster is still capable of serving requests while being
// resized,
// but may exhibit performance as if its number of allocated nodes
// is
// between the starting and requested states.
// "DISABLED" - The cluster has no backing nodes. The data (tables)
// still
// exist, but no operations can be performed on the cluster.
State string `json:"state,omitempty"`
// ForceSendFields is a list of field names (e.g. "DefaultStorageType")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DefaultStorageType") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Cluster) MarshalJSON() ([]byte, error) {
type NoMethod Cluster
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateClusterMetadata: The metadata for the Operation returned by
// CreateCluster.
type CreateClusterMetadata struct {
// FinishTime: The time at which the operation failed or was completed
// successfully.
FinishTime string `json:"finishTime,omitempty"`
// OriginalRequest: The request that prompted the initiation of this
// CreateCluster operation.
OriginalRequest *CreateClusterRequest `json:"originalRequest,omitempty"`
// RequestTime: The time at which the original request was received.
RequestTime string `json:"requestTime,omitempty"`
// Tables: Keys: the full `name` of each table that existed in the
// instance when
// CreateCluster was first called,
// i.e.
// `projects/<project>/instances/<instance>/tables/<table>`. Any table
// added
// to the instance by a later API call will be created in the new
// cluster by
// that API call, not this one.
//
// Values: information on how much of a table's data has been copied to
// the
// newly-created cluster so far.
Tables map[string]TableProgress `json:"tables,omitempty"`
// ForceSendFields is a list of field names (e.g. "FinishTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FinishTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateClusterMetadata) MarshalJSON() ([]byte, error) {
type NoMethod CreateClusterMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateClusterRequest: Request message for
// BigtableInstanceAdmin.CreateCluster.
type CreateClusterRequest struct {
// Cluster: Required. The cluster to be created.
// Fields marked `OutputOnly` must be left blank.
Cluster *Cluster `json:"cluster,omitempty"`
// ClusterId: Required. The ID to be used when referring to the new
// cluster within its instance,
// e.g., just `mycluster` rather
// than
// `projects/myproject/instances/myinstance/clusters/mycluster`.
ClusterId string `json:"clusterId,omitempty"`
// Parent: Required. The unique name of the instance in which to create
// the new cluster.
// Values are of the form
// `projects/{project}/instances/{instance}`.
Parent string `json:"parent,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 *CreateClusterRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateClusterRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateInstanceMetadata: The metadata for the Operation returned by
// CreateInstance.
type CreateInstanceMetadata struct {
// FinishTime: The time at which the operation failed or was completed
// successfully.
FinishTime string `json:"finishTime,omitempty"`
// OriginalRequest: The request that prompted the initiation of this
// CreateInstance operation.
OriginalRequest *CreateInstanceRequest `json:"originalRequest,omitempty"`
// RequestTime: The time at which the original request was received.
RequestTime string `json:"requestTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "FinishTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FinishTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateInstanceMetadata) MarshalJSON() ([]byte, error) {
type NoMethod CreateInstanceMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CreateInstanceRequest: Request message for
// BigtableInstanceAdmin.CreateInstance.
type CreateInstanceRequest struct {
// Clusters: Required. The clusters to be created within the instance,
// mapped by desired
// cluster ID, e.g., just `mycluster` rather
// than
// `projects/myproject/instances/myinstance/clusters/mycluster`.
// Fie
// lds marked `OutputOnly` must be left blank.
// Currently, at most four clusters can be specified.
Clusters map[string]Cluster `json:"clusters,omitempty"`
// Instance: Required. The instance to create.
// Fields marked `OutputOnly` must be left blank.
Instance *Instance `json:"instance,omitempty"`
// InstanceId: Required. The ID to be used when referring to the new
// instance within its project,
// e.g., just `myinstance` rather
// than
// `projects/myproject/instances/myinstance`.
InstanceId string `json:"instanceId,omitempty"`
// Parent: Required. The unique name of the project in which to create
// the new instance.
// Values are of the form `projects/{project}`.
Parent string `json:"parent,omitempty"`
// ForceSendFields is a list of field names (e.g. "Clusters") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Clusters") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CreateInstanceRequest) MarshalJSON() ([]byte, error) {
type NoMethod CreateInstanceRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Instance: A collection of Bigtable Tables and
// the resources that serve them.
// All tables in an instance are served from all
// Clusters in the instance.
type Instance struct {
// DisplayName: Required. The descriptive name for this instance as it
// appears in UIs.
// Can be changed at any time, but should be kept globally unique
// to avoid confusion.
DisplayName string `json:"displayName,omitempty"`
// Labels: Required. Labels are a flexible and lightweight mechanism for
// organizing cloud
// resources into groups that reflect a customer's organizational needs
// and
// deployment strategies. They can be used to filter resources and
// aggregate
// metrics.
//
// * Label keys must be between 1 and 63 characters long and must
// conform to
// the regular expression: `\p{Ll}\p{Lo}{0,62}`.
// * Label values must be between 0 and 63 characters long and must
// conform to
// the regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`.
// * No more than 64 labels can be associated with a given resource.
// * Keys and values must both be under 128 bytes.
Labels map[string]string `json:"labels,omitempty"`
// Name: The unique name of the instance. Values are of the
// form
// `projects/{project}/instances/a-z+[a-z0-9]`.
Name string `json:"name,omitempty"`
// State: Output only. The current state of the instance.
//
// Possible values:
// "STATE_NOT_KNOWN" - The state of the instance could not be
// determined.
// "READY" - The instance has been successfully created and can serve
// requests
// to its tables.
// "CREATING" - The instance is currently being created, and may be
// destroyed
// if the creation process encounters an error.
State string `json:"state,omitempty"`
// Type: Required. The type of the instance. Defaults to `PRODUCTION`.
//
// Possible values:
// "TYPE_UNSPECIFIED" - The type of the instance is unspecified. If
// set when creating an
// instance, a `PRODUCTION` instance will be created. If set when
// updating
// an instance, the type will be left unchanged.
// "PRODUCTION" - An instance meant for production use. `serve_nodes`
// must be set
// on the cluster.
// "DEVELOPMENT" - DEPRECATED: Prefer PRODUCTION for all use cases, as
// it no longer enforces
// a higher minimum node count than DEVELOPMENT.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "DisplayName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Instance) MarshalJSON() ([]byte, error) {
type NoMethod Instance
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PartialUpdateInstanceRequest: Request message for
// BigtableInstanceAdmin.PartialUpdateInstance.
type PartialUpdateInstanceRequest struct {
// Instance: Required. The Instance which will (partially) replace the
// current value.
Instance *Instance `json:"instance,omitempty"`
// UpdateMask: Required. The subset of Instance fields which should be
// replaced.
// Must be explicitly set.
UpdateMask string `json:"updateMask,omitempty"`
// ForceSendFields is a list of field names (e.g. "Instance") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Instance") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PartialUpdateInstanceRequest) MarshalJSON() ([]byte, error) {
type NoMethod PartialUpdateInstanceRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TableProgress: Progress info for copying a table's data to the new
// cluster.
type TableProgress struct {
// EstimatedCopiedBytes: Estimate of the number of bytes copied so far
// for this table.
// This will eventually reach 'estimated_size_bytes' unless the table
// copy
// is CANCELLED.
EstimatedCopiedBytes int64 `json:"estimatedCopiedBytes,omitempty,string"`
// EstimatedSizeBytes: Estimate of the size of the table to be copied.
EstimatedSizeBytes int64 `json:"estimatedSizeBytes,omitempty,string"`
// Possible values:
// "STATE_UNSPECIFIED"
// "PENDING" - The table has not yet begun copying to the new cluster.
// "COPYING" - The table is actively being copied to the new cluster.
// "COMPLETED" - The table has been fully copied to the new cluster.
// "CANCELLED" - The table was deleted before it finished copying to
// the new cluster.
// Note that tables deleted after completion will stay marked
// as
// COMPLETED, not CANCELLED.
State string `json:"state,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "EstimatedCopiedBytes") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "EstimatedCopiedBytes") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TableProgress) MarshalJSON() ([]byte, error) {
type NoMethod TableProgress
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UpdateAppProfileMetadata: The metadata for the Operation returned by
// UpdateAppProfile.
type UpdateAppProfileMetadata struct {
}
// UpdateClusterMetadata: The metadata for the Operation returned by
// UpdateCluster.
type UpdateClusterMetadata struct {
// FinishTime: The time at which the operation failed or was completed
// successfully.
FinishTime string `json:"finishTime,omitempty"`
// OriginalRequest: The request that prompted the initiation of this
// UpdateCluster operation.
OriginalRequest *Cluster `json:"originalRequest,omitempty"`
// RequestTime: The time at which the original request was received.
RequestTime string `json:"requestTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "FinishTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FinishTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UpdateClusterMetadata) MarshalJSON() ([]byte, error) {
type NoMethod UpdateClusterMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UpdateInstanceMetadata: The metadata for the Operation returned by
// UpdateInstance.
type UpdateInstanceMetadata struct {
// FinishTime: The time at which the operation failed or was completed
// successfully.
FinishTime string `json:"finishTime,omitempty"`
// OriginalRequest: The request that prompted the initiation of this
// UpdateInstance operation.
OriginalRequest *PartialUpdateInstanceRequest `json:"originalRequest,omitempty"`
// RequestTime: The time at which the original request was received.
RequestTime string `json:"requestTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "FinishTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "FinishTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UpdateInstanceMetadata) MarshalJSON() ([]byte, error) {
type NoMethod UpdateInstanceMetadata
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}