-
Notifications
You must be signed in to change notification settings - Fork 195
/
azure_resources.pb.go
3442 lines (3127 loc) · 151 KB
/
azure_resources.pb.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 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.12.4
// source: mockgcp/cloud/gkemulticloud/v1/azure_resources.proto
package gkemulticloudpb
import (
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
date "google.golang.org/genproto/googleapis/type/date"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// The lifecycle state of the cluster.
type AzureCluster_State int32
const (
// Not set.
AzureCluster_STATE_UNSPECIFIED AzureCluster_State = 0
// The PROVISIONING state indicates the cluster is being created.
AzureCluster_PROVISIONING AzureCluster_State = 1
// The RUNNING state indicates the cluster has been created and is fully
// usable.
AzureCluster_RUNNING AzureCluster_State = 2
// The RECONCILING state indicates that some work is actively being done on
// the cluster, such as upgrading the control plane replicas.
AzureCluster_RECONCILING AzureCluster_State = 3
// The STOPPING state indicates the cluster is being deleted.
AzureCluster_STOPPING AzureCluster_State = 4
// The ERROR state indicates the cluster is in a broken unrecoverable
// state.
AzureCluster_ERROR AzureCluster_State = 5
// The DEGRADED state indicates the cluster requires user action to
// restore full functionality.
AzureCluster_DEGRADED AzureCluster_State = 6
)
// Enum value maps for AzureCluster_State.
var (
AzureCluster_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "PROVISIONING",
2: "RUNNING",
3: "RECONCILING",
4: "STOPPING",
5: "ERROR",
6: "DEGRADED",
}
AzureCluster_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"PROVISIONING": 1,
"RUNNING": 2,
"RECONCILING": 3,
"STOPPING": 4,
"ERROR": 5,
"DEGRADED": 6,
}
)
func (x AzureCluster_State) Enum() *AzureCluster_State {
p := new(AzureCluster_State)
*p = x
return p
}
func (x AzureCluster_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AzureCluster_State) Descriptor() protoreflect.EnumDescriptor {
return file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_enumTypes[0].Descriptor()
}
func (AzureCluster_State) Type() protoreflect.EnumType {
return &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_enumTypes[0]
}
func (x AzureCluster_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AzureCluster_State.Descriptor instead.
func (AzureCluster_State) EnumDescriptor() ([]byte, []int) {
return file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_rawDescGZIP(), []int{0, 0}
}
// The lifecycle state of the node pool.
type AzureNodePool_State int32
const (
// Not set.
AzureNodePool_STATE_UNSPECIFIED AzureNodePool_State = 0
// The PROVISIONING state indicates the node pool is being created.
AzureNodePool_PROVISIONING AzureNodePool_State = 1
// The RUNNING state indicates the node pool has been created and is fully
// usable.
AzureNodePool_RUNNING AzureNodePool_State = 2
// The RECONCILING state indicates that the node pool is being reconciled.
AzureNodePool_RECONCILING AzureNodePool_State = 3
// The STOPPING state indicates the node pool is being deleted.
AzureNodePool_STOPPING AzureNodePool_State = 4
// The ERROR state indicates the node pool is in a broken unrecoverable
// state.
AzureNodePool_ERROR AzureNodePool_State = 5
// The DEGRADED state indicates the node pool requires user action to
// restore full functionality.
AzureNodePool_DEGRADED AzureNodePool_State = 6
)
// Enum value maps for AzureNodePool_State.
var (
AzureNodePool_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "PROVISIONING",
2: "RUNNING",
3: "RECONCILING",
4: "STOPPING",
5: "ERROR",
6: "DEGRADED",
}
AzureNodePool_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"PROVISIONING": 1,
"RUNNING": 2,
"RECONCILING": 3,
"STOPPING": 4,
"ERROR": 5,
"DEGRADED": 6,
}
)
func (x AzureNodePool_State) Enum() *AzureNodePool_State {
p := new(AzureNodePool_State)
*p = x
return p
}
func (x AzureNodePool_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AzureNodePool_State) Descriptor() protoreflect.EnumDescriptor {
return file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_enumTypes[1].Descriptor()
}
func (AzureNodePool_State) Type() protoreflect.EnumType {
return &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_enumTypes[1]
}
func (x AzureNodePool_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AzureNodePool_State.Descriptor instead.
func (AzureNodePool_State) EnumDescriptor() ([]byte, []int) {
return file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_rawDescGZIP(), []int{13, 0}
}
// An Anthos cluster running on Azure.
type AzureCluster struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of this resource.
//
// Cluster names are formatted as
// `projects/<project-number>/locations/<region>/azureClusters/<cluster-id>`.
//
// See [Resource Names](https://cloud.google.com/apis/design/resource_names)
// for more details on Google Cloud Platform resource names.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. A human readable description of this cluster.
// Cannot be longer than 255 UTF-8 encoded bytes.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Required. The Azure region where the cluster runs.
//
// Each Google Cloud region supports a subset of nearby Azure regions.
// You can call
// [GetAzureServerConfig][mockgcp.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig]
// to list all supported Azure regions within a given Google Cloud region.
AzureRegion string `protobuf:"bytes,3,opt,name=azure_region,json=azureRegion,proto3" json:"azure_region,omitempty"`
// Required. The ARM ID of the resource group where the cluster resources are
// deployed. For example:
// `/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>`
ResourceGroupId string `protobuf:"bytes,17,opt,name=resource_group_id,json=resourceGroupId,proto3" json:"resource_group_id,omitempty"`
// Optional. Name of the
// [AzureClient][mockgcp.cloud.gkemulticloud.v1.AzureClient] that contains
// authentication configuration for how the Anthos Multi-Cloud API connects to
// Azure APIs.
//
// Either azure_client or azure_services_authentication should be provided.
//
// The `AzureClient` resource must reside on the same Google Cloud Platform
// project and region as the `AzureCluster`.
//
// `AzureClient` names are formatted as
// `projects/<project-number>/locations/<region>/azureClients/<client-id>`.
//
// See [Resource Names](https://cloud.google.com/apis/design/resource_names)
// for more details on Google Cloud resource names.
AzureClient string `protobuf:"bytes,16,opt,name=azure_client,json=azureClient,proto3" json:"azure_client,omitempty"`
// Required. Cluster-wide networking configuration.
Networking *AzureClusterNetworking `protobuf:"bytes,4,opt,name=networking,proto3" json:"networking,omitempty"`
// Required. Configuration related to the cluster control plane.
ControlPlane *AzureControlPlane `protobuf:"bytes,5,opt,name=control_plane,json=controlPlane,proto3" json:"control_plane,omitempty"`
// Required. Configuration related to the cluster RBAC settings.
Authorization *AzureAuthorization `protobuf:"bytes,6,opt,name=authorization,proto3" json:"authorization,omitempty"`
// Optional. Authentication configuration for management of Azure resources.
//
// Either azure_client or azure_services_authentication should be provided.
AzureServicesAuthentication *AzureServicesAuthentication `protobuf:"bytes,22,opt,name=azure_services_authentication,json=azureServicesAuthentication,proto3" json:"azure_services_authentication,omitempty"`
// Output only. The current state of the cluster.
State AzureCluster_State `protobuf:"varint,7,opt,name=state,proto3,enum=mockgcp.cloud.gkemulticloud.v1.AzureCluster_State" json:"state,omitempty"`
// Output only. The endpoint of the cluster's API server.
Endpoint string `protobuf:"bytes,8,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// Output only. A globally unique identifier for the cluster.
Uid string `protobuf:"bytes,9,opt,name=uid,proto3" json:"uid,omitempty"`
// Output only. If set, there are currently changes in flight to the cluster.
Reconciling bool `protobuf:"varint,10,opt,name=reconciling,proto3" json:"reconciling,omitempty"`
// Output only. The time at which this cluster was created.
CreateTime *timestamp.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time at which this cluster was last updated.
UpdateTime *timestamp.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Allows clients to perform consistent read-modify-writes
// through optimistic concurrency control.
//
// Can be sent on update and delete requests to ensure the
// client has an up-to-date value before proceeding.
Etag string `protobuf:"bytes,13,opt,name=etag,proto3" json:"etag,omitempty"`
// Optional. Annotations on the cluster.
//
// This field has the same restrictions as Kubernetes annotations.
// The total size of all keys and values combined is limited to 256k.
// Keys can have 2 segments: prefix (optional) and name (required),
// separated by a slash (/).
// Prefix must be a DNS subdomain.
// Name must be 63 characters or less, begin and end with alphanumerics,
// with dashes (-), underscores (_), dots (.), and alphanumerics between.
Annotations map[string]string `protobuf:"bytes,14,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. Workload Identity settings.
WorkloadIdentityConfig *WorkloadIdentityConfig `protobuf:"bytes,18,opt,name=workload_identity_config,json=workloadIdentityConfig,proto3" json:"workload_identity_config,omitempty"`
// Output only. PEM encoded x509 certificate of the cluster root of trust.
ClusterCaCertificate string `protobuf:"bytes,19,opt,name=cluster_ca_certificate,json=clusterCaCertificate,proto3" json:"cluster_ca_certificate,omitempty"`
// Required. Fleet configuration.
Fleet *Fleet `protobuf:"bytes,20,opt,name=fleet,proto3" json:"fleet,omitempty"`
// Output only. Managed Azure resources for this cluster.
ManagedResources *AzureClusterResources `protobuf:"bytes,21,opt,name=managed_resources,json=managedResources,proto3" json:"managed_resources,omitempty"`
// Optional. Logging configuration for this cluster.
LoggingConfig *LoggingConfig `protobuf:"bytes,23,opt,name=logging_config,json=loggingConfig,proto3" json:"logging_config,omitempty"`
// Output only. A set of errors found in the cluster.
Errors []*AzureClusterError `protobuf:"bytes,24,rep,name=errors,proto3" json:"errors,omitempty"`
// Optional. Monitoring configuration for this cluster.
MonitoringConfig *MonitoringConfig `protobuf:"bytes,25,opt,name=monitoring_config,json=monitoringConfig,proto3" json:"monitoring_config,omitempty"`
}
func (x *AzureCluster) Reset() {
*x = AzureCluster{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AzureCluster) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureCluster) ProtoMessage() {}
func (x *AzureCluster) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AzureCluster.ProtoReflect.Descriptor instead.
func (*AzureCluster) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_rawDescGZIP(), []int{0}
}
func (x *AzureCluster) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AzureCluster) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *AzureCluster) GetAzureRegion() string {
if x != nil {
return x.AzureRegion
}
return ""
}
func (x *AzureCluster) GetResourceGroupId() string {
if x != nil {
return x.ResourceGroupId
}
return ""
}
func (x *AzureCluster) GetAzureClient() string {
if x != nil {
return x.AzureClient
}
return ""
}
func (x *AzureCluster) GetNetworking() *AzureClusterNetworking {
if x != nil {
return x.Networking
}
return nil
}
func (x *AzureCluster) GetControlPlane() *AzureControlPlane {
if x != nil {
return x.ControlPlane
}
return nil
}
func (x *AzureCluster) GetAuthorization() *AzureAuthorization {
if x != nil {
return x.Authorization
}
return nil
}
func (x *AzureCluster) GetAzureServicesAuthentication() *AzureServicesAuthentication {
if x != nil {
return x.AzureServicesAuthentication
}
return nil
}
func (x *AzureCluster) GetState() AzureCluster_State {
if x != nil {
return x.State
}
return AzureCluster_STATE_UNSPECIFIED
}
func (x *AzureCluster) GetEndpoint() string {
if x != nil {
return x.Endpoint
}
return ""
}
func (x *AzureCluster) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *AzureCluster) GetReconciling() bool {
if x != nil {
return x.Reconciling
}
return false
}
func (x *AzureCluster) GetCreateTime() *timestamp.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *AzureCluster) GetUpdateTime() *timestamp.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *AzureCluster) GetEtag() string {
if x != nil {
return x.Etag
}
return ""
}
func (x *AzureCluster) GetAnnotations() map[string]string {
if x != nil {
return x.Annotations
}
return nil
}
func (x *AzureCluster) GetWorkloadIdentityConfig() *WorkloadIdentityConfig {
if x != nil {
return x.WorkloadIdentityConfig
}
return nil
}
func (x *AzureCluster) GetClusterCaCertificate() string {
if x != nil {
return x.ClusterCaCertificate
}
return ""
}
func (x *AzureCluster) GetFleet() *Fleet {
if x != nil {
return x.Fleet
}
return nil
}
func (x *AzureCluster) GetManagedResources() *AzureClusterResources {
if x != nil {
return x.ManagedResources
}
return nil
}
func (x *AzureCluster) GetLoggingConfig() *LoggingConfig {
if x != nil {
return x.LoggingConfig
}
return nil
}
func (x *AzureCluster) GetErrors() []*AzureClusterError {
if x != nil {
return x.Errors
}
return nil
}
func (x *AzureCluster) GetMonitoringConfig() *MonitoringConfig {
if x != nil {
return x.MonitoringConfig
}
return nil
}
// ClusterNetworking contains cluster-wide networking configuration.
type AzureClusterNetworking struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The Azure Resource Manager (ARM) ID of the VNet associated with
// your cluster.
//
// All components in the cluster (i.e. control plane and node pools) run on a
// single VNet.
//
// Example:
// `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.Network/virtualNetworks/<vnet-id>`
//
// This field cannot be changed after creation.
VirtualNetworkId string `protobuf:"bytes,1,opt,name=virtual_network_id,json=virtualNetworkId,proto3" json:"virtual_network_id,omitempty"`
// Required. The IP address range of the pods in this cluster, in CIDR
// notation (e.g. `10.96.0.0/14`).
//
// All pods in the cluster get assigned a unique IPv4 address from these
// ranges. Only a single range is supported.
//
// This field cannot be changed after creation.
PodAddressCidrBlocks []string `protobuf:"bytes,2,rep,name=pod_address_cidr_blocks,json=podAddressCidrBlocks,proto3" json:"pod_address_cidr_blocks,omitempty"`
// Required. The IP address range for services in this cluster, in CIDR
// notation (e.g. `10.96.0.0/14`).
//
// All services in the cluster get assigned a unique IPv4 address from these
// ranges. Only a single range is supported.
//
// This field cannot be changed after creating a cluster.
ServiceAddressCidrBlocks []string `protobuf:"bytes,3,rep,name=service_address_cidr_blocks,json=serviceAddressCidrBlocks,proto3" json:"service_address_cidr_blocks,omitempty"`
// Optional. The ARM ID of the subnet where Kubernetes private service type
// load balancers are deployed. When unspecified, it defaults to
// AzureControlPlane.subnet_id.
//
// Example:
// "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"
ServiceLoadBalancerSubnetId string `protobuf:"bytes,5,opt,name=service_load_balancer_subnet_id,json=serviceLoadBalancerSubnetId,proto3" json:"service_load_balancer_subnet_id,omitempty"`
}
func (x *AzureClusterNetworking) Reset() {
*x = AzureClusterNetworking{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AzureClusterNetworking) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureClusterNetworking) ProtoMessage() {}
func (x *AzureClusterNetworking) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AzureClusterNetworking.ProtoReflect.Descriptor instead.
func (*AzureClusterNetworking) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_rawDescGZIP(), []int{1}
}
func (x *AzureClusterNetworking) GetVirtualNetworkId() string {
if x != nil {
return x.VirtualNetworkId
}
return ""
}
func (x *AzureClusterNetworking) GetPodAddressCidrBlocks() []string {
if x != nil {
return x.PodAddressCidrBlocks
}
return nil
}
func (x *AzureClusterNetworking) GetServiceAddressCidrBlocks() []string {
if x != nil {
return x.ServiceAddressCidrBlocks
}
return nil
}
func (x *AzureClusterNetworking) GetServiceLoadBalancerSubnetId() string {
if x != nil {
return x.ServiceLoadBalancerSubnetId
}
return ""
}
// AzureControlPlane represents the control plane configurations.
type AzureControlPlane struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The Kubernetes version to run on control plane replicas
// (e.g. `1.19.10-gke.1000`).
//
// You can list all supported versions on a given Google Cloud region by
// calling
// [GetAzureServerConfig][mockgcp.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig].
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// Optional. The ARM ID of the default subnet for the control plane. The
// control plane VMs are deployed in this subnet, unless
// `AzureControlPlane.replica_placements` is specified. This subnet will also
// be used as default for `AzureControlPlane.endpoint_subnet_id` if
// `AzureControlPlane.endpoint_subnet_id` is not specified. Similarly it will
// be used as default for
// `AzureClusterNetworking.service_load_balancer_subnet_id`.
//
// Example:
// `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.Network/virtualNetworks/<vnet-id>/subnets/default`.
SubnetId string `protobuf:"bytes,2,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
// Optional. The Azure VM size name. Example: `Standard_DS2_v2`.
//
// For available VM sizes, see
// https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions.
//
// When unspecified, it defaults to `Standard_DS2_v2`.
VmSize string `protobuf:"bytes,3,opt,name=vm_size,json=vmSize,proto3" json:"vm_size,omitempty"`
// Required. SSH configuration for how to access the underlying control plane
// machines.
SshConfig *AzureSshConfig `protobuf:"bytes,11,opt,name=ssh_config,json=sshConfig,proto3" json:"ssh_config,omitempty"`
// Optional. Configuration related to the root volume provisioned for each
// control plane replica.
//
// When unspecified, it defaults to 32-GiB Azure Disk.
RootVolume *AzureDiskTemplate `protobuf:"bytes,4,opt,name=root_volume,json=rootVolume,proto3" json:"root_volume,omitempty"`
// Optional. Configuration related to the main volume provisioned for each
// control plane replica.
// The main volume is in charge of storing all of the cluster's etcd state.
//
// When unspecified, it defaults to a 8-GiB Azure Disk.
MainVolume *AzureDiskTemplate `protobuf:"bytes,5,opt,name=main_volume,json=mainVolume,proto3" json:"main_volume,omitempty"`
// Optional. Configuration related to application-layer secrets encryption.
DatabaseEncryption *AzureDatabaseEncryption `protobuf:"bytes,10,opt,name=database_encryption,json=databaseEncryption,proto3" json:"database_encryption,omitempty"`
// Optional. Proxy configuration for outbound HTTP(S) traffic.
ProxyConfig *AzureProxyConfig `protobuf:"bytes,12,opt,name=proxy_config,json=proxyConfig,proto3" json:"proxy_config,omitempty"`
// Optional. Configuration related to vm config encryption.
ConfigEncryption *AzureConfigEncryption `protobuf:"bytes,14,opt,name=config_encryption,json=configEncryption,proto3" json:"config_encryption,omitempty"`
// Optional. A set of tags to apply to all underlying control plane Azure
// resources.
Tags map[string]string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Configuration for where to place the control plane replicas.
//
// Up to three replica placement instances can be specified. If
// replica_placements is set, the replica placement instances will be applied
// to the three control plane replicas as evenly as possible.
ReplicaPlacements []*ReplicaPlacement `protobuf:"bytes,13,rep,name=replica_placements,json=replicaPlacements,proto3" json:"replica_placements,omitempty"`
// Optional. The ARM ID of the subnet where the control plane load balancer is
// deployed. When unspecified, it defaults to AzureControlPlane.subnet_id.
//
// Example:
// "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid123"
EndpointSubnetId string `protobuf:"bytes,15,opt,name=endpoint_subnet_id,json=endpointSubnetId,proto3" json:"endpoint_subnet_id,omitempty"`
}
func (x *AzureControlPlane) Reset() {
*x = AzureControlPlane{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AzureControlPlane) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureControlPlane) ProtoMessage() {}
func (x *AzureControlPlane) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AzureControlPlane.ProtoReflect.Descriptor instead.
func (*AzureControlPlane) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_rawDescGZIP(), []int{2}
}
func (x *AzureControlPlane) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *AzureControlPlane) GetSubnetId() string {
if x != nil {
return x.SubnetId
}
return ""
}
func (x *AzureControlPlane) GetVmSize() string {
if x != nil {
return x.VmSize
}
return ""
}
func (x *AzureControlPlane) GetSshConfig() *AzureSshConfig {
if x != nil {
return x.SshConfig
}
return nil
}
func (x *AzureControlPlane) GetRootVolume() *AzureDiskTemplate {
if x != nil {
return x.RootVolume
}
return nil
}
func (x *AzureControlPlane) GetMainVolume() *AzureDiskTemplate {
if x != nil {
return x.MainVolume
}
return nil
}
func (x *AzureControlPlane) GetDatabaseEncryption() *AzureDatabaseEncryption {
if x != nil {
return x.DatabaseEncryption
}
return nil
}
func (x *AzureControlPlane) GetProxyConfig() *AzureProxyConfig {
if x != nil {
return x.ProxyConfig
}
return nil
}
func (x *AzureControlPlane) GetConfigEncryption() *AzureConfigEncryption {
if x != nil {
return x.ConfigEncryption
}
return nil
}
func (x *AzureControlPlane) GetTags() map[string]string {
if x != nil {
return x.Tags
}
return nil
}
func (x *AzureControlPlane) GetReplicaPlacements() []*ReplicaPlacement {
if x != nil {
return x.ReplicaPlacements
}
return nil
}
func (x *AzureControlPlane) GetEndpointSubnetId() string {
if x != nil {
return x.EndpointSubnetId
}
return ""
}
// Configuration for the placement of a control plane replica.
type ReplicaPlacement struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. For a given replica, the ARM ID of the subnet where the control
// plane VM is deployed. Make sure it's a subnet under the virtual network in
// the cluster configuration.
SubnetId string `protobuf:"bytes,1,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
// Required. For a given replica, the Azure availability zone where to
// provision the control plane VM and the ETCD disk.
AzureAvailabilityZone string `protobuf:"bytes,2,opt,name=azure_availability_zone,json=azureAvailabilityZone,proto3" json:"azure_availability_zone,omitempty"`
}
func (x *ReplicaPlacement) Reset() {
*x = ReplicaPlacement{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReplicaPlacement) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReplicaPlacement) ProtoMessage() {}
func (x *ReplicaPlacement) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReplicaPlacement.ProtoReflect.Descriptor instead.
func (*ReplicaPlacement) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_rawDescGZIP(), []int{3}
}
func (x *ReplicaPlacement) GetSubnetId() string {
if x != nil {
return x.SubnetId
}
return ""
}
func (x *ReplicaPlacement) GetAzureAvailabilityZone() string {
if x != nil {
return x.AzureAvailabilityZone
}
return ""
}
// Details of a proxy config stored in Azure Key Vault.
type AzureProxyConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The ARM ID the of the resource group containing proxy keyvault.
//
// Resource group ids are formatted as
// `/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>`.
ResourceGroupId string `protobuf:"bytes,1,opt,name=resource_group_id,json=resourceGroupId,proto3" json:"resource_group_id,omitempty"`
// The URL the of the proxy setting secret with its version.
//
// The secret must be a JSON encoded proxy configuration
// as described in
// https://cloud.google.com/anthos/clusters/docs/multi-cloud/azure/how-to/use-a-proxy#create_a_proxy_configuration_file
//
// Secret ids are formatted as
// `https://<key-vault-name>.vault.azure.net/secrets/<secret-name>/<secret-version>`.
SecretId string `protobuf:"bytes,2,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
}
func (x *AzureProxyConfig) Reset() {
*x = AzureProxyConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AzureProxyConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureProxyConfig) ProtoMessage() {}
func (x *AzureProxyConfig) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AzureProxyConfig.ProtoReflect.Descriptor instead.
func (*AzureProxyConfig) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_rawDescGZIP(), []int{4}
}
func (x *AzureProxyConfig) GetResourceGroupId() string {
if x != nil {
return x.ResourceGroupId
}
return ""
}
func (x *AzureProxyConfig) GetSecretId() string {
if x != nil {
return x.SecretId
}
return ""
}
// Configuration related to application-layer secrets encryption.
//
// Anthos clusters on Azure encrypts your Kubernetes data at rest
// in etcd using Azure Key Vault.
type AzureDatabaseEncryption struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt data.
//
// For example:
// `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
// Encryption will always take the latest version of the key and hence
// specific version is not supported.
KeyId string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
}
func (x *AzureDatabaseEncryption) Reset() {
*x = AzureDatabaseEncryption{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AzureDatabaseEncryption) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureDatabaseEncryption) ProtoMessage() {}
func (x *AzureDatabaseEncryption) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AzureDatabaseEncryption.ProtoReflect.Descriptor instead.
func (*AzureDatabaseEncryption) Descriptor() ([]byte, []int) {
return file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_rawDescGZIP(), []int{5}
}
func (x *AzureDatabaseEncryption) GetKeyId() string {
if x != nil {
return x.KeyId
}
return ""
}
// Configuration related to config data encryption.
//
// Azure VM bootstrap secret is envelope encrypted with the provided key vault
// key.
type AzureConfigEncryption struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The ARM ID of the Azure Key Vault key to encrypt / decrypt config
// data.
//
// For example:
// `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.KeyVault/vaults/<key-vault-id>/keys/<key-name>`
KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
// Optional. RSA key of the Azure Key Vault public key to use for encrypting
// the data.
//
// This key must be formatted as a PEM-encoded SubjectPublicKeyInfo (RFC 5280)
// in ASN.1 DER form. The string must be comprised of a single PEM block of
// type "PUBLIC KEY".
PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
}
func (x *AzureConfigEncryption) Reset() {
*x = AzureConfigEncryption{}
if protoimpl.UnsafeEnabled {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AzureConfigEncryption) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AzureConfigEncryption) ProtoMessage() {}
func (x *AzureConfigEncryption) ProtoReflect() protoreflect.Message {
mi := &file_mockgcp_cloud_gkemulticloud_v1_azure_resources_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}