-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
servicenetworking-gen.go
4676 lines (4417 loc) · 229 KB
/
servicenetworking-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
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2024 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 servicenetworking provides access to the Service Networking API.
//
// For product documentation, see: https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started
//
// # Library status
//
// These client libraries are officially supported by Google. However, this
// library is considered complete and is in maintenance mode. This means
// that we will address critical bugs and security issues but will not add
// any new features.
//
// When possible, we recommend using our newer
// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
// that are still actively being worked and iterated on.
//
// # Creating a client
//
// Usage example:
//
// import "google.golang.org/api/servicenetworking/v1beta"
// ...
// ctx := context.Background()
// servicenetworkingService, err := servicenetworking.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
//
// By default, all available scopes (see "Constants") are used to authenticate.
// To restrict scopes, use [google.golang.org/api/option.WithScopes]:
//
// servicenetworkingService, err := servicenetworking.NewService(ctx, option.WithScopes(servicenetworking.ServiceManagementScope))
//
// To use an API key for authentication (note: some APIs do not support API
// keys), use [google.golang.org/api/option.WithAPIKey]:
//
// servicenetworkingService, err := servicenetworking.NewService(ctx, option.WithAPIKey("AIza..."))
//
// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
// flow, use [google.golang.org/api/option.WithTokenSource]:
//
// config := &oauth2.Config{...}
// // ...
// token, err := config.Exchange(ctx, ...)
// servicenetworkingService, err := servicenetworking.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See [google.golang.org/api/option.ClientOption] for details on options.
package servicenetworking // import "google.golang.org/api/servicenetworking/v1beta"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
googleapi "google.golang.org/api/googleapi"
internal "google.golang.org/api/internal"
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
var _ = internal.Version
const apiId = "servicenetworking:v1beta"
const apiName = "servicenetworking"
const apiVersion = "v1beta"
const basePath = "https://servicenetworking.googleapis.com/"
const basePathTemplate = "https://servicenetworking.UNIVERSE_DOMAIN/"
const mtlsBasePath = "https://servicenetworking.mtls.googleapis.com/"
// OAuth2 scopes used by this API.
const (
// See, edit, configure, and delete your Google Cloud data and see the email
// address for your Google Account.
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
// Manage your Google API service configuration
ServiceManagementScope = "https://www.googleapis.com/auth/service.management"
)
// NewService creates a new APIService.
func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) {
scopesOption := internaloption.WithDefaultScopes(
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/service.management",
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
opts = append(opts, internaloption.EnableNewAuthLibrary())
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 APIService. 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) (*APIService, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &APIService{client: client, BasePath: basePath}
s.Operations = NewOperationsService(s)
s.Services = NewServicesService(s)
return s, nil
}
type APIService struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Operations *OperationsService
Services *ServicesService
}
func (s *APIService) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewOperationsService(s *APIService) *OperationsService {
rs := &OperationsService{s: s}
return rs
}
type OperationsService struct {
s *APIService
}
func NewServicesService(s *APIService) *ServicesService {
rs := &ServicesService{s: s}
rs.Connections = NewServicesConnectionsService(s)
return rs
}
type ServicesService struct {
s *APIService
Connections *ServicesConnectionsService
}
func NewServicesConnectionsService(s *APIService) *ServicesConnectionsService {
rs := &ServicesConnectionsService{s: s}
return rs
}
type ServicesConnectionsService struct {
s *APIService
}
// AddDnsRecordSetMetadata: Metadata provided through GetOperation request for
// the LRO generated by AddDnsRecordSet API
type AddDnsRecordSetMetadata struct {
}
// AddDnsZoneMetadata: Metadata provided through GetOperation request for the
// LRO generated by AddDnsZone API
type AddDnsZoneMetadata struct {
}
// AddDnsZoneResponse: Represents managed DNS zones created in the shared
// producer host and consumer projects.
type AddDnsZoneResponse struct {
// ConsumerPeeringZone: The DNS peering zone created in the consumer project.
ConsumerPeeringZone *DnsZone `json:"consumerPeeringZone,omitempty"`
// ProducerPrivateZone: The private DNS zone created in the shared producer
// host project.
ProducerPrivateZone *DnsZone `json:"producerPrivateZone,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConsumerPeeringZone") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ConsumerPeeringZone") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s AddDnsZoneResponse) MarshalJSON() ([]byte, error) {
type NoMethod AddDnsZoneResponse
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// AddRolesMetadata: Metadata provided through GetOperation request for the LRO
// generated by AddRoles API
type AddRolesMetadata struct {
}
// AddRolesResponse: Represents IAM roles added to the shared VPC host project.
type AddRolesResponse struct {
// PolicyBinding: Required. List of policy bindings that were added to the
// shared VPC host project.
PolicyBinding []*PolicyBinding `json:"policyBinding,omitempty"`
// ForceSendFields is a list of field names (e.g. "PolicyBinding") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "PolicyBinding") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s AddRolesResponse) MarshalJSON() ([]byte, error) {
type NoMethod AddRolesResponse
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// AddSubnetworkRequest: Request to create a subnetwork in a previously peered
// service network.
type AddSubnetworkRequest struct {
// Consumer: Required. A resource that represents the service consumer, such as
// `projects/123456`. The project number can be different from the value in the
// consumer network parameter. For example, the network might be part of a
// Shared VPC network. In those cases, Service Networking validates that this
// resource belongs to that Shared VPC.
Consumer string `json:"consumer,omitempty"`
// ConsumerNetwork: Required. The name of the service consumer's VPC network.
// The network must have an existing private connection that was provisioned
// through the connections.create method. The name must be in the following
// format: `projects/{project}/global/networks/{network}`, where {project} is a
// project number, such as `12345`. {network} is the name of a VPC network in
// the project.
ConsumerNetwork string `json:"consumerNetwork,omitempty"`
// Description: An optional description of the subnet.
Description string `json:"description,omitempty"`
// IpPrefixLength: Required. The prefix length of the subnet's IP address
// range. Use CIDR range notation, such as `30` to provision a subnet with an
// `x.x.x.x/30` CIDR range. The IP address range is drawn from a pool of
// available ranges in the service consumer's allocated range.
IpPrefixLength int64 `json:"ipPrefixLength,omitempty"`
// Region: Required. The name of a region (/compute/docs/regions-zones) for the
// subnet, such `europe-west1`.
Region string `json:"region,omitempty"`
// RequestedAddress: Optional. The starting address of a range. The address
// must be a valid IPv4 address in the x.x.x.x format. This value combined with
// the IP prefix range is the CIDR range for the subnet. The range must be
// within the allocated range that is assigned to the private connection. If
// the CIDR range isn't available, the call fails.
RequestedAddress string `json:"requestedAddress,omitempty"`
// Subnetwork: Required. A name for the new subnet. For information about the
// naming requirements, see subnetwork
// (/compute/docs/reference/rest/v1/subnetworks) in the Compute API
// documentation.
Subnetwork string `json:"subnetwork,omitempty"`
// SubnetworkUsers: A list of members that are granted the
// `compute.networkUser` role on the subnet.
SubnetworkUsers []string `json:"subnetworkUsers,omitempty"`
// ForceSendFields is a list of field names (e.g. "Consumer") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Consumer") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s AddSubnetworkRequest) MarshalJSON() ([]byte, error) {
type NoMethod AddSubnetworkRequest
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Api: Api is a light-weight descriptor for an API Interface. Interfaces are
// also described as "protocol buffer services" in some contexts, such as by
// the "service" keyword in a .proto file, but they are different from API
// Services, which represent a concrete implementation of an interface as
// opposed to simply a description of methods and bindings. They are also
// sometimes simply referred to as "APIs" in other contexts, such as the name
// of this message itself. See https://cloud.google.com/apis/design/glossary
// for detailed terminology.
type Api struct {
// Methods: The methods of this interface, in unspecified order.
Methods []*Method `json:"methods,omitempty"`
// Mixins: Included interfaces. See Mixin.
Mixins []*Mixin `json:"mixins,omitempty"`
// Name: The fully qualified name of this interface, including package name
// followed by the interface's simple name.
Name string `json:"name,omitempty"`
// Options: Any metadata attached to the interface.
Options []*Option `json:"options,omitempty"`
// SourceContext: Source context for the protocol buffer service represented by
// this message.
SourceContext *SourceContext `json:"sourceContext,omitempty"`
// Syntax: The source syntax of the service.
//
// Possible values:
// "SYNTAX_PROTO2" - Syntax `proto2`.
// "SYNTAX_PROTO3" - Syntax `proto3`.
// "SYNTAX_EDITIONS" - Syntax `editions`.
Syntax string `json:"syntax,omitempty"`
// Version: A version string for this interface. If specified, must have the
// form `major-version.minor-version`, as in `1.10`. If the minor version is
// omitted, it defaults to zero. If the entire version field is empty, the
// major version is derived from the package name, as outlined below. If the
// field is not empty, the version in the package name will be verified to be
// consistent with what is provided here. The versioning schema uses semantic
// versioning (http://semver.org) where the major version number indicates a
// breaking change and the minor version an additive, non-breaking change. Both
// version numbers are signals to users what to expect from different versions,
// and should be carefully chosen based on the product plan. The major version
// is also reflected in the package name of the interface, which must end in
// `v`, as in `google.feature.v1`. For major versions 0 and 1, the suffix can
// be omitted. Zero major versions must only be used for experimental, non-GA
// interfaces.
Version string `json:"version,omitempty"`
// ForceSendFields is a list of field names (e.g. "Methods") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Methods") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s Api) MarshalJSON() ([]byte, error) {
type NoMethod Api
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// AuthProvider: Configuration for an authentication provider, including
// support for JSON Web Token (JWT)
// (https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
type AuthProvider struct {
// Audiences: The list of JWT audiences
// (https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
// that are allowed to access. A JWT containing any of these audiences will be
// accepted. When this setting is absent, JWTs with audiences: -
// "https://[service.name]/[google.protobuf.Api.name]" -
// "https://[service.name]/" will be accepted. For example, if no audiences are
// in the setting, LibraryService API will accept JWTs with the following
// audiences: -
// https://library-example.googleapis.com/google.example.library.v1.LibraryService
// - https://library-example.googleapis.com/ Example: audiences:
// bookstore_android.apps.googleusercontent.com,
// bookstore_web.apps.googleusercontent.com
Audiences string `json:"audiences,omitempty"`
// AuthorizationUrl: Redirect URL if JWT token is required but not present or
// is expired. Implement authorizationUrl of securityDefinitions in OpenAPI
// spec.
AuthorizationUrl string `json:"authorizationUrl,omitempty"`
// Id: The unique identifier of the auth provider. It will be referred to by
// `AuthRequirement.provider_id`. Example: "bookstore_auth".
Id string `json:"id,omitempty"`
// Issuer: Identifies the principal that issued the JWT. See
// https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
// Usually a URL or an email address. Example: https://securetoken.google.com
// Example: 1234567-compute@developer.gserviceaccount.com
Issuer string `json:"issuer,omitempty"`
// JwksUri: URL of the provider's public key set to validate signature of the
// JWT. See OpenID Discovery
// (https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
// Optional if the key set document: - can be retrieved from OpenID Discovery
// (https://openid.net/specs/openid-connect-discovery-1_0.html) of the issuer.
// - can be inferred from the email domain of the issuer (e.g. a Google service
// account). Example: https://www.googleapis.com/oauth2/v1/certs
JwksUri string `json:"jwksUri,omitempty"`
// JwtLocations: Defines the locations to extract the JWT. For now it is only
// used by the Cloud Endpoints to store the OpenAPI extension
// [x-google-jwt-locations]
// (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
// JWT locations can be one of HTTP headers, URL query parameters or cookies.
// The rule is that the first match wins. If not specified, default to use
// following 3 locations: 1) Authorization: Bearer 2) x-goog-iap-jwt-assertion
// 3) access_token query parameter Default locations can be specified as
// followings: jwt_locations: - header: Authorization value_prefix: "Bearer " -
// header: x-goog-iap-jwt-assertion - query: access_token
JwtLocations []*JwtLocation `json:"jwtLocations,omitempty"`
// ForceSendFields is a list of field names (e.g. "Audiences") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Audiences") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s AuthProvider) MarshalJSON() ([]byte, error) {
type NoMethod AuthProvider
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// AuthRequirement: User-defined authentication requirements, including support
// for JSON Web Token (JWT)
// (https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
type AuthRequirement struct {
// Audiences: NOTE: This will be deprecated soon, once AuthProvider.audiences
// is implemented and accepted in all the runtime components. The list of JWT
// audiences
// (https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
// that are allowed to access. A JWT containing any of these audiences will be
// accepted. When this setting is absent, only JWTs with audience
// "https://Service_name/API_name" will be accepted. For example, if no
// audiences are in the setting, LibraryService API will only accept JWTs with
// the following audience
// "https://library-example.googleapis.com/google.example.library.v1.LibraryServ
// ice". Example: audiences: bookstore_android.apps.googleusercontent.com,
// bookstore_web.apps.googleusercontent.com
Audiences string `json:"audiences,omitempty"`
// ProviderId: id from authentication provider. Example: provider_id:
// bookstore_auth
ProviderId string `json:"providerId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Audiences") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Audiences") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s AuthRequirement) MarshalJSON() ([]byte, error) {
type NoMethod AuthRequirement
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Authentication: `Authentication` defines the authentication configuration
// for API methods provided by an API service. Example: name:
// calendar.googleapis.com authentication: providers: - id:
// google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs
// issuer: https://securetoken.google.com rules: - selector: "*" requirements:
// provider_id: google_calendar_auth - selector: google.calendar.Delegate
// oauth: canonical_scopes: https://www.googleapis.com/auth/calendar.read
type Authentication struct {
// Providers: Defines a set of authentication providers that a service
// supports.
Providers []*AuthProvider `json:"providers,omitempty"`
// Rules: A list of authentication rules that apply to individual API methods.
// **NOTE:** All service configuration rules follow "last one wins" order.
Rules []*AuthenticationRule `json:"rules,omitempty"`
// ForceSendFields is a list of field names (e.g. "Providers") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Providers") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s Authentication) MarshalJSON() ([]byte, error) {
type NoMethod Authentication
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// AuthenticationRule: Authentication rules for the service. By default, if a
// method has any authentication requirements, every request must include a
// valid credential matching one of the requirements. It's an error to include
// more than one kind of credential in a single request. If a method doesn't
// have any auth requirements, request credentials will be ignored.
type AuthenticationRule struct {
// AllowWithoutCredential: If true, the service accepts API keys without any
// other credential. This flag only applies to HTTP and gRPC requests.
AllowWithoutCredential bool `json:"allowWithoutCredential,omitempty"`
// Oauth: The requirements for OAuth credentials.
Oauth *OAuthRequirements `json:"oauth,omitempty"`
// Requirements: Requirements for additional authentication providers.
Requirements []*AuthRequirement `json:"requirements,omitempty"`
// Selector: Selects the methods to which this rule applies. Refer to selector
// for syntax details.
Selector string `json:"selector,omitempty"`
// ForceSendFields is a list of field names (e.g. "AllowWithoutCredential") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AllowWithoutCredential") to
// include in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s AuthenticationRule) MarshalJSON() ([]byte, error) {
type NoMethod AuthenticationRule
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Backend: `Backend` defines the backend configuration for a service.
type Backend struct {
// Rules: A list of API backend rules that apply to individual API methods.
// **NOTE:** All service configuration rules follow "last one wins" order.
Rules []*BackendRule `json:"rules,omitempty"`
// ForceSendFields is a list of field names (e.g. "Rules") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Rules") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s Backend) MarshalJSON() ([]byte, error) {
type NoMethod Backend
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BackendRule: A backend rule provides configuration for an individual API
// element.
type BackendRule struct {
// Address: The address of the API backend. The scheme is used to determine the
// backend protocol and security. The following schemes are accepted: SCHEME
// PROTOCOL SECURITY http:// HTTP None https:// HTTP TLS grpc:// gRPC None
// grpcs:// gRPC TLS It is recommended to explicitly include a scheme. Leaving
// out the scheme may cause constrasting behaviors across platforms. If the
// port is unspecified, the default is: - 80 for schemes without TLS - 443 for
// schemes with TLS For HTTP backends, use protocol to specify the protocol
// version.
Address string `json:"address,omitempty"`
// Deadline: The number of seconds to wait for a response from a request. The
// default varies based on the request protocol and deployment environment.
Deadline float64 `json:"deadline,omitempty"`
// DisableAuth: When disable_auth is true, a JWT ID token won't be generated
// and the original "Authorization" HTTP header will be preserved. If the
// header is used to carry the original token and is expected by the backend,
// this field must be set to true to preserve the header.
DisableAuth bool `json:"disableAuth,omitempty"`
// JwtAudience: The JWT audience is used when generating a JWT ID token for the
// backend. This ID token will be added in the HTTP "authorization" header, and
// sent to the backend.
JwtAudience string `json:"jwtAudience,omitempty"`
// MinDeadline: Deprecated, do not use.
MinDeadline float64 `json:"minDeadline,omitempty"`
// OperationDeadline: The number of seconds to wait for the completion of a
// long running operation. The default is no deadline.
OperationDeadline float64 `json:"operationDeadline,omitempty"`
// OverridesByRequestProtocol: The map between request protocol and the backend
// address.
OverridesByRequestProtocol map[string]BackendRule `json:"overridesByRequestProtocol,omitempty"`
// Possible values:
// "PATH_TRANSLATION_UNSPECIFIED"
// "CONSTANT_ADDRESS" - Use the backend address as-is, with no modification
// to the path. If the URL pattern contains variables, the variable names and
// values will be appended to the query string. If a query string parameter and
// a URL pattern variable have the same name, this may result in duplicate keys
// in the query string. # Examples Given the following operation config: Method
// path: /api/company/{cid}/user/{uid} Backend address:
// https://example.cloudfunctions.net/getUser Requests to the following request
// paths will call the backend at the translated path: Request path:
// /api/company/widgetworks/user/johndoe Translated:
// https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
// Request path: /api/company/widgetworks/user/johndoe?timezone=EST Translated:
// https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
// "APPEND_PATH_TO_ADDRESS" - The request path will be appended to the
// backend address. # Examples Given the following operation config: Method
// path: /api/company/{cid}/user/{uid} Backend address:
// https://example.appspot.com Requests to the following request paths will
// call the backend at the translated path: Request path:
// /api/company/widgetworks/user/johndoe Translated:
// https://example.appspot.com/api/company/widgetworks/user/johndoe Request
// path: /api/company/widgetworks/user/johndoe?timezone=EST Translated:
// https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
PathTranslation string `json:"pathTranslation,omitempty"`
// Protocol: The protocol used for sending a request to the backend. The
// supported values are "http/1.1" and "h2". The default value is inferred from
// the scheme in the address field: SCHEME PROTOCOL http:// http/1.1 https://
// http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that
// support HTTP/2, set this field to "h2" for improved performance. Configuring
// this field to non-default values is only supported for secure HTTP backends.
// This field will be ignored for all other backends. See
// https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
// for more details on the supported values.
Protocol string `json:"protocol,omitempty"`
// Selector: Selects the methods to which this rule applies. Refer to selector
// for syntax details.
Selector string `json:"selector,omitempty"`
// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Address") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s BackendRule) MarshalJSON() ([]byte, error) {
type NoMethod BackendRule
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
func (s *BackendRule) UnmarshalJSON(data []byte) error {
type NoMethod BackendRule
var s1 struct {
Deadline gensupport.JSONFloat64 `json:"deadline"`
MinDeadline gensupport.JSONFloat64 `json:"minDeadline"`
OperationDeadline gensupport.JSONFloat64 `json:"operationDeadline"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Deadline = float64(s1.Deadline)
s.MinDeadline = float64(s1.MinDeadline)
s.OperationDeadline = float64(s1.OperationDeadline)
return nil
}
// Billing: Billing related configuration of the service. The following example
// shows how to configure monitored resources and metrics for billing,
// `consumer_destinations` is the only supported destination and the monitored
// resources need at least one label key `cloud.googleapis.com/location` to
// indicate the location of the billing usage, using different monitored
// resources between monitoring and billing is recommended so they can be
// evolved independently: monitored_resources: - type:
// library.googleapis.com/billing_branch labels: - key:
// cloud.googleapis.com/location description: | Predefined label to support
// billing location restriction. - key: city description: | Custom label to
// define the city where the library branch is located in. - key: name
// description: Custom label to define the name of the library branch. metrics:
// - name: library.googleapis.com/book/borrowed_count metric_kind: DELTA
// value_type: INT64 unit: "1" billing: consumer_destinations: -
// monitored_resource: library.googleapis.com/billing_branch metrics: -
// library.googleapis.com/book/borrowed_count
type Billing struct {
// ConsumerDestinations: Billing configurations for sending metrics to the
// consumer project. There can be multiple consumer destinations per service,
// each one must have a different monitored resource type. A metric can be used
// in at most one consumer destination.
ConsumerDestinations []*BillingDestination `json:"consumerDestinations,omitempty"`
// ForceSendFields is a list of field names (e.g. "ConsumerDestinations") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ConsumerDestinations") to include
// in API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s Billing) MarshalJSON() ([]byte, error) {
type NoMethod Billing
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// BillingDestination: Configuration of a specific billing destination
// (Currently only support bill against consumer project).
type BillingDestination struct {
// Metrics: Names of the metrics to report to this billing destination. Each
// name must be defined in Service.metrics section.
Metrics []string `json:"metrics,omitempty"`
// MonitoredResource: The monitored resource type. The type must be defined in
// Service.monitored_resources section.
MonitoredResource string `json:"monitoredResource,omitempty"`
// ForceSendFields is a list of field names (e.g. "Metrics") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Metrics") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s BillingDestination) MarshalJSON() ([]byte, error) {
type NoMethod BillingDestination
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ClientLibrarySettings: Details about how and where to publish client
// libraries.
type ClientLibrarySettings struct {
// CppSettings: Settings for C++ client libraries.
CppSettings *CppSettings `json:"cppSettings,omitempty"`
// DotnetSettings: Settings for .NET client libraries.
DotnetSettings *DotnetSettings `json:"dotnetSettings,omitempty"`
// GoSettings: Settings for Go client libraries.
GoSettings *GoSettings `json:"goSettings,omitempty"`
// JavaSettings: Settings for legacy Java features, supported in the Service
// YAML.
JavaSettings *JavaSettings `json:"javaSettings,omitempty"`
// LaunchStage: Launch stage of this version of the API.
//
// Possible values:
// "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value.
// "UNIMPLEMENTED" - The feature is not yet implemented. Users can not use
// it.
// "PRELAUNCH" - Prelaunch features are hidden from users and are only
// visible internally.
// "EARLY_ACCESS" - Early Access features are limited to a closed group of
// testers. To use these features, you must sign up in advance and sign a
// Trusted Tester agreement (which includes confidentiality provisions). These
// features may be unstable, changed in backward-incompatible ways, and are not
// guaranteed to be released.
// "ALPHA" - Alpha is a limited availability test for releases before they
// are cleared for widespread use. By Alpha, all significant design issues are
// resolved and we are in the process of verifying functionality. Alpha
// customers need to apply for access, agree to applicable terms, and have
// their projects allowlisted. Alpha releases don't have to be feature
// complete, no SLAs are provided, and there are no technical support
// obligations, but they will be far enough along that customers can actually
// use them in test environments or for limited-use tests -- just like they
// would in normal production cases.
// "BETA" - Beta is the point at which we are ready to open a release for any
// customer to use. There are no SLA or technical support obligations in a Beta
// release. Products will be complete from a feature perspective, but may have
// some open outstanding issues. Beta releases are suitable for limited
// production use cases.
// "GA" - GA features are open to all developers and are considered stable
// and fully qualified for production use.
// "DEPRECATED" - Deprecated features are scheduled to be shut down and
// removed. For more information, see the "Deprecation Policy" section of our
// [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud
// Platform Subject to the Deprecation
// Policy](https://cloud.google.com/terms/deprecation) documentation.
LaunchStage string `json:"launchStage,omitempty"`
// NodeSettings: Settings for Node client libraries.
NodeSettings *NodeSettings `json:"nodeSettings,omitempty"`
// PhpSettings: Settings for PHP client libraries.
PhpSettings *PhpSettings `json:"phpSettings,omitempty"`
// PythonSettings: Settings for Python client libraries.
PythonSettings *PythonSettings `json:"pythonSettings,omitempty"`
// RestNumericEnums: When using transport=rest, the client request will encode
// enums as numbers rather than strings.
RestNumericEnums bool `json:"restNumericEnums,omitempty"`
// RubySettings: Settings for Ruby client libraries.
RubySettings *RubySettings `json:"rubySettings,omitempty"`
// Version: Version of the API to apply these settings to. This is the full
// protobuf package for the API, ending in the version element. Examples:
// "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
Version string `json:"version,omitempty"`
// ForceSendFields is a list of field names (e.g. "CppSettings") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CppSettings") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s ClientLibrarySettings) MarshalJSON() ([]byte, error) {
type NoMethod ClientLibrarySettings
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// CloudSQLConfig: Cloud SQL configuration.
type CloudSQLConfig struct {
// Service: Peering service used for peering with the Cloud SQL project.
Service string `json:"service,omitempty"`
// UmbrellaNetwork: The name of the umbrella network in the Cloud SQL umbrella
// project.
UmbrellaNetwork string `json:"umbrellaNetwork,omitempty"`
// UmbrellaProject: The project number of the Cloud SQL umbrella project.
UmbrellaProject int64 `json:"umbrellaProject,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Service") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Service") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s CloudSQLConfig) MarshalJSON() ([]byte, error) {
type NoMethod CloudSQLConfig
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// CommonLanguageSettings: Required information for every language.
type CommonLanguageSettings struct {
// Destinations: The destination where API teams want this client library to be
// published.
//
// Possible values:
// "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED" - Client libraries will neither
// be generated nor published to package managers.
// "GITHUB" - Generate the client library in a repo under
// github.com/googleapis, but don't publish it to package managers.
// "PACKAGE_MANAGER" - Publish the library to package managers like nuget.org
// and npmjs.com.
Destinations []string `json:"destinations,omitempty"`
// ReferenceDocsUri: Link to automatically generated reference documentation.
// Example: https://cloud.google.com/nodejs/docs/reference/asset/latest
ReferenceDocsUri string `json:"referenceDocsUri,omitempty"`
// ForceSendFields is a list of field names (e.g. "Destinations") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Destinations") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s CommonLanguageSettings) MarshalJSON() ([]byte, error) {
type NoMethod CommonLanguageSettings
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// Connection: Represents a private connection resource. A private connection
// is implemented as a VPC Network Peering connection between a service
// producer's VPC network and a service consumer's VPC network.
type Connection struct {
// Network: The name of service consumer's VPC network that's connected with
// service producer network, in the following format:
// `projects/{project}/global/networks/{network}`. `{project}` is a project
// number, such as in `12345` that includes the VPC service consumer's VPC
// network. `{network}` is the name of the service consumer's VPC network.
Network string `json:"network,omitempty"`
// Peering: Output only. The name of the VPC Network Peering connection that
// was created by the service producer.
Peering string `json:"peering,omitempty"`
// ReservedPeeringRanges: The name of one or more allocated IP address ranges
// for this service producer of type `PEERING`. Note that invoking
// CreateConnection method with a different range when connection is already
// established will not modify already provisioned service producer
// subnetworks. If CreateConnection method is invoked repeatedly to reconnect
// when peering connection had been disconnected on the consumer side, leaving
// this field empty will restore previously allocated IP ranges.
ReservedPeeringRanges []string `json:"reservedPeeringRanges,omitempty"`
// Service: Output only. The name of the peering service that's associated with
// this connection, in the following format: `services/{service name}`.
Service string `json:"service,omitempty"`
// ForceSendFields is a list of field names (e.g. "Network") to unconditionally
// include in API requests. By default, fields with empty or default values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Network") to include in API
// requests with the JSON null value. By default, fields with empty values are
// omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s Connection) MarshalJSON() ([]byte, error) {
type NoMethod Connection
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ConsumerConfig: Configuration information for a private service access
// connection.
type ConsumerConfig struct {
// CloudsqlConfigs: Represents one or multiple Cloud SQL configurations.
CloudsqlConfigs []*CloudSQLConfig `json:"cloudsqlConfigs,omitempty"`
// ConsumerExportCustomRoutes: Export custom routes flag value for peering from
// consumer to producer.
ConsumerExportCustomRoutes bool `json:"consumerExportCustomRoutes,omitempty"`
// ConsumerExportSubnetRoutesWithPublicIp: Export subnet routes with public ip
// flag value for peering from consumer to producer.
ConsumerExportSubnetRoutesWithPublicIp bool `json:"consumerExportSubnetRoutesWithPublicIp,omitempty"`
// ConsumerImportCustomRoutes: Import custom routes flag value for peering from
// consumer to producer.
ConsumerImportCustomRoutes bool `json:"consumerImportCustomRoutes,omitempty"`
// ConsumerImportSubnetRoutesWithPublicIp: Import subnet routes with public ip
// flag value for peering from consumer to producer.
ConsumerImportSubnetRoutesWithPublicIp bool `json:"consumerImportSubnetRoutesWithPublicIp,omitempty"`
// ProducerExportCustomRoutes: Export custom routes flag value for peering from
// producer to consumer.
ProducerExportCustomRoutes bool `json:"producerExportCustomRoutes,omitempty"`
// ProducerExportSubnetRoutesWithPublicIp: Export subnet routes with public ip
// flag value for peering from producer to consumer.
ProducerExportSubnetRoutesWithPublicIp bool `json:"producerExportSubnetRoutesWithPublicIp,omitempty"`
// ProducerImportCustomRoutes: Import custom routes flag value for peering from
// producer to consumer.
ProducerImportCustomRoutes bool `json:"producerImportCustomRoutes,omitempty"`
// ProducerImportSubnetRoutesWithPublicIp: Import subnet routes with public ip
// flag value for peering from producer to consumer.
ProducerImportSubnetRoutesWithPublicIp bool `json:"producerImportSubnetRoutesWithPublicIp,omitempty"`
// ProducerNetwork: Output only. The VPC host network that is used to host
// managed service instances. In the format,
// projects/{project}/global/networks/{network} where {project} is the project
// number e.g. '12345' and {network} is the network name.
ProducerNetwork string `json:"producerNetwork,omitempty"`
// ReservedRanges: Output only. The reserved ranges associated with this
// private service access connection.
ReservedRanges []*GoogleCloudServicenetworkingV1ConsumerConfigReservedRange `json:"reservedRanges,omitempty"`
// UsedIpRanges: Output only. The IP ranges already in use by consumer or
// producer
UsedIpRanges []string `json:"usedIpRanges,omitempty"`
// VpcScReferenceArchitectureEnabled: Output only. Indicates whether the VPC
// Service Controls reference architecture is configured for the producer VPC
// host network.
VpcScReferenceArchitectureEnabled bool `json:"vpcScReferenceArchitectureEnabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "CloudsqlConfigs") to
// unconditionally include in API requests. By default, fields with empty or
// default values are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
// details.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CloudsqlConfigs") to include in
// API requests with the JSON null value. By default, fields with empty values
// are omitted from API requests. See
// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
NullFields []string `json:"-"`
}
func (s ConsumerConfig) MarshalJSON() ([]byte, error) {
type NoMethod ConsumerConfig
return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
}
// ConsumerConfigMetadata: Metadata provided through GetOperation request for
// the LRO generated by UpdateConsumerConfig API.
type ConsumerConfigMetadata struct {
}
// Context: `Context` defines which contexts an API requests. Example: context:
// rules: - selector: "*" requested: - google.rpc.context.ProjectContext -
// google.rpc.context.OriginContext The above specifies that all methods in the
// API request `google.rpc.context.ProjectContext` and