From 326a7059defd7396ee5cd3683de084f51abb0de4 Mon Sep 17 00:00:00 2001 From: Matt Kim Date: Tue, 3 Dec 2024 15:59:52 -0800 Subject: [PATCH 1/6] copy namespace protos --- protogen/api/namespace/v1/message.pb.go | 516 ++++++++++++++---- protogen/api/namespace/v1/message_enums.pb.go | 92 ++++ 2 files changed, 489 insertions(+), 119 deletions(-) create mode 100644 protogen/api/namespace/v1/message_enums.pb.go diff --git a/protogen/api/namespace/v1/message.pb.go b/protogen/api/namespace/v1/message.pb.go index 40dfce7..17976fa 100644 --- a/protogen/api/namespace/v1/message.pb.go +++ b/protogen/api/namespace/v1/message.pb.go @@ -15,7 +15,7 @@ import ( reflect "reflect" strconv "strconv" strings "strings" - v1 "github.com/temporalio/tcld/protogen/api/common/v1" + v1 "github.com/temporalio/saas-proto/protogen/api/common/v1" ) // Reference imports to suppress errors if they are not otherwise used. @@ -201,6 +201,8 @@ type NamespaceSpec struct { AuthMethod AuthMethod `protobuf:"varint,13,opt,name=auth_method,json=authMethod,proto3,enum=api.namespace.v1.AuthMethod" json:"auth_method,omitempty"` // use the new region id for region and cloud provider RegionId *v1.RegionID `protobuf:"bytes,14,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + // The delete configuration for the namespace. + DeleteProtection *DeleteProtectionSpec `protobuf:"bytes,15,opt,name=delete_protection,json=deleteProtection,proto3" json:"delete_protection,omitempty"` } func (m *NamespaceSpec) Reset() { *m = NamespaceSpec{} } @@ -314,6 +316,57 @@ func (m *NamespaceSpec) GetRegionId() *v1.RegionID { return nil } +func (m *NamespaceSpec) GetDeleteProtection() *DeleteProtectionSpec { + if m != nil { + return m.DeleteProtection + } + return nil +} + +type DeleteProtectionSpec struct { + // Flag to enable delete protection for the namespace. + EnableDeleteProtection bool `protobuf:"varint,1,opt,name=enable_delete_protection,json=enableDeleteProtection,proto3" json:"enable_delete_protection,omitempty"` +} + +func (m *DeleteProtectionSpec) Reset() { *m = DeleteProtectionSpec{} } +func (*DeleteProtectionSpec) ProtoMessage() {} +func (*DeleteProtectionSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_56458b48206aa18d, []int{1} +} +func (m *DeleteProtectionSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteProtectionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteProtectionSpec.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DeleteProtectionSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteProtectionSpec.Merge(m, src) +} +func (m *DeleteProtectionSpec) XXX_Size() int { + return m.Size() +} +func (m *DeleteProtectionSpec) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteProtectionSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteProtectionSpec proto.InternalMessageInfo + +func (m *DeleteProtectionSpec) GetEnableDeleteProtection() bool { + if m != nil { + return m.EnableDeleteProtection + } + return false +} + type CodecServerPropertySpec struct { // server endpoints Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` @@ -326,7 +379,7 @@ type CodecServerPropertySpec struct { func (m *CodecServerPropertySpec) Reset() { *m = CodecServerPropertySpec{} } func (*CodecServerPropertySpec) ProtoMessage() {} func (*CodecServerPropertySpec) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{1} + return fileDescriptor_56458b48206aa18d, []int{2} } func (m *CodecServerPropertySpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -392,7 +445,7 @@ type CertificateFilterSpec struct { func (m *CertificateFilterSpec) Reset() { *m = CertificateFilterSpec{} } func (*CertificateFilterSpec) ProtoMessage() {} func (*CertificateFilterSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{2} + return fileDescriptor_56458b48206aa18d, []int{3} } func (m *CertificateFilterSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -463,7 +516,7 @@ type NamespaceURI struct { func (m *NamespaceURI) Reset() { *m = NamespaceURI{} } func (*NamespaceURI) ProtoMessage() {} func (*NamespaceURI) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{3} + return fileDescriptor_56458b48206aa18d, []int{4} } func (m *NamespaceURI) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -536,7 +589,7 @@ type NamespaceEnvelope struct { func (m *NamespaceEnvelope) Reset() { *m = NamespaceEnvelope{} } func (*NamespaceEnvelope) ProtoMessage() {} func (*NamespaceEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{4} + return fileDescriptor_56458b48206aa18d, []int{5} } func (m *NamespaceEnvelope) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -619,7 +672,7 @@ type NamespaceRegion struct { func (m *NamespaceRegion) Reset() { *m = NamespaceRegion{} } func (*NamespaceRegion) ProtoMessage() {} func (*NamespaceRegion) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{5} + return fileDescriptor_56458b48206aa18d, []int{6} } func (m *NamespaceRegion) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -696,7 +749,7 @@ type Namespace struct { func (m *Namespace) Reset() { *m = Namespace{} } func (*Namespace) ProtoMessage() {} func (*Namespace) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{6} + return fileDescriptor_56458b48206aa18d, []int{7} } func (m *Namespace) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -811,6 +864,7 @@ func init() { proto.RegisterEnum("api.namespace.v1.AuthMethod", AuthMethod_name, AuthMethod_value) proto.RegisterType((*NamespaceSpec)(nil), "api.namespace.v1.NamespaceSpec") proto.RegisterMapType((map[string]SearchAttributeType)(nil), "api.namespace.v1.NamespaceSpec.SearchAttributesEntry") + proto.RegisterType((*DeleteProtectionSpec)(nil), "api.namespace.v1.DeleteProtectionSpec") proto.RegisterType((*CodecServerPropertySpec)(nil), "api.namespace.v1.CodecServerPropertySpec") proto.RegisterType((*CertificateFilterSpec)(nil), "api.namespace.v1.CertificateFilterSpec") proto.RegisterType((*NamespaceURI)(nil), "api.namespace.v1.NamespaceURI") @@ -823,116 +877,119 @@ func init() { func init() { proto.RegisterFile("api/namespace/v1/message.proto", fileDescriptor_56458b48206aa18d) } var fileDescriptor_56458b48206aa18d = []byte{ - // 1730 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x57, 0xcd, 0x73, 0xdb, 0xd6, - 0x11, 0x17, 0x48, 0x50, 0x22, 0x97, 0xfa, 0x80, 0x9e, 0x6c, 0x8b, 0xa6, 0x64, 0x58, 0xa6, 0xc7, - 0x89, 0xac, 0xa9, 0x28, 0x9b, 0xee, 0x47, 0x26, 0x9e, 0x8c, 0x4b, 0x89, 0x50, 0x04, 0x55, 0x22, - 0x59, 0x10, 0x54, 0x93, 0x4e, 0x67, 0x30, 0x4f, 0xc0, 0x93, 0x84, 0x18, 0x04, 0x90, 0x87, 0x47, - 0x7a, 0xd4, 0xe9, 0xa1, 0xd3, 0x73, 0x0f, 0x99, 0xce, 0x24, 0xe7, 0x1e, 0x7b, 0xe8, 0xa9, 0xff, - 0x44, 0x73, 0xf4, 0x31, 0xc7, 0x5a, 0xbe, 0xe4, 0x98, 0x3f, 0xa1, 0xf3, 0x1e, 0xc0, 0x0f, 0x91, - 0xb4, 0x94, 0x1b, 0xb1, 0xbb, 0xbf, 0xdd, 0xdf, 0xee, 0xdb, 0xdd, 0xf7, 0x08, 0x2a, 0x0e, 0xdd, - 0x1d, 0x1f, 0x77, 0x48, 0x14, 0x62, 0x9b, 0xec, 0xf4, 0x9e, 0xef, 0x74, 0x48, 0x14, 0xe1, 0x73, - 0x52, 0x0e, 0x69, 0xc0, 0x02, 0xa4, 0xe0, 0xd0, 0x2d, 0x0f, 0xf4, 0xe5, 0xde, 0xf3, 0xe2, 0xc3, - 0xf3, 0x20, 0x38, 0xf7, 0xc8, 0x8e, 0xd0, 0x9f, 0x76, 0xcf, 0x76, 0x98, 0xdb, 0x21, 0x11, 0xc3, - 0x9d, 0x30, 0x86, 0x14, 0x37, 0xc6, 0x0d, 0x1c, 0x12, 0xd9, 0xd4, 0x0d, 0x59, 0x40, 0x13, 0x0b, - 0x75, 0xdc, 0xe2, 0x0d, 0xc5, 0x61, 0x48, 0x68, 0x94, 0xe8, 0xd7, 0x38, 0x29, 0x3b, 0xe8, 0x74, - 0x02, 0x7f, 0x82, 0x51, 0xe9, 0x9b, 0x59, 0x58, 0xa8, 0xf7, 0x09, 0xb5, 0x42, 0x62, 0xa3, 0x22, - 0xcc, 0x52, 0x72, 0xee, 0x06, 0x7e, 0x41, 0xda, 0x90, 0x36, 0x73, 0xbb, 0xa9, 0x82, 0x64, 0x24, - 0x12, 0xf4, 0x0b, 0x40, 0xd8, 0xb6, 0x49, 0xc8, 0x88, 0x63, 0xd9, 0x9e, 0x4b, 0x7c, 0x66, 0xd9, - 0xb8, 0x90, 0xe2, 0x76, 0x86, 0xd2, 0xd7, 0xec, 0x09, 0xc5, 0x1e, 0x46, 0x4f, 0x60, 0x91, 0x12, - 0x46, 0x7c, 0xe6, 0x06, 0xbe, 0xe5, 0xe0, 0xcb, 0xa8, 0x90, 0xde, 0x90, 0x36, 0x33, 0xc6, 0xc2, - 0x40, 0x5a, 0xc3, 0x97, 0x11, 0x3a, 0x85, 0xe5, 0x88, 0x60, 0x6a, 0x5f, 0x58, 0x98, 0x31, 0xea, - 0x9e, 0x76, 0x19, 0x89, 0x0a, 0xf2, 0x46, 0x7a, 0x33, 0x5f, 0xf9, 0x55, 0x79, 0xbc, 0x60, 0xe5, - 0x6b, 0x64, 0xcb, 0x2d, 0x01, 0xac, 0x0e, 0x70, 0x9a, 0xcf, 0xe8, 0xa5, 0xa1, 0x44, 0x63, 0x62, - 0xf4, 0x05, 0xac, 0xd8, 0x84, 0x32, 0xf7, 0xcc, 0xb5, 0x31, 0x23, 0xd6, 0x99, 0xeb, 0x31, 0x42, - 0xa3, 0x42, 0x46, 0x44, 0xf9, 0x78, 0x32, 0xca, 0xde, 0xd0, 0x78, 0x5f, 0xd8, 0xf2, 0x68, 0x06, - 0xb2, 0xc7, 0xc5, 0x11, 0x7a, 0x05, 0x79, 0xe2, 0xf7, 0x5c, 0x1a, 0xf8, 0x1d, 0xe2, 0xb3, 0xc2, - 0xec, 0x86, 0xb4, 0xb9, 0x58, 0x79, 0x30, 0xe9, 0x51, 0x1b, 0x1a, 0x19, 0xa3, 0x08, 0x74, 0x00, - 0x60, 0x07, 0x0e, 0xb1, 0xad, 0x28, 0x24, 0x76, 0x21, 0xbb, 0x21, 0x6d, 0xe6, 0x2b, 0x4f, 0xa7, - 0x30, 0xe2, 0x36, 0x2d, 0x42, 0x7b, 0x84, 0x36, 0x69, 0x10, 0x12, 0xca, 0x2e, 0x05, 0xa7, 0x9c, - 0x00, 0x8b, 0x93, 0xfb, 0x18, 0x96, 0x42, 0x1c, 0x45, 0x6e, 0x8f, 0x58, 0xf1, 0x79, 0x45, 0x85, - 0xdc, 0x46, 0x7a, 0x33, 0x67, 0x2c, 0x26, 0x62, 0x23, 0x96, 0xa2, 0xa7, 0xb0, 0x68, 0x7b, 0x41, - 0xd7, 0xb1, 0x42, 0x1a, 0xf4, 0x5c, 0x87, 0xd0, 0x02, 0x0c, 0x8e, 0x7a, 0x41, 0x68, 0x9a, 0x89, - 0x02, 0x7d, 0x06, 0x79, 0xdc, 0x65, 0x17, 0x56, 0x87, 0xb0, 0x8b, 0xc0, 0x29, 0x2c, 0x88, 0xf4, - 0xd6, 0x27, 0xe9, 0x55, 0xbb, 0xec, 0xe2, 0x58, 0xd8, 0x18, 0x80, 0x07, 0xbf, 0xd1, 0x2f, 0x21, - 0x17, 0x53, 0xb1, 0x5c, 0xa7, 0xb0, 0x28, 0x72, 0x5b,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fd, 0x4d, 0x89, - 0xd6, 0x27, 0x76, 0xce, 0xbe, 0xeb, 0x91, 0x46, 0x28, 0x6e, 0xe3, 0xc2, 0x3f, 0xbf, 0x8b, 0x1f, - 0x6b, 0x80, 0x43, 0x37, 0x59, 0xa2, 0xbb, 0x9d, 0xbf, 0xfd, 0xe7, 0xfe, 0x42, 0xe5, 0x59, 0xe5, - 0xc5, 0xf6, 0xb3, 0xdf, 0x6c, 0x57, 0x7e, 0xbd, 0xfd, 0xec, 0xf9, 0xdb, 0x77, 0xea, 0xcc, 0x0f, - 0xef, 0xd4, 0x99, 0x9f, 0xde, 0xa9, 0xd2, 0x5f, 0xaf, 0x54, 0xe9, 0x5f, 0x57, 0xaa, 0xf4, 0xfd, - 0x95, 0x2a, 0xbd, 0xbd, 0x52, 0xa5, 0xff, 0x5d, 0xa9, 0xd2, 0x8f, 0x57, 0xea, 0xcc, 0x4f, 0x57, - 0xaa, 0xf4, 0xcd, 0x7b, 0x75, 0xe6, 0xed, 0x7b, 0x75, 0xe6, 0x87, 0xf7, 0xea, 0xcc, 0x1f, 0x3f, - 0x62, 0x9d, 0x90, 0x7a, 0x65, 0xf1, 0xc7, 0x60, 0x67, 0xfc, 0x1f, 0xee, 0xcb, 0xc1, 0xc7, 0xe9, - 0xac, 0x20, 0xf6, 0xe2, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x4a, 0x77, 0x24, 0x06, 0x0f, - 0x00, 0x00, + // 1784 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x57, 0xcd, 0x6f, 0xdb, 0xc8, + 0x15, 0x37, 0x25, 0xda, 0x96, 0x9e, 0xfc, 0x41, 0x8f, 0x93, 0x58, 0x91, 0x1d, 0xc5, 0x51, 0x90, + 0xac, 0x63, 0xd4, 0x72, 0xa2, 0xf4, 0x63, 0xb1, 0xc1, 0x22, 0x95, 0x2d, 0x7a, 0x4d, 0xd7, 0xb6, + 0x54, 0x8a, 0x72, 0x77, 0x8b, 0x02, 0x83, 0x31, 0x39, 0xb6, 0xb9, 0xa1, 0x48, 0xee, 0x70, 0xa4, + 0xc0, 0x45, 0x0f, 0x45, 0xcf, 0x3d, 0x14, 0x05, 0x76, 0xcf, 0x3d, 0xf6, 0xd0, 0x53, 0xff, 0x89, + 0xee, 0x31, 0xc7, 0x3d, 0x36, 0x0e, 0x0a, 0xec, 0x71, 0xff, 0x84, 0x62, 0x86, 0xd4, 0x87, 0x25, + 0xc5, 0xc9, 0x4d, 0x7c, 0xef, 0xf7, 0x7b, 0xef, 0xf7, 0x1e, 0xdf, 0xbc, 0xa1, 0xa0, 0x48, 0x42, + 0x77, 0xdb, 0x27, 0x6d, 0x1a, 0x85, 0xc4, 0xa6, 0xdb, 0xdd, 0x67, 0xdb, 0x6d, 0x1a, 0x45, 0xe4, + 0x9c, 0x96, 0x43, 0x16, 0xf0, 0x00, 0x69, 0x24, 0x74, 0xcb, 0x7d, 0x7f, 0xb9, 0xfb, 0xac, 0x70, + 0xff, 0x3c, 0x08, 0xce, 0x3d, 0xba, 0x2d, 0xfd, 0xa7, 0x9d, 0xb3, 0x6d, 0xee, 0xb6, 0x69, 0xc4, + 0x49, 0x3b, 0x8c, 0x29, 0x85, 0xf5, 0x51, 0x80, 0x43, 0x23, 0x9b, 0xb9, 0x21, 0x0f, 0x58, 0x82, + 0x28, 0x8e, 0x22, 0x5e, 0x33, 0x12, 0x86, 0x94, 0x45, 0x89, 0x7f, 0x55, 0x88, 0xb2, 0x83, 0x76, + 0x3b, 0xf0, 0xc7, 0x14, 0x95, 0xfe, 0x37, 0x03, 0xf3, 0xc7, 0x3d, 0x41, 0xcd, 0x90, 0xda, 0xa8, + 0x00, 0x33, 0x8c, 0x9e, 0xbb, 0x81, 0x9f, 0x57, 0xd6, 0x95, 0x8d, 0xec, 0x4e, 0x2a, 0xaf, 0x98, + 0x89, 0x05, 0xfd, 0x0c, 0x10, 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0x2b, 0xcf, 0xb7, 0x9e, 0xfe, 0x6a, 0xab, 0xf2, 0xcb, 0xad, 0xa7, 0xcf, 0xde, + 0xbc, 0x2d, 0x4e, 0xfd, 0xf0, 0xb6, 0x38, 0xf5, 0xd3, 0xdb, 0xa2, 0xf2, 0xe7, 0xab, 0xa2, 0xf2, + 0xcf, 0xab, 0xa2, 0xf2, 0xfd, 0x55, 0x51, 0x79, 0x73, 0x55, 0x54, 0xfe, 0x7b, 0x55, 0x54, 0x7e, + 0xbc, 0x2a, 0x4e, 0xfd, 0x74, 0x55, 0x54, 0xfe, 0xf6, 0xae, 0x38, 0xf5, 0xe6, 0x5d, 0x71, 0xea, + 0x87, 0x77, 0xc5, 0xa9, 0xdf, 0x3f, 0xe6, 0xed, 0x90, 0x79, 0x65, 0xf9, 0xff, 0x65, 0x7b, 0xf4, + 0x8f, 0xf8, 0x8b, 0xfe, 0xc3, 0xe9, 0x8c, 0x14, 0xf6, 0xfc, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x85, 0xf1, 0xd1, 0x74, 0xad, 0x0f, 0x00, 0x00, } func (x SearchAttributeType) String() string { @@ -1030,6 +1087,33 @@ func (this *NamespaceSpec) Equal(that interface{}) bool { if !this.RegionId.Equal(that1.RegionId) { return false } + if !this.DeleteProtection.Equal(that1.DeleteProtection) { + return false + } + return true +} +func (this *DeleteProtectionSpec) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*DeleteProtectionSpec) + if !ok { + that2, ok := that.(DeleteProtectionSpec) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.EnableDeleteProtection != that1.EnableDeleteProtection { + return false + } return true } func (this *CodecServerPropertySpec) Equal(that interface{}) bool { @@ -1267,7 +1351,7 @@ func (this *NamespaceSpec) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 15) + s := make([]string, 0, 16) s = append(s, "&namespace.NamespaceSpec{") s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") s = append(s, "AcceptedClientCa: "+fmt.Sprintf("%#v", this.AcceptedClientCa)+",\n") @@ -1298,6 +1382,19 @@ func (this *NamespaceSpec) GoString() string { if this.RegionId != nil { s = append(s, "RegionId: "+fmt.Sprintf("%#v", this.RegionId)+",\n") } + if this.DeleteProtection != nil { + s = append(s, "DeleteProtection: "+fmt.Sprintf("%#v", this.DeleteProtection)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *DeleteProtectionSpec) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&namespace.DeleteProtectionSpec{") + s = append(s, "EnableDeleteProtection: "+fmt.Sprintf("%#v", this.EnableDeleteProtection)+",\n") s = append(s, "}") return strings.Join(s, "") } @@ -1437,6 +1534,18 @@ func (m *NamespaceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.DeleteProtection != nil { + { + size, err := m.DeleteProtection.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } if m.RegionId != nil { { size, err := m.RegionId.MarshalToSizedBuffer(dAtA[:i]) @@ -1540,6 +1649,39 @@ func (m *NamespaceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *DeleteProtectionSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeleteProtectionSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteProtectionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EnableDeleteProtection { + i-- + if m.EnableDeleteProtection { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *CodecServerPropertySpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2020,6 +2162,22 @@ func (m *NamespaceSpec) Size() (n int) { l = m.RegionId.Size() n += 1 + l + sovMessage(uint64(l)) } + if m.DeleteProtection != nil { + l = m.DeleteProtection.Size() + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func (m *DeleteProtectionSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EnableDeleteProtection { + n += 2 + } return n } @@ -2235,6 +2393,17 @@ func (this *NamespaceSpec) String() string { `CloudProvider:` + fmt.Sprintf("%v", this.CloudProvider) + `,`, `AuthMethod:` + fmt.Sprintf("%v", this.AuthMethod) + `,`, `RegionId:` + strings.Replace(fmt.Sprintf("%v", this.RegionId), "RegionID", "v1.RegionID", 1) + `,`, + `DeleteProtection:` + strings.Replace(this.DeleteProtection.String(), "DeleteProtectionSpec", "DeleteProtectionSpec", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteProtectionSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteProtectionSpec{`, + `EnableDeleteProtection:` + fmt.Sprintf("%v", this.EnableDeleteProtection) + `,`, `}`, }, "") return s @@ -2769,6 +2938,115 @@ func (m *NamespaceSpec) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeleteProtection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DeleteProtection == nil { + m.DeleteProtection = &DeleteProtectionSpec{} + } + if err := m.DeleteProtection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteProtectionSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteProtectionSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteProtectionSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EnableDeleteProtection", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EnableDeleteProtection = bool(v != 0) default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -4137,4 +4415,4 @@ var ( ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group") -) +) \ No newline at end of file diff --git a/protogen/api/namespace/v1/message_enums.pb.go b/protogen/api/namespace/v1/message_enums.pb.go new file mode 100644 index 0000000..a9f10df --- /dev/null +++ b/protogen/api/namespace/v1/message_enums.pb.go @@ -0,0 +1,92 @@ +// Code generated by protoc-gen-go-versioning. DO NOT EDIT. + +package namespace + +import ( + fmt "fmt" + versioning "github.com/temporalio/saas-proto/tools/versioning" +) + +// Fix enums in Namespace. +// Meant for incoming and outgoing response messages. +func (m *Namespace) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'Spec' + if err := m.GetSpec().FixEnums(overrides, requestVersion); err != nil { + return err + } + + // fix enums for field 'Regions' + for i := range m.Regions { + if err := m.Regions[i].FixEnums(overrides, requestVersion); err != nil { + return err + } + } + + return nil +} + +// Fix enums in NamespaceRegion. +// Meant for incoming and outgoing response messages. +func (m *NamespaceRegion) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'RegionId' + if err := m.GetRegionId().FixEnums(overrides, requestVersion); err != nil { + return err + } + + return nil +} + +// Fix enums in NamespaceSpec. +// Meant for incoming and outgoing response messages. +func (m *NamespaceSpec) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'RegionId' + if err := m.GetRegionId().FixEnums(overrides, requestVersion); err != nil { + return err + } + + return nil +} + +// Validate AuthMethod. +func (e AuthMethod) Validate() error { + if e < 0 || e > 4 { + return fmt.Errorf("invalid AuthMethod (%d)", int32(e)) + } + return nil +} + +// Validate Environment. +func (e Environment) Validate() error { + if e < 0 || e > 3 { + return fmt.Errorf("invalid Environment (%d)", int32(e)) + } + return nil +} + +// Validate SearchAttributeType. +func (e SearchAttributeType) Validate() error { + if e < 0 || e > 7 { + return fmt.Errorf("invalid SearchAttributeType (%d)", int32(e)) + } + return nil +} + +// Validate State. +func (e State) Validate() error { + if e < 0 || e > 11 { + return fmt.Errorf("invalid State (%d)", int32(e)) + } + return nil +} \ No newline at end of file From 59be6810136ff1c7bc77280ff473f3c418a62d63 Mon Sep 17 00:00:00 2001 From: Matt Kim Date: Tue, 3 Dec 2024 16:09:43 -0800 Subject: [PATCH 2/6] add namespace delete protection --- app/namespace.go | 42 ++++++++++++++++++++++++++++++++++++++++++ go.mod | 18 +++++++++--------- go.sum | 33 +++++++++++++++------------------ 3 files changed, 66 insertions(+), 27 deletions(-) diff --git a/app/namespace.go b/app/namespace.go index 89b9f70..0493acf 100644 --- a/app/namespace.go +++ b/app/namespace.go @@ -40,6 +40,7 @@ const ( codecPassAccessTokenFlagName = "pass-access-token" codecIncludeCredentialsFlagName = "include-credentials" sinkRegionFlagName = "region" + enableDeleteProtectionFlagName = "enable-delete-protection" ) const ( @@ -514,6 +515,11 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, Usage: fmt.Sprintf("Flag can be used multiple times; value must be \"email=permission\"; valid permissions are: %v", getNamespacePermissionTypes()), Aliases: []string{"p"}, }, + &cli.BoolFlag{ + Name: enableDeleteProtectionFlagName, + Usage: "Enable delete protection on the namespace", + Aliases: []string{"edp"}, + }, codecEndpointFlag, codecPassAccessTokenFlag, codecIncludeCredentialsFlag, @@ -622,6 +628,10 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, } } + n.Spec.DeleteProtection = &namespace.DeleteProtectionSpec{ + EnableDeleteProtection: ctx.Bool(enableDeleteProtectionFlagName), + } + return c.createNamespace(n, unp) }, }, @@ -652,6 +662,38 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, return c.addRegion(ctx) }, }, + { + Name: "delete-protection", + Usage: "Enable delete protection on a temporal namespace", + Aliases: []string{"dp"}, + Flags: []cli.Flag{ + RequestIDFlag, + ResourceVersionFlag, + &cli.StringFlag{ + Name: NamespaceFlagName, + Usage: "The namespace hosted on temporal cloud", + Aliases: []string{"n"}, + Required: true, + }, + &cli.BoolFlag{ + Name: enableDeleteProtectionFlagName, + Usage: "Enable delete protection on the namespace", + Aliases: []string{"edp"}, + Required: true, + }, + }, + Action: func(ctx *cli.Context) error { + namespaceName := ctx.String(NamespaceFlagName) + n, err := c.getNamespace(namespaceName) + if err != nil { + return err + } + n.Spec.DeleteProtection = &namespace.DeleteProtectionSpec{ + EnableDeleteProtection: ctx.Bool(enableDeleteProtectionFlagName), + } + return c.updateNamespace(ctx, n) + }, + }, { Name: "delete", Usage: "Delete a temporal namespace", diff --git a/go.mod b/go.mod index 735b657..a3d23c7 100644 --- a/go.mod +++ b/go.mod @@ -1,16 +1,19 @@ module github.com/temporalio/tcld -go 1.20 +go 1.22.1 + +toolchain go1.23.2 require ( github.com/go-playground/validator/v10 v10.13.0 github.com/gogo/protobuf v1.3.2 - github.com/gogo/status v1.1.1 github.com/golang/mock v1.6.0 - github.com/golang/protobuf v1.5.3 + github.com/golang/protobuf v1.5.4 github.com/google/uuid v1.4.0 + github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 github.com/kylelemons/godebug v1.1.0 - github.com/stretchr/testify v1.8.4 + github.com/stretchr/testify v1.9.0 + github.com/temporalio/saas-proto v0.469.0 github.com/urfave/cli/v2 v2.25.7 go.uber.org/fx v1.20.1 go.uber.org/multierr v1.11.0 @@ -25,15 +28,12 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect - github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a // indirect - github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 // indirect github.com/leodido/go-urn v1.2.3 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect - go.uber.org/atomic v1.7.0 // indirect go.uber.org/dig v1.17.0 // indirect - go.uber.org/zap v1.23.0 // indirect + go.uber.org/zap v1.27.0 // indirect golang.org/x/crypto v0.19.0 // indirect golang.org/x/net v0.21.0 // indirect golang.org/x/sys v0.17.0 // indirect @@ -41,6 +41,6 @@ require ( google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto v0.0.0-20240205150955-31a09d347014 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240213162025-012b6fc9bca9 // indirect - google.golang.org/protobuf v1.32.0 // indirect + google.golang.org/protobuf v1.33.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index baa300e..2bb72c2 100644 --- a/go.sum +++ b/go.sum @@ -1,31 +1,29 @@ github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= +github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= +github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= github.com/go-playground/validator/v10 v10.13.0 h1:cFRQdfaSMCOSfGCCLB20MHvuoHb/s5G8L5pu2ppK5AQ= github.com/go-playground/validator/v10 v10.13.0/go.mod h1:dwu7+CG8/CtBiJFZDz4e+5Upb6OLw04gtBYw0mcG/z4= -github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a h1:dR8+Q0uO5S2ZBcs2IH6VBKYwSxPo2vYCYq0ot0mu7xA= -github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/gogo/status v1.1.1 h1:DuHXlSFHNKqTQ+/ACf5Vs6r4X/dH2EgIzR9Vr+H65kg= -github.com/gogo/status v1.1.1/go.mod h1:jpG3dM5QPcqu19Hg8lkUhBFBa3TcLs1DG7+2Jqci7oU= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 h1:pRhl55Yx1eC7BZ1N+BBWwnKaMyD8uC+34TLdndZMAKk= @@ -36,7 +34,6 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/leodido/go-urn v1.2.3 h1:6BE2vPT0lqoz3fmOesHZiaiFh7889ssCo2GMvLCfiuA= github.com/leodido/go-urn v1.2.3/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= -github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= @@ -44,12 +41,13 @@ github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/temporalio/saas-proto v0.469.0 h1:Ovi5Dw7kdioHXE35h4YKjktZwAklAHtOdtx2iYWTcYQ= +github.com/temporalio/saas-proto v0.469.0/go.mod h1:oMddQE7KCZKITlLU0NQ7S13ZSvS6rhcgMJsSjRxQ6J4= github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs= github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= @@ -64,11 +62,12 @@ go.uber.org/dig v1.17.0 h1:5Chju+tUvcC+N7N6EV08BJz41UZuO3BmHcN4A287ZLI= go.uber.org/dig v1.17.0/go.mod h1:rTxpf7l5I0eBTlE6/9RL+lDybC7WFwY2QH55ZSjy1mU= go.uber.org/fx v1.20.1 h1:zVwVQGS8zYvhh9Xxcu4w1M6ESyeMzebzj2NbSayZ4Mk= go.uber.org/fx v1.20.1/go.mod h1:iSYNbHf2y55acNCwCXKx7LbWb5WG1Bnue5RDXz1OREg= -go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -go.uber.org/zap v1.23.0 h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY= -go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY= +go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= +go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -128,20 +127,18 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= -google.golang.org/genproto v0.0.0-20180518175338-11a468237815/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20240205150955-31a09d347014 h1:g/4bk7P6TPMkAUbUhquq98xey1slwvuVJPosdBqYJlU= google.golang.org/genproto v0.0.0-20240205150955-31a09d347014/go.mod h1:xEgQu1e4stdSSsxPDK8Azkrk/ECl5HvdPf6nbZrTS5M= google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe h1:0poefMBYvYbs7g5UkjS6HcxBPaTRAmznle9jnxYoAI8= google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:4jWUdICTdgc3Ibxmr8nAJiiLHwQBY0UI0XZcEMaFKaA= google.golang.org/genproto/googleapis/rpc v0.0.0-20240213162025-012b6fc9bca9 h1:hZB7eLIaYlW9qXRfCq/qDaPdbeY3757uARz5Vvfv+cY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240213162025-012b6fc9bca9/go.mod h1:YUWgXUFRPfoYK1IHMuxH5K6nPEXSCzIMljnQ59lLRCk= -google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= -google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From 8adf4408f5513d4b5c82764b28aafbdee3aecf56 Mon Sep 17 00:00:00 2001 From: Matt Kim Date: Tue, 3 Dec 2024 16:17:46 -0800 Subject: [PATCH 3/6] revert --- protogen/api/namespace/v1/message.pb.go | 516 ++++-------------- .../v1/request_response_enums.pb.go | 190 +++++++ 2 files changed, 309 insertions(+), 397 deletions(-) create mode 100644 protogen/api/namespaceservice/v1/request_response_enums.pb.go diff --git a/protogen/api/namespace/v1/message.pb.go b/protogen/api/namespace/v1/message.pb.go index 17976fa..40dfce7 100644 --- a/protogen/api/namespace/v1/message.pb.go +++ b/protogen/api/namespace/v1/message.pb.go @@ -15,7 +15,7 @@ import ( reflect "reflect" strconv "strconv" strings "strings" - v1 "github.com/temporalio/saas-proto/protogen/api/common/v1" + v1 "github.com/temporalio/tcld/protogen/api/common/v1" ) // Reference imports to suppress errors if they are not otherwise used. @@ -201,8 +201,6 @@ type NamespaceSpec struct { AuthMethod AuthMethod `protobuf:"varint,13,opt,name=auth_method,json=authMethod,proto3,enum=api.namespace.v1.AuthMethod" json:"auth_method,omitempty"` // use the new region id for region and cloud provider RegionId *v1.RegionID `protobuf:"bytes,14,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` - // The delete configuration for the namespace. - DeleteProtection *DeleteProtectionSpec `protobuf:"bytes,15,opt,name=delete_protection,json=deleteProtection,proto3" json:"delete_protection,omitempty"` } func (m *NamespaceSpec) Reset() { *m = NamespaceSpec{} } @@ -316,57 +314,6 @@ func (m *NamespaceSpec) GetRegionId() *v1.RegionID { return nil } -func (m *NamespaceSpec) GetDeleteProtection() *DeleteProtectionSpec { - if m != nil { - return m.DeleteProtection - } - return nil -} - -type DeleteProtectionSpec struct { - // Flag to enable delete protection for the namespace. - EnableDeleteProtection bool `protobuf:"varint,1,opt,name=enable_delete_protection,json=enableDeleteProtection,proto3" json:"enable_delete_protection,omitempty"` -} - -func (m *DeleteProtectionSpec) Reset() { *m = DeleteProtectionSpec{} } -func (*DeleteProtectionSpec) ProtoMessage() {} -func (*DeleteProtectionSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{1} -} -func (m *DeleteProtectionSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteProtectionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteProtectionSpec.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DeleteProtectionSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteProtectionSpec.Merge(m, src) -} -func (m *DeleteProtectionSpec) XXX_Size() int { - return m.Size() -} -func (m *DeleteProtectionSpec) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteProtectionSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteProtectionSpec proto.InternalMessageInfo - -func (m *DeleteProtectionSpec) GetEnableDeleteProtection() bool { - if m != nil { - return m.EnableDeleteProtection - } - return false -} - type CodecServerPropertySpec struct { // server endpoints Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` @@ -379,7 +326,7 @@ type CodecServerPropertySpec struct { func (m *CodecServerPropertySpec) Reset() { *m = CodecServerPropertySpec{} } func (*CodecServerPropertySpec) ProtoMessage() {} func (*CodecServerPropertySpec) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{2} + return fileDescriptor_56458b48206aa18d, []int{1} } func (m *CodecServerPropertySpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -445,7 +392,7 @@ type CertificateFilterSpec struct { func (m *CertificateFilterSpec) Reset() { *m = CertificateFilterSpec{} } func (*CertificateFilterSpec) ProtoMessage() {} func (*CertificateFilterSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{3} + return fileDescriptor_56458b48206aa18d, []int{2} } func (m *CertificateFilterSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -516,7 +463,7 @@ type NamespaceURI struct { func (m *NamespaceURI) Reset() { *m = NamespaceURI{} } func (*NamespaceURI) ProtoMessage() {} func (*NamespaceURI) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{4} + return fileDescriptor_56458b48206aa18d, []int{3} } func (m *NamespaceURI) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -589,7 +536,7 @@ type NamespaceEnvelope struct { func (m *NamespaceEnvelope) Reset() { *m = NamespaceEnvelope{} } func (*NamespaceEnvelope) ProtoMessage() {} func (*NamespaceEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{5} + return fileDescriptor_56458b48206aa18d, []int{4} } func (m *NamespaceEnvelope) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -672,7 +619,7 @@ type NamespaceRegion struct { func (m *NamespaceRegion) Reset() { *m = NamespaceRegion{} } func (*NamespaceRegion) ProtoMessage() {} func (*NamespaceRegion) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{6} + return fileDescriptor_56458b48206aa18d, []int{5} } func (m *NamespaceRegion) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -749,7 +696,7 @@ type Namespace struct { func (m *Namespace) Reset() { *m = Namespace{} } func (*Namespace) ProtoMessage() {} func (*Namespace) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{7} + return fileDescriptor_56458b48206aa18d, []int{6} } func (m *Namespace) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -864,7 +811,6 @@ func init() { proto.RegisterEnum("api.namespace.v1.AuthMethod", AuthMethod_name, AuthMethod_value) proto.RegisterType((*NamespaceSpec)(nil), "api.namespace.v1.NamespaceSpec") proto.RegisterMapType((map[string]SearchAttributeType)(nil), "api.namespace.v1.NamespaceSpec.SearchAttributesEntry") - proto.RegisterType((*DeleteProtectionSpec)(nil), "api.namespace.v1.DeleteProtectionSpec") proto.RegisterType((*CodecServerPropertySpec)(nil), "api.namespace.v1.CodecServerPropertySpec") proto.RegisterType((*CertificateFilterSpec)(nil), "api.namespace.v1.CertificateFilterSpec") proto.RegisterType((*NamespaceURI)(nil), "api.namespace.v1.NamespaceURI") @@ -877,119 +823,116 @@ func init() { func init() { proto.RegisterFile("api/namespace/v1/message.proto", fileDescriptor_56458b48206aa18d) } var fileDescriptor_56458b48206aa18d = []byte{ - // 1784 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x57, 0xcd, 0x6f, 0xdb, 0xc8, - 0x15, 0x37, 0x25, 0xda, 0x96, 0x9e, 0xfc, 0x41, 0x8f, 0x93, 0x58, 0x91, 0x1d, 0xc5, 0x51, 0x90, - 0xac, 0x63, 0xd4, 0x72, 0xa2, 0xf4, 0x63, 0xb1, 0xc1, 0x22, 0x95, 0x2d, 0x7a, 0x4d, 0xd7, 0xb6, - 0x54, 0x8a, 0x72, 0x77, 0x8b, 0x02, 0x83, 0x31, 0x39, 0xb6, 0xb9, 0xa1, 0x48, 0xee, 0x70, 0xa4, - 0xc0, 0x45, 0x0f, 0x45, 0xcf, 0x3d, 0x14, 0x05, 0x76, 0xcf, 0x3d, 0xf6, 0xd0, 0x53, 0xff, 0x89, - 0xee, 0x31, 0xc7, 0x3d, 0x36, 0x0e, 0x0a, 0xec, 0x71, 0xff, 0x84, 0x62, 0x86, 0xd4, 0x87, 0x25, - 0xc5, 0xc9, 0x4d, 0x7c, 0xef, 0xf7, 0x7b, 0xef, 0xf7, 0x1e, 0xdf, 0xbc, 0xa1, 0xa0, 0x48, 0x42, - 0x77, 0xdb, 0x27, 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xed, 0x90, 0x79, 0x65, 0xf9, 0xff, 0x65, 0x7b, 0xf4, - 0x8f, 0xf8, 0x8b, 0xfe, 0xc3, 0xe9, 0x8c, 0x14, 0xf6, 0xfc, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, - 0x85, 0xf1, 0xd1, 0x74, 0xad, 0x0f, 0x00, 0x00, + // 1730 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x57, 0xcd, 0x73, 0xdb, 0xd6, + 0x11, 0x17, 0x48, 0x50, 0x22, 0x97, 0xfa, 0x80, 0x9e, 0x6c, 0x8b, 0xa6, 0x64, 0x58, 0xa6, 0xc7, + 0x89, 0xac, 0xa9, 0x28, 0x9b, 0xee, 0x47, 0x26, 0x9e, 0x8c, 0x4b, 0x89, 0x50, 0x04, 0x55, 0x22, + 0x59, 0x10, 0x54, 0x93, 0x4e, 0x67, 0x30, 0x4f, 0xc0, 0x93, 0x84, 0x18, 0x04, 0x90, 0x87, 0x47, + 0x7a, 0xd4, 0xe9, 0xa1, 0xd3, 0x73, 0x0f, 0x99, 0xce, 0x24, 0xe7, 0x1e, 0x7b, 0xe8, 0xa9, 0xff, + 0x44, 0x73, 0xf4, 0x31, 0xc7, 0x5a, 0xbe, 0xe4, 0x98, 0x3f, 0xa1, 0xf3, 0x1e, 0xc0, 0x0f, 0x91, + 0xb4, 0x94, 0x1b, 0xb1, 0xbb, 0xbf, 0xdd, 0xdf, 0xee, 0xdb, 0xdd, 0xf7, 0x08, 0x2a, 0x0e, 0xdd, + 0x1d, 0x1f, 0x77, 0x48, 0x14, 0x62, 0x9b, 0xec, 0xf4, 0x9e, 0xef, 0x74, 0x48, 0x14, 0xe1, 0x73, + 0x52, 0x0e, 0x69, 0xc0, 0x02, 0xa4, 0xe0, 0xd0, 0x2d, 0x0f, 0xf4, 0xe5, 0xde, 0xf3, 0xe2, 0xc3, + 0xf3, 0x20, 0x38, 0xf7, 0xc8, 0x8e, 0xd0, 0x9f, 0x76, 0xcf, 0x76, 0x98, 0xdb, 0x21, 0x11, 0xc3, + 0x9d, 0x30, 0x86, 0x14, 0x37, 0xc6, 0x0d, 0x1c, 0x12, 0xd9, 0xd4, 0x0d, 0x59, 0x40, 0x13, 0x0b, + 0x75, 0xdc, 0xe2, 0x0d, 0xc5, 0x61, 0x48, 0x68, 0x94, 0xe8, 0xd7, 0x38, 0x29, 0x3b, 0xe8, 0x74, + 0x02, 0x7f, 0x82, 0x51, 0xe9, 0x9b, 0x59, 0x58, 0xa8, 0xf7, 0x09, 0xb5, 0x42, 0x62, 0xa3, 0x22, + 0xcc, 0x52, 0x72, 0xee, 0x06, 0x7e, 0x41, 0xda, 0x90, 0x36, 0x73, 0xbb, 0xa9, 0x82, 0x64, 0x24, + 0x12, 0xf4, 0x0b, 0x40, 0xd8, 0xb6, 0x49, 0xc8, 0x88, 0x63, 0xd9, 0x9e, 0x4b, 0x7c, 0x66, 0xd9, + 0xb8, 0x90, 0xe2, 0x76, 0x86, 0xd2, 0xd7, 0xec, 0x09, 0xc5, 0x1e, 0x46, 0x4f, 0x60, 0x91, 0x12, + 0x46, 0x7c, 0xe6, 0x06, 0xbe, 0xe5, 0xe0, 0xcb, 0xa8, 0x90, 0xde, 0x90, 0x36, 0x33, 0xc6, 0xc2, + 0x40, 0x5a, 0xc3, 0x97, 0x11, 0x3a, 0x85, 0xe5, 0x88, 0x60, 0x6a, 0x5f, 0x58, 0x98, 0x31, 0xea, + 0x9e, 0x76, 0x19, 0x89, 0x0a, 0xf2, 0x46, 0x7a, 0x33, 0x5f, 0xf9, 0x55, 0x79, 0xbc, 0x60, 0xe5, + 0x6b, 0x64, 0xcb, 0x2d, 0x01, 0xac, 0x0e, 0x70, 0x9a, 0xcf, 0xe8, 0xa5, 0xa1, 0x44, 0x63, 0x62, + 0xf4, 0x05, 0xac, 0xd8, 0x84, 0x32, 0xf7, 0xcc, 0xb5, 0x31, 0x23, 0xd6, 0x99, 0xeb, 0x31, 0x42, + 0xa3, 0x42, 0x46, 0x44, 0xf9, 0x78, 0x32, 0xca, 0xde, 0xd0, 0x78, 0x5f, 0xd8, 0xf2, 0x68, 0x06, + 0xb2, 0xc7, 0xc5, 0x11, 0x7a, 0x05, 0x79, 0xe2, 0xf7, 0x5c, 0x1a, 0xf8, 0x1d, 0xe2, 0xb3, 0xc2, + 0xec, 0x86, 0xb4, 0xb9, 0x58, 0x79, 0x30, 0xe9, 0x51, 0x1b, 0x1a, 0x19, 0xa3, 0x08, 0x74, 0x00, + 0x60, 0x07, 0x0e, 0xb1, 0xad, 0x28, 0x24, 0x76, 0x21, 0xbb, 0x21, 0x6d, 0xe6, 0x2b, 0x4f, 0xa7, + 0x30, 0xe2, 0x36, 0x2d, 0x42, 0x7b, 0x84, 0x36, 0x69, 0x10, 0x12, 0xca, 0x2e, 0x05, 0xa7, 0x9c, + 0x00, 0x8b, 0x93, 0xfb, 0x18, 0x96, 0x42, 0x1c, 0x45, 0x6e, 0x8f, 0x58, 0xf1, 0x79, 0x45, 0x85, + 0xdc, 0x46, 0x7a, 0x33, 0x67, 0x2c, 0x26, 0x62, 0x23, 0x96, 0xa2, 0xa7, 0xb0, 0x68, 0x7b, 0x41, + 0xd7, 0xb1, 0x42, 0x1a, 0xf4, 0x5c, 0x87, 0xd0, 0x02, 0x0c, 0x8e, 0x7a, 0x41, 0x68, 0x9a, 0x89, + 0x02, 0x7d, 0x06, 0x79, 0xdc, 0x65, 0x17, 0x56, 0x87, 0xb0, 0x8b, 0xc0, 0x29, 0x2c, 0x88, 0xf4, + 0xd6, 0x27, 0xe9, 0x55, 0xbb, 0xec, 0xe2, 0x58, 0xd8, 0x18, 0x80, 0x07, 0xbf, 0xd1, 0x2f, 0x21, + 0x17, 0x53, 0xb1, 0x5c, 0xa7, 0xb0, 0x28, 0x72, 0x5b, 0x15, 0xe0, 0xb8, 0x1f, 0x39, 0x32, 0x26, + 0xa5, 0xd7, 0x8c, 0x6c,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 0x6e, 0xe3, 0xc2, 0x3f, 0xbf, 0x8b, 0x1f, + 0x6b, 0x80, 0x43, 0x37, 0x59, 0xa2, 0xbb, 0x9d, 0xbf, 0xfd, 0xe7, 0xfe, 0x42, 0xe5, 0x59, 0xe5, + 0xc5, 0xf6, 0xb3, 0xdf, 0x6c, 0x57, 0x7e, 0xbd, 0xfd, 0xec, 0xf9, 0xdb, 0x77, 0xea, 0xcc, 0x0f, + 0xef, 0xd4, 0x99, 0x9f, 0xde, 0xa9, 0xd2, 0x5f, 0xaf, 0x54, 0xe9, 0x5f, 0x57, 0xaa, 0xf4, 0xfd, + 0x95, 0x2a, 0xbd, 0xbd, 0x52, 0xa5, 0xff, 0x5d, 0xa9, 0xd2, 0x8f, 0x57, 0xea, 0xcc, 0x4f, 0x57, + 0xaa, 0xf4, 0xcd, 0x7b, 0x75, 0xe6, 0xed, 0x7b, 0x75, 0xe6, 0x87, 0xf7, 0xea, 0xcc, 0x1f, 0x3f, + 0x62, 0x9d, 0x90, 0x7a, 0x65, 0xf1, 0xc7, 0x60, 0x67, 0xfc, 0x1f, 0xee, 0xcb, 0xc1, 0xc7, 0xe9, + 0xac, 0x20, 0xf6, 0xe2, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x4a, 0x77, 0x24, 0x06, 0x0f, + 0x00, 0x00, } func (x SearchAttributeType) String() string { @@ -1087,33 +1030,6 @@ func (this *NamespaceSpec) Equal(that interface{}) bool { if !this.RegionId.Equal(that1.RegionId) { return false } - if !this.DeleteProtection.Equal(that1.DeleteProtection) { - return false - } - return true -} -func (this *DeleteProtectionSpec) Equal(that interface{}) bool { - if that == nil { - return this == nil - } - - that1, ok := that.(*DeleteProtectionSpec) - if !ok { - that2, ok := that.(DeleteProtectionSpec) - if ok { - that1 = &that2 - } else { - return false - } - } - if that1 == nil { - return this == nil - } else if this == nil { - return false - } - if this.EnableDeleteProtection != that1.EnableDeleteProtection { - return false - } return true } func (this *CodecServerPropertySpec) Equal(that interface{}) bool { @@ -1351,7 +1267,7 @@ func (this *NamespaceSpec) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 16) + s := make([]string, 0, 15) s = append(s, "&namespace.NamespaceSpec{") s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") s = append(s, "AcceptedClientCa: "+fmt.Sprintf("%#v", this.AcceptedClientCa)+",\n") @@ -1382,19 +1298,6 @@ func (this *NamespaceSpec) GoString() string { if this.RegionId != nil { s = append(s, "RegionId: "+fmt.Sprintf("%#v", this.RegionId)+",\n") } - if this.DeleteProtection != nil { - s = append(s, "DeleteProtection: "+fmt.Sprintf("%#v", this.DeleteProtection)+",\n") - } - s = append(s, "}") - return strings.Join(s, "") -} -func (this *DeleteProtectionSpec) GoString() string { - if this == nil { - return "nil" - } - s := make([]string, 0, 5) - s = append(s, "&namespace.DeleteProtectionSpec{") - s = append(s, "EnableDeleteProtection: "+fmt.Sprintf("%#v", this.EnableDeleteProtection)+",\n") s = append(s, "}") return strings.Join(s, "") } @@ -1534,18 +1437,6 @@ func (m *NamespaceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if m.DeleteProtection != nil { - { - size, err := m.DeleteProtection.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMessage(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } if m.RegionId != nil { { size, err := m.RegionId.MarshalToSizedBuffer(dAtA[:i]) @@ -1649,39 +1540,6 @@ func (m *NamespaceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *DeleteProtectionSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteProtectionSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteProtectionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.EnableDeleteProtection { - i-- - if m.EnableDeleteProtection { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - func (m *CodecServerPropertySpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2162,22 +2020,6 @@ func (m *NamespaceSpec) Size() (n int) { l = m.RegionId.Size() n += 1 + l + sovMessage(uint64(l)) } - if m.DeleteProtection != nil { - l = m.DeleteProtection.Size() - n += 1 + l + sovMessage(uint64(l)) - } - return n -} - -func (m *DeleteProtectionSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EnableDeleteProtection { - n += 2 - } return n } @@ -2393,17 +2235,6 @@ func (this *NamespaceSpec) String() string { `CloudProvider:` + fmt.Sprintf("%v", this.CloudProvider) + `,`, `AuthMethod:` + fmt.Sprintf("%v", this.AuthMethod) + `,`, `RegionId:` + strings.Replace(fmt.Sprintf("%v", this.RegionId), "RegionID", "v1.RegionID", 1) + `,`, - `DeleteProtection:` + strings.Replace(this.DeleteProtection.String(), "DeleteProtectionSpec", "DeleteProtectionSpec", 1) + `,`, - `}`, - }, "") - return s -} -func (this *DeleteProtectionSpec) String() string { - if this == nil { - return "nil" - } - s := strings.Join([]string{`&DeleteProtectionSpec{`, - `EnableDeleteProtection:` + fmt.Sprintf("%v", this.EnableDeleteProtection) + `,`, `}`, }, "") return s @@ -2938,115 +2769,6 @@ func (m *NamespaceSpec) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteProtection", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessage - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMessage - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMessage - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeleteProtection == nil { - m.DeleteProtection = &DeleteProtectionSpec{} - } - if err := m.DeleteProtection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMessage(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthMessage - } - if (iNdEx + skippy) < 0 { - return ErrInvalidLengthMessage - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteProtectionSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessage - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DeleteProtectionSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteProtectionSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field EnableDeleteProtection", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMessage - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.EnableDeleteProtection = bool(v != 0) default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -4415,4 +4137,4 @@ var ( ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group") -) \ No newline at end of file +) diff --git a/protogen/api/namespaceservice/v1/request_response_enums.pb.go b/protogen/api/namespaceservice/v1/request_response_enums.pb.go new file mode 100644 index 0000000..6f57f75 --- /dev/null +++ b/protogen/api/namespaceservice/v1/request_response_enums.pb.go @@ -0,0 +1,190 @@ +// Code generated by protoc-gen-go-versioning. DO NOT EDIT. + +package namespaceservice + +import ( + versioning "github.com/temporalio/saas-proto/tools/versioning" +) + +// Fix enums in CreateNamespaceRequest. +// Meant for incoming and outgoing response messages. +func (m *CreateNamespaceRequest) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'Spec' + if err := m.GetSpec().FixEnums(overrides, requestVersion); err != nil { + return err + } + + return nil +} + +// Fix enums in FailoverNamespaceRequest. +// Meant for incoming and outgoing response messages. +func (m *FailoverNamespaceRequest) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'TargetRegion' + if err := m.GetTargetRegion().FixEnums(overrides, requestVersion); err != nil { + return err + } + + return nil +} + +// Fix enums in FailoverRecord. +// Meant for incoming and outgoing response messages. +func (m *FailoverRecord) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'SourceRegion' + if err := m.GetSourceRegion().FixEnums(overrides, requestVersion); err != nil { + return err + } + + // fix enums for field 'TargetRegion' + if err := m.GetTargetRegion().FixEnums(overrides, requestVersion); err != nil { + return err + } + + return nil +} + +// Fix enums in GetNamespaceResponse. +// Meant for incoming and outgoing response messages. +func (m *GetNamespaceResponse) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'Namespace' + if err := m.GetNamespace().FixEnums(overrides, requestVersion); err != nil { + return err + } + + return nil +} + +// Fix enums in GetNamespacesResponse. +// Meant for incoming and outgoing response messages. +func (m *GetNamespacesResponse) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'Namespaces' + for i := range m.Namespaces { + if err := m.Namespaces[i].FixEnums(overrides, requestVersion); err != nil { + return err + } + } + + return nil +} + +// Fix enums in GetReplicationStatusResponse. +// Meant for incoming and outgoing response messages. +func (m *GetReplicationStatusResponse) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'ReplicationStatus' + for i := range m.ReplicationStatus { + if err := m.ReplicationStatus[i].FixEnums(overrides, requestVersion); err != nil { + return err + } + } + + return nil +} + +// Fix enums in GlobalizeNamespaceRequest. +// Meant for incoming and outgoing response messages. +func (m *GlobalizeNamespaceRequest) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'TargetRegion' + if err := m.GetTargetRegion().FixEnums(overrides, requestVersion); err != nil { + return err + } + + return nil +} + +// Fix enums in ListFailoverHistoryByNamespaceResponse. +// Meant for incoming and outgoing response messages. +func (m *ListFailoverHistoryByNamespaceResponse) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'FailoverHistory' + for i := range m.FailoverHistory { + if err := m.FailoverHistory[i].FixEnums(overrides, requestVersion); err != nil { + return err + } + } + + return nil +} + +// Fix enums in ListReplicaStatusResponse. +// Meant for incoming and outgoing response messages. +func (m *ListReplicaStatusResponse) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'Statuses' + for i := range m.Statuses { + if err := m.Statuses[i].FixEnums(overrides, requestVersion); err != nil { + return err + } + } + + return nil +} + +// Fix enums in ReplicationStatus. +// Meant for incoming and outgoing response messages. +func (m *ReplicationStatus) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'SourceRegion' + if err := m.GetSourceRegion().FixEnums(overrides, requestVersion); err != nil { + return err + } + + // fix enums for field 'TargetRegion' + if err := m.GetTargetRegion().FixEnums(overrides, requestVersion); err != nil { + return err + } + + return nil +} + +// Fix enums in UpdateNamespaceRequest. +// Meant for incoming and outgoing response messages. +func (m *UpdateNamespaceRequest) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { + if m == nil { + return nil + } + + // fix enums for field 'Spec' + if err := m.GetSpec().FixEnums(overrides, requestVersion); err != nil { + return err + } + + return nil +} \ No newline at end of file From fdda070d2d1128861b60bb241a9795ad9221ef51 Mon Sep 17 00:00:00 2001 From: Matt Kim Date: Tue, 3 Dec 2024 16:18:41 -0800 Subject: [PATCH 4/6] revert --- protogen/api/namespace/v1/message_enums.pb.go | 92 --------- .../v1/request_response_enums.pb.go | 190 ------------------ 2 files changed, 282 deletions(-) delete mode 100644 protogen/api/namespace/v1/message_enums.pb.go delete mode 100644 protogen/api/namespaceservice/v1/request_response_enums.pb.go diff --git a/protogen/api/namespace/v1/message_enums.pb.go b/protogen/api/namespace/v1/message_enums.pb.go deleted file mode 100644 index a9f10df..0000000 --- a/protogen/api/namespace/v1/message_enums.pb.go +++ /dev/null @@ -1,92 +0,0 @@ -// Code generated by protoc-gen-go-versioning. DO NOT EDIT. - -package namespace - -import ( - fmt "fmt" - versioning "github.com/temporalio/saas-proto/tools/versioning" -) - -// Fix enums in Namespace. -// Meant for incoming and outgoing response messages. -func (m *Namespace) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'Spec' - if err := m.GetSpec().FixEnums(overrides, requestVersion); err != nil { - return err - } - - // fix enums for field 'Regions' - for i := range m.Regions { - if err := m.Regions[i].FixEnums(overrides, requestVersion); err != nil { - return err - } - } - - return nil -} - -// Fix enums in NamespaceRegion. -// Meant for incoming and outgoing response messages. -func (m *NamespaceRegion) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'RegionId' - if err := m.GetRegionId().FixEnums(overrides, requestVersion); err != nil { - return err - } - - return nil -} - -// Fix enums in NamespaceSpec. -// Meant for incoming and outgoing response messages. -func (m *NamespaceSpec) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'RegionId' - if err := m.GetRegionId().FixEnums(overrides, requestVersion); err != nil { - return err - } - - return nil -} - -// Validate AuthMethod. -func (e AuthMethod) Validate() error { - if e < 0 || e > 4 { - return fmt.Errorf("invalid AuthMethod (%d)", int32(e)) - } - return nil -} - -// Validate Environment. -func (e Environment) Validate() error { - if e < 0 || e > 3 { - return fmt.Errorf("invalid Environment (%d)", int32(e)) - } - return nil -} - -// Validate SearchAttributeType. -func (e SearchAttributeType) Validate() error { - if e < 0 || e > 7 { - return fmt.Errorf("invalid SearchAttributeType (%d)", int32(e)) - } - return nil -} - -// Validate State. -func (e State) Validate() error { - if e < 0 || e > 11 { - return fmt.Errorf("invalid State (%d)", int32(e)) - } - return nil -} \ No newline at end of file diff --git a/protogen/api/namespaceservice/v1/request_response_enums.pb.go b/protogen/api/namespaceservice/v1/request_response_enums.pb.go deleted file mode 100644 index 6f57f75..0000000 --- a/protogen/api/namespaceservice/v1/request_response_enums.pb.go +++ /dev/null @@ -1,190 +0,0 @@ -// Code generated by protoc-gen-go-versioning. DO NOT EDIT. - -package namespaceservice - -import ( - versioning "github.com/temporalio/saas-proto/tools/versioning" -) - -// Fix enums in CreateNamespaceRequest. -// Meant for incoming and outgoing response messages. -func (m *CreateNamespaceRequest) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'Spec' - if err := m.GetSpec().FixEnums(overrides, requestVersion); err != nil { - return err - } - - return nil -} - -// Fix enums in FailoverNamespaceRequest. -// Meant for incoming and outgoing response messages. -func (m *FailoverNamespaceRequest) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'TargetRegion' - if err := m.GetTargetRegion().FixEnums(overrides, requestVersion); err != nil { - return err - } - - return nil -} - -// Fix enums in FailoverRecord. -// Meant for incoming and outgoing response messages. -func (m *FailoverRecord) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'SourceRegion' - if err := m.GetSourceRegion().FixEnums(overrides, requestVersion); err != nil { - return err - } - - // fix enums for field 'TargetRegion' - if err := m.GetTargetRegion().FixEnums(overrides, requestVersion); err != nil { - return err - } - - return nil -} - -// Fix enums in GetNamespaceResponse. -// Meant for incoming and outgoing response messages. -func (m *GetNamespaceResponse) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'Namespace' - if err := m.GetNamespace().FixEnums(overrides, requestVersion); err != nil { - return err - } - - return nil -} - -// Fix enums in GetNamespacesResponse. -// Meant for incoming and outgoing response messages. -func (m *GetNamespacesResponse) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'Namespaces' - for i := range m.Namespaces { - if err := m.Namespaces[i].FixEnums(overrides, requestVersion); err != nil { - return err - } - } - - return nil -} - -// Fix enums in GetReplicationStatusResponse. -// Meant for incoming and outgoing response messages. -func (m *GetReplicationStatusResponse) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'ReplicationStatus' - for i := range m.ReplicationStatus { - if err := m.ReplicationStatus[i].FixEnums(overrides, requestVersion); err != nil { - return err - } - } - - return nil -} - -// Fix enums in GlobalizeNamespaceRequest. -// Meant for incoming and outgoing response messages. -func (m *GlobalizeNamespaceRequest) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'TargetRegion' - if err := m.GetTargetRegion().FixEnums(overrides, requestVersion); err != nil { - return err - } - - return nil -} - -// Fix enums in ListFailoverHistoryByNamespaceResponse. -// Meant for incoming and outgoing response messages. -func (m *ListFailoverHistoryByNamespaceResponse) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'FailoverHistory' - for i := range m.FailoverHistory { - if err := m.FailoverHistory[i].FixEnums(overrides, requestVersion); err != nil { - return err - } - } - - return nil -} - -// Fix enums in ListReplicaStatusResponse. -// Meant for incoming and outgoing response messages. -func (m *ListReplicaStatusResponse) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'Statuses' - for i := range m.Statuses { - if err := m.Statuses[i].FixEnums(overrides, requestVersion); err != nil { - return err - } - } - - return nil -} - -// Fix enums in ReplicationStatus. -// Meant for incoming and outgoing response messages. -func (m *ReplicationStatus) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'SourceRegion' - if err := m.GetSourceRegion().FixEnums(overrides, requestVersion); err != nil { - return err - } - - // fix enums for field 'TargetRegion' - if err := m.GetTargetRegion().FixEnums(overrides, requestVersion); err != nil { - return err - } - - return nil -} - -// Fix enums in UpdateNamespaceRequest. -// Meant for incoming and outgoing response messages. -func (m *UpdateNamespaceRequest) FixEnums(overrides *versioning.StringOverrides, requestVersion string) error { - if m == nil { - return nil - } - - // fix enums for field 'Spec' - if err := m.GetSpec().FixEnums(overrides, requestVersion); err != nil { - return err - } - - return nil -} \ No newline at end of file From 242377b33714736c32268ee825a9a174295576c7 Mon Sep 17 00:00:00 2001 From: Matt Kim Date: Tue, 3 Dec 2024 16:44:55 -0800 Subject: [PATCH 5/6] add tests --- app/namespace.go | 40 +- app/namespace_test.go | 105 +++++ go.mod | 18 +- go.sum | 33 +- protogen/api/namespace/v1/message.pb.go | 516 ++++++++++++++++++------ 5 files changed, 563 insertions(+), 149 deletions(-) diff --git a/app/namespace.go b/app/namespace.go index 0493acf..a533334 100644 --- a/app/namespace.go +++ b/app/namespace.go @@ -41,6 +41,7 @@ const ( codecIncludeCredentialsFlagName = "include-credentials" sinkRegionFlagName = "region" enableDeleteProtectionFlagName = "enable-delete-protection" + disableDeleteProtectionFlagName = "disable-delete-protection" ) const ( @@ -676,21 +677,48 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, Required: true, }, &cli.BoolFlag{ - Name: enableDeleteProtectionFlagName, - Usage: "Enable delete protection on the namespace", - Aliases: []string{"edp"}, - Required: true, + Name: enableDeleteProtectionFlagName, + Usage: "Enable delete protection on the namespace", + Aliases: []string{"edp"}, + }, + &cli.BoolFlag{ + Name: disableDeleteProtectionFlagName, + Usage: "Enable delete protection on the namespace", + Aliases: []string{"ddp"}, }, }, Action: func(ctx *cli.Context) error { + enable := ctx.Bool(enableDeleteProtectionFlagName) + disable := ctx.Bool(disableDeleteProtectionFlagName) + if !enable && !disable { + return errors.New("either enable or disable delete protection is required") + } + if enable && disable { + return errors.New("cannot set both enable and disable delete protection flags") + } + namespaceName := ctx.String(NamespaceFlagName) n, err := c.getNamespace(namespaceName) if err != nil { return err } - n.Spec.DeleteProtection = &namespace.DeleteProtectionSpec{ - EnableDeleteProtection: ctx.Bool(enableDeleteProtectionFlagName), + + if enable { + if n.Spec.DeleteProtection != nil && n.Spec.DeleteProtection.EnableDeleteProtection { + return errors.New("delete protection is already enabled") + } + n.Spec.DeleteProtection = &namespace.DeleteProtectionSpec{ + EnableDeleteProtection: true, + } + } else if disable { + if n.Spec.DeleteProtection == nil || !n.Spec.DeleteProtection.EnableDeleteProtection { + return errors.New("delete protection is already disabled") + } + n.Spec.DeleteProtection = &namespace.DeleteProtectionSpec{ + EnableDeleteProtection: false, + } } + return c.updateNamespace(ctx, n) }, }, diff --git a/app/namespace_test.go b/app/namespace_test.go index 9a4a710..504ae56 100644 --- a/app/namespace_test.go +++ b/app/namespace_test.go @@ -149,6 +149,111 @@ func (s *NamespaceTestSuite) TestList() { s.NoError(s.RunCmd("namespace", "list")) } +func (s *NamespaceTestSuite) TestDeleteProtection() { + ns := "ns1" + type morphGetResp func(*namespaceservice.GetNamespaceResponse) + type morphUpdateReq func(*namespaceservice.UpdateNamespaceRequest) + + tests := []struct { + name string + args []string + expectGet morphGetResp + expectErr bool + expectUpdate morphUpdateReq + }{ + { + name: "help", + args: []string{"namespace", "delete-protection"}, + expectErr: true, + }, + { + name: "no args", + args: []string{"namespace", "delete-protection", "enable-delete-protection"}, + expectErr: true, + }, + { + name: "alias with no args", + args: []string{"n", "dp"}, + expectErr: true, + }, + { + name: "missing bool flag", + args: []string{"n", "dp", "-n", ns}, + expectErr: true, + }, + { + name: "success enable", + args: []string{"n", "dp", "-n", ns, "--edp"}, + expectGet: func(g *namespaceservice.GetNamespaceResponse) {}, + expectUpdate: func(r *namespaceservice.UpdateNamespaceRequest) { + r.Spec.DeleteProtection = &namespace.DeleteProtectionSpec{ + EnableDeleteProtection: true, + } + }, + }, + { + name: "no change already disabled", + args: []string{"n", "dp", "-n", ns, "--ddp"}, + expectGet: func(g *namespaceservice.GetNamespaceResponse) {}, + expectErr: true, + }, + { + name: "missing namespace", + args: []string{"n", "dp", "-n", ns, "--edp"}, + expectGet: func(g *namespaceservice.GetNamespaceResponse) { + g.Namespace = nil + }, + expectErr: true, + }, + } + + for _, tc := range tests { + s.Run(tc.name, func() { + getResp := namespaceservice.GetNamespaceResponse{ + Namespace: &namespace.Namespace{ + Namespace: ns, + Spec: &namespace.NamespaceSpec{ + SearchAttributes: map[string]namespace.SearchAttributeType{ + "attr1": namespace.SEARCH_ATTRIBUTE_TYPE_BOOL, + }, + RetentionDays: 7, + AuthMethod: namespace.AUTH_METHOD_RESTRICTED, + }, + State: namespace.STATE_ACTIVE, + ResourceVersion: "ver1", + }, + } + if tc.expectGet != nil { + tc.expectGet(&getResp) + s.mockService.EXPECT().GetNamespace(gomock.Any(), &namespaceservice.GetNamespaceRequest{ + Namespace: ns, + }).Return(&getResp, nil).Times(1) + } + + if tc.expectUpdate != nil { + spec := *(getResp.Namespace.Spec) + req := namespaceservice.UpdateNamespaceRequest{ + Namespace: ns, + Spec: &spec, + ResourceVersion: getResp.Namespace.ResourceVersion, + } + tc.expectUpdate(&req) + s.mockService.EXPECT().UpdateNamespace(gomock.Any(), &req). + Return(&namespaceservice.UpdateNamespaceResponse{ + RequestStatus: &request.RequestStatus{}, + }, nil).Times(1) + } + + err := s.RunCmd(tc.args...) + if tc.expectErr { + s.Error(err) + } else { + s.NoError(err) + } + }) + } +} + func (s *NamespaceTestSuite) TestUpdateAuthMethod() { ns := "ns1" type morphGetResp func(*namespaceservice.GetNamespaceResponse) diff --git a/go.mod b/go.mod index a3d23c7..735b657 100644 --- a/go.mod +++ b/go.mod @@ -1,19 +1,16 @@ module github.com/temporalio/tcld -go 1.22.1 - -toolchain go1.23.2 +go 1.20 require ( github.com/go-playground/validator/v10 v10.13.0 github.com/gogo/protobuf v1.3.2 + github.com/gogo/status v1.1.1 github.com/golang/mock v1.6.0 - github.com/golang/protobuf v1.5.4 + github.com/golang/protobuf v1.5.3 github.com/google/uuid v1.4.0 - github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 github.com/kylelemons/godebug v1.1.0 - github.com/stretchr/testify v1.9.0 - github.com/temporalio/saas-proto v0.469.0 + github.com/stretchr/testify v1.8.4 github.com/urfave/cli/v2 v2.25.7 go.uber.org/fx v1.20.1 go.uber.org/multierr v1.11.0 @@ -28,12 +25,15 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect + github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a // indirect + github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 // indirect github.com/leodido/go-urn v1.2.3 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect + go.uber.org/atomic v1.7.0 // indirect go.uber.org/dig v1.17.0 // indirect - go.uber.org/zap v1.27.0 // indirect + go.uber.org/zap v1.23.0 // indirect golang.org/x/crypto v0.19.0 // indirect golang.org/x/net v0.21.0 // indirect golang.org/x/sys v0.17.0 // indirect @@ -41,6 +41,6 @@ require ( google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto v0.0.0-20240205150955-31a09d347014 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240213162025-012b6fc9bca9 // indirect - google.golang.org/protobuf v1.33.0 // indirect + google.golang.org/protobuf v1.32.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 2bb72c2..baa300e 100644 --- a/go.sum +++ b/go.sum @@ -1,29 +1,31 @@ github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= -github.com/benbjohnson/clock v1.3.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= -github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= github.com/go-playground/validator/v10 v10.13.0 h1:cFRQdfaSMCOSfGCCLB20MHvuoHb/s5G8L5pu2ppK5AQ= github.com/go-playground/validator/v10 v10.13.0/go.mod h1:dwu7+CG8/CtBiJFZDz4e+5Upb6OLw04gtBYw0mcG/z4= +github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a h1:dR8+Q0uO5S2ZBcs2IH6VBKYwSxPo2vYCYq0ot0mu7xA= +github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/gogo/status v1.1.1 h1:DuHXlSFHNKqTQ+/ACf5Vs6r4X/dH2EgIzR9Vr+H65kg= +github.com/gogo/status v1.1.1/go.mod h1:jpG3dM5QPcqu19Hg8lkUhBFBa3TcLs1DG7+2Jqci7oU= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= -github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 h1:pRhl55Yx1eC7BZ1N+BBWwnKaMyD8uC+34TLdndZMAKk= @@ -34,6 +36,7 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/leodido/go-urn v1.2.3 h1:6BE2vPT0lqoz3fmOesHZiaiFh7889ssCo2GMvLCfiuA= github.com/leodido/go-urn v1.2.3/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= +github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= @@ -41,13 +44,12 @@ github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/temporalio/saas-proto v0.469.0 h1:Ovi5Dw7kdioHXE35h4YKjktZwAklAHtOdtx2iYWTcYQ= -github.com/temporalio/saas-proto v0.469.0/go.mod h1:oMddQE7KCZKITlLU0NQ7S13ZSvS6rhcgMJsSjRxQ6J4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs= github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= @@ -62,12 +64,11 @@ go.uber.org/dig v1.17.0 h1:5Chju+tUvcC+N7N6EV08BJz41UZuO3BmHcN4A287ZLI= go.uber.org/dig v1.17.0/go.mod h1:rTxpf7l5I0eBTlE6/9RL+lDybC7WFwY2QH55ZSjy1mU= go.uber.org/fx v1.20.1 h1:zVwVQGS8zYvhh9Xxcu4w1M6ESyeMzebzj2NbSayZ4Mk= go.uber.org/fx v1.20.1/go.mod h1:iSYNbHf2y55acNCwCXKx7LbWb5WG1Bnue5RDXz1OREg= -go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= -go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8= -go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E= +go.uber.org/zap v1.23.0 h1:OjGQ5KQDEUawVHxNwQgPpiypGHOxo2mNZsOqTak4fFY= +go.uber.org/zap v1.23.0/go.mod h1:D+nX8jyLsMHMYrln8A0rJjFt/T/9/bGgIhAqxv5URuY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -127,18 +128,20 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= +google.golang.org/genproto v0.0.0-20180518175338-11a468237815/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20240205150955-31a09d347014 h1:g/4bk7P6TPMkAUbUhquq98xey1slwvuVJPosdBqYJlU= google.golang.org/genproto v0.0.0-20240205150955-31a09d347014/go.mod h1:xEgQu1e4stdSSsxPDK8Azkrk/ECl5HvdPf6nbZrTS5M= google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe h1:0poefMBYvYbs7g5UkjS6HcxBPaTRAmznle9jnxYoAI8= google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:4jWUdICTdgc3Ibxmr8nAJiiLHwQBY0UI0XZcEMaFKaA= google.golang.org/genproto/googleapis/rpc v0.0.0-20240213162025-012b6fc9bca9 h1:hZB7eLIaYlW9qXRfCq/qDaPdbeY3757uARz5Vvfv+cY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240213162025-012b6fc9bca9/go.mod h1:YUWgXUFRPfoYK1IHMuxH5K6nPEXSCzIMljnQ59lLRCk= +google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= +google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/protogen/api/namespace/v1/message.pb.go b/protogen/api/namespace/v1/message.pb.go index 40dfce7..76b33e8 100644 --- a/protogen/api/namespace/v1/message.pb.go +++ b/protogen/api/namespace/v1/message.pb.go @@ -9,13 +9,13 @@ import ( github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" types "github.com/gogo/protobuf/types" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" + v1 "github.com/temporalio/tcld/protogen/api/common/v1" io "io" math "math" math_bits "math/bits" reflect "reflect" strconv "strconv" strings "strings" - v1 "github.com/temporalio/tcld/protogen/api/common/v1" ) // Reference imports to suppress errors if they are not otherwise used. @@ -201,6 +201,8 @@ type NamespaceSpec struct { AuthMethod AuthMethod `protobuf:"varint,13,opt,name=auth_method,json=authMethod,proto3,enum=api.namespace.v1.AuthMethod" json:"auth_method,omitempty"` // use the new region id for region and cloud provider RegionId *v1.RegionID `protobuf:"bytes,14,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` + // The delete configuration for the namespace. + DeleteProtection *DeleteProtectionSpec `protobuf:"bytes,15,opt,name=delete_protection,json=deleteProtection,proto3" json:"delete_protection,omitempty"` } func (m *NamespaceSpec) Reset() { *m = NamespaceSpec{} } @@ -314,6 +316,57 @@ func (m *NamespaceSpec) GetRegionId() *v1.RegionID { return nil } +func (m *NamespaceSpec) GetDeleteProtection() *DeleteProtectionSpec { + if m != nil { + return m.DeleteProtection + } + return nil +} + +type DeleteProtectionSpec struct { + // Flag to enable delete protection for the namespace. + EnableDeleteProtection bool `protobuf:"varint,1,opt,name=enable_delete_protection,json=enableDeleteProtection,proto3" json:"enable_delete_protection,omitempty"` +} + +func (m *DeleteProtectionSpec) Reset() { *m = DeleteProtectionSpec{} } +func (*DeleteProtectionSpec) ProtoMessage() {} +func (*DeleteProtectionSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_56458b48206aa18d, []int{1} +} +func (m *DeleteProtectionSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DeleteProtectionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DeleteProtectionSpec.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DeleteProtectionSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteProtectionSpec.Merge(m, src) +} +func (m *DeleteProtectionSpec) XXX_Size() int { + return m.Size() +} +func (m *DeleteProtectionSpec) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteProtectionSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteProtectionSpec proto.InternalMessageInfo + +func (m *DeleteProtectionSpec) GetEnableDeleteProtection() bool { + if m != nil { + return m.EnableDeleteProtection + } + return false +} + type CodecServerPropertySpec struct { // server endpoints Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` @@ -326,7 +379,7 @@ type CodecServerPropertySpec struct { func (m *CodecServerPropertySpec) Reset() { *m = CodecServerPropertySpec{} } func (*CodecServerPropertySpec) ProtoMessage() {} func (*CodecServerPropertySpec) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{1} + return fileDescriptor_56458b48206aa18d, []int{2} } func (m *CodecServerPropertySpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -392,7 +445,7 @@ type CertificateFilterSpec struct { func (m *CertificateFilterSpec) Reset() { *m = CertificateFilterSpec{} } func (*CertificateFilterSpec) ProtoMessage() {} func (*CertificateFilterSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{2} + return fileDescriptor_56458b48206aa18d, []int{3} } func (m *CertificateFilterSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -463,7 +516,7 @@ type NamespaceURI struct { func (m *NamespaceURI) Reset() { *m = NamespaceURI{} } func (*NamespaceURI) ProtoMessage() {} func (*NamespaceURI) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{3} + return fileDescriptor_56458b48206aa18d, []int{4} } func (m *NamespaceURI) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -536,7 +589,7 @@ type NamespaceEnvelope struct { func (m *NamespaceEnvelope) Reset() { *m = NamespaceEnvelope{} } func (*NamespaceEnvelope) ProtoMessage() {} func (*NamespaceEnvelope) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{4} + return fileDescriptor_56458b48206aa18d, []int{5} } func (m *NamespaceEnvelope) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -619,7 +672,7 @@ type NamespaceRegion struct { func (m *NamespaceRegion) Reset() { *m = NamespaceRegion{} } func (*NamespaceRegion) ProtoMessage() {} func (*NamespaceRegion) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{5} + return fileDescriptor_56458b48206aa18d, []int{6} } func (m *NamespaceRegion) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -696,7 +749,7 @@ type Namespace struct { func (m *Namespace) Reset() { *m = Namespace{} } func (*Namespace) ProtoMessage() {} func (*Namespace) Descriptor() ([]byte, []int) { - return fileDescriptor_56458b48206aa18d, []int{6} + return fileDescriptor_56458b48206aa18d, []int{7} } func (m *Namespace) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -811,6 +864,7 @@ func init() { proto.RegisterEnum("api.namespace.v1.AuthMethod", AuthMethod_name, AuthMethod_value) proto.RegisterType((*NamespaceSpec)(nil), "api.namespace.v1.NamespaceSpec") proto.RegisterMapType((map[string]SearchAttributeType)(nil), "api.namespace.v1.NamespaceSpec.SearchAttributesEntry") + proto.RegisterType((*DeleteProtectionSpec)(nil), "api.namespace.v1.DeleteProtectionSpec") proto.RegisterType((*CodecServerPropertySpec)(nil), "api.namespace.v1.CodecServerPropertySpec") proto.RegisterType((*CertificateFilterSpec)(nil), "api.namespace.v1.CertificateFilterSpec") proto.RegisterType((*NamespaceURI)(nil), "api.namespace.v1.NamespaceURI") @@ -823,116 +877,119 @@ func init() { func init() { proto.RegisterFile("api/namespace/v1/message.proto", fileDescriptor_56458b48206aa18d) } var fileDescriptor_56458b48206aa18d = []byte{ - // 1730 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x57, 0xcd, 0x73, 0xdb, 0xd6, - 0x11, 0x17, 0x48, 0x50, 0x22, 0x97, 0xfa, 0x80, 0x9e, 0x6c, 0x8b, 0xa6, 0x64, 0x58, 0xa6, 0xc7, - 0x89, 0xac, 0xa9, 0x28, 0x9b, 0xee, 0x47, 0x26, 0x9e, 0x8c, 0x4b, 0x89, 0x50, 0x04, 0x55, 0x22, - 0x59, 0x10, 0x54, 0x93, 0x4e, 0x67, 0x30, 0x4f, 0xc0, 0x93, 0x84, 0x18, 0x04, 0x90, 0x87, 0x47, - 0x7a, 0xd4, 0xe9, 0xa1, 0xd3, 0x73, 0x0f, 0x99, 0xce, 0x24, 0xe7, 0x1e, 0x7b, 0xe8, 0xa9, 0xff, - 0x44, 0x73, 0xf4, 0x31, 0xc7, 0x5a, 0xbe, 0xe4, 0x98, 0x3f, 0xa1, 0xf3, 0x1e, 0xc0, 0x0f, 0x91, - 0xb4, 0x94, 0x1b, 0xb1, 0xbb, 0xbf, 0xdd, 0xdf, 0xee, 0xdb, 0xdd, 0xf7, 0x08, 0x2a, 0x0e, 0xdd, - 0x1d, 0x1f, 0x77, 0x48, 0x14, 0x62, 0x9b, 0xec, 0xf4, 0x9e, 0xef, 0x74, 0x48, 0x14, 0xe1, 0x73, - 0x52, 0x0e, 0x69, 0xc0, 0x02, 0xa4, 0xe0,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 0x62, - 0xf4, 0x05, 0xac, 0xd8, 0x84, 0x32, 0xf7, 0xcc, 0xb5, 0x31, 0x23, 0xd6, 0x99, 0xeb, 0x31, 0x42, - 0xa3, 0x42, 0x46, 0x44, 0xf9, 0x78, 0x32, 0xca, 0xde, 0xd0, 0x78, 0x5f, 0xd8, 0xf2, 0x68, 0x06, - 0xb2, 0xc7, 0xc5, 0x11, 0x7a, 0x05, 0x79, 0xe2, 0xf7, 0x5c, 0x1a, 0xf8, 0x1d, 0xe2, 0xb3, 0xc2, - 0xec, 0x86, 0xb4, 0xb9, 0x58, 0x79, 0x30, 0xe9, 0x51, 0x1b, 0x1a, 0x19, 0xa3, 0x08, 0x74, 0x00, - 0x60, 0x07, 0x0e, 0xb1, 0xad, 0x28, 0x24, 0x76, 0x21, 0xbb, 0x21, 0x6d, 0xe6, 0x2b, 0x4f, 0xa7, - 0x30, 0xe2, 0x36, 0x2d, 0x42, 0x7b, 0x84, 0x36, 0x69, 0x10, 0x12, 0xca, 0x2e, 0x05, 0xa7, 0x9c, - 0x00, 0x8b, 0x93, 0xfb, 0x18, 0x96, 0x42, 0x1c, 0x45, 0x6e, 0x8f, 0x58, 0xf1, 0x79, 0x45, 0x85, - 0xdc, 0x46, 0x7a, 0x33, 0x67, 0x2c, 0x26, 0x62, 0x23, 0x96, 0xa2, 0xa7, 0xb0, 0x68, 0x7b, 0x41, - 0xd7, 0xb1, 0x42, 0x1a, 0xf4, 0x5c, 0x87, 0xd0, 0x02, 0x0c, 0x8e, 0x7a, 0x41, 0x68, 0x9a, 0x89, - 0x02, 0x7d, 0x06, 0x79, 0xdc, 0x65, 0x17, 0x56, 0x87, 0xb0, 0x8b, 0xc0, 0x29, 0x2c, 0x88, 0xf4, - 0xd6, 0x27, 0xe9, 0x55, 0xbb, 0xec, 0xe2, 0x58, 0xd8, 0x18, 0x80, 0x07, 0xbf, 0xd1, 0x2f, 0x21, - 0x17, 0x53, 0xb1, 0x5c, 0xa7, 0xb0, 0x28, 0x72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0xba, 0xfd, 0x4d, 0x89, - 0xd6, 0x27, 0x76, 0xce, 0xbe, 0xeb, 0x91, 0x46, 0x28, 0x6e, 0xe3, 0xc2, 0x3f, 0xbf, 0x8b, 0x1f, - 0x6b, 0x80, 0x43, 0x37, 0x59, 0xa2, 0xbb, 0x9d, 0xbf, 0xfd, 0xe7, 0xfe, 0x42, 0xe5, 0x59, 0xe5, - 0xc5, 0xf6, 0xb3, 0xdf, 0x6c, 0x57, 0x7e, 0xbd, 0xfd, 0xec, 0xf9, 0xdb, 0x77, 0xea, 0xcc, 0x0f, - 0xef, 0xd4, 0x99, 0x9f, 0xde, 0xa9, 0xd2, 0x5f, 0xaf, 0x54, 0xe9, 0x5f, 0x57, 0xaa, 0xf4, 0xfd, - 0x95, 0x2a, 0xbd, 0xbd, 0x52, 0xa5, 0xff, 0x5d, 0xa9, 0xd2, 0x8f, 0x57, 0xea, 0xcc, 0x4f, 0x57, - 0xaa, 0xf4, 0xcd, 0x7b, 0x75, 0xe6, 0xed, 0x7b, 0x75, 0xe6, 0x87, 0xf7, 0xea, 0xcc, 0x1f, 0x3f, - 0x62, 0x9d, 0x90, 0x7a, 0x65, 0xf1, 0xc7, 0x60, 0x67, 0xfc, 0x1f, 0xee, 0xcb, 0xc1, 0xc7, 0xe9, - 0xac, 0x20, 0xf6, 0xe2, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd4, 0x4a, 0x77, 0x24, 0x06, 0x0f, - 0x00, 0x00, + // 1784 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x57, 0xcd, 0x6f, 0xdb, 0xc8, + 0x15, 0x37, 0x25, 0xda, 0x96, 0x9e, 0xfc, 0x41, 0x8f, 0x93, 0x58, 0x91, 0x1d, 0xc5, 0x51, 0x90, + 0xac, 0x63, 0xd4, 0x72, 0xa2, 0xf4, 0x63, 0xb1, 0xc1, 0x22, 0x95, 0x2d, 0x7a, 0x4d, 0xd7, 0xb6, + 0x54, 0x8a, 0x72, 0x77, 0x8b, 0x02, 0x83, 0x31, 0x39, 0xb6, 0xb9, 0xa1, 0x48, 0xee, 0x70, 0xa4, + 0xc0, 0x45, 0x0f, 0x45, 0xcf, 0x3d, 0x14, 0x05, 0x76, 0xcf, 0x3d, 0xf6, 0xd0, 0x53, 0xff, 0x89, + 0xee, 0x31, 0xc7, 0x3d, 0x36, 0x0e, 0x0a, 0xec, 0x71, 0xff, 0x84, 0x62, 0x86, 0xd4, 0x87, 0x25, + 0xc5, 0xc9, 0x4d, 0x7c, 0xef, 0xf7, 0x7b, 0xef, 0xf7, 0x1e, 0xdf, 0xbc, 0xa1, 0xa0, 0x48, 0x42, + 0x77, 0xdb, 0x27, 0x6d, 0x1a, 0x85, 0xc4, 0xa6, 0xdb, 0xdd, 0x67, 0xdb, 0x6d, 0x1a, 0x45, 0xe4, + 0x9c, 0x96, 0x43, 0x16, 0xf0, 0x00, 0x69, 0x24, 0x74, 0xcb, 0x7d, 0x7f, 0xb9, 0xfb, 0xac, 0x70, + 0xff, 0x3c, 0x08, 0xce, 0x3d, 0xba, 0x2d, 0xfd, 0xa7, 0x9d, 0xb3, 0x6d, 0xee, 0xb6, 0x69, 0xc4, + 0x49, 0x3b, 0x8c, 0x29, 0x85, 0xf5, 0x51, 0x80, 0x43, 0x23, 0x9b, 0xb9, 0x21, 0x0f, 0x58, 0x82, + 0x28, 0x8e, 0x22, 0x5e, 0x33, 0x12, 0x86, 0x94, 0x45, 0x89, 0x7f, 0x55, 0x88, 0xb2, 0x83, 0x76, + 0x3b, 0xf0, 0xc7, 0x14, 0x95, 0xfe, 0x37, 0x03, 0xf3, 0xc7, 0x3d, 0x41, 0xcd, 0x90, 0xda, 0xa8, + 0x00, 0x33, 0x8c, 0x9e, 0xbb, 0x81, 0x9f, 0x57, 0xd6, 0x95, 0x8d, 0xec, 0x4e, 0x2a, 0xaf, 0x98, + 0x89, 0x05, 0xfd, 0x0c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 0x4f, 0x2b, 0xcf, 0xb7, 0x9e, 0xfe, 0x6a, 0xab, 0xf2, 0xcb, 0xad, 0xa7, 0xcf, 0xde, + 0xbc, 0x2d, 0x4e, 0xfd, 0xf0, 0xb6, 0x38, 0xf5, 0xd3, 0xdb, 0xa2, 0xf2, 0xe7, 0xab, 0xa2, 0xf2, + 0xcf, 0xab, 0xa2, 0xf2, 0xfd, 0x55, 0x51, 0x79, 0x73, 0x55, 0x54, 0xfe, 0x7b, 0x55, 0x54, 0x7e, + 0xbc, 0x2a, 0x4e, 0xfd, 0x74, 0x55, 0x54, 0xfe, 0xf6, 0xae, 0x38, 0xf5, 0xe6, 0x5d, 0x71, 0xea, + 0x87, 0x77, 0xc5, 0xa9, 0xdf, 0x3f, 0xe6, 0xed, 0x90, 0x79, 0x65, 0xf9, 0xff, 0x65, 0x7b, 0xf4, + 0x8f, 0xf8, 0x8b, 0xfe, 0xc3, 0xe9, 0x8c, 0x14, 0xf6, 0xfc, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x85, 0xf1, 0xd1, 0x74, 0xad, 0x0f, 0x00, 0x00, } func (x SearchAttributeType) String() string { @@ -1030,6 +1087,33 @@ func (this *NamespaceSpec) Equal(that interface{}) bool { if !this.RegionId.Equal(that1.RegionId) { return false } + if !this.DeleteProtection.Equal(that1.DeleteProtection) { + return false + } + return true +} +func (this *DeleteProtectionSpec) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*DeleteProtectionSpec) + if !ok { + that2, ok := that.(DeleteProtectionSpec) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.EnableDeleteProtection != that1.EnableDeleteProtection { + return false + } return true } func (this *CodecServerPropertySpec) Equal(that interface{}) bool { @@ -1267,7 +1351,7 @@ func (this *NamespaceSpec) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 15) + s := make([]string, 0, 16) s = append(s, "&namespace.NamespaceSpec{") s = append(s, "Region: "+fmt.Sprintf("%#v", this.Region)+",\n") s = append(s, "AcceptedClientCa: "+fmt.Sprintf("%#v", this.AcceptedClientCa)+",\n") @@ -1298,6 +1382,19 @@ func (this *NamespaceSpec) GoString() string { if this.RegionId != nil { s = append(s, "RegionId: "+fmt.Sprintf("%#v", this.RegionId)+",\n") } + if this.DeleteProtection != nil { + s = append(s, "DeleteProtection: "+fmt.Sprintf("%#v", this.DeleteProtection)+",\n") + } + s = append(s, "}") + return strings.Join(s, "") +} +func (this *DeleteProtectionSpec) GoString() string { + if this == nil { + return "nil" + } + s := make([]string, 0, 5) + s = append(s, "&namespace.DeleteProtectionSpec{") + s = append(s, "EnableDeleteProtection: "+fmt.Sprintf("%#v", this.EnableDeleteProtection)+",\n") s = append(s, "}") return strings.Join(s, "") } @@ -1437,6 +1534,18 @@ func (m *NamespaceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.DeleteProtection != nil { + { + size, err := m.DeleteProtection.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMessage(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } if m.RegionId != nil { { size, err := m.RegionId.MarshalToSizedBuffer(dAtA[:i]) @@ -1540,6 +1649,39 @@ func (m *NamespaceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *DeleteProtectionSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DeleteProtectionSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DeleteProtectionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.EnableDeleteProtection { + i-- + if m.EnableDeleteProtection { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *CodecServerPropertySpec) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2020,6 +2162,22 @@ func (m *NamespaceSpec) Size() (n int) { l = m.RegionId.Size() n += 1 + l + sovMessage(uint64(l)) } + if m.DeleteProtection != nil { + l = m.DeleteProtection.Size() + n += 1 + l + sovMessage(uint64(l)) + } + return n +} + +func (m *DeleteProtectionSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.EnableDeleteProtection { + n += 2 + } return n } @@ -2235,6 +2393,17 @@ func (this *NamespaceSpec) String() string { `CloudProvider:` + fmt.Sprintf("%v", this.CloudProvider) + `,`, `AuthMethod:` + fmt.Sprintf("%v", this.AuthMethod) + `,`, `RegionId:` + strings.Replace(fmt.Sprintf("%v", this.RegionId), "RegionID", "v1.RegionID", 1) + `,`, + `DeleteProtection:` + strings.Replace(this.DeleteProtection.String(), "DeleteProtectionSpec", "DeleteProtectionSpec", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DeleteProtectionSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&DeleteProtectionSpec{`, + `EnableDeleteProtection:` + fmt.Sprintf("%v", this.EnableDeleteProtection) + `,`, `}`, }, "") return s @@ -2769,6 +2938,115 @@ func (m *NamespaceSpec) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeleteProtection", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthMessage + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthMessage + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DeleteProtection == nil { + m.DeleteProtection = &DeleteProtectionSpec{} + } + if err := m.DeleteProtection.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipMessage(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthMessage + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DeleteProtectionSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DeleteProtectionSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DeleteProtectionSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EnableDeleteProtection", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMessage + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.EnableDeleteProtection = bool(v != 0) default: iNdEx = preIndex skippy, err := skipMessage(dAtA[iNdEx:]) @@ -4137,4 +4415,4 @@ var ( ErrInvalidLengthMessage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group") -) +) \ No newline at end of file From ae6ead09f36cf1472ab92024a5c44ae229d020d7 Mon Sep 17 00:00:00 2001 From: Matt Kim Date: Tue, 3 Dec 2024 16:47:52 -0800 Subject: [PATCH 6/6] add another test --- app/namespace_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/namespace_test.go b/app/namespace_test.go index 504ae56..ffee926 100644 --- a/app/namespace_test.go +++ b/app/namespace_test.go @@ -181,6 +181,11 @@ func (s *NamespaceTestSuite) TestDeleteProtection() { args: []string{"n", "dp", "-n", ns}, expectErr: true, }, + { + name: "both bool flags incorrectly set", + args: []string{"n", "dp", "-n", ns, "--edp", "--ddp"}, + expectErr: true, + }, { name: "success enable", args: []string{"n", "dp", "-n", ns, "--edp"},