-
Notifications
You must be signed in to change notification settings - Fork 4
/
resource.pb.go
3136 lines (2788 loc) · 134 KB
/
resource.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-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.29.0
// protoc v3.17.3
// source: yandex/cloud/cdn/v1/resource.proto
package cdn
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
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)
)
// This option defines the protocol that will be used by CDN servers to request
// content from an origin source. If not specified, we will use HTTP to connect
// to an origin server.
type OriginProtocol int32
const (
OriginProtocol_ORIGIN_PROTOCOL_UNSPECIFIED OriginProtocol = 0
// CDN servers will connect to your origin via HTTP.
OriginProtocol_HTTP OriginProtocol = 1
// CDN servers will connect to your origin via HTTPS.
OriginProtocol_HTTPS OriginProtocol = 2
// Connection protocol will be chosen automatically (content on the
// origin source should be available for the CDN both through HTTP and HTTPS).
OriginProtocol_MATCH OriginProtocol = 3
)
// Enum value maps for OriginProtocol.
var (
OriginProtocol_name = map[int32]string{
0: "ORIGIN_PROTOCOL_UNSPECIFIED",
1: "HTTP",
2: "HTTPS",
3: "MATCH",
}
OriginProtocol_value = map[string]int32{
"ORIGIN_PROTOCOL_UNSPECIFIED": 0,
"HTTP": 1,
"HTTPS": 2,
"MATCH": 3,
}
)
func (x OriginProtocol) Enum() *OriginProtocol {
p := new(OriginProtocol)
*p = x
return p
}
func (x OriginProtocol) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (OriginProtocol) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_cdn_v1_resource_proto_enumTypes[0].Descriptor()
}
func (OriginProtocol) Type() protoreflect.EnumType {
return &file_yandex_cloud_cdn_v1_resource_proto_enumTypes[0]
}
func (x OriginProtocol) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use OriginProtocol.Descriptor instead.
func (OriginProtocol) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_cdn_v1_resource_proto_rawDescGZIP(), []int{0}
}
// RewriteFlag defines flag for the Rewrite option.
type RewriteFlag int32
const (
RewriteFlag_REWRITE_FLAG_UNSPECIFIED RewriteFlag = 0
// Stops processing of the current set of ngx_http_rewrite_module directives and
// starts a search for a new location matching changed URI.
RewriteFlag_LAST RewriteFlag = 1
// Stops processing of the current set of the Rewrite option.
RewriteFlag_BREAK RewriteFlag = 2
// Returns a temporary redirect with the 302 code; It is used when a replacement string does not start
// with "http://", "https://", or "$scheme".
RewriteFlag_REDIRECT RewriteFlag = 3
// Returns a permanent redirect with the 301 code.
RewriteFlag_PERMANENT RewriteFlag = 4
)
// Enum value maps for RewriteFlag.
var (
RewriteFlag_name = map[int32]string{
0: "REWRITE_FLAG_UNSPECIFIED",
1: "LAST",
2: "BREAK",
3: "REDIRECT",
4: "PERMANENT",
}
RewriteFlag_value = map[string]int32{
"REWRITE_FLAG_UNSPECIFIED": 0,
"LAST": 1,
"BREAK": 2,
"REDIRECT": 3,
"PERMANENT": 4,
}
)
func (x RewriteFlag) Enum() *RewriteFlag {
p := new(RewriteFlag)
*p = x
return p
}
func (x RewriteFlag) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RewriteFlag) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_cdn_v1_resource_proto_enumTypes[1].Descriptor()
}
func (RewriteFlag) Type() protoreflect.EnumType {
return &file_yandex_cloud_cdn_v1_resource_proto_enumTypes[1]
}
func (x RewriteFlag) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RewriteFlag.Descriptor instead.
func (RewriteFlag) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_cdn_v1_resource_proto_rawDescGZIP(), []int{1}
}
// SecureKeyURLType defines type of the URL signing.
type SecureKeyURLType int32
const (
SecureKeyURLType_SECURE_KEY_URL_TYPE_UNSPECIFIED SecureKeyURLType = 0
// Use scpecific IP address in URL signing. URL will be availible only for this IP.
SecureKeyURLType_ENABLE_IP_SIGNING SecureKeyURLType = 1
// Sign URL without using IP address. URL will be available for all IP addresses.
SecureKeyURLType_DISABLE_IP_SIGNING SecureKeyURLType = 2
)
// Enum value maps for SecureKeyURLType.
var (
SecureKeyURLType_name = map[int32]string{
0: "SECURE_KEY_URL_TYPE_UNSPECIFIED",
1: "ENABLE_IP_SIGNING",
2: "DISABLE_IP_SIGNING",
}
SecureKeyURLType_value = map[string]int32{
"SECURE_KEY_URL_TYPE_UNSPECIFIED": 0,
"ENABLE_IP_SIGNING": 1,
"DISABLE_IP_SIGNING": 2,
}
)
func (x SecureKeyURLType) Enum() *SecureKeyURLType {
p := new(SecureKeyURLType)
*p = x
return p
}
func (x SecureKeyURLType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SecureKeyURLType) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_cdn_v1_resource_proto_enumTypes[2].Descriptor()
}
func (SecureKeyURLType) Type() protoreflect.EnumType {
return &file_yandex_cloud_cdn_v1_resource_proto_enumTypes[2]
}
func (x SecureKeyURLType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SecureKeyURLType.Descriptor instead.
func (SecureKeyURLType) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_cdn_v1_resource_proto_rawDescGZIP(), []int{2}
}
// PolicyType defines type of the policy in IP address acl rules.
type PolicyType int32
const (
PolicyType_POLICY_TYPE_UNSPECIFIED PolicyType = 0
// Allow access to all IP addresses except the ones specified in the excepted_values field.
PolicyType_POLICY_TYPE_ALLOW PolicyType = 1
// Block access to all IP addresses except the ones specified in the excepted_values field.
PolicyType_POLICY_TYPE_DENY PolicyType = 2
)
// Enum value maps for PolicyType.
var (
PolicyType_name = map[int32]string{
0: "POLICY_TYPE_UNSPECIFIED",
1: "POLICY_TYPE_ALLOW",
2: "POLICY_TYPE_DENY",
}
PolicyType_value = map[string]int32{
"POLICY_TYPE_UNSPECIFIED": 0,
"POLICY_TYPE_ALLOW": 1,
"POLICY_TYPE_DENY": 2,
}
)
func (x PolicyType) Enum() *PolicyType {
p := new(PolicyType)
*p = x
return p
}
func (x PolicyType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PolicyType) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_cdn_v1_resource_proto_enumTypes[3].Descriptor()
}
func (PolicyType) Type() protoreflect.EnumType {
return &file_yandex_cloud_cdn_v1_resource_proto_enumTypes[3]
}
func (x PolicyType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PolicyType.Descriptor instead.
func (PolicyType) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_cdn_v1_resource_proto_rawDescGZIP(), []int{3}
}
// A certificate type parameters.
type SSLCertificateType int32
const (
// SSL certificate is unspecified.
SSLCertificateType_SSL_CERTIFICATE_TYPE_UNSPECIFIED SSLCertificateType = 0
// No SSL certificate is added, the requests are sent via HTTP.
SSLCertificateType_DONT_USE SSLCertificateType = 1
// The option is deprecated. Works only if you have already pointed your domain name to the protected IP address in your DNS.
//
// Deprecated: Marked as deprecated in yandex/cloud/cdn/v1/resource.proto.
SSLCertificateType_LETS_ENCRYPT_GCORE SSLCertificateType = 2
// Add your SSL certificate by uploading the certificate in PEM format and your private key.
SSLCertificateType_CM SSLCertificateType = 3
)
// Enum value maps for SSLCertificateType.
var (
SSLCertificateType_name = map[int32]string{
0: "SSL_CERTIFICATE_TYPE_UNSPECIFIED",
1: "DONT_USE",
2: "LETS_ENCRYPT_GCORE",
3: "CM",
}
SSLCertificateType_value = map[string]int32{
"SSL_CERTIFICATE_TYPE_UNSPECIFIED": 0,
"DONT_USE": 1,
"LETS_ENCRYPT_GCORE": 2,
"CM": 3,
}
)
func (x SSLCertificateType) Enum() *SSLCertificateType {
p := new(SSLCertificateType)
*p = x
return p
}
func (x SSLCertificateType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SSLCertificateType) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_cdn_v1_resource_proto_enumTypes[4].Descriptor()
}
func (SSLCertificateType) Type() protoreflect.EnumType {
return &file_yandex_cloud_cdn_v1_resource_proto_enumTypes[4]
}
func (x SSLCertificateType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SSLCertificateType.Descriptor instead.
func (SSLCertificateType) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_cdn_v1_resource_proto_rawDescGZIP(), []int{4}
}
// A certificate status parameters.
type SSLCertificateStatus int32
const (
// SSL certificate is unspecified.
SSLCertificateStatus_SSL_CERTIFICATE_STATUS_UNSPECIFIED SSLCertificateStatus = 0
// SSL certificate is ready to use.
SSLCertificateStatus_READY SSLCertificateStatus = 1
// The option is deprecated. SSL certificate is creating.
//
// Deprecated: Marked as deprecated in yandex/cloud/cdn/v1/resource.proto.
SSLCertificateStatus_CREATING SSLCertificateStatus = 2
)
// Enum value maps for SSLCertificateStatus.
var (
SSLCertificateStatus_name = map[int32]string{
0: "SSL_CERTIFICATE_STATUS_UNSPECIFIED",
1: "READY",
2: "CREATING",
}
SSLCertificateStatus_value = map[string]int32{
"SSL_CERTIFICATE_STATUS_UNSPECIFIED": 0,
"READY": 1,
"CREATING": 2,
}
)
func (x SSLCertificateStatus) Enum() *SSLCertificateStatus {
p := new(SSLCertificateStatus)
*p = x
return p
}
func (x SSLCertificateStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SSLCertificateStatus) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_cdn_v1_resource_proto_enumTypes[5].Descriptor()
}
func (SSLCertificateStatus) Type() protoreflect.EnumType {
return &file_yandex_cloud_cdn_v1_resource_proto_enumTypes[5]
}
func (x SSLCertificateStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SSLCertificateStatus.Descriptor instead.
func (SSLCertificateStatus) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_cdn_v1_resource_proto_rawDescGZIP(), []int{5}
}
// List of secondary (alternative) CNAMEs.
type SecondaryHostnames struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of secondary hostname values.
Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
}
func (x *SecondaryHostnames) Reset() {
*x = SecondaryHostnames{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_cdn_v1_resource_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SecondaryHostnames) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SecondaryHostnames) ProtoMessage() {}
func (x *SecondaryHostnames) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_cdn_v1_resource_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SecondaryHostnames.ProtoReflect.Descriptor instead.
func (*SecondaryHostnames) Descriptor() ([]byte, []int) {
return file_yandex_cloud_cdn_v1_resource_proto_rawDescGZIP(), []int{0}
}
func (x *SecondaryHostnames) GetValues() []string {
if x != nil {
return x.Values
}
return nil
}
// A CDN resource - representation of providers resource.
type Resource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the resource.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Folder id.
FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
// CDN endpoint CNAME, must be unique among resources.
Cname string `protobuf:"bytes,3,opt,name=cname,proto3" json:"cname,omitempty"`
// Creation timestamp.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Update timestamp.
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// Flag to create Resource either in active or disabled state.
// True - the content from CDN is available to clients.
// False - the content from CDN isn't available to clients.
Active bool `protobuf:"varint,6,opt,name=active,proto3" json:"active,omitempty"`
// Resource settings and options to tune CDN edge behavior.
Options *ResourceOptions `protobuf:"bytes,7,opt,name=options,proto3" json:"options,omitempty"`
// List of secondary hostname strings.
SecondaryHostnames []string `protobuf:"bytes,8,rep,name=secondary_hostnames,json=secondaryHostnames,proto3" json:"secondary_hostnames,omitempty"`
// ID of the origin group.
OriginGroupId int64 `protobuf:"varint,9,opt,name=origin_group_id,json=originGroupId,proto3" json:"origin_group_id,omitempty"`
// Name of the origin group.
OriginGroupName string `protobuf:"bytes,10,opt,name=origin_group_name,json=originGroupName,proto3" json:"origin_group_name,omitempty"`
// Specify the protocol schema to be used in communication with origin.
OriginProtocol OriginProtocol `protobuf:"varint,11,opt,name=origin_protocol,json=originProtocol,proto3,enum=yandex.cloud.cdn.v1.OriginProtocol" json:"origin_protocol,omitempty"`
// SSL certificate options.
SslCertificate *SSLCertificate `protobuf:"bytes,12,opt,name=ssl_certificate,json=sslCertificate,proto3" json:"ssl_certificate,omitempty"`
// Labels of the resource.
Labels map[string]string `protobuf:"bytes,13,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Resource) Reset() {
*x = Resource{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_cdn_v1_resource_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Resource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Resource) ProtoMessage() {}
func (x *Resource) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_cdn_v1_resource_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Resource.ProtoReflect.Descriptor instead.
func (*Resource) Descriptor() ([]byte, []int) {
return file_yandex_cloud_cdn_v1_resource_proto_rawDescGZIP(), []int{1}
}
func (x *Resource) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Resource) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (x *Resource) GetCname() string {
if x != nil {
return x.Cname
}
return ""
}
func (x *Resource) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Resource) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
func (x *Resource) GetActive() bool {
if x != nil {
return x.Active
}
return false
}
func (x *Resource) GetOptions() *ResourceOptions {
if x != nil {
return x.Options
}
return nil
}
func (x *Resource) GetSecondaryHostnames() []string {
if x != nil {
return x.SecondaryHostnames
}
return nil
}
func (x *Resource) GetOriginGroupId() int64 {
if x != nil {
return x.OriginGroupId
}
return 0
}
func (x *Resource) GetOriginGroupName() string {
if x != nil {
return x.OriginGroupName
}
return ""
}
func (x *Resource) GetOriginProtocol() OriginProtocol {
if x != nil {
return x.OriginProtocol
}
return OriginProtocol_ORIGIN_PROTOCOL_UNSPECIFIED
}
func (x *Resource) GetSslCertificate() *SSLCertificate {
if x != nil {
return x.SslCertificate
}
return nil
}
func (x *Resource) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
// A major set of various resource options.
type ResourceOptions struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Set up a cache status.
DisableCache *ResourceOptions_BoolOption `protobuf:"bytes,1,opt,name=disable_cache,json=disableCache,proto3" json:"disable_cache,omitempty"`
// Set up [EdgeCacheSettings].
EdgeCacheSettings *ResourceOptions_EdgeCacheSettings `protobuf:"bytes,2,opt,name=edge_cache_settings,json=edgeCacheSettings,proto3" json:"edge_cache_settings,omitempty"`
// Using [Int64Option]. Set up a cache period for the end-users browser.
// Content will be cached due to origin settings.
// If there are no cache settings on your origin, the content will not be cached.
// The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
// Other response codes will not be cached.
// The default value is 4 days.
BrowserCacheSettings *ResourceOptions_Int64Option `protobuf:"bytes,3,opt,name=browser_cache_settings,json=browserCacheSettings,proto3" json:"browser_cache_settings,omitempty"`
// List HTTP headers that must be included in responses to clients.
CacheHttpHeaders *ResourceOptions_StringsListOption `protobuf:"bytes,4,opt,name=cache_http_headers,json=cacheHttpHeaders,proto3" json:"cache_http_headers,omitempty"`
// Set up [QueryParamsOptions].
QueryParamsOptions *ResourceOptions_QueryParamsOptions `protobuf:"bytes,5,opt,name=query_params_options,json=queryParamsOptions,proto3" json:"query_params_options,omitempty"`
// Files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte.
//
// The origin must support HTTP Range requests.
//
// By default the option is disabled.
Slice *ResourceOptions_BoolOption `protobuf:"bytes,6,opt,name=slice,proto3" json:"slice,omitempty"`
// Set up compression variant.
CompressionOptions *ResourceOptions_CompressionOptions `protobuf:"bytes,7,opt,name=compression_options,json=compressionOptions,proto3" json:"compression_options,omitempty"`
// Set up redirects.
RedirectOptions *ResourceOptions_RedirectOptions `protobuf:"bytes,8,opt,name=redirect_options,json=redirectOptions,proto3" json:"redirect_options,omitempty"`
// Set up host parameters.
HostOptions *ResourceOptions_HostOptions `protobuf:"bytes,9,opt,name=host_options,json=hostOptions,proto3" json:"host_options,omitempty"`
// Set up static headers that CDN servers send in responses to clients.
StaticHeaders *ResourceOptions_StringsMapOption `protobuf:"bytes,10,opt,name=static_headers,json=staticHeaders,proto3" json:"static_headers,omitempty"`
// Parameter that lets browsers get access to selected resources from a domain
// different to a domain from which the request is received.
// [Read more](/docs/cdn/concepts/cors).
Cors *ResourceOptions_StringsListOption `protobuf:"bytes,11,opt,name=cors,proto3" json:"cors,omitempty"`
// List of errors which instruct CDN servers to serve stale content to clients.
//
// Possible values: `error`, `http_403`, `http_404`, `http_429`, `http_500`, `http_502`, `http_503`, `http_504`, `invalid_header`, `timeout`, `updating`.
Stale *ResourceOptions_StringsListOption `protobuf:"bytes,12,opt,name=stale,proto3" json:"stale,omitempty"`
// HTTP methods for your CDN content. By default the following methods
// are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS.
// In case some methods are not allowed to the user, they will get the 405
// (Method Not Allowed) response. If the method is not supported,
// the user gets the 501 (Not Implemented) response.
AllowedHttpMethods *ResourceOptions_StringsListOption `protobuf:"bytes,13,opt,name=allowed_http_methods,json=allowedHttpMethods,proto3" json:"allowed_http_methods,omitempty"`
// Allows caching for GET, HEAD and POST requests.
ProxyCacheMethodsSet *ResourceOptions_BoolOption `protobuf:"bytes,14,opt,name=proxy_cache_methods_set,json=proxyCacheMethodsSet,proto3" json:"proxy_cache_methods_set,omitempty"`
// Disabling proxy force ranges.
DisableProxyForceRanges *ResourceOptions_BoolOption `protobuf:"bytes,15,opt,name=disable_proxy_force_ranges,json=disableProxyForceRanges,proto3" json:"disable_proxy_force_ranges,omitempty"`
// Set up custom headers that CDN servers send in requests to origins.
// The Header name field can contain letters (A-Z, a-z), numbers (0-9), dashes (-) and underscores (_).
// The Value field can contain letters (A-Z, a-z), numbers (0-9), dashes (-),
// underscores (_), slashes (/), colons (:), equal (=), dots (.), and spaces.
StaticRequestHeaders *ResourceOptions_StringsMapOption `protobuf:"bytes,16,opt,name=static_request_headers,json=staticRequestHeaders,proto3" json:"static_request_headers,omitempty"`
// Wildcard additional CNAME.
// If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
CustomServerName *ResourceOptions_StringOption `protobuf:"bytes,17,opt,name=custom_server_name,json=customServerName,proto3" json:"custom_server_name,omitempty"`
// Using [BoolOption] for ignoring cookie.
IgnoreCookie *ResourceOptions_BoolOption `protobuf:"bytes,18,opt,name=ignore_cookie,json=ignoreCookie,proto3" json:"ignore_cookie,omitempty"`
// Changing or redirecting query paths.
Rewrite *ResourceOptions_RewriteOption `protobuf:"bytes,19,opt,name=rewrite,proto3" json:"rewrite,omitempty"`
// Secure token to protect contect and limit access by IP addresses and time limits.
SecureKey *ResourceOptions_SecureKeyOption `protobuf:"bytes,20,opt,name=secure_key,json=secureKey,proto3" json:"secure_key,omitempty"`
// Manage the state of the IP access policy option.
// The option controls access to content from the specified IP addresses.
IpAddressAcl *ResourceOptions_IPAddressACLOption `protobuf:"bytes,21,opt,name=ip_address_acl,json=ipAddressAcl,proto3" json:"ip_address_acl,omitempty"`
}
func (x *ResourceOptions) Reset() {
*x = ResourceOptions{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_cdn_v1_resource_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceOptions) ProtoMessage() {}
func (x *ResourceOptions) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_cdn_v1_resource_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResourceOptions.ProtoReflect.Descriptor instead.
func (*ResourceOptions) Descriptor() ([]byte, []int) {
return file_yandex_cloud_cdn_v1_resource_proto_rawDescGZIP(), []int{2}
}
func (x *ResourceOptions) GetDisableCache() *ResourceOptions_BoolOption {
if x != nil {
return x.DisableCache
}
return nil
}
func (x *ResourceOptions) GetEdgeCacheSettings() *ResourceOptions_EdgeCacheSettings {
if x != nil {
return x.EdgeCacheSettings
}
return nil
}
func (x *ResourceOptions) GetBrowserCacheSettings() *ResourceOptions_Int64Option {
if x != nil {
return x.BrowserCacheSettings
}
return nil
}
func (x *ResourceOptions) GetCacheHttpHeaders() *ResourceOptions_StringsListOption {
if x != nil {
return x.CacheHttpHeaders
}
return nil
}
func (x *ResourceOptions) GetQueryParamsOptions() *ResourceOptions_QueryParamsOptions {
if x != nil {
return x.QueryParamsOptions
}
return nil
}
func (x *ResourceOptions) GetSlice() *ResourceOptions_BoolOption {
if x != nil {
return x.Slice
}
return nil
}
func (x *ResourceOptions) GetCompressionOptions() *ResourceOptions_CompressionOptions {
if x != nil {
return x.CompressionOptions
}
return nil
}
func (x *ResourceOptions) GetRedirectOptions() *ResourceOptions_RedirectOptions {
if x != nil {
return x.RedirectOptions
}
return nil
}
func (x *ResourceOptions) GetHostOptions() *ResourceOptions_HostOptions {
if x != nil {
return x.HostOptions
}
return nil
}
func (x *ResourceOptions) GetStaticHeaders() *ResourceOptions_StringsMapOption {
if x != nil {
return x.StaticHeaders
}
return nil
}
func (x *ResourceOptions) GetCors() *ResourceOptions_StringsListOption {
if x != nil {
return x.Cors
}
return nil
}
func (x *ResourceOptions) GetStale() *ResourceOptions_StringsListOption {
if x != nil {
return x.Stale
}
return nil
}
func (x *ResourceOptions) GetAllowedHttpMethods() *ResourceOptions_StringsListOption {
if x != nil {
return x.AllowedHttpMethods
}
return nil
}
func (x *ResourceOptions) GetProxyCacheMethodsSet() *ResourceOptions_BoolOption {
if x != nil {
return x.ProxyCacheMethodsSet
}
return nil
}
func (x *ResourceOptions) GetDisableProxyForceRanges() *ResourceOptions_BoolOption {
if x != nil {
return x.DisableProxyForceRanges
}
return nil
}
func (x *ResourceOptions) GetStaticRequestHeaders() *ResourceOptions_StringsMapOption {
if x != nil {
return x.StaticRequestHeaders
}
return nil
}
func (x *ResourceOptions) GetCustomServerName() *ResourceOptions_StringOption {
if x != nil {
return x.CustomServerName
}
return nil
}
func (x *ResourceOptions) GetIgnoreCookie() *ResourceOptions_BoolOption {
if x != nil {
return x.IgnoreCookie
}
return nil
}
func (x *ResourceOptions) GetRewrite() *ResourceOptions_RewriteOption {
if x != nil {
return x.Rewrite
}
return nil
}
func (x *ResourceOptions) GetSecureKey() *ResourceOptions_SecureKeyOption {
if x != nil {
return x.SecureKey
}
return nil
}
func (x *ResourceOptions) GetIpAddressAcl() *ResourceOptions_IPAddressACLOption {
if x != nil {
return x.IpAddressAcl
}
return nil
}
// A set of the personal SSL certificate parameters.
type SSLTargetCertificate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Type of the certificate.
Type SSLCertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.cdn.v1.SSLCertificateType" json:"type,omitempty"`
// Certificate data.
Data *SSLCertificateData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}
func (x *SSLTargetCertificate) Reset() {
*x = SSLTargetCertificate{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_cdn_v1_resource_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SSLTargetCertificate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SSLTargetCertificate) ProtoMessage() {}
func (x *SSLTargetCertificate) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_cdn_v1_resource_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SSLTargetCertificate.ProtoReflect.Descriptor instead.
func (*SSLTargetCertificate) Descriptor() ([]byte, []int) {
return file_yandex_cloud_cdn_v1_resource_proto_rawDescGZIP(), []int{3}
}
func (x *SSLTargetCertificate) GetType() SSLCertificateType {
if x != nil {
return x.Type
}
return SSLCertificateType_SSL_CERTIFICATE_TYPE_UNSPECIFIED
}
func (x *SSLTargetCertificate) GetData() *SSLCertificateData {
if x != nil {
return x.Data
}
return nil
}
// A SSL certificate parameters.
type SSLCertificate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Type of the certificate.
Type SSLCertificateType `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.cdn.v1.SSLCertificateType" json:"type,omitempty"`
// Active status.
Status SSLCertificateStatus `protobuf:"varint,2,opt,name=status,proto3,enum=yandex.cloud.cdn.v1.SSLCertificateStatus" json:"status,omitempty"`
// Certificate data.
Data *SSLCertificateData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}
func (x *SSLCertificate) Reset() {
*x = SSLCertificate{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_cdn_v1_resource_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SSLCertificate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SSLCertificate) ProtoMessage() {}
func (x *SSLCertificate) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_cdn_v1_resource_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SSLCertificate.ProtoReflect.Descriptor instead.
func (*SSLCertificate) Descriptor() ([]byte, []int) {
return file_yandex_cloud_cdn_v1_resource_proto_rawDescGZIP(), []int{4}
}
func (x *SSLCertificate) GetType() SSLCertificateType {
if x != nil {
return x.Type
}
return SSLCertificateType_SSL_CERTIFICATE_TYPE_UNSPECIFIED
}
func (x *SSLCertificate) GetStatus() SSLCertificateStatus {
if x != nil {
return x.Status
}
return SSLCertificateStatus_SSL_CERTIFICATE_STATUS_UNSPECIFIED
}
func (x *SSLCertificate) GetData() *SSLCertificateData {
if x != nil {
return x.Data
}
return nil
}
// A certificate data parameters.
type SSLCertificateData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to SslCertificateDataVariant:
//
// *SSLCertificateData_Cm
SslCertificateDataVariant isSSLCertificateData_SslCertificateDataVariant `protobuf_oneof:"ssl_certificate_data_variant"`
}
func (x *SSLCertificateData) Reset() {
*x = SSLCertificateData{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_cdn_v1_resource_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SSLCertificateData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SSLCertificateData) ProtoMessage() {}
func (x *SSLCertificateData) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_cdn_v1_resource_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SSLCertificateData.ProtoReflect.Descriptor instead.
func (*SSLCertificateData) Descriptor() ([]byte, []int) {
return file_yandex_cloud_cdn_v1_resource_proto_rawDescGZIP(), []int{5}
}
func (m *SSLCertificateData) GetSslCertificateDataVariant() isSSLCertificateData_SslCertificateDataVariant {
if m != nil {
return m.SslCertificateDataVariant
}
return nil
}
func (x *SSLCertificateData) GetCm() *SSLCertificateCMData {
if x, ok := x.GetSslCertificateDataVariant().(*SSLCertificateData_Cm); ok {
return x.Cm