-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
beyondcorp-gen.go
8508 lines (7889 loc) · 351 KB
/
beyondcorp-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 beyondcorp provides access to the BeyondCorp API.
//
// For product documentation, see: https://cloud.google.com/
//
// # 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/beyondcorp/v1"
// ...
// ctx := context.Background()
// beyondcorpService, err := beyondcorp.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 [google.golang.org/api/option.WithAPIKey]:
//
// beyondcorpService, err := beyondcorp.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, ...)
// beyondcorpService, err := beyondcorp.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See [google.golang.org/api/option.ClientOption] for details on options.
package beyondcorp // import "google.golang.org/api/beyondcorp/v1"
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 = "beyondcorp:v1"
const apiName = "beyondcorp"
const apiVersion = "v1"
const basePath = "https://beyondcorp.googleapis.com/"
const basePathTemplate = "https://beyondcorp.UNIVERSE_DOMAIN/"
const mtlsBasePath = "https://beyondcorp.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"
)
// NewService creates a new Service.
func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
scopesOption := internaloption.WithDefaultScopes(
"https://www.googleapis.com/auth/cloud-platform",
)
// 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 Service. It uses the provided http.Client for requests.
//
// Deprecated: please use NewService instead.
// To provide a custom HTTP client, use option.WithHTTPClient.
// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Organizations = NewOrganizationsService(s)
s.Projects = NewProjectsService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Organizations *OrganizationsService
Projects *ProjectsService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewOrganizationsService(s *Service) *OrganizationsService {
rs := &OrganizationsService{s: s}
rs.Locations = NewOrganizationsLocationsService(s)
return rs
}
type OrganizationsService struct {
s *Service
Locations *OrganizationsLocationsService
}
func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService {
rs := &OrganizationsLocationsService{s: s}
rs.Global = NewOrganizationsLocationsGlobalService(s)
rs.Operations = NewOrganizationsLocationsOperationsService(s)
return rs
}
type OrganizationsLocationsService struct {
s *Service
Global *OrganizationsLocationsGlobalService
Operations *OrganizationsLocationsOperationsService
}
func NewOrganizationsLocationsGlobalService(s *Service) *OrganizationsLocationsGlobalService {
rs := &OrganizationsLocationsGlobalService{s: s}
rs.PartnerTenants = NewOrganizationsLocationsGlobalPartnerTenantsService(s)
return rs
}
type OrganizationsLocationsGlobalService struct {
s *Service
PartnerTenants *OrganizationsLocationsGlobalPartnerTenantsService
}
func NewOrganizationsLocationsGlobalPartnerTenantsService(s *Service) *OrganizationsLocationsGlobalPartnerTenantsService {
rs := &OrganizationsLocationsGlobalPartnerTenantsService{s: s}
rs.BrowserDlpRules = NewOrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService(s)
rs.ProxyConfigs = NewOrganizationsLocationsGlobalPartnerTenantsProxyConfigsService(s)
return rs
}
type OrganizationsLocationsGlobalPartnerTenantsService struct {
s *Service
BrowserDlpRules *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService
ProxyConfigs *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService
}
func NewOrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService(s *Service) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService {
rs := &OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService{s: s}
return rs
}
type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService struct {
s *Service
}
func NewOrganizationsLocationsGlobalPartnerTenantsProxyConfigsService(s *Service) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService {
rs := &OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService{s: s}
return rs
}
type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService struct {
s *Service
}
func NewOrganizationsLocationsOperationsService(s *Service) *OrganizationsLocationsOperationsService {
rs := &OrganizationsLocationsOperationsService{s: s}
return rs
}
type OrganizationsLocationsOperationsService struct {
s *Service
}
func NewProjectsService(s *Service) *ProjectsService {
rs := &ProjectsService{s: s}
rs.Locations = NewProjectsLocationsService(s)
return rs
}
type ProjectsService struct {
s *Service
Locations *ProjectsLocationsService
}
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
rs := &ProjectsLocationsService{s: s}
rs.AppConnections = NewProjectsLocationsAppConnectionsService(s)
rs.AppConnectors = NewProjectsLocationsAppConnectorsService(s)
rs.AppGateways = NewProjectsLocationsAppGatewaysService(s)
rs.ClientConnectorServices = NewProjectsLocationsClientConnectorServicesService(s)
rs.ClientGateways = NewProjectsLocationsClientGatewaysService(s)
rs.Operations = NewProjectsLocationsOperationsService(s)
return rs
}
type ProjectsLocationsService struct {
s *Service
AppConnections *ProjectsLocationsAppConnectionsService
AppConnectors *ProjectsLocationsAppConnectorsService
AppGateways *ProjectsLocationsAppGatewaysService
ClientConnectorServices *ProjectsLocationsClientConnectorServicesService
ClientGateways *ProjectsLocationsClientGatewaysService
Operations *ProjectsLocationsOperationsService
}
func NewProjectsLocationsAppConnectionsService(s *Service) *ProjectsLocationsAppConnectionsService {
rs := &ProjectsLocationsAppConnectionsService{s: s}
return rs
}
type ProjectsLocationsAppConnectionsService struct {
s *Service
}
func NewProjectsLocationsAppConnectorsService(s *Service) *ProjectsLocationsAppConnectorsService {
rs := &ProjectsLocationsAppConnectorsService{s: s}
return rs
}
type ProjectsLocationsAppConnectorsService struct {
s *Service
}
func NewProjectsLocationsAppGatewaysService(s *Service) *ProjectsLocationsAppGatewaysService {
rs := &ProjectsLocationsAppGatewaysService{s: s}
return rs
}
type ProjectsLocationsAppGatewaysService struct {
s *Service
}
func NewProjectsLocationsClientConnectorServicesService(s *Service) *ProjectsLocationsClientConnectorServicesService {
rs := &ProjectsLocationsClientConnectorServicesService{s: s}
return rs
}
type ProjectsLocationsClientConnectorServicesService struct {
s *Service
}
func NewProjectsLocationsClientGatewaysService(s *Service) *ProjectsLocationsClientGatewaysService {
rs := &ProjectsLocationsClientGatewaysService{s: s}
return rs
}
type ProjectsLocationsClientGatewaysService struct {
s *Service
}
func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
rs := &ProjectsLocationsOperationsService{s: s}
return rs
}
type ProjectsLocationsOperationsService struct {
s *Service
}
// AllocatedConnection: Allocated connection of the AppGateway.
type AllocatedConnection struct {
// IngressPort: Required. The ingress port of an allocated connection
IngressPort int64 `json:"ingressPort,omitempty"`
// PscUri: Required. The PSC uri of an allocated connection
PscUri string `json:"pscUri,omitempty"`
// ForceSendFields is a list of field names (e.g. "IngressPort") 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. "IngressPort") 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 *AllocatedConnection) MarshalJSON() ([]byte, error) {
type NoMethod AllocatedConnection
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// AppGateway: A BeyondCorp AppGateway resource represents a BeyondCorp
// protected AppGateway to a remote application. It creates all the necessary
// GCP components needed for creating a BeyondCorp protected AppGateway.
// Multiple connectors can be authorised for a single AppGateway.
type AppGateway struct {
// AllocatedConnections: Output only. A list of connections allocated for the
// Gateway
AllocatedConnections []*AllocatedConnection `json:"allocatedConnections,omitempty"`
// CreateTime: Output only. Timestamp when the resource was created.
CreateTime string `json:"createTime,omitempty"`
// DisplayName: Optional. An arbitrary user-provided name for the AppGateway.
// Cannot exceed 64 characters.
DisplayName string `json:"displayName,omitempty"`
// HostType: Required. The type of hosting used by the AppGateway.
//
// Possible values:
// "HOST_TYPE_UNSPECIFIED" - Default value. This value is unused.
// "GCP_REGIONAL_MIG" - AppGateway hosted in a GCP regional managed instance
// group.
HostType string `json:"hostType,omitempty"`
// Labels: Optional. Resource labels to represent user provided metadata.
Labels map[string]string `json:"labels,omitempty"`
// Name: Required. Unique resource name of the AppGateway. The name is ignored
// when creating an AppGateway.
Name string `json:"name,omitempty"`
// SatisfiesPzi: Output only. Reserved for future use.
SatisfiesPzi bool `json:"satisfiesPzi,omitempty"`
// SatisfiesPzs: Output only. Reserved for future use.
SatisfiesPzs bool `json:"satisfiesPzs,omitempty"`
// State: Output only. The current state of the AppGateway.
//
// Possible values:
// "STATE_UNSPECIFIED" - Default value. This value is unused.
// "CREATING" - AppGateway is being created.
// "CREATED" - AppGateway has been created.
// "UPDATING" - AppGateway's configuration is being updated.
// "DELETING" - AppGateway is being deleted.
// "DOWN" - AppGateway is down and may be restored in the future. This
// happens when CCFE sends ProjectState = OFF.
State string `json:"state,omitempty"`
// Type: Required. The type of network connectivity used by the AppGateway.
//
// Possible values:
// "TYPE_UNSPECIFIED" - Default value. This value is unused.
// "TCP_PROXY" - TCP Proxy based BeyondCorp Connection. API will default to
// this if unset.
Type string `json:"type,omitempty"`
// Uid: Output only. A unique identifier for the instance generated by the
// system.
Uid string `json:"uid,omitempty"`
// UpdateTime: Output only. Timestamp when the resource was last modified.
UpdateTime string `json:"updateTime,omitempty"`
// Uri: Output only. Server-defined URI for this resource.
Uri string `json:"uri,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AllocatedConnections") 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. "AllocatedConnections") 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 *AppGateway) MarshalJSON() ([]byte, error) {
type NoMethod AppGateway
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// AppGatewayOperationMetadata: Represents the metadata of the long-running
// operation.
type AppGatewayOperationMetadata struct {
// ApiVersion: Output only. API version used to start the operation.
ApiVersion string `json:"apiVersion,omitempty"`
// CreateTime: Output only. The time the operation was created.
CreateTime string `json:"createTime,omitempty"`
// EndTime: Output only. The time the operation finished running.
EndTime string `json:"endTime,omitempty"`
// RequestedCancellation: Output only. Identifies whether the user has
// requested cancellation of the operation. Operations that have successfully
// been cancelled have Operation.error value with a google.rpc.Status.code of
// 1, corresponding to `Code.CANCELLED`.
RequestedCancellation bool `json:"requestedCancellation,omitempty"`
// StatusMessage: Output only. Human-readable status of the operation, if any.
StatusMessage string `json:"statusMessage,omitempty"`
// Target: Output only. Server-defined resource path for the target of the
// operation.
Target string `json:"target,omitempty"`
// Verb: Output only. Name of the verb executed by the operation.
Verb string `json:"verb,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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 *AppGatewayOperationMetadata) MarshalJSON() ([]byte, error) {
type NoMethod AppGatewayOperationMetadata
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig:
// ConnectionConfig represents a Connection Configuration object.
type CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig struct {
// ApplicationEndpoint: application_endpoint is the endpoint of the application
// the form of host:port. For example, "localhost:80".
ApplicationEndpoint string `json:"applicationEndpoint,omitempty"`
// ApplicationName: application_name represents the given name of the
// application the connection is connecting with.
ApplicationName string `json:"applicationName,omitempty"`
// Gateway: gateway lists all instances running a gateway in GCP. They all
// connect to a connector on the host.
Gateway []*CloudSecurityZerotrustApplinkAppConnectorProtoGateway `json:"gateway,omitempty"`
// Name: name is the unique ID for each connection. TODO(b/190732451) returns
// connection name from user-specified name in config. Now, name =
// ${application_name}:${application_endpoint}
Name string `json:"name,omitempty"`
// Project: project represents the consumer project the connection belongs to.
Project string `json:"project,omitempty"`
// TunnelsPerGateway: tunnels_per_gateway reflects the number of tunnels
// between a connector and a gateway.
TunnelsPerGateway int64 `json:"tunnelsPerGateway,omitempty"`
// UserPort: user_port specifies the reserved port on gateways for user
// connections.
UserPort int64 `json:"userPort,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApplicationEndpoint") 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. "ApplicationEndpoint") 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 *CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig) MarshalJSON() ([]byte, error) {
type NoMethod CloudSecurityZerotrustApplinkAppConnectorProtoConnectionConfig
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// CloudSecurityZerotrustApplinkAppConnectorProtoConnectorDetails:
// ConnectorDetails reflects the details of a connector.
type CloudSecurityZerotrustApplinkAppConnectorProtoConnectorDetails struct {
}
// CloudSecurityZerotrustApplinkAppConnectorProtoGateway: Gateway represents a
// GCE VM Instance endpoint for use by IAP TCP.
type CloudSecurityZerotrustApplinkAppConnectorProtoGateway struct {
// Interface: interface specifies the network interface of the gateway to
// connect to.
Interface string `json:"interface,omitempty"`
// Name: name is the name of an instance running a gateway. It is the unique ID
// for a gateway. All gateways under the same connection have the same prefix.
// It is derived from the gateway URL. For example, name=${instance} assuming a
// gateway URL.
// https://www.googleapis.com/compute/${version}/projects/${project}/zones/${zone}/instances/${instance}
Name string `json:"name,omitempty"`
// Port: port specifies the port of the gateway for tunnel connections from the
// connectors.
Port int64 `json:"port,omitempty"`
// Project: project is the tenant project the gateway belongs to. Different
// from the project in the connection, it is a BeyondCorpAPI internally created
// project to manage all the gateways. It is sharing the same network with the
// consumer project user owned. It is derived from the gateway URL. For
// example, project=${project} assuming a gateway URL.
// https://www.googleapis.com/compute/${version}/projects/${project}/zones/${zone}/instances/${instance}
Project string `json:"project,omitempty"`
// SelfLink: self_link is the gateway URL in the form
// https://www.googleapis.com/compute/${version}/projects/${project}/zones/${zone}/instances/${instance}
SelfLink string `json:"selfLink,omitempty"`
// Zone: zone represents the zone the instance belongs. It is derived from the
// gateway URL. For example, zone=${zone} assuming a gateway URL.
// https://www.googleapis.com/compute/${version}/projects/${project}/zones/${zone}/instances/${instance}
Zone string `json:"zone,omitempty"`
// ForceSendFields is a list of field names (e.g. "Interface") 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. "Interface") 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 *CloudSecurityZerotrustApplinkAppConnectorProtoGateway) MarshalJSON() ([]byte, error) {
type NoMethod CloudSecurityZerotrustApplinkAppConnectorProtoGateway
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// CloudSecurityZerotrustApplinkLogagentProtoLogAgentDetails: LogAgentDetails
// reflects the details of a log agent.
type CloudSecurityZerotrustApplinkLogagentProtoLogAgentDetails struct {
}
// Empty: A generic empty message that you can re-use to avoid defining
// duplicated empty messages in your APIs. A typical example is to use it as
// the request or the response type of an API method. For instance: service Foo
// { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
type Empty struct {
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
}
// GoogleCloudBeyondcorpAppconnectionsV1AppConnection: A BeyondCorp
// AppConnection resource represents a BeyondCorp protected AppConnection to a
// remote application. It creates all the necessary GCP components needed for
// creating a BeyondCorp protected AppConnection. Multiple connectors can be
// authorised for a single AppConnection.
type GoogleCloudBeyondcorpAppconnectionsV1AppConnection struct {
// ApplicationEndpoint: Required. Address of the remote application endpoint
// for the BeyondCorp AppConnection.
ApplicationEndpoint *GoogleCloudBeyondcorpAppconnectionsV1AppConnectionApplicationEndpoint `json:"applicationEndpoint,omitempty"`
// Connectors: Optional. List of
// [google.cloud.beyondcorp.v1main.Connector.name] that are authorised to be
// associated with this AppConnection.
Connectors []string `json:"connectors,omitempty"`
// CreateTime: Output only. Timestamp when the resource was created.
CreateTime string `json:"createTime,omitempty"`
// DisplayName: Optional. An arbitrary user-provided name for the
// AppConnection. Cannot exceed 64 characters.
DisplayName string `json:"displayName,omitempty"`
// Gateway: Optional. Gateway used by the AppConnection.
Gateway *GoogleCloudBeyondcorpAppconnectionsV1AppConnectionGateway `json:"gateway,omitempty"`
// Labels: Optional. Resource labels to represent user provided metadata.
Labels map[string]string `json:"labels,omitempty"`
// Name: Required. Unique resource name of the AppConnection. The name is
// ignored when creating a AppConnection.
Name string `json:"name,omitempty"`
// SatisfiesPzi: Output only. Reserved for future use.
SatisfiesPzi bool `json:"satisfiesPzi,omitempty"`
// SatisfiesPzs: Output only. Reserved for future use.
SatisfiesPzs bool `json:"satisfiesPzs,omitempty"`
// State: Output only. The current state of the AppConnection.
//
// Possible values:
// "STATE_UNSPECIFIED" - Default value. This value is unused.
// "CREATING" - AppConnection is being created.
// "CREATED" - AppConnection has been created.
// "UPDATING" - AppConnection's configuration is being updated.
// "DELETING" - AppConnection is being deleted.
// "DOWN" - AppConnection is down and may be restored in the future. This
// happens when CCFE sends ProjectState = OFF.
State string `json:"state,omitempty"`
// Type: Required. The type of network connectivity used by the AppConnection.
//
// Possible values:
// "TYPE_UNSPECIFIED" - Default value. This value is unused.
// "TCP_PROXY" - TCP Proxy based BeyondCorp AppConnection. API will default
// to this if unset.
Type string `json:"type,omitempty"`
// Uid: Output only. A unique identifier for the instance generated by the
// system.
Uid string `json:"uid,omitempty"`
// UpdateTime: Output only. Timestamp when the resource was last modified.
UpdateTime string `json:"updateTime,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "ApplicationEndpoint") 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. "ApplicationEndpoint") 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 *GoogleCloudBeyondcorpAppconnectionsV1AppConnection) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudBeyondcorpAppconnectionsV1AppConnection
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudBeyondcorpAppconnectionsV1AppConnectionApplicationEndpoint:
// ApplicationEndpoint represents a remote application endpoint.
type GoogleCloudBeyondcorpAppconnectionsV1AppConnectionApplicationEndpoint struct {
// Host: Required. Hostname or IP address of the remote application endpoint.
Host string `json:"host,omitempty"`
// Port: Required. Port of the remote application endpoint.
Port int64 `json:"port,omitempty"`
// ForceSendFields is a list of field names (e.g. "Host") 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. "Host") 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 *GoogleCloudBeyondcorpAppconnectionsV1AppConnectionApplicationEndpoint) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudBeyondcorpAppconnectionsV1AppConnectionApplicationEndpoint
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudBeyondcorpAppconnectionsV1AppConnectionGateway: Gateway
// represents a user facing component that serves as an entrance to enable
// connectivity.
type GoogleCloudBeyondcorpAppconnectionsV1AppConnectionGateway struct {
// AppGateway: Required. AppGateway name in following format:
// `projects/{project_id}/locations/{location_id}/appgateways/{gateway_id}`
AppGateway string `json:"appGateway,omitempty"`
// IngressPort: Output only. Ingress port reserved on the gateways for this
// AppConnection, if not specified or zero, the default port is 19443.
IngressPort int64 `json:"ingressPort,omitempty"`
// L7psc: Output only. L7 private service connection for this resource.
L7psc string `json:"l7psc,omitempty"`
// Type: Required. The type of hosting used by the gateway.
//
// Possible values:
// "TYPE_UNSPECIFIED" - Default value. This value is unused.
// "GCP_REGIONAL_MIG" - Gateway hosted in a GCP regional managed instance
// group.
Type string `json:"type,omitempty"`
// Uri: Output only. Server-defined URI for this resource.
Uri string `json:"uri,omitempty"`
// ForceSendFields is a list of field names (e.g. "AppGateway") 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. "AppGateway") 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 *GoogleCloudBeyondcorpAppconnectionsV1AppConnectionGateway) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudBeyondcorpAppconnectionsV1AppConnectionGateway
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudBeyondcorpAppconnectionsV1AppConnectionOperationMetadata:
// Represents the metadata of the long-running operation.
type GoogleCloudBeyondcorpAppconnectionsV1AppConnectionOperationMetadata struct {
// ApiVersion: Output only. API version used to start the operation.
ApiVersion string `json:"apiVersion,omitempty"`
// CreateTime: Output only. The time the operation was created.
CreateTime string `json:"createTime,omitempty"`
// EndTime: Output only. The time the operation finished running.
EndTime string `json:"endTime,omitempty"`
// RequestedCancellation: Output only. Identifies whether the user has
// requested cancellation of the operation. Operations that have successfully
// been cancelled have Operation.error value with a google.rpc.Status.code of
// 1, corresponding to `Code.CANCELLED`.
RequestedCancellation bool `json:"requestedCancellation,omitempty"`
// StatusMessage: Output only. Human-readable status of the operation, if any.
StatusMessage string `json:"statusMessage,omitempty"`
// Target: Output only. Server-defined resource path for the target of the
// operation.
Target string `json:"target,omitempty"`
// Verb: Output only. Name of the verb executed by the operation.
Verb string `json:"verb,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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 *GoogleCloudBeyondcorpAppconnectionsV1AppConnectionOperationMetadata) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudBeyondcorpAppconnectionsV1AppConnectionOperationMetadata
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse: Response
// message for BeyondCorp.ListAppConnections.
type GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse struct {
// AppConnections: A list of BeyondCorp AppConnections in the project.
AppConnections []*GoogleCloudBeyondcorpAppconnectionsV1AppConnection `json:"appConnections,omitempty"`
// NextPageToken: A token to retrieve the next page of results, or empty if
// there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// Unreachable: A list of locations that could not be reached.
Unreachable []string `json:"unreachable,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AppConnections") 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. "AppConnections") 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 *GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudBeyondcorpAppconnectionsV1ListAppConnectionsResponse
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse: Response
// message for BeyondCorp.ResolveAppConnections.
type GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse struct {
// AppConnectionDetails: A list of BeyondCorp AppConnections with details in
// the project.
AppConnectionDetails []*GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponseAppConnectionDetails `json:"appConnectionDetails,omitempty"`
// NextPageToken: A token to retrieve the next page of results, or empty if
// there are no more results in the list.
NextPageToken string `json:"nextPageToken,omitempty"`
// Unreachable: A list of locations that could not be reached.
Unreachable []string `json:"unreachable,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AppConnectionDetails") 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. "AppConnectionDetails") 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 *GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponse
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponseAppConnecti
// onDetails: Details of the AppConnection.
type GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponseAppConnectionDetails struct {
// AppConnection: A BeyondCorp AppConnection in the project.
AppConnection *GoogleCloudBeyondcorpAppconnectionsV1AppConnection `json:"appConnection,omitempty"`
// RecentMigVms: If type=GCP_REGIONAL_MIG, contains most recent VM instances,
// like
// `https://www.googleapis.com/compute/v1/projects/{project_id}/zones/{zone_id}/
// instances/{instance_id}`.
RecentMigVms []string `json:"recentMigVms,omitempty"`
// ForceSendFields is a list of field names (e.g. "AppConnection") 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. "AppConnection") 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 *GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponseAppConnectionDetails) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudBeyondcorpAppconnectionsV1ResolveAppConnectionsResponseAppConnectionDetails
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnectionOperationMetadata:
// Represents the metadata of the long-running operation.
type GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnectionOperationMetadata struct {
// ApiVersion: Output only. API version used to start the operation.
ApiVersion string `json:"apiVersion,omitempty"`
// CreateTime: Output only. The time the operation was created.
CreateTime string `json:"createTime,omitempty"`
// EndTime: Output only. The time the operation finished running.
EndTime string `json:"endTime,omitempty"`
// RequestedCancellation: Output only. Identifies whether the user has
// requested cancellation of the operation. Operations that have successfully
// been cancelled have Operation.error value with a google.rpc.Status.code of
// 1, corresponding to `Code.CANCELLED`.
RequestedCancellation bool `json:"requestedCancellation,omitempty"`
// StatusMessage: Output only. Human-readable status of the operation, if any.
StatusMessage string `json:"statusMessage,omitempty"`
// Target: Output only. Server-defined resource path for the target of the
// operation.
Target string `json:"target,omitempty"`
// Verb: Output only. Name of the verb executed by the operation.
Verb string `json:"verb,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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 *GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnectionOperationMetadata) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnectionOperationMetadata
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudBeyondcorpAppconnectorsV1AppConnector: A BeyondCorp connector
// resource that represents an application facing component deployed proximal
// to and with direct access to the application instances. It is used to
// establish connectivity between the remote enterprise environment and GCP. It
// initiates connections to the applications and can proxy the data from users
// over the connection.
type GoogleCloudBeyondcorpAppconnectorsV1AppConnector struct {
// CreateTime: Output only. Timestamp when the resource was created.
CreateTime string `json:"createTime,omitempty"`
// DisplayName: Optional. An arbitrary user-provided name for the AppConnector.
// Cannot exceed 64 characters.
DisplayName string `json:"displayName,omitempty"`
// Labels: Optional. Resource labels to represent user provided metadata.
Labels map[string]string `json:"labels,omitempty"`
// Name: Required. Unique resource name of the AppConnector. The name is
// ignored when creating a AppConnector.
Name string `json:"name,omitempty"`
// PrincipalInfo: Required. Principal information about the Identity of the
// AppConnector.
PrincipalInfo *GoogleCloudBeyondcorpAppconnectorsV1AppConnectorPrincipalInfo `json:"principalInfo,omitempty"`
// ResourceInfo: Optional. Resource info of the connector.
ResourceInfo *GoogleCloudBeyondcorpAppconnectorsV1ResourceInfo `json:"resourceInfo,omitempty"`
// State: Output only. The current state of the AppConnector.
//
// Possible values:
// "STATE_UNSPECIFIED" - Default value. This value is unused.
// "CREATING" - AppConnector is being created.
// "CREATED" - AppConnector has been created.
// "UPDATING" - AppConnector's configuration is being updated.
// "DELETING" - AppConnector is being deleted.
// "DOWN" - AppConnector is down and may be restored in the future. This
// happens when CCFE sends ProjectState = OFF.
State string `json:"state,omitempty"`
// Uid: Output only. A unique identifier for the instance generated by the
// system.
Uid string `json:"uid,omitempty"`
// UpdateTime: Output only. Timestamp when the resource was last modified.
UpdateTime string `json:"updateTime,omitempty"`
// ServerResponse contains the HTTP response code and headers from the server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CreateTime") 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. "CreateTime") 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 *GoogleCloudBeyondcorpAppconnectorsV1AppConnector) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudBeyondcorpAppconnectorsV1AppConnector
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudBeyondcorpAppconnectorsV1AppConnectorInstanceConfig:
// AppConnectorInstanceConfig defines the instance config of a AppConnector.
type GoogleCloudBeyondcorpAppconnectorsV1AppConnectorInstanceConfig struct {
// ImageConfig: ImageConfig defines the GCR images to run for the remote
// agent's control plane.
ImageConfig *GoogleCloudBeyondcorpAppconnectorsV1ImageConfig `json:"imageConfig,omitempty"`
// InstanceConfig: The SLM instance agent configuration.
InstanceConfig googleapi.RawMessage `json:"instanceConfig,omitempty"`
// NotificationConfig: NotificationConfig defines the notification mechanism
// that the remote instance should subscribe to in order to receive
// notification.
NotificationConfig *GoogleCloudBeyondcorpAppconnectorsV1NotificationConfig `json:"notificationConfig,omitempty"`
// SequenceNumber: Required. A monotonically increasing number generated and
// maintained by the API provider. Every time a config changes in the backend,
// the sequenceNumber should be bumped up to reflect the change.
SequenceNumber int64 `json:"sequenceNumber,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "ImageConfig") 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. "ImageConfig") 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 *GoogleCloudBeyondcorpAppconnectorsV1AppConnectorInstanceConfig) MarshalJSON() ([]byte, error) {
type NoMethod GoogleCloudBeyondcorpAppconnectorsV1AppConnectorInstanceConfig
return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
}
// GoogleCloudBeyondcorpAppconnectorsV1AppConnectorOperationMetadata:
// Represents the metadata of the long-running operation.
type GoogleCloudBeyondcorpAppconnectorsV1AppConnectorOperationMetadata struct {
// ApiVersion: Output only. API version used to start the operation.
ApiVersion string `json:"apiVersion,omitempty"`
// CreateTime: Output only. The time the operation was created.
CreateTime string `json:"createTime,omitempty"`
// EndTime: Output only. The time the operation finished running.
EndTime string `json:"endTime,omitempty"`
// RequestedCancellation: Output only. Identifies whether the user has
// requested cancellation of the operation. Operations that have successfully
// been cancelled have Operation.error value with a google.rpc.Status.code of
// 1, corresponding to `Code.CANCELLED`.
RequestedCancellation bool `json:"requestedCancellation,omitempty"`
// StatusMessage: Output only. Human-readable status of the operation, if any.
StatusMessage string `json:"statusMessage,omitempty"`
// Target: Output only. Server-defined resource path for the target of the
// operation.
Target string `json:"target,omitempty"`
// Verb: Output only. Name of the verb executed by the operation.
Verb string `json:"verb,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApiVersion") to