-
Notifications
You must be signed in to change notification settings - Fork 1
/
metrics.pb.go
2388 lines (2291 loc) · 64 KB
/
metrics.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: metrics.proto
package v1
import (
context "context"
fmt "fmt"
v1 "github.com/arangodb-managed/apis/common/v1"
types "github.com/gogo/protobuf/types"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// A Token is represents an access token used to authenticate requests for metrics.
type Token struct {
// System identifier of the token.
// This is a read-only value.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// URL of this resource
// This is a read-only value.
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Name of the token
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Description of the token
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// Identifier of the deployment that owns this token.
// This value cannot be changed after creation.
DeploymentId string `protobuf:"bytes,5,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
// Time from creation of the token to expiration.
// This value cannot be changed after creation.
// If no value is set, a default value of 90 days is used.
Lifetime *types.Duration `protobuf:"bytes,6,opt,name=lifetime,proto3" json:"lifetime,omitempty"`
// The creation timestamp of the token.
// This is a read-only value.
CreatedAt *types.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// The deletion timestamp of the token.
// This is a read-only value.
DeletedAt *types.Timestamp `protobuf:"bytes,8,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
// The expiration timestamp of the token.
// This is a read-only value.
ExpiresAt *types.Timestamp `protobuf:"bytes,9,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
// The bearer token used for authentication.
// This is a read-only value that is only given directly after
// creation of the token. In all other calls, this field
// will be empty.
Token string `protobuf:"bytes,10,opt,name=token,proto3" json:"token,omitempty"`
// Set when this token is deleted.
// This is a read-only value.
IsDeleted bool `protobuf:"varint,11,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"`
// Set when this token has expired.
// This is a read-only value.
IsExpired bool `protobuf:"varint,12,opt,name=is_expired,json=isExpired,proto3" json:"is_expired,omitempty"`
// Set when this token will expire in the next month.
// This is a read-only value.
WillExpireSoon bool `protobuf:"varint,13,opt,name=will_expire_soon,json=willExpireSoon,proto3" json:"will_expire_soon,omitempty"`
// Set when this token is revoked.
// This is a read-only value.
IsRevoked bool `protobuf:"varint,14,opt,name=is_revoked,json=isRevoked,proto3" json:"is_revoked,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Token) Reset() { *m = Token{} }
func (m *Token) String() string { return proto.CompactTextString(m) }
func (*Token) ProtoMessage() {}
func (*Token) Descriptor() ([]byte, []int) {
return fileDescriptor_6039342a2ba47b72, []int{0}
}
func (m *Token) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Token.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 *Token) XXX_Merge(src proto.Message) {
xxx_messageInfo_Token.Merge(m, src)
}
func (m *Token) XXX_Size() int {
return m.Size()
}
func (m *Token) XXX_DiscardUnknown() {
xxx_messageInfo_Token.DiscardUnknown(m)
}
var xxx_messageInfo_Token proto.InternalMessageInfo
func (m *Token) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Token) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *Token) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Token) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Token) GetDeploymentId() string {
if m != nil {
return m.DeploymentId
}
return ""
}
func (m *Token) GetLifetime() *types.Duration {
if m != nil {
return m.Lifetime
}
return nil
}
func (m *Token) GetCreatedAt() *types.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *Token) GetDeletedAt() *types.Timestamp {
if m != nil {
return m.DeletedAt
}
return nil
}
func (m *Token) GetExpiresAt() *types.Timestamp {
if m != nil {
return m.ExpiresAt
}
return nil
}
func (m *Token) GetToken() string {
if m != nil {
return m.Token
}
return ""
}
func (m *Token) GetIsDeleted() bool {
if m != nil {
return m.IsDeleted
}
return false
}
func (m *Token) GetIsExpired() bool {
if m != nil {
return m.IsExpired
}
return false
}
func (m *Token) GetWillExpireSoon() bool {
if m != nil {
return m.WillExpireSoon
}
return false
}
func (m *Token) GetIsRevoked() bool {
if m != nil {
return m.IsRevoked
}
return false
}
// List of Tokens.
type TokenList struct {
Items []*Token `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TokenList) Reset() { *m = TokenList{} }
func (m *TokenList) String() string { return proto.CompactTextString(m) }
func (*TokenList) ProtoMessage() {}
func (*TokenList) Descriptor() ([]byte, []int) {
return fileDescriptor_6039342a2ba47b72, []int{1}
}
func (m *TokenList) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *TokenList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_TokenList.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 *TokenList) XXX_Merge(src proto.Message) {
xxx_messageInfo_TokenList.Merge(m, src)
}
func (m *TokenList) XXX_Size() int {
return m.Size()
}
func (m *TokenList) XXX_DiscardUnknown() {
xxx_messageInfo_TokenList.DiscardUnknown(m)
}
var xxx_messageInfo_TokenList proto.InternalMessageInfo
func (m *TokenList) GetItems() []*Token {
if m != nil {
return m.Items
}
return nil
}
// Request arguments for ListTokens.
type ListTokensRequest struct {
// Common list options.
// Context_id is ignored.
Options *v1.ListOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
// Required ID of deployment to list tokens for.
DeploymentId string `protobuf:"bytes,2,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
// If set, do not return revoked tokens.
ExcludeRevoked bool `protobuf:"varint,3,opt,name=exclude_revoked,json=excludeRevoked,proto3" json:"exclude_revoked,omitempty"`
// If set, do not return expired tokens.
ExcludeExpired bool `protobuf:"varint,4,opt,name=exclude_expired,json=excludeExpired,proto3" json:"exclude_expired,omitempty"`
// If set, do not return deleted (marked for deletion) tokens.
ExcludeDeleted bool `protobuf:"varint,5,opt,name=exclude_deleted,json=excludeDeleted,proto3" json:"exclude_deleted,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListTokensRequest) Reset() { *m = ListTokensRequest{} }
func (m *ListTokensRequest) String() string { return proto.CompactTextString(m) }
func (*ListTokensRequest) ProtoMessage() {}
func (*ListTokensRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6039342a2ba47b72, []int{2}
}
func (m *ListTokensRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ListTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ListTokensRequest.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 *ListTokensRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListTokensRequest.Merge(m, src)
}
func (m *ListTokensRequest) XXX_Size() int {
return m.Size()
}
func (m *ListTokensRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListTokensRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListTokensRequest proto.InternalMessageInfo
func (m *ListTokensRequest) GetOptions() *v1.ListOptions {
if m != nil {
return m.Options
}
return nil
}
func (m *ListTokensRequest) GetDeploymentId() string {
if m != nil {
return m.DeploymentId
}
return ""
}
func (m *ListTokensRequest) GetExcludeRevoked() bool {
if m != nil {
return m.ExcludeRevoked
}
return false
}
func (m *ListTokensRequest) GetExcludeExpired() bool {
if m != nil {
return m.ExcludeExpired
}
return false
}
func (m *ListTokensRequest) GetExcludeDeleted() bool {
if m != nil {
return m.ExcludeDeleted
}
return false
}
// Request arguments for GetMetricsEndpoint
type GetMetricsEndpointRequest struct {
// ID of the deployment to get the endpoint for.
DeploymentId string `protobuf:"bytes,1,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetMetricsEndpointRequest) Reset() { *m = GetMetricsEndpointRequest{} }
func (m *GetMetricsEndpointRequest) String() string { return proto.CompactTextString(m) }
func (*GetMetricsEndpointRequest) ProtoMessage() {}
func (*GetMetricsEndpointRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_6039342a2ba47b72, []int{3}
}
func (m *GetMetricsEndpointRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GetMetricsEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GetMetricsEndpointRequest.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 *GetMetricsEndpointRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetMetricsEndpointRequest.Merge(m, src)
}
func (m *GetMetricsEndpointRequest) XXX_Size() int {
return m.Size()
}
func (m *GetMetricsEndpointRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetMetricsEndpointRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetMetricsEndpointRequest proto.InternalMessageInfo
func (m *GetMetricsEndpointRequest) GetDeploymentId() string {
if m != nil {
return m.DeploymentId
}
return ""
}
// Response for GetMetricsEndpoint
type MetricsEndpoint struct {
// Endpoint (url) to get metrics from.
// If no valid metrics tokens are configured this field is empty.
Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MetricsEndpoint) Reset() { *m = MetricsEndpoint{} }
func (m *MetricsEndpoint) String() string { return proto.CompactTextString(m) }
func (*MetricsEndpoint) ProtoMessage() {}
func (*MetricsEndpoint) Descriptor() ([]byte, []int) {
return fileDescriptor_6039342a2ba47b72, []int{4}
}
func (m *MetricsEndpoint) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MetricsEndpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MetricsEndpoint.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 *MetricsEndpoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_MetricsEndpoint.Merge(m, src)
}
func (m *MetricsEndpoint) XXX_Size() int {
return m.Size()
}
func (m *MetricsEndpoint) XXX_DiscardUnknown() {
xxx_messageInfo_MetricsEndpoint.DiscardUnknown(m)
}
var xxx_messageInfo_MetricsEndpoint proto.InternalMessageInfo
func (m *MetricsEndpoint) GetEndpoint() string {
if m != nil {
return m.Endpoint
}
return ""
}
func init() {
proto.RegisterType((*Token)(nil), "arangodb.cloud.metrics.v1.Token")
proto.RegisterType((*TokenList)(nil), "arangodb.cloud.metrics.v1.TokenList")
proto.RegisterType((*ListTokensRequest)(nil), "arangodb.cloud.metrics.v1.ListTokensRequest")
proto.RegisterType((*GetMetricsEndpointRequest)(nil), "arangodb.cloud.metrics.v1.GetMetricsEndpointRequest")
proto.RegisterType((*MetricsEndpoint)(nil), "arangodb.cloud.metrics.v1.MetricsEndpoint")
}
func init() { proto.RegisterFile("metrics.proto", fileDescriptor_6039342a2ba47b72) }
var fileDescriptor_6039342a2ba47b72 = []byte{
// 860 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x8f, 0xdb, 0x44,
0x14, 0xc7, 0xf9, 0xd3, 0x26, 0xcf, 0x4d, 0x5a, 0x46, 0x08, 0x79, 0x0d, 0x0d, 0xc1, 0x5b, 0x20,
0xa4, 0xac, 0xad, 0x84, 0x02, 0x6a, 0x51, 0x05, 0x4b, 0x77, 0xb5, 0x5a, 0x09, 0x04, 0x72, 0x0b,
0x07, 0x2e, 0x91, 0xe3, 0x99, 0x86, 0x51, 0x6d, 0x8f, 0xf1, 0x4c, 0x42, 0xa2, 0x6a, 0x85, 0xc4,
0x8d, 0x1b, 0x12, 0x17, 0x0e, 0x7c, 0x01, 0xbe, 0x09, 0x47, 0x24, 0x24, 0xce, 0x68, 0xe1, 0x23,
0xf0, 0x01, 0x90, 0x67, 0xc6, 0x49, 0x36, 0x21, 0x09, 0xa0, 0xbd, 0x8d, 0xdf, 0xfc, 0x7e, 0xef,
0xbd, 0xf9, 0xcd, 0x6f, 0x5e, 0x02, 0x8d, 0x98, 0x88, 0x8c, 0x86, 0xdc, 0x4d, 0x33, 0x26, 0x18,
0xda, 0x0b, 0xb2, 0x20, 0x19, 0x31, 0x3c, 0x74, 0xc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x31, 0x09, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// MetricsServiceClient is the client API for MetricsService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MetricsServiceClient interface {
// Get the current API version of this service.
// Required permissions:
// - None
GetAPIVersion(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.Version, error)
// Fetch all metrics token in the deployment identified by the given deployment ID.
// Required permissions:
// - metrics.token.list on the deployment identified by the given deployment ID
ListTokens(ctx context.Context, in *ListTokensRequest, opts ...grpc.CallOption) (*TokenList, error)
// Fetch a metrics token by its id.
// Required permissions:
// - metrics.token.get on the token identified by the given ID
GetToken(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*Token, error)
// Create a new metrics token.
// Required permissions:
// - metrics.token.create on the deployment that owns the token
CreateToken(ctx context.Context, in *Token, opts ...grpc.CallOption) (*Token, error)
// Update a metrics token.
// Note that you can only change the metadata (name & description) of the
// token.
// Required permissions:
// - metrics.token.update on the token
UpdateToken(ctx context.Context, in *Token, opts ...grpc.CallOption) (*Token, error)
// Revoke a metrics token.
// Once a token is revoked, it can no longer be used for authentication.
// Required permissions:
// - metrics.token.revoke on the token
RevokeToken(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*v1.Empty, error)
// Delete a metrics token.
// Note that token are initially only marked for deleted.
// Once all the resources that depend on it are removed the token itself is deleted
// and cannot be restored.
// Required permissions:
// - metrics.token.delete on the token
DeleteToken(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*v1.Empty, error)
// Fetch the endpoint to use for getting metrics for a deployment with given id.
// Required permissions:
// - metrics.endpoint.get on the deployment identified by the given ID
GetMetricsEndpoint(ctx context.Context, in *GetMetricsEndpointRequest, opts ...grpc.CallOption) (*MetricsEndpoint, error)
}
type metricsServiceClient struct {
cc *grpc.ClientConn
}
func NewMetricsServiceClient(cc *grpc.ClientConn) MetricsServiceClient {
return &metricsServiceClient{cc}
}
func (c *metricsServiceClient) GetAPIVersion(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.Version, error) {
out := new(v1.Version)
err := c.cc.Invoke(ctx, "/arangodb.cloud.metrics.v1.MetricsService/GetAPIVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *metricsServiceClient) ListTokens(ctx context.Context, in *ListTokensRequest, opts ...grpc.CallOption) (*TokenList, error) {
out := new(TokenList)
err := c.cc.Invoke(ctx, "/arangodb.cloud.metrics.v1.MetricsService/ListTokens", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *metricsServiceClient) GetToken(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*Token, error) {
out := new(Token)
err := c.cc.Invoke(ctx, "/arangodb.cloud.metrics.v1.MetricsService/GetToken", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *metricsServiceClient) CreateToken(ctx context.Context, in *Token, opts ...grpc.CallOption) (*Token, error) {
out := new(Token)
err := c.cc.Invoke(ctx, "/arangodb.cloud.metrics.v1.MetricsService/CreateToken", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *metricsServiceClient) UpdateToken(ctx context.Context, in *Token, opts ...grpc.CallOption) (*Token, error) {
out := new(Token)
err := c.cc.Invoke(ctx, "/arangodb.cloud.metrics.v1.MetricsService/UpdateToken", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *metricsServiceClient) RevokeToken(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*v1.Empty, error) {
out := new(v1.Empty)
err := c.cc.Invoke(ctx, "/arangodb.cloud.metrics.v1.MetricsService/RevokeToken", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *metricsServiceClient) DeleteToken(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*v1.Empty, error) {
out := new(v1.Empty)
err := c.cc.Invoke(ctx, "/arangodb.cloud.metrics.v1.MetricsService/DeleteToken", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *metricsServiceClient) GetMetricsEndpoint(ctx context.Context, in *GetMetricsEndpointRequest, opts ...grpc.CallOption) (*MetricsEndpoint, error) {
out := new(MetricsEndpoint)
err := c.cc.Invoke(ctx, "/arangodb.cloud.metrics.v1.MetricsService/GetMetricsEndpoint", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MetricsServiceServer is the server API for MetricsService service.
type MetricsServiceServer interface {
// Get the current API version of this service.
// Required permissions:
// - None
GetAPIVersion(context.Context, *v1.Empty) (*v1.Version, error)
// Fetch all metrics token in the deployment identified by the given deployment ID.
// Required permissions:
// - metrics.token.list on the deployment identified by the given deployment ID
ListTokens(context.Context, *ListTokensRequest) (*TokenList, error)
// Fetch a metrics token by its id.
// Required permissions:
// - metrics.token.get on the token identified by the given ID
GetToken(context.Context, *v1.IDOptions) (*Token, error)
// Create a new metrics token.
// Required permissions:
// - metrics.token.create on the deployment that owns the token
CreateToken(context.Context, *Token) (*Token, error)
// Update a metrics token.
// Note that you can only change the metadata (name & description) of the
// token.
// Required permissions:
// - metrics.token.update on the token
UpdateToken(context.Context, *Token) (*Token, error)
// Revoke a metrics token.
// Once a token is revoked, it can no longer be used for authentication.
// Required permissions:
// - metrics.token.revoke on the token
RevokeToken(context.Context, *v1.IDOptions) (*v1.Empty, error)
// Delete a metrics token.
// Note that token are initially only marked for deleted.
// Once all the resources that depend on it are removed the token itself is deleted
// and cannot be restored.
// Required permissions:
// - metrics.token.delete on the token
DeleteToken(context.Context, *v1.IDOptions) (*v1.Empty, error)
// Fetch the endpoint to use for getting metrics for a deployment with given id.
// Required permissions:
// - metrics.endpoint.get on the deployment identified by the given ID
GetMetricsEndpoint(context.Context, *GetMetricsEndpointRequest) (*MetricsEndpoint, error)
}
// UnimplementedMetricsServiceServer can be embedded to have forward compatible implementations.
type UnimplementedMetricsServiceServer struct {
}
func (*UnimplementedMetricsServiceServer) GetAPIVersion(ctx context.Context, req *v1.Empty) (*v1.Version, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAPIVersion not implemented")
}
func (*UnimplementedMetricsServiceServer) ListTokens(ctx context.Context, req *ListTokensRequest) (*TokenList, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListTokens not implemented")
}
func (*UnimplementedMetricsServiceServer) GetToken(ctx context.Context, req *v1.IDOptions) (*Token, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetToken not implemented")
}
func (*UnimplementedMetricsServiceServer) CreateToken(ctx context.Context, req *Token) (*Token, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateToken not implemented")
}
func (*UnimplementedMetricsServiceServer) UpdateToken(ctx context.Context, req *Token) (*Token, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateToken not implemented")
}
func (*UnimplementedMetricsServiceServer) RevokeToken(ctx context.Context, req *v1.IDOptions) (*v1.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method RevokeToken not implemented")
}
func (*UnimplementedMetricsServiceServer) DeleteToken(ctx context.Context, req *v1.IDOptions) (*v1.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteToken not implemented")
}
func (*UnimplementedMetricsServiceServer) GetMetricsEndpoint(ctx context.Context, req *GetMetricsEndpointRequest) (*MetricsEndpoint, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMetricsEndpoint not implemented")
}
func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer) {
s.RegisterService(&_MetricsService_serviceDesc, srv)
}
func _MetricsService_GetAPIVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MetricsServiceServer).GetAPIVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.metrics.v1.MetricsService/GetAPIVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MetricsServiceServer).GetAPIVersion(ctx, req.(*v1.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _MetricsService_ListTokens_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListTokensRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MetricsServiceServer).ListTokens(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.metrics.v1.MetricsService/ListTokens",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MetricsServiceServer).ListTokens(ctx, req.(*ListTokensRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MetricsService_GetToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.IDOptions)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MetricsServiceServer).GetToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.metrics.v1.MetricsService/GetToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MetricsServiceServer).GetToken(ctx, req.(*v1.IDOptions))
}
return interceptor(ctx, in, info, handler)
}
func _MetricsService_CreateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Token)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MetricsServiceServer).CreateToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.metrics.v1.MetricsService/CreateToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MetricsServiceServer).CreateToken(ctx, req.(*Token))
}
return interceptor(ctx, in, info, handler)
}
func _MetricsService_UpdateToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Token)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MetricsServiceServer).UpdateToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.metrics.v1.MetricsService/UpdateToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MetricsServiceServer).UpdateToken(ctx, req.(*Token))
}
return interceptor(ctx, in, info, handler)
}
func _MetricsService_RevokeToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.IDOptions)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MetricsServiceServer).RevokeToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.metrics.v1.MetricsService/RevokeToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MetricsServiceServer).RevokeToken(ctx, req.(*v1.IDOptions))
}
return interceptor(ctx, in, info, handler)
}
func _MetricsService_DeleteToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.IDOptions)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MetricsServiceServer).DeleteToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.metrics.v1.MetricsService/DeleteToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MetricsServiceServer).DeleteToken(ctx, req.(*v1.IDOptions))
}
return interceptor(ctx, in, info, handler)
}
func _MetricsService_GetMetricsEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetMetricsEndpointRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MetricsServiceServer).GetMetricsEndpoint(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.metrics.v1.MetricsService/GetMetricsEndpoint",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MetricsServiceServer).GetMetricsEndpoint(ctx, req.(*GetMetricsEndpointRequest))
}
return interceptor(ctx, in, info, handler)
}
var _MetricsService_serviceDesc = grpc.ServiceDesc{
ServiceName: "arangodb.cloud.metrics.v1.MetricsService",
HandlerType: (*MetricsServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetAPIVersion",
Handler: _MetricsService_GetAPIVersion_Handler,
},
{
MethodName: "ListTokens",
Handler: _MetricsService_ListTokens_Handler,
},
{
MethodName: "GetToken",
Handler: _MetricsService_GetToken_Handler,
},
{
MethodName: "CreateToken",
Handler: _MetricsService_CreateToken_Handler,
},
{
MethodName: "UpdateToken",
Handler: _MetricsService_UpdateToken_Handler,
},
{
MethodName: "RevokeToken",
Handler: _MetricsService_RevokeToken_Handler,
},
{
MethodName: "DeleteToken",
Handler: _MetricsService_DeleteToken_Handler,
},
{
MethodName: "GetMetricsEndpoint",
Handler: _MetricsService_GetMetricsEndpoint_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "metrics.proto",
}
func (m *Token) 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 *Token) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.IsRevoked {
i--
if m.IsRevoked {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x70
}
if m.WillExpireSoon {
i--
if m.WillExpireSoon {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x68
}
if m.IsExpired {
i--
if m.IsExpired {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x60
}
if m.IsDeleted {
i--
if m.IsDeleted {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x58
}
if len(m.Token) > 0 {
i -= len(m.Token)
copy(dAtA[i:], m.Token)
i = encodeVarintMetrics(dAtA, i, uint64(len(m.Token)))
i--
dAtA[i] = 0x52
}
if m.ExpiresAt != nil {
{
size, err := m.ExpiresAt.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintMetrics(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x4a
}
if m.DeletedAt != nil {
{
size, err := m.DeletedAt.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintMetrics(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x42
}