diff --git a/app/namespace.go b/app/namespace.go index 89b9f70..a533334 100644 --- a/app/namespace.go +++ b/app/namespace.go @@ -40,6 +40,8 @@ const ( codecPassAccessTokenFlagName = "pass-access-token" codecIncludeCredentialsFlagName = "include-credentials" sinkRegionFlagName = "region" + enableDeleteProtectionFlagName = "enable-delete-protection" + disableDeleteProtectionFlagName = "disable-delete-protection" ) const ( @@ -514,6 +516,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 +629,10 @@ func NewNamespaceCommand(getNamespaceClientFn GetNamespaceClientFn) (CommandOut, } } + n.Spec.DeleteProtection = &namespace.DeleteProtectionSpec{ + EnableDeleteProtection: ctx.Bool(enableDeleteProtectionFlagName), + } + return c.createNamespace(n, unp) }, }, @@ -652,6 +663,65 @@ 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"}, + }, + &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 + } + + 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) + }, + }, { Name: "delete", Usage: "Delete a temporal namespace", diff --git a/app/namespace_test.go b/app/namespace_test.go index 9a4a710..ffee926 100644 --- a/app/namespace_test.go +++ b/app/namespace_test.go @@ -149,6 +149,116 @@ 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: "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"}, + 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/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, 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, 0xf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x6c, 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, 0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, 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