user_account.pb.go raw
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.6
4 // protoc v3.21.12
5 // source: yandex/cloud/iam/v1/user_account.proto
6
7 package iam
8
9 import (
10 _ "github.com/yandex-cloud/go-genproto/yandex/cloud"
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
14 reflect "reflect"
15 sync "sync"
16 unsafe "unsafe"
17 )
18
19 const (
20 // Verify that this generated code is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24 )
25
26 // Currently represents only [Yandex account](/docs/iam/concepts/users/accounts#passport).
27 type UserAccount struct {
28 state protoimpl.MessageState `protogen:"open.v1"`
29 // ID of the user account.
30 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
31 // Types that are valid to be assigned to UserAccount:
32 //
33 // *UserAccount_YandexPassportUserAccount
34 // *UserAccount_SamlUserAccount
35 UserAccount isUserAccount_UserAccount `protobuf_oneof:"user_account"`
36 LastAuthenticatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_authenticated_at,json=lastAuthenticatedAt,proto3" json:"last_authenticated_at,omitempty"`
37 unknownFields protoimpl.UnknownFields
38 sizeCache protoimpl.SizeCache
39 }
40
41 func (x *UserAccount) Reset() {
42 *x = UserAccount{}
43 mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[0]
44 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
45 ms.StoreMessageInfo(mi)
46 }
47
48 func (x *UserAccount) String() string {
49 return protoimpl.X.MessageStringOf(x)
50 }
51
52 func (*UserAccount) ProtoMessage() {}
53
54 func (x *UserAccount) ProtoReflect() protoreflect.Message {
55 mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[0]
56 if x != nil {
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 if ms.LoadMessageInfo() == nil {
59 ms.StoreMessageInfo(mi)
60 }
61 return ms
62 }
63 return mi.MessageOf(x)
64 }
65
66 // Deprecated: Use UserAccount.ProtoReflect.Descriptor instead.
67 func (*UserAccount) Descriptor() ([]byte, []int) {
68 return file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP(), []int{0}
69 }
70
71 func (x *UserAccount) GetId() string {
72 if x != nil {
73 return x.Id
74 }
75 return ""
76 }
77
78 func (x *UserAccount) GetUserAccount() isUserAccount_UserAccount {
79 if x != nil {
80 return x.UserAccount
81 }
82 return nil
83 }
84
85 func (x *UserAccount) GetYandexPassportUserAccount() *YandexPassportUserAccount {
86 if x != nil {
87 if x, ok := x.UserAccount.(*UserAccount_YandexPassportUserAccount); ok {
88 return x.YandexPassportUserAccount
89 }
90 }
91 return nil
92 }
93
94 func (x *UserAccount) GetSamlUserAccount() *SamlUserAccount {
95 if x != nil {
96 if x, ok := x.UserAccount.(*UserAccount_SamlUserAccount); ok {
97 return x.SamlUserAccount
98 }
99 }
100 return nil
101 }
102
103 func (x *UserAccount) GetLastAuthenticatedAt() *timestamppb.Timestamp {
104 if x != nil {
105 return x.LastAuthenticatedAt
106 }
107 return nil
108 }
109
110 type isUserAccount_UserAccount interface {
111 isUserAccount_UserAccount()
112 }
113
114 type UserAccount_YandexPassportUserAccount struct {
115 // A YandexPassportUserAccount resource.
116 YandexPassportUserAccount *YandexPassportUserAccount `protobuf:"bytes,2,opt,name=yandex_passport_user_account,json=yandexPassportUserAccount,proto3,oneof"`
117 }
118
119 type UserAccount_SamlUserAccount struct {
120 // A SAML federated user.
121 SamlUserAccount *SamlUserAccount `protobuf:"bytes,3,opt,name=saml_user_account,json=samlUserAccount,proto3,oneof"`
122 }
123
124 func (*UserAccount_YandexPassportUserAccount) isUserAccount_UserAccount() {}
125
126 func (*UserAccount_SamlUserAccount) isUserAccount_UserAccount() {}
127
128 // A YandexPassportUserAccount resource.
129 // For more information, see [Yandex account](/docs/iam/concepts/users/accounts#passport).
130 type YandexPassportUserAccount struct {
131 state protoimpl.MessageState `protogen:"open.v1"`
132 // Login of the Yandex user account.
133 Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"`
134 // Default email of the Yandex user account.
135 DefaultEmail string `protobuf:"bytes,2,opt,name=default_email,json=defaultEmail,proto3" json:"default_email,omitempty"`
136 unknownFields protoimpl.UnknownFields
137 sizeCache protoimpl.SizeCache
138 }
139
140 func (x *YandexPassportUserAccount) Reset() {
141 *x = YandexPassportUserAccount{}
142 mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[1]
143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
144 ms.StoreMessageInfo(mi)
145 }
146
147 func (x *YandexPassportUserAccount) String() string {
148 return protoimpl.X.MessageStringOf(x)
149 }
150
151 func (*YandexPassportUserAccount) ProtoMessage() {}
152
153 func (x *YandexPassportUserAccount) ProtoReflect() protoreflect.Message {
154 mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[1]
155 if x != nil {
156 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
157 if ms.LoadMessageInfo() == nil {
158 ms.StoreMessageInfo(mi)
159 }
160 return ms
161 }
162 return mi.MessageOf(x)
163 }
164
165 // Deprecated: Use YandexPassportUserAccount.ProtoReflect.Descriptor instead.
166 func (*YandexPassportUserAccount) Descriptor() ([]byte, []int) {
167 return file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP(), []int{1}
168 }
169
170 func (x *YandexPassportUserAccount) GetLogin() string {
171 if x != nil {
172 return x.Login
173 }
174 return ""
175 }
176
177 func (x *YandexPassportUserAccount) GetDefaultEmail() string {
178 if x != nil {
179 return x.DefaultEmail
180 }
181 return ""
182 }
183
184 // A SAML federated user.
185 // For more information, see [federations](/docs/iam/concepts/federations).
186 type SamlUserAccount struct {
187 state protoimpl.MessageState `protogen:"open.v1"`
188 // ID of the federation that the federation belongs to.
189 FederationId string `protobuf:"bytes,1,opt,name=federation_id,json=federationId,proto3" json:"federation_id,omitempty"`
190 // Name Id of the SAML federated user.
191 // The name is unique within the federation. 1-256 characters long.
192 NameId string `protobuf:"bytes,2,opt,name=name_id,json=nameId,proto3" json:"name_id,omitempty"`
193 // Additional attributes of the SAML federated user.
194 Attributes map[string]*SamlUserAccount_Attribute `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
195 unknownFields protoimpl.UnknownFields
196 sizeCache protoimpl.SizeCache
197 }
198
199 func (x *SamlUserAccount) Reset() {
200 *x = SamlUserAccount{}
201 mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[2]
202 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
203 ms.StoreMessageInfo(mi)
204 }
205
206 func (x *SamlUserAccount) String() string {
207 return protoimpl.X.MessageStringOf(x)
208 }
209
210 func (*SamlUserAccount) ProtoMessage() {}
211
212 func (x *SamlUserAccount) ProtoReflect() protoreflect.Message {
213 mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[2]
214 if x != nil {
215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
216 if ms.LoadMessageInfo() == nil {
217 ms.StoreMessageInfo(mi)
218 }
219 return ms
220 }
221 return mi.MessageOf(x)
222 }
223
224 // Deprecated: Use SamlUserAccount.ProtoReflect.Descriptor instead.
225 func (*SamlUserAccount) Descriptor() ([]byte, []int) {
226 return file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP(), []int{2}
227 }
228
229 func (x *SamlUserAccount) GetFederationId() string {
230 if x != nil {
231 return x.FederationId
232 }
233 return ""
234 }
235
236 func (x *SamlUserAccount) GetNameId() string {
237 if x != nil {
238 return x.NameId
239 }
240 return ""
241 }
242
243 func (x *SamlUserAccount) GetAttributes() map[string]*SamlUserAccount_Attribute {
244 if x != nil {
245 return x.Attributes
246 }
247 return nil
248 }
249
250 type SamlUserAccount_Attribute struct {
251 state protoimpl.MessageState `protogen:"open.v1"`
252 Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
253 unknownFields protoimpl.UnknownFields
254 sizeCache protoimpl.SizeCache
255 }
256
257 func (x *SamlUserAccount_Attribute) Reset() {
258 *x = SamlUserAccount_Attribute{}
259 mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[3]
260 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
261 ms.StoreMessageInfo(mi)
262 }
263
264 func (x *SamlUserAccount_Attribute) String() string {
265 return protoimpl.X.MessageStringOf(x)
266 }
267
268 func (*SamlUserAccount_Attribute) ProtoMessage() {}
269
270 func (x *SamlUserAccount_Attribute) ProtoReflect() protoreflect.Message {
271 mi := &file_yandex_cloud_iam_v1_user_account_proto_msgTypes[3]
272 if x != nil {
273 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
274 if ms.LoadMessageInfo() == nil {
275 ms.StoreMessageInfo(mi)
276 }
277 return ms
278 }
279 return mi.MessageOf(x)
280 }
281
282 // Deprecated: Use SamlUserAccount_Attribute.ProtoReflect.Descriptor instead.
283 func (*SamlUserAccount_Attribute) Descriptor() ([]byte, []int) {
284 return file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP(), []int{2, 0}
285 }
286
287 func (x *SamlUserAccount_Attribute) GetValue() []string {
288 if x != nil {
289 return x.Value
290 }
291 return nil
292 }
293
294 var File_yandex_cloud_iam_v1_user_account_proto protoreflect.FileDescriptor
295
296 const file_yandex_cloud_iam_v1_user_account_proto_rawDesc = "" +
297 "\n" +
298 "&yandex/cloud/iam/v1/user_account.proto\x12\x13yandex.cloud.iam.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xca\x02\n" +
299 "\vUserAccount\x12\x0e\n" +
300 "\x02id\x18\x01 \x01(\tR\x02id\x12q\n" +
301 "\x1cyandex_passport_user_account\x18\x02 \x01(\v2..yandex.cloud.iam.v1.YandexPassportUserAccountH\x00R\x19yandexPassportUserAccount\x12R\n" +
302 "\x11saml_user_account\x18\x03 \x01(\v2$.yandex.cloud.iam.v1.SamlUserAccountH\x00R\x0fsamlUserAccount\x12N\n" +
303 "\x15last_authenticated_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\x13lastAuthenticatedAtB\x14\n" +
304 "\fuser_account\x12\x04\xc0\xc11\x01\"V\n" +
305 "\x19YandexPassportUserAccount\x12\x14\n" +
306 "\x05login\x18\x01 \x01(\tR\x05login\x12#\n" +
307 "\rdefault_email\x18\x02 \x01(\tR\fdefaultEmail\"\xd4\x02\n" +
308 "\x0fSamlUserAccount\x121\n" +
309 "\rfederation_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\ffederationId\x12&\n" +
310 "\aname_id\x18\x02 \x01(\tB\r\xe8\xc71\x01\x8a\xc81\x051-256R\x06nameId\x12T\n" +
311 "\n" +
312 "attributes\x18\x03 \x03(\v24.yandex.cloud.iam.v1.SamlUserAccount.AttributesEntryR\n" +
313 "attributes\x1a!\n" +
314 "\tAttribute\x12\x14\n" +
315 "\x05value\x18\x01 \x03(\tR\x05value\x1am\n" +
316 "\x0fAttributesEntry\x12\x10\n" +
317 "\x03key\x18\x01 \x01(\tR\x03key\x12D\n" +
318 "\x05value\x18\x02 \x01(\v2..yandex.cloud.iam.v1.SamlUserAccount.AttributeR\x05value:\x028\x01BV\n" +
319 "\x17yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iamb\x06proto3"
320
321 var (
322 file_yandex_cloud_iam_v1_user_account_proto_rawDescOnce sync.Once
323 file_yandex_cloud_iam_v1_user_account_proto_rawDescData []byte
324 )
325
326 func file_yandex_cloud_iam_v1_user_account_proto_rawDescGZIP() []byte {
327 file_yandex_cloud_iam_v1_user_account_proto_rawDescOnce.Do(func() {
328 file_yandex_cloud_iam_v1_user_account_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_user_account_proto_rawDesc), len(file_yandex_cloud_iam_v1_user_account_proto_rawDesc)))
329 })
330 return file_yandex_cloud_iam_v1_user_account_proto_rawDescData
331 }
332
333 var file_yandex_cloud_iam_v1_user_account_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
334 var file_yandex_cloud_iam_v1_user_account_proto_goTypes = []any{
335 (*UserAccount)(nil), // 0: yandex.cloud.iam.v1.UserAccount
336 (*YandexPassportUserAccount)(nil), // 1: yandex.cloud.iam.v1.YandexPassportUserAccount
337 (*SamlUserAccount)(nil), // 2: yandex.cloud.iam.v1.SamlUserAccount
338 (*SamlUserAccount_Attribute)(nil), // 3: yandex.cloud.iam.v1.SamlUserAccount.Attribute
339 nil, // 4: yandex.cloud.iam.v1.SamlUserAccount.AttributesEntry
340 (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
341 }
342 var file_yandex_cloud_iam_v1_user_account_proto_depIdxs = []int32{
343 1, // 0: yandex.cloud.iam.v1.UserAccount.yandex_passport_user_account:type_name -> yandex.cloud.iam.v1.YandexPassportUserAccount
344 2, // 1: yandex.cloud.iam.v1.UserAccount.saml_user_account:type_name -> yandex.cloud.iam.v1.SamlUserAccount
345 5, // 2: yandex.cloud.iam.v1.UserAccount.last_authenticated_at:type_name -> google.protobuf.Timestamp
346 4, // 3: yandex.cloud.iam.v1.SamlUserAccount.attributes:type_name -> yandex.cloud.iam.v1.SamlUserAccount.AttributesEntry
347 3, // 4: yandex.cloud.iam.v1.SamlUserAccount.AttributesEntry.value:type_name -> yandex.cloud.iam.v1.SamlUserAccount.Attribute
348 5, // [5:5] is the sub-list for method output_type
349 5, // [5:5] is the sub-list for method input_type
350 5, // [5:5] is the sub-list for extension type_name
351 5, // [5:5] is the sub-list for extension extendee
352 0, // [0:5] is the sub-list for field type_name
353 }
354
355 func init() { file_yandex_cloud_iam_v1_user_account_proto_init() }
356 func file_yandex_cloud_iam_v1_user_account_proto_init() {
357 if File_yandex_cloud_iam_v1_user_account_proto != nil {
358 return
359 }
360 file_yandex_cloud_iam_v1_user_account_proto_msgTypes[0].OneofWrappers = []any{
361 (*UserAccount_YandexPassportUserAccount)(nil),
362 (*UserAccount_SamlUserAccount)(nil),
363 }
364 type x struct{}
365 out := protoimpl.TypeBuilder{
366 File: protoimpl.DescBuilder{
367 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
368 RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_user_account_proto_rawDesc), len(file_yandex_cloud_iam_v1_user_account_proto_rawDesc)),
369 NumEnums: 0,
370 NumMessages: 5,
371 NumExtensions: 0,
372 NumServices: 0,
373 },
374 GoTypes: file_yandex_cloud_iam_v1_user_account_proto_goTypes,
375 DependencyIndexes: file_yandex_cloud_iam_v1_user_account_proto_depIdxs,
376 MessageInfos: file_yandex_cloud_iam_v1_user_account_proto_msgTypes,
377 }.Build()
378 File_yandex_cloud_iam_v1_user_account_proto = out.File
379 file_yandex_cloud_iam_v1_user_account_proto_goTypes = nil
380 file_yandex_cloud_iam_v1_user_account_proto_depIdxs = nil
381 }
382