api_key.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/api_key.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 // An ApiKey resource. For more information, see [Api-Key](/docs/iam/concepts/authorization/api-key).
26 type ApiKey struct {
27 state protoimpl.MessageState `protogen:"open.v1"`
28 // ID of the API Key.
29 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
30 // ID of the service account that the API key belongs to.
31 ServiceAccountId string `protobuf:"bytes,2,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`
32 // Creation timestamp.
33 CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
34 // Description of the API key. 0-256 characters long.
35 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
36 // Timestamp for the last authentication using this API key.
37 LastUsedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_used_at,json=lastUsedAt,proto3" json:"last_used_at,omitempty"`
38 // Draft
39 // Scope of the API key. 0-256 characters long.
40 //
41 // Deprecated: Marked as deprecated in yandex/cloud/iam/v1/api_key.proto.
42 Scope string `protobuf:"bytes,6,opt,name=scope,proto3" json:"scope,omitempty"`
43 // Scopes of the API key. 0-256 characters long.
44 Scopes []string `protobuf:"bytes,8,rep,name=scopes,proto3" json:"scopes,omitempty"`
45 // API key expiration timestamp.
46 ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
47 unknownFields protoimpl.UnknownFields
48 sizeCache protoimpl.SizeCache
49 }
50
51 func (x *ApiKey) Reset() {
52 *x = ApiKey{}
53 mi := &file_yandex_cloud_iam_v1_api_key_proto_msgTypes[0]
54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
55 ms.StoreMessageInfo(mi)
56 }
57
58 func (x *ApiKey) String() string {
59 return protoimpl.X.MessageStringOf(x)
60 }
61
62 func (*ApiKey) ProtoMessage() {}
63
64 func (x *ApiKey) ProtoReflect() protoreflect.Message {
65 mi := &file_yandex_cloud_iam_v1_api_key_proto_msgTypes[0]
66 if x != nil {
67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68 if ms.LoadMessageInfo() == nil {
69 ms.StoreMessageInfo(mi)
70 }
71 return ms
72 }
73 return mi.MessageOf(x)
74 }
75
76 // Deprecated: Use ApiKey.ProtoReflect.Descriptor instead.
77 func (*ApiKey) Descriptor() ([]byte, []int) {
78 return file_yandex_cloud_iam_v1_api_key_proto_rawDescGZIP(), []int{0}
79 }
80
81 func (x *ApiKey) GetId() string {
82 if x != nil {
83 return x.Id
84 }
85 return ""
86 }
87
88 func (x *ApiKey) GetServiceAccountId() string {
89 if x != nil {
90 return x.ServiceAccountId
91 }
92 return ""
93 }
94
95 func (x *ApiKey) GetCreatedAt() *timestamppb.Timestamp {
96 if x != nil {
97 return x.CreatedAt
98 }
99 return nil
100 }
101
102 func (x *ApiKey) GetDescription() string {
103 if x != nil {
104 return x.Description
105 }
106 return ""
107 }
108
109 func (x *ApiKey) GetLastUsedAt() *timestamppb.Timestamp {
110 if x != nil {
111 return x.LastUsedAt
112 }
113 return nil
114 }
115
116 // Deprecated: Marked as deprecated in yandex/cloud/iam/v1/api_key.proto.
117 func (x *ApiKey) GetScope() string {
118 if x != nil {
119 return x.Scope
120 }
121 return ""
122 }
123
124 func (x *ApiKey) GetScopes() []string {
125 if x != nil {
126 return x.Scopes
127 }
128 return nil
129 }
130
131 func (x *ApiKey) GetExpiresAt() *timestamppb.Timestamp {
132 if x != nil {
133 return x.ExpiresAt
134 }
135 return nil
136 }
137
138 var File_yandex_cloud_iam_v1_api_key_proto protoreflect.FileDescriptor
139
140 const file_yandex_cloud_iam_v1_api_key_proto_rawDesc = "" +
141 "\n" +
142 "!yandex/cloud/iam/v1/api_key.proto\x12\x13yandex.cloud.iam.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xce\x02\n" +
143 "\x06ApiKey\x12\x0e\n" +
144 "\x02id\x18\x01 \x01(\tR\x02id\x12,\n" +
145 "\x12service_account_id\x18\x02 \x01(\tR\x10serviceAccountId\x129\n" +
146 "\n" +
147 "created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12 \n" +
148 "\vdescription\x18\x04 \x01(\tR\vdescription\x12<\n" +
149 "\flast_used_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\n" +
150 "lastUsedAt\x12\x18\n" +
151 "\x05scope\x18\x06 \x01(\tB\x02\x18\x01R\x05scope\x12\x16\n" +
152 "\x06scopes\x18\b \x03(\tR\x06scopes\x129\n" +
153 "\n" +
154 "expires_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAtBV\n" +
155 "\x17yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iamb\x06proto3"
156
157 var (
158 file_yandex_cloud_iam_v1_api_key_proto_rawDescOnce sync.Once
159 file_yandex_cloud_iam_v1_api_key_proto_rawDescData []byte
160 )
161
162 func file_yandex_cloud_iam_v1_api_key_proto_rawDescGZIP() []byte {
163 file_yandex_cloud_iam_v1_api_key_proto_rawDescOnce.Do(func() {
164 file_yandex_cloud_iam_v1_api_key_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_api_key_proto_rawDesc), len(file_yandex_cloud_iam_v1_api_key_proto_rawDesc)))
165 })
166 return file_yandex_cloud_iam_v1_api_key_proto_rawDescData
167 }
168
169 var file_yandex_cloud_iam_v1_api_key_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
170 var file_yandex_cloud_iam_v1_api_key_proto_goTypes = []any{
171 (*ApiKey)(nil), // 0: yandex.cloud.iam.v1.ApiKey
172 (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
173 }
174 var file_yandex_cloud_iam_v1_api_key_proto_depIdxs = []int32{
175 1, // 0: yandex.cloud.iam.v1.ApiKey.created_at:type_name -> google.protobuf.Timestamp
176 1, // 1: yandex.cloud.iam.v1.ApiKey.last_used_at:type_name -> google.protobuf.Timestamp
177 1, // 2: yandex.cloud.iam.v1.ApiKey.expires_at:type_name -> google.protobuf.Timestamp
178 3, // [3:3] is the sub-list for method output_type
179 3, // [3:3] is the sub-list for method input_type
180 3, // [3:3] is the sub-list for extension type_name
181 3, // [3:3] is the sub-list for extension extendee
182 0, // [0:3] is the sub-list for field type_name
183 }
184
185 func init() { file_yandex_cloud_iam_v1_api_key_proto_init() }
186 func file_yandex_cloud_iam_v1_api_key_proto_init() {
187 if File_yandex_cloud_iam_v1_api_key_proto != nil {
188 return
189 }
190 type x struct{}
191 out := protoimpl.TypeBuilder{
192 File: protoimpl.DescBuilder{
193 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
194 RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_api_key_proto_rawDesc), len(file_yandex_cloud_iam_v1_api_key_proto_rawDesc)),
195 NumEnums: 0,
196 NumMessages: 1,
197 NumExtensions: 0,
198 NumServices: 0,
199 },
200 GoTypes: file_yandex_cloud_iam_v1_api_key_proto_goTypes,
201 DependencyIndexes: file_yandex_cloud_iam_v1_api_key_proto_depIdxs,
202 MessageInfos: file_yandex_cloud_iam_v1_api_key_proto_msgTypes,
203 }.Build()
204 File_yandex_cloud_iam_v1_api_key_proto = out.File
205 file_yandex_cloud_iam_v1_api_key_proto_goTypes = nil
206 file_yandex_cloud_iam_v1_api_key_proto_depIdxs = nil
207 }
208