// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/organizationmanager/v1/mfa_enforcement.proto

package organizationmanager

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type MfaEnforcementStatus int32

const (
	MfaEnforcementStatus_MFA_ENFORCEMENT_STATUS_UNSPECIFIED MfaEnforcementStatus = 0
	MfaEnforcementStatus_MFA_ENFORCEMENT_STATUS_ACTIVE      MfaEnforcementStatus = 1
	MfaEnforcementStatus_MFA_ENFORCEMENT_STATUS_INACTIVE    MfaEnforcementStatus = 2
	MfaEnforcementStatus_MFA_ENFORCEMENT_STATUS_DELETING    MfaEnforcementStatus = 3
)

// Enum value maps for MfaEnforcementStatus.
var (
	MfaEnforcementStatus_name = map[int32]string{
		0: "MFA_ENFORCEMENT_STATUS_UNSPECIFIED",
		1: "MFA_ENFORCEMENT_STATUS_ACTIVE",
		2: "MFA_ENFORCEMENT_STATUS_INACTIVE",
		3: "MFA_ENFORCEMENT_STATUS_DELETING",
	}
	MfaEnforcementStatus_value = map[string]int32{
		"MFA_ENFORCEMENT_STATUS_UNSPECIFIED": 0,
		"MFA_ENFORCEMENT_STATUS_ACTIVE":      1,
		"MFA_ENFORCEMENT_STATUS_INACTIVE":    2,
		"MFA_ENFORCEMENT_STATUS_DELETING":    3,
	}
)

func (x MfaEnforcementStatus) Enum() *MfaEnforcementStatus {
	p := new(MfaEnforcementStatus)
	*p = x
	return p
}

func (x MfaEnforcementStatus) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (MfaEnforcementStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_enumTypes[0].Descriptor()
}

func (MfaEnforcementStatus) Type() protoreflect.EnumType {
	return &file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_enumTypes[0]
}

func (x MfaEnforcementStatus) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use MfaEnforcementStatus.Descriptor instead.
func (MfaEnforcementStatus) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDescGZIP(), []int{0}
}

// MFA enforcement resource
type MfaEnforcement struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// id of the MFA enforcement
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// organization id of the MFA enforcement
	OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// acr id of the MFA enforcement
	AcrId string `protobuf:"bytes,3,opt,name=acr_id,json=acrId,proto3" json:"acr_id,omitempty"`
	// the period during which the entered MFA factor is considered valid and the
	// corresponding acr is regarded as satisfied
	Ttl *durationpb.Duration `protobuf:"bytes,4,opt,name=ttl,proto3" json:"ttl,omitempty"`
	// MFA enforcement status
	Status MfaEnforcementStatus `protobuf:"varint,5,opt,name=status,proto3,enum=yandex.cloud.organizationmanager.v1.MfaEnforcementStatus" json:"status,omitempty"`
	// the MFA enforcement application start time.
	ApplyAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=apply_at,json=applyAt,proto3" json:"apply_at,omitempty"`
	// the time window during which the user is allowed to create an MFA profile.
	// this window is measured relative to the MFA enforcement application start time
	// and the user's most recent successful authentication that falls under the rule
	// (or the user's creation time, if there has been no authentication).
	EnrollWindow *durationpb.Duration `protobuf:"bytes,7,opt,name=enroll_window,json=enrollWindow,proto3" json:"enroll_window,omitempty"`
	// name of the MFA enforcement
	Name string `protobuf:"bytes,8,opt,name=name,proto3" json:"name,omitempty"`
	// description of the MFA enforcement
	Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
	// creation timestamp
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *MfaEnforcement) Reset() {
	*x = MfaEnforcement{}
	mi := &file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *MfaEnforcement) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*MfaEnforcement) ProtoMessage() {}

func (x *MfaEnforcement) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use MfaEnforcement.ProtoReflect.Descriptor instead.
func (*MfaEnforcement) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDescGZIP(), []int{0}
}

func (x *MfaEnforcement) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *MfaEnforcement) GetOrganizationId() string {
	if x != nil {
		return x.OrganizationId
	}
	return ""
}

func (x *MfaEnforcement) GetAcrId() string {
	if x != nil {
		return x.AcrId
	}
	return ""
}

func (x *MfaEnforcement) GetTtl() *durationpb.Duration {
	if x != nil {
		return x.Ttl
	}
	return nil
}

func (x *MfaEnforcement) GetStatus() MfaEnforcementStatus {
	if x != nil {
		return x.Status
	}
	return MfaEnforcementStatus_MFA_ENFORCEMENT_STATUS_UNSPECIFIED
}

func (x *MfaEnforcement) GetApplyAt() *timestamppb.Timestamp {
	if x != nil {
		return x.ApplyAt
	}
	return nil
}

func (x *MfaEnforcement) GetEnrollWindow() *durationpb.Duration {
	if x != nil {
		return x.EnrollWindow
	}
	return nil
}

func (x *MfaEnforcement) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *MfaEnforcement) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *MfaEnforcement) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

var File_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto protoreflect.FileDescriptor

const file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDesc = "" +
	"\n" +
	"9yandex/cloud/organizationmanager/v1/mfa_enforcement.proto\x12#yandex.cloud.organizationmanager.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc8\x03\n" +
	"\x0eMfaEnforcement\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12'\n" +
	"\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12\x15\n" +
	"\x06acr_id\x18\x03 \x01(\tR\x05acrId\x12+\n" +
	"\x03ttl\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\x03ttl\x12Q\n" +
	"\x06status\x18\x05 \x01(\x0e29.yandex.cloud.organizationmanager.v1.MfaEnforcementStatusR\x06status\x125\n" +
	"\bapply_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\aapplyAt\x12>\n" +
	"\renroll_window\x18\a \x01(\v2\x19.google.protobuf.DurationR\fenrollWindow\x12\x12\n" +
	"\x04name\x18\b \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\t \x01(\tR\vdescription\x129\n" +
	"\n" +
	"created_at\x18\n" +
	" \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt*\xab\x01\n" +
	"\x14MfaEnforcementStatus\x12&\n" +
	"\"MFA_ENFORCEMENT_STATUS_UNSPECIFIED\x10\x00\x12!\n" +
	"\x1dMFA_ENFORCEMENT_STATUS_ACTIVE\x10\x01\x12#\n" +
	"\x1fMFA_ENFORCEMENT_STATUS_INACTIVE\x10\x02\x12#\n" +
	"\x1fMFA_ENFORCEMENT_STATUS_DELETING\x10\x03B\x86\x01\n" +
	"'yandex.cloud.api.organizationmanager.v1Z[github.com/yandex-cloud/go-genproto/yandex/cloud/organizationmanager/v1;organizationmanagerb\x06proto3"

var (
	file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDescOnce sync.Once
	file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDescData []byte
)

func file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDescGZIP() []byte {
	file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDesc), len(file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDesc)))
	})
	return file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDescData
}

var file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_goTypes = []any{
	(MfaEnforcementStatus)(0),     // 0: yandex.cloud.organizationmanager.v1.MfaEnforcementStatus
	(*MfaEnforcement)(nil),        // 1: yandex.cloud.organizationmanager.v1.MfaEnforcement
	(*durationpb.Duration)(nil),   // 2: google.protobuf.Duration
	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
}
var file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.organizationmanager.v1.MfaEnforcement.ttl:type_name -> google.protobuf.Duration
	0, // 1: yandex.cloud.organizationmanager.v1.MfaEnforcement.status:type_name -> yandex.cloud.organizationmanager.v1.MfaEnforcementStatus
	3, // 2: yandex.cloud.organizationmanager.v1.MfaEnforcement.apply_at:type_name -> google.protobuf.Timestamp
	2, // 3: yandex.cloud.organizationmanager.v1.MfaEnforcement.enroll_window:type_name -> google.protobuf.Duration
	3, // 4: yandex.cloud.organizationmanager.v1.MfaEnforcement.created_at:type_name -> google.protobuf.Timestamp
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_init() }
func file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_init() {
	if File_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDesc), len(file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_msgTypes,
	}.Build()
	File_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto = out.File
	file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_goTypes = nil
	file_yandex_cloud_organizationmanager_v1_mfa_enforcement_proto_depIdxs = nil
}
