service_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/service_account.proto
6
7 package iam
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
13 reflect "reflect"
14 sync "sync"
15 unsafe "unsafe"
16 )
17
18 const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 )
24
25 // A ServiceAccount resource. For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
26 type ServiceAccount struct {
27 state protoimpl.MessageState `protogen:"open.v1"`
28 // ID of the service account.
29 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
30 // ID of the folder that the service account belongs to.
31 FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
32 // Creation timestamp.
33 CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
34 // Name of the service account.
35 // The name is unique within the cloud. 3-63 characters long.
36 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
37 // Description of the service account. 0-256 characters long.
38 Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
39 // Resource labels as “ key:value “ pairs. Maximum of 64 per resource.
40 Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
41 // Timestamp for the last authentication of this service account.
42 LastAuthenticatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_authenticated_at,json=lastAuthenticatedAt,proto3" json:"last_authenticated_at,omitempty"`
43 unknownFields protoimpl.UnknownFields
44 sizeCache protoimpl.SizeCache
45 }
46
47 func (x *ServiceAccount) Reset() {
48 *x = ServiceAccount{}
49 mi := &file_yandex_cloud_iam_v1_service_account_proto_msgTypes[0]
50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
51 ms.StoreMessageInfo(mi)
52 }
53
54 func (x *ServiceAccount) String() string {
55 return protoimpl.X.MessageStringOf(x)
56 }
57
58 func (*ServiceAccount) ProtoMessage() {}
59
60 func (x *ServiceAccount) ProtoReflect() protoreflect.Message {
61 mi := &file_yandex_cloud_iam_v1_service_account_proto_msgTypes[0]
62 if x != nil {
63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
64 if ms.LoadMessageInfo() == nil {
65 ms.StoreMessageInfo(mi)
66 }
67 return ms
68 }
69 return mi.MessageOf(x)
70 }
71
72 // Deprecated: Use ServiceAccount.ProtoReflect.Descriptor instead.
73 func (*ServiceAccount) Descriptor() ([]byte, []int) {
74 return file_yandex_cloud_iam_v1_service_account_proto_rawDescGZIP(), []int{0}
75 }
76
77 func (x *ServiceAccount) GetId() string {
78 if x != nil {
79 return x.Id
80 }
81 return ""
82 }
83
84 func (x *ServiceAccount) GetFolderId() string {
85 if x != nil {
86 return x.FolderId
87 }
88 return ""
89 }
90
91 func (x *ServiceAccount) GetCreatedAt() *timestamppb.Timestamp {
92 if x != nil {
93 return x.CreatedAt
94 }
95 return nil
96 }
97
98 func (x *ServiceAccount) GetName() string {
99 if x != nil {
100 return x.Name
101 }
102 return ""
103 }
104
105 func (x *ServiceAccount) GetDescription() string {
106 if x != nil {
107 return x.Description
108 }
109 return ""
110 }
111
112 func (x *ServiceAccount) GetLabels() map[string]string {
113 if x != nil {
114 return x.Labels
115 }
116 return nil
117 }
118
119 func (x *ServiceAccount) GetLastAuthenticatedAt() *timestamppb.Timestamp {
120 if x != nil {
121 return x.LastAuthenticatedAt
122 }
123 return nil
124 }
125
126 var File_yandex_cloud_iam_v1_service_account_proto protoreflect.FileDescriptor
127
128 const file_yandex_cloud_iam_v1_service_account_proto_rawDesc = "" +
129 "\n" +
130 ")yandex/cloud/iam/v1/service_account.proto\x12\x13yandex.cloud.iam.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x82\x03\n" +
131 "\x0eServiceAccount\x12\x0e\n" +
132 "\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
133 "\tfolder_id\x18\x02 \x01(\tR\bfolderId\x129\n" +
134 "\n" +
135 "created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x12\n" +
136 "\x04name\x18\x04 \x01(\tR\x04name\x12 \n" +
137 "\vdescription\x18\x05 \x01(\tR\vdescription\x12G\n" +
138 "\x06labels\x18\x06 \x03(\v2/.yandex.cloud.iam.v1.ServiceAccount.LabelsEntryR\x06labels\x12N\n" +
139 "\x15last_authenticated_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x13lastAuthenticatedAt\x1a9\n" +
140 "\vLabelsEntry\x12\x10\n" +
141 "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
142 "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01BV\n" +
143 "\x17yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iamb\x06proto3"
144
145 var (
146 file_yandex_cloud_iam_v1_service_account_proto_rawDescOnce sync.Once
147 file_yandex_cloud_iam_v1_service_account_proto_rawDescData []byte
148 )
149
150 func file_yandex_cloud_iam_v1_service_account_proto_rawDescGZIP() []byte {
151 file_yandex_cloud_iam_v1_service_account_proto_rawDescOnce.Do(func() {
152 file_yandex_cloud_iam_v1_service_account_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_service_account_proto_rawDesc), len(file_yandex_cloud_iam_v1_service_account_proto_rawDesc)))
153 })
154 return file_yandex_cloud_iam_v1_service_account_proto_rawDescData
155 }
156
157 var file_yandex_cloud_iam_v1_service_account_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
158 var file_yandex_cloud_iam_v1_service_account_proto_goTypes = []any{
159 (*ServiceAccount)(nil), // 0: yandex.cloud.iam.v1.ServiceAccount
160 nil, // 1: yandex.cloud.iam.v1.ServiceAccount.LabelsEntry
161 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
162 }
163 var file_yandex_cloud_iam_v1_service_account_proto_depIdxs = []int32{
164 2, // 0: yandex.cloud.iam.v1.ServiceAccount.created_at:type_name -> google.protobuf.Timestamp
165 1, // 1: yandex.cloud.iam.v1.ServiceAccount.labels:type_name -> yandex.cloud.iam.v1.ServiceAccount.LabelsEntry
166 2, // 2: yandex.cloud.iam.v1.ServiceAccount.last_authenticated_at:type_name -> google.protobuf.Timestamp
167 3, // [3:3] is the sub-list for method output_type
168 3, // [3:3] is the sub-list for method input_type
169 3, // [3:3] is the sub-list for extension type_name
170 3, // [3:3] is the sub-list for extension extendee
171 0, // [0:3] is the sub-list for field type_name
172 }
173
174 func init() { file_yandex_cloud_iam_v1_service_account_proto_init() }
175 func file_yandex_cloud_iam_v1_service_account_proto_init() {
176 if File_yandex_cloud_iam_v1_service_account_proto != nil {
177 return
178 }
179 type x struct{}
180 out := protoimpl.TypeBuilder{
181 File: protoimpl.DescBuilder{
182 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
183 RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_service_account_proto_rawDesc), len(file_yandex_cloud_iam_v1_service_account_proto_rawDesc)),
184 NumEnums: 0,
185 NumMessages: 2,
186 NumExtensions: 0,
187 NumServices: 0,
188 },
189 GoTypes: file_yandex_cloud_iam_v1_service_account_proto_goTypes,
190 DependencyIndexes: file_yandex_cloud_iam_v1_service_account_proto_depIdxs,
191 MessageInfos: file_yandex_cloud_iam_v1_service_account_proto_msgTypes,
192 }.Build()
193 File_yandex_cloud_iam_v1_service_account_proto = out.File
194 file_yandex_cloud_iam_v1_service_account_proto_goTypes = nil
195 file_yandex_cloud_iam_v1_service_account_proto_depIdxs = nil
196 }
197