-
Notifications
You must be signed in to change notification settings - Fork 74
/
zz_contentkeypolicy_types.go
executable file
·774 lines (552 loc) · 40.6 KB
/
zz_contentkeypolicy_types.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
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta2
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type AlternateKeyInitParameters struct {
// The RSA parameter exponent.
RsaTokenKeyExponentSecretRef *v1.SecretKeySelector `json:"rsaTokenKeyExponentSecretRef,omitempty" tf:"-"`
// The RSA parameter modulus.
RsaTokenKeyModulusSecretRef *v1.SecretKeySelector `json:"rsaTokenKeyModulusSecretRef,omitempty" tf:"-"`
// The key value of the key. Specifies a symmetric key for token validation.
SymmetricTokenKeySecretRef *v1.SecretKeySelector `json:"symmetricTokenKeySecretRef,omitempty" tf:"-"`
// The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET). Specifies a certificate for token validation.
X509TokenKeyRawSecretRef *v1.SecretKeySelector `json:"x509TokenKeyRawSecretRef,omitempty" tf:"-"`
}
type AlternateKeyObservation struct {
}
type AlternateKeyParameters struct {
// The RSA parameter exponent.
// +kubebuilder:validation:Optional
RsaTokenKeyExponentSecretRef *v1.SecretKeySelector `json:"rsaTokenKeyExponentSecretRef,omitempty" tf:"-"`
// The RSA parameter modulus.
// +kubebuilder:validation:Optional
RsaTokenKeyModulusSecretRef *v1.SecretKeySelector `json:"rsaTokenKeyModulusSecretRef,omitempty" tf:"-"`
// The key value of the key. Specifies a symmetric key for token validation.
// +kubebuilder:validation:Optional
SymmetricTokenKeySecretRef *v1.SecretKeySelector `json:"symmetricTokenKeySecretRef,omitempty" tf:"-"`
// The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET). Specifies a certificate for token validation.
// +kubebuilder:validation:Optional
X509TokenKeyRawSecretRef *v1.SecretKeySelector `json:"x509TokenKeyRawSecretRef,omitempty" tf:"-"`
}
type ContentKeyPolicyInitParameters struct {
// A description for the Policy.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// One or more policy_option blocks as defined below.
PolicyOption []PolicyOptionInitParameters `json:"policyOption,omitempty" tf:"policy_option,omitempty"`
}
type ContentKeyPolicyObservation struct {
// A description for the Policy.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The ID of the Content Key Policy.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The Media Services account name. Changing this forces a new Content Key Policy to be created.
MediaServicesAccountName *string `json:"mediaServicesAccountName,omitempty" tf:"media_services_account_name,omitempty"`
// One or more policy_option blocks as defined below.
PolicyOption []PolicyOptionObservation `json:"policyOption,omitempty" tf:"policy_option,omitempty"`
// The name of the Resource Group where the Content Key Policy should exist. Changing this forces a new Content Key Policy to be created.
ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`
}
type ContentKeyPolicyParameters struct {
// A description for the Policy.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// The Media Services account name. Changing this forces a new Content Key Policy to be created.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/media/v1beta2.ServicesAccount
// +kubebuilder:validation:Optional
MediaServicesAccountName *string `json:"mediaServicesAccountName,omitempty" tf:"media_services_account_name,omitempty"`
// Reference to a ServicesAccount in media to populate mediaServicesAccountName.
// +kubebuilder:validation:Optional
MediaServicesAccountNameRef *v1.Reference `json:"mediaServicesAccountNameRef,omitempty" tf:"-"`
// Selector for a ServicesAccount in media to populate mediaServicesAccountName.
// +kubebuilder:validation:Optional
MediaServicesAccountNameSelector *v1.Selector `json:"mediaServicesAccountNameSelector,omitempty" tf:"-"`
// One or more policy_option blocks as defined below.
// +kubebuilder:validation:Optional
PolicyOption []PolicyOptionParameters `json:"policyOption,omitempty" tf:"policy_option,omitempty"`
// The name of the Resource Group where the Content Key Policy should exist. Changing this forces a new Content Key Policy to be created.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/azure/v1beta1.ResourceGroup
// +kubebuilder:validation:Optional
ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`
// Reference to a ResourceGroup in azure to populate resourceGroupName.
// +kubebuilder:validation:Optional
ResourceGroupNameRef *v1.Reference `json:"resourceGroupNameRef,omitempty" tf:"-"`
// Selector for a ResourceGroup in azure to populate resourceGroupName.
// +kubebuilder:validation:Optional
ResourceGroupNameSelector *v1.Selector `json:"resourceGroupNameSelector,omitempty" tf:"-"`
}
type ExplicitAnalogTelevisionOutputRestrictionInitParameters struct {
// Indicates whether this restriction is enforced on a best effort basis. Possible values are true or false. Defaults to false.
BestEffortEnforced *bool `json:"bestEffortEnforced,omitempty" tf:"best_effort_enforced,omitempty"`
// The restriction control bits. Possible value is integer between 0 and 3 inclusive.
ControlBits *float64 `json:"controlBits,omitempty" tf:"control_bits,omitempty"`
}
type ExplicitAnalogTelevisionOutputRestrictionObservation struct {
// Indicates whether this restriction is enforced on a best effort basis. Possible values are true or false. Defaults to false.
BestEffortEnforced *bool `json:"bestEffortEnforced,omitempty" tf:"best_effort_enforced,omitempty"`
// The restriction control bits. Possible value is integer between 0 and 3 inclusive.
ControlBits *float64 `json:"controlBits,omitempty" tf:"control_bits,omitempty"`
}
type ExplicitAnalogTelevisionOutputRestrictionParameters struct {
// Indicates whether this restriction is enforced on a best effort basis. Possible values are true or false. Defaults to false.
// +kubebuilder:validation:Optional
BestEffortEnforced *bool `json:"bestEffortEnforced,omitempty" tf:"best_effort_enforced,omitempty"`
// The restriction control bits. Possible value is integer between 0 and 3 inclusive.
// +kubebuilder:validation:Optional
ControlBits *float64 `json:"controlBits" tf:"control_bits,omitempty"`
}
type FairplayConfigurationInitParameters struct {
// The key that must be used as FairPlay Application Secret key.
AskSecretRef *v1.SecretKeySelector `json:"askSecretRef,omitempty" tf:"-"`
// A offline_rental_configuration block as defined below.
OfflineRentalConfiguration *OfflineRentalConfigurationInitParameters `json:"offlineRentalConfiguration,omitempty" tf:"offline_rental_configuration,omitempty"`
// The password encrypting FairPlay certificate in PKCS 12 (pfx) format.
PfxPasswordSecretRef *v1.SecretKeySelector `json:"pfxPasswordSecretRef,omitempty" tf:"-"`
// The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).
PfxSecretRef *v1.SecretKeySelector `json:"pfxSecretRef,omitempty" tf:"-"`
// The rental and lease key type. Supported values are DualExpiry, PersistentLimited, PersistentUnlimited or Undefined.
RentalAndLeaseKeyType *string `json:"rentalAndLeaseKeyType,omitempty" tf:"rental_and_lease_key_type,omitempty"`
// The rental duration. Must be greater than 0.
RentalDurationSeconds *float64 `json:"rentalDurationSeconds,omitempty" tf:"rental_duration_seconds,omitempty"`
}
type FairplayConfigurationObservation struct {
// A offline_rental_configuration block as defined below.
OfflineRentalConfiguration *OfflineRentalConfigurationObservation `json:"offlineRentalConfiguration,omitempty" tf:"offline_rental_configuration,omitempty"`
// The rental and lease key type. Supported values are DualExpiry, PersistentLimited, PersistentUnlimited or Undefined.
RentalAndLeaseKeyType *string `json:"rentalAndLeaseKeyType,omitempty" tf:"rental_and_lease_key_type,omitempty"`
// The rental duration. Must be greater than 0.
RentalDurationSeconds *float64 `json:"rentalDurationSeconds,omitempty" tf:"rental_duration_seconds,omitempty"`
}
type FairplayConfigurationParameters struct {
// The key that must be used as FairPlay Application Secret key.
// +kubebuilder:validation:Optional
AskSecretRef *v1.SecretKeySelector `json:"askSecretRef,omitempty" tf:"-"`
// A offline_rental_configuration block as defined below.
// +kubebuilder:validation:Optional
OfflineRentalConfiguration *OfflineRentalConfigurationParameters `json:"offlineRentalConfiguration,omitempty" tf:"offline_rental_configuration,omitempty"`
// The password encrypting FairPlay certificate in PKCS 12 (pfx) format.
// +kubebuilder:validation:Optional
PfxPasswordSecretRef *v1.SecretKeySelector `json:"pfxPasswordSecretRef,omitempty" tf:"-"`
// The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key).
// +kubebuilder:validation:Optional
PfxSecretRef *v1.SecretKeySelector `json:"pfxSecretRef,omitempty" tf:"-"`
// The rental and lease key type. Supported values are DualExpiry, PersistentLimited, PersistentUnlimited or Undefined.
// +kubebuilder:validation:Optional
RentalAndLeaseKeyType *string `json:"rentalAndLeaseKeyType,omitempty" tf:"rental_and_lease_key_type,omitempty"`
// The rental duration. Must be greater than 0.
// +kubebuilder:validation:Optional
RentalDurationSeconds *float64 `json:"rentalDurationSeconds,omitempty" tf:"rental_duration_seconds,omitempty"`
}
type OfflineRentalConfigurationInitParameters struct {
// Playback duration.
PlaybackDurationSeconds *float64 `json:"playbackDurationSeconds,omitempty" tf:"playback_duration_seconds,omitempty"`
// Storage duration.
StorageDurationSeconds *float64 `json:"storageDurationSeconds,omitempty" tf:"storage_duration_seconds,omitempty"`
}
type OfflineRentalConfigurationObservation struct {
// Playback duration.
PlaybackDurationSeconds *float64 `json:"playbackDurationSeconds,omitempty" tf:"playback_duration_seconds,omitempty"`
// Storage duration.
StorageDurationSeconds *float64 `json:"storageDurationSeconds,omitempty" tf:"storage_duration_seconds,omitempty"`
}
type OfflineRentalConfigurationParameters struct {
// Playback duration.
// +kubebuilder:validation:Optional
PlaybackDurationSeconds *float64 `json:"playbackDurationSeconds,omitempty" tf:"playback_duration_seconds,omitempty"`
// Storage duration.
// +kubebuilder:validation:Optional
StorageDurationSeconds *float64 `json:"storageDurationSeconds,omitempty" tf:"storage_duration_seconds,omitempty"`
}
type PlayRightInitParameters struct {
// Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive.
AgcAndColorStripeRestriction *float64 `json:"agcAndColorStripeRestriction,omitempty" tf:"agc_and_color_stripe_restriction,omitempty"`
// Configures Unknown output handling settings of the license. Supported values are Allowed, AllowedWithVideoConstriction or NotAllowed.
AllowPassingVideoContentToUnknownOutput *string `json:"allowPassingVideoContentToUnknownOutput,omitempty" tf:"allow_passing_video_content_to_unknown_output,omitempty"`
// Specifies the output protection level for compressed digital audio. Supported values are 100, 150 or 200.
AnalogVideoOpl *float64 `json:"analogVideoOpl,omitempty" tf:"analog_video_opl,omitempty"`
// Specifies the output protection level for compressed digital audio.Supported values are 100, 150, 200, 250 or 300.
CompressedDigitalAudioOpl *float64 `json:"compressedDigitalAudioOpl,omitempty" tf:"compressed_digital_audio_opl,omitempty"`
// Specifies the output protection level for compressed digital video. Supported values are 400 or 500.
CompressedDigitalVideoOpl *float64 `json:"compressedDigitalVideoOpl,omitempty" tf:"compressed_digital_video_opl,omitempty"`
// Enables the Image Constraint For Analog Component Video Restriction in the license.
DigitalVideoOnlyContentRestriction *bool `json:"digitalVideoOnlyContentRestriction,omitempty" tf:"digital_video_only_content_restriction,omitempty"`
// An explicit_analog_television_output_restriction block as defined above.
ExplicitAnalogTelevisionOutputRestriction *ExplicitAnalogTelevisionOutputRestrictionInitParameters `json:"explicitAnalogTelevisionOutputRestriction,omitempty" tf:"explicit_analog_television_output_restriction,omitempty"`
// The amount of time that the license is valid after the license is first used to play content.
FirstPlayExpiration *string `json:"firstPlayExpiration,omitempty" tf:"first_play_expiration,omitempty"`
// Enables the Image Constraint For Analog Component Video Restriction in the license.
ImageConstraintForAnalogComponentVideoRestriction *bool `json:"imageConstraintForAnalogComponentVideoRestriction,omitempty" tf:"image_constraint_for_analog_component_video_restriction,omitempty"`
// Enables the Image Constraint For Analog Component Video Restriction in the license.
ImageConstraintForAnalogComputerMonitorRestriction *bool `json:"imageConstraintForAnalogComputerMonitorRestriction,omitempty" tf:"image_constraint_for_analog_computer_monitor_restriction,omitempty"`
// Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive.
ScmsRestriction *float64 `json:"scmsRestriction,omitempty" tf:"scms_restriction,omitempty"`
// Specifies the output protection level for uncompressed digital audio. Supported values are 100, 150, 200, 250 or 300.
UncompressedDigitalAudioOpl *float64 `json:"uncompressedDigitalAudioOpl,omitempty" tf:"uncompressed_digital_audio_opl,omitempty"`
// Specifies the output protection level for uncompressed digital video. Supported values are 100, 250, 270 or 300.
UncompressedDigitalVideoOpl *float64 `json:"uncompressedDigitalVideoOpl,omitempty" tf:"uncompressed_digital_video_opl,omitempty"`
}
type PlayRightObservation struct {
// Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive.
AgcAndColorStripeRestriction *float64 `json:"agcAndColorStripeRestriction,omitempty" tf:"agc_and_color_stripe_restriction,omitempty"`
// Configures Unknown output handling settings of the license. Supported values are Allowed, AllowedWithVideoConstriction or NotAllowed.
AllowPassingVideoContentToUnknownOutput *string `json:"allowPassingVideoContentToUnknownOutput,omitempty" tf:"allow_passing_video_content_to_unknown_output,omitempty"`
// Specifies the output protection level for compressed digital audio. Supported values are 100, 150 or 200.
AnalogVideoOpl *float64 `json:"analogVideoOpl,omitempty" tf:"analog_video_opl,omitempty"`
// Specifies the output protection level for compressed digital audio.Supported values are 100, 150, 200, 250 or 300.
CompressedDigitalAudioOpl *float64 `json:"compressedDigitalAudioOpl,omitempty" tf:"compressed_digital_audio_opl,omitempty"`
// Specifies the output protection level for compressed digital video. Supported values are 400 or 500.
CompressedDigitalVideoOpl *float64 `json:"compressedDigitalVideoOpl,omitempty" tf:"compressed_digital_video_opl,omitempty"`
// Enables the Image Constraint For Analog Component Video Restriction in the license.
DigitalVideoOnlyContentRestriction *bool `json:"digitalVideoOnlyContentRestriction,omitempty" tf:"digital_video_only_content_restriction,omitempty"`
// An explicit_analog_television_output_restriction block as defined above.
ExplicitAnalogTelevisionOutputRestriction *ExplicitAnalogTelevisionOutputRestrictionObservation `json:"explicitAnalogTelevisionOutputRestriction,omitempty" tf:"explicit_analog_television_output_restriction,omitempty"`
// The amount of time that the license is valid after the license is first used to play content.
FirstPlayExpiration *string `json:"firstPlayExpiration,omitempty" tf:"first_play_expiration,omitempty"`
// Enables the Image Constraint For Analog Component Video Restriction in the license.
ImageConstraintForAnalogComponentVideoRestriction *bool `json:"imageConstraintForAnalogComponentVideoRestriction,omitempty" tf:"image_constraint_for_analog_component_video_restriction,omitempty"`
// Enables the Image Constraint For Analog Component Video Restriction in the license.
ImageConstraintForAnalogComputerMonitorRestriction *bool `json:"imageConstraintForAnalogComputerMonitorRestriction,omitempty" tf:"image_constraint_for_analog_computer_monitor_restriction,omitempty"`
// Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive.
ScmsRestriction *float64 `json:"scmsRestriction,omitempty" tf:"scms_restriction,omitempty"`
// Specifies the output protection level for uncompressed digital audio. Supported values are 100, 150, 200, 250 or 300.
UncompressedDigitalAudioOpl *float64 `json:"uncompressedDigitalAudioOpl,omitempty" tf:"uncompressed_digital_audio_opl,omitempty"`
// Specifies the output protection level for uncompressed digital video. Supported values are 100, 250, 270 or 300.
UncompressedDigitalVideoOpl *float64 `json:"uncompressedDigitalVideoOpl,omitempty" tf:"uncompressed_digital_video_opl,omitempty"`
}
type PlayRightParameters struct {
// Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive.
// +kubebuilder:validation:Optional
AgcAndColorStripeRestriction *float64 `json:"agcAndColorStripeRestriction,omitempty" tf:"agc_and_color_stripe_restriction,omitempty"`
// Configures Unknown output handling settings of the license. Supported values are Allowed, AllowedWithVideoConstriction or NotAllowed.
// +kubebuilder:validation:Optional
AllowPassingVideoContentToUnknownOutput *string `json:"allowPassingVideoContentToUnknownOutput,omitempty" tf:"allow_passing_video_content_to_unknown_output,omitempty"`
// Specifies the output protection level for compressed digital audio. Supported values are 100, 150 or 200.
// +kubebuilder:validation:Optional
AnalogVideoOpl *float64 `json:"analogVideoOpl,omitempty" tf:"analog_video_opl,omitempty"`
// Specifies the output protection level for compressed digital audio.Supported values are 100, 150, 200, 250 or 300.
// +kubebuilder:validation:Optional
CompressedDigitalAudioOpl *float64 `json:"compressedDigitalAudioOpl,omitempty" tf:"compressed_digital_audio_opl,omitempty"`
// Specifies the output protection level for compressed digital video. Supported values are 400 or 500.
// +kubebuilder:validation:Optional
CompressedDigitalVideoOpl *float64 `json:"compressedDigitalVideoOpl,omitempty" tf:"compressed_digital_video_opl,omitempty"`
// Enables the Image Constraint For Analog Component Video Restriction in the license.
// +kubebuilder:validation:Optional
DigitalVideoOnlyContentRestriction *bool `json:"digitalVideoOnlyContentRestriction,omitempty" tf:"digital_video_only_content_restriction,omitempty"`
// An explicit_analog_television_output_restriction block as defined above.
// +kubebuilder:validation:Optional
ExplicitAnalogTelevisionOutputRestriction *ExplicitAnalogTelevisionOutputRestrictionParameters `json:"explicitAnalogTelevisionOutputRestriction,omitempty" tf:"explicit_analog_television_output_restriction,omitempty"`
// The amount of time that the license is valid after the license is first used to play content.
// +kubebuilder:validation:Optional
FirstPlayExpiration *string `json:"firstPlayExpiration,omitempty" tf:"first_play_expiration,omitempty"`
// Enables the Image Constraint For Analog Component Video Restriction in the license.
// +kubebuilder:validation:Optional
ImageConstraintForAnalogComponentVideoRestriction *bool `json:"imageConstraintForAnalogComponentVideoRestriction,omitempty" tf:"image_constraint_for_analog_component_video_restriction,omitempty"`
// Enables the Image Constraint For Analog Component Video Restriction in the license.
// +kubebuilder:validation:Optional
ImageConstraintForAnalogComputerMonitorRestriction *bool `json:"imageConstraintForAnalogComputerMonitorRestriction,omitempty" tf:"image_constraint_for_analog_computer_monitor_restriction,omitempty"`
// Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive.
// +kubebuilder:validation:Optional
ScmsRestriction *float64 `json:"scmsRestriction,omitempty" tf:"scms_restriction,omitempty"`
// Specifies the output protection level for uncompressed digital audio. Supported values are 100, 150, 200, 250 or 300.
// +kubebuilder:validation:Optional
UncompressedDigitalAudioOpl *float64 `json:"uncompressedDigitalAudioOpl,omitempty" tf:"uncompressed_digital_audio_opl,omitempty"`
// Specifies the output protection level for uncompressed digital video. Supported values are 100, 250, 270 or 300.
// +kubebuilder:validation:Optional
UncompressedDigitalVideoOpl *float64 `json:"uncompressedDigitalVideoOpl,omitempty" tf:"uncompressed_digital_video_opl,omitempty"`
}
type PlayreadyConfigurationLicenseInitParameters struct {
// A flag indicating whether test devices can use the license.
AllowTestDevices *bool `json:"allowTestDevices,omitempty" tf:"allow_test_devices,omitempty"`
// The begin date of license.
BeginDate *string `json:"beginDate,omitempty" tf:"begin_date,omitempty"`
// Specifies that the content key ID is in the PlayReady header.
ContentKeyLocationFromHeaderEnabled *bool `json:"contentKeyLocationFromHeaderEnabled,omitempty" tf:"content_key_location_from_header_enabled,omitempty"`
// The content key ID. Specifies that the content key ID is specified in the PlayReady configuration.
ContentKeyLocationFromKeyID *string `json:"contentKeyLocationFromKeyId,omitempty" tf:"content_key_location_from_key_id,omitempty"`
// The PlayReady content type. Supported values are UltraVioletDownload, UltraVioletStreaming or Unspecified.
ContentType *string `json:"contentType,omitempty" tf:"content_type,omitempty"`
// The expiration date of license.
ExpirationDate *string `json:"expirationDate,omitempty" tf:"expiration_date,omitempty"`
// The grace period of license.
GracePeriodSecretRef *v1.SecretKeySelector `json:"gracePeriodSecretRef,omitempty" tf:"-"`
// The license type. Supported values are NonPersistent or Persistent.
LicenseType *string `json:"licenseType,omitempty" tf:"license_type,omitempty"`
// A play_right block as defined above.
PlayRight *PlayRightInitParameters `json:"playRight,omitempty" tf:"play_right,omitempty"`
// The relative begin date of license.
RelativeBeginDate *string `json:"relativeBeginDate,omitempty" tf:"relative_begin_date,omitempty"`
// The relative expiration date of license.
RelativeExpirationDate *string `json:"relativeExpirationDate,omitempty" tf:"relative_expiration_date,omitempty"`
// The security level of the PlayReady license. Possible values are SL150, SL2000 and SL3000. Please see this document for more information about security level. See this document for more information about SL3000 support.
SecurityLevel *string `json:"securityLevel,omitempty" tf:"security_level,omitempty"`
}
type PlayreadyConfigurationLicenseObservation struct {
// A flag indicating whether test devices can use the license.
AllowTestDevices *bool `json:"allowTestDevices,omitempty" tf:"allow_test_devices,omitempty"`
// The begin date of license.
BeginDate *string `json:"beginDate,omitempty" tf:"begin_date,omitempty"`
// Specifies that the content key ID is in the PlayReady header.
ContentKeyLocationFromHeaderEnabled *bool `json:"contentKeyLocationFromHeaderEnabled,omitempty" tf:"content_key_location_from_header_enabled,omitempty"`
// The content key ID. Specifies that the content key ID is specified in the PlayReady configuration.
ContentKeyLocationFromKeyID *string `json:"contentKeyLocationFromKeyId,omitempty" tf:"content_key_location_from_key_id,omitempty"`
// The PlayReady content type. Supported values are UltraVioletDownload, UltraVioletStreaming or Unspecified.
ContentType *string `json:"contentType,omitempty" tf:"content_type,omitempty"`
// The expiration date of license.
ExpirationDate *string `json:"expirationDate,omitempty" tf:"expiration_date,omitempty"`
// The license type. Supported values are NonPersistent or Persistent.
LicenseType *string `json:"licenseType,omitempty" tf:"license_type,omitempty"`
// A play_right block as defined above.
PlayRight *PlayRightObservation `json:"playRight,omitempty" tf:"play_right,omitempty"`
// The relative begin date of license.
RelativeBeginDate *string `json:"relativeBeginDate,omitempty" tf:"relative_begin_date,omitempty"`
// The relative expiration date of license.
RelativeExpirationDate *string `json:"relativeExpirationDate,omitempty" tf:"relative_expiration_date,omitempty"`
// The security level of the PlayReady license. Possible values are SL150, SL2000 and SL3000. Please see this document for more information about security level. See this document for more information about SL3000 support.
SecurityLevel *string `json:"securityLevel,omitempty" tf:"security_level,omitempty"`
}
type PlayreadyConfigurationLicenseParameters struct {
// A flag indicating whether test devices can use the license.
// +kubebuilder:validation:Optional
AllowTestDevices *bool `json:"allowTestDevices,omitempty" tf:"allow_test_devices,omitempty"`
// The begin date of license.
// +kubebuilder:validation:Optional
BeginDate *string `json:"beginDate,omitempty" tf:"begin_date,omitempty"`
// Specifies that the content key ID is in the PlayReady header.
// +kubebuilder:validation:Optional
ContentKeyLocationFromHeaderEnabled *bool `json:"contentKeyLocationFromHeaderEnabled,omitempty" tf:"content_key_location_from_header_enabled,omitempty"`
// The content key ID. Specifies that the content key ID is specified in the PlayReady configuration.
// +kubebuilder:validation:Optional
ContentKeyLocationFromKeyID *string `json:"contentKeyLocationFromKeyId,omitempty" tf:"content_key_location_from_key_id,omitempty"`
// The PlayReady content type. Supported values are UltraVioletDownload, UltraVioletStreaming or Unspecified.
// +kubebuilder:validation:Optional
ContentType *string `json:"contentType,omitempty" tf:"content_type,omitempty"`
// The expiration date of license.
// +kubebuilder:validation:Optional
ExpirationDate *string `json:"expirationDate,omitempty" tf:"expiration_date,omitempty"`
// The grace period of license.
// +kubebuilder:validation:Optional
GracePeriodSecretRef *v1.SecretKeySelector `json:"gracePeriodSecretRef,omitempty" tf:"-"`
// The license type. Supported values are NonPersistent or Persistent.
// +kubebuilder:validation:Optional
LicenseType *string `json:"licenseType,omitempty" tf:"license_type,omitempty"`
// A play_right block as defined above.
// +kubebuilder:validation:Optional
PlayRight *PlayRightParameters `json:"playRight,omitempty" tf:"play_right,omitempty"`
// The relative begin date of license.
// +kubebuilder:validation:Optional
RelativeBeginDate *string `json:"relativeBeginDate,omitempty" tf:"relative_begin_date,omitempty"`
// The relative expiration date of license.
// +kubebuilder:validation:Optional
RelativeExpirationDate *string `json:"relativeExpirationDate,omitempty" tf:"relative_expiration_date,omitempty"`
// The security level of the PlayReady license. Possible values are SL150, SL2000 and SL3000. Please see this document for more information about security level. See this document for more information about SL3000 support.
// +kubebuilder:validation:Optional
SecurityLevel *string `json:"securityLevel,omitempty" tf:"security_level,omitempty"`
}
type PolicyOptionInitParameters struct {
// Enable a configuration for non-DRM keys.
ClearKeyConfigurationEnabled *bool `json:"clearKeyConfigurationEnabled,omitempty" tf:"clear_key_configuration_enabled,omitempty"`
// A fairplay_configuration block as defined above. Check license requirements here https://docs.microsoft.com/azure/media-services/latest/fairplay-license-overview.
FairplayConfiguration *FairplayConfigurationInitParameters `json:"fairplayConfiguration,omitempty" tf:"fairplay_configuration,omitempty"`
// The name which should be used for this Policy Option.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Enable an open restriction. License or key will be delivered on every request.
OpenRestrictionEnabled *bool `json:"openRestrictionEnabled,omitempty" tf:"open_restriction_enabled,omitempty"`
// One or more playready_configuration_license blocks as defined above.
PlayreadyConfigurationLicense []PlayreadyConfigurationLicenseInitParameters `json:"playreadyConfigurationLicense,omitempty" tf:"playready_configuration_license,omitempty"`
// The custom response data of the PlayReady configuration. This only applies when playready_configuration_license is specified.
PlayreadyResponseCustomData *string `json:"playreadyResponseCustomData,omitempty" tf:"playready_response_custom_data,omitempty"`
// A token_restriction block as defined below.
TokenRestriction *TokenRestrictionInitParameters `json:"tokenRestriction,omitempty" tf:"token_restriction,omitempty"`
// The Widevine template.
WidevineConfigurationTemplate *string `json:"widevineConfigurationTemplate,omitempty" tf:"widevine_configuration_template,omitempty"`
}
type PolicyOptionObservation struct {
// Enable a configuration for non-DRM keys.
ClearKeyConfigurationEnabled *bool `json:"clearKeyConfigurationEnabled,omitempty" tf:"clear_key_configuration_enabled,omitempty"`
// A fairplay_configuration block as defined above. Check license requirements here https://docs.microsoft.com/azure/media-services/latest/fairplay-license-overview.
FairplayConfiguration *FairplayConfigurationObservation `json:"fairplayConfiguration,omitempty" tf:"fairplay_configuration,omitempty"`
// The name which should be used for this Policy Option.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Enable an open restriction. License or key will be delivered on every request.
OpenRestrictionEnabled *bool `json:"openRestrictionEnabled,omitempty" tf:"open_restriction_enabled,omitempty"`
// One or more playready_configuration_license blocks as defined above.
PlayreadyConfigurationLicense []PlayreadyConfigurationLicenseObservation `json:"playreadyConfigurationLicense,omitempty" tf:"playready_configuration_license,omitempty"`
// The custom response data of the PlayReady configuration. This only applies when playready_configuration_license is specified.
PlayreadyResponseCustomData *string `json:"playreadyResponseCustomData,omitempty" tf:"playready_response_custom_data,omitempty"`
// A token_restriction block as defined below.
TokenRestriction *TokenRestrictionObservation `json:"tokenRestriction,omitempty" tf:"token_restriction,omitempty"`
// The Widevine template.
WidevineConfigurationTemplate *string `json:"widevineConfigurationTemplate,omitempty" tf:"widevine_configuration_template,omitempty"`
}
type PolicyOptionParameters struct {
// Enable a configuration for non-DRM keys.
// +kubebuilder:validation:Optional
ClearKeyConfigurationEnabled *bool `json:"clearKeyConfigurationEnabled,omitempty" tf:"clear_key_configuration_enabled,omitempty"`
// A fairplay_configuration block as defined above. Check license requirements here https://docs.microsoft.com/azure/media-services/latest/fairplay-license-overview.
// +kubebuilder:validation:Optional
FairplayConfiguration *FairplayConfigurationParameters `json:"fairplayConfiguration,omitempty" tf:"fairplay_configuration,omitempty"`
// The name which should be used for this Policy Option.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// Enable an open restriction. License or key will be delivered on every request.
// +kubebuilder:validation:Optional
OpenRestrictionEnabled *bool `json:"openRestrictionEnabled,omitempty" tf:"open_restriction_enabled,omitempty"`
// One or more playready_configuration_license blocks as defined above.
// +kubebuilder:validation:Optional
PlayreadyConfigurationLicense []PlayreadyConfigurationLicenseParameters `json:"playreadyConfigurationLicense,omitempty" tf:"playready_configuration_license,omitempty"`
// The custom response data of the PlayReady configuration. This only applies when playready_configuration_license is specified.
// +kubebuilder:validation:Optional
PlayreadyResponseCustomData *string `json:"playreadyResponseCustomData,omitempty" tf:"playready_response_custom_data,omitempty"`
// A token_restriction block as defined below.
// +kubebuilder:validation:Optional
TokenRestriction *TokenRestrictionParameters `json:"tokenRestriction,omitempty" tf:"token_restriction,omitempty"`
// The Widevine template.
// +kubebuilder:validation:Optional
WidevineConfigurationTemplate *string `json:"widevineConfigurationTemplate,omitempty" tf:"widevine_configuration_template,omitempty"`
}
type RequiredClaimInitParameters struct {
// Token claim type.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// Token claim value.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type RequiredClaimObservation struct {
// Token claim type.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// Token claim value.
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type RequiredClaimParameters struct {
// Token claim type.
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// Token claim value.
// +kubebuilder:validation:Optional
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type TokenRestrictionInitParameters struct {
// One or more alternate_key block as defined above.
AlternateKey []AlternateKeyInitParameters `json:"alternateKey,omitempty" tf:"alternate_key,omitempty"`
// The audience for the token.
Audience *string `json:"audience,omitempty" tf:"audience,omitempty"`
// The token issuer.
Issuer *string `json:"issuer,omitempty" tf:"issuer,omitempty"`
// The OpenID connect discovery document.
OpenIDConnectDiscoveryDocument *string `json:"openIdConnectDiscoveryDocument,omitempty" tf:"open_id_connect_discovery_document,omitempty"`
// The RSA parameter exponent.
PrimaryRsaTokenKeyExponentSecretRef *v1.SecretKeySelector `json:"primaryRsaTokenKeyExponentSecretRef,omitempty" tf:"-"`
// The RSA parameter modulus.
PrimaryRsaTokenKeyModulusSecretRef *v1.SecretKeySelector `json:"primaryRsaTokenKeyModulusSecretRef,omitempty" tf:"-"`
// The key value of the key. Specifies a symmetric key for token validation.
PrimarySymmetricTokenKeySecretRef *v1.SecretKeySelector `json:"primarySymmetricTokenKeySecretRef,omitempty" tf:"-"`
// The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET). Specifies a certificate for token validation.
PrimaryX509TokenKeyRawSecretRef *v1.SecretKeySelector `json:"primaryX509TokenKeyRawSecretRef,omitempty" tf:"-"`
// One or more required_claim blocks as defined above.
RequiredClaim []RequiredClaimInitParameters `json:"requiredClaim,omitempty" tf:"required_claim,omitempty"`
// The type of token. Supported values are Jwt or Swt.
TokenType *string `json:"tokenType,omitempty" tf:"token_type,omitempty"`
}
type TokenRestrictionObservation struct {
// One or more alternate_key block as defined above.
AlternateKey []AlternateKeyParameters `json:"alternateKey,omitempty" tf:"alternate_key,omitempty"`
// The audience for the token.
Audience *string `json:"audience,omitempty" tf:"audience,omitempty"`
// The token issuer.
Issuer *string `json:"issuer,omitempty" tf:"issuer,omitempty"`
// The OpenID connect discovery document.
OpenIDConnectDiscoveryDocument *string `json:"openIdConnectDiscoveryDocument,omitempty" tf:"open_id_connect_discovery_document,omitempty"`
// One or more required_claim blocks as defined above.
RequiredClaim []RequiredClaimObservation `json:"requiredClaim,omitempty" tf:"required_claim,omitempty"`
// The type of token. Supported values are Jwt or Swt.
TokenType *string `json:"tokenType,omitempty" tf:"token_type,omitempty"`
}
type TokenRestrictionParameters struct {
// One or more alternate_key block as defined above.
// +kubebuilder:validation:Optional
AlternateKey []AlternateKeyParameters `json:"alternateKey,omitempty" tf:"alternate_key,omitempty"`
// The audience for the token.
// +kubebuilder:validation:Optional
Audience *string `json:"audience,omitempty" tf:"audience,omitempty"`
// The token issuer.
// +kubebuilder:validation:Optional
Issuer *string `json:"issuer,omitempty" tf:"issuer,omitempty"`
// The OpenID connect discovery document.
// +kubebuilder:validation:Optional
OpenIDConnectDiscoveryDocument *string `json:"openIdConnectDiscoveryDocument,omitempty" tf:"open_id_connect_discovery_document,omitempty"`
// The RSA parameter exponent.
// +kubebuilder:validation:Optional
PrimaryRsaTokenKeyExponentSecretRef *v1.SecretKeySelector `json:"primaryRsaTokenKeyExponentSecretRef,omitempty" tf:"-"`
// The RSA parameter modulus.
// +kubebuilder:validation:Optional
PrimaryRsaTokenKeyModulusSecretRef *v1.SecretKeySelector `json:"primaryRsaTokenKeyModulusSecretRef,omitempty" tf:"-"`
// The key value of the key. Specifies a symmetric key for token validation.
// +kubebuilder:validation:Optional
PrimarySymmetricTokenKeySecretRef *v1.SecretKeySelector `json:"primarySymmetricTokenKeySecretRef,omitempty" tf:"-"`
// The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET). Specifies a certificate for token validation.
// +kubebuilder:validation:Optional
PrimaryX509TokenKeyRawSecretRef *v1.SecretKeySelector `json:"primaryX509TokenKeyRawSecretRef,omitempty" tf:"-"`
// One or more required_claim blocks as defined above.
// +kubebuilder:validation:Optional
RequiredClaim []RequiredClaimParameters `json:"requiredClaim,omitempty" tf:"required_claim,omitempty"`
// The type of token. Supported values are Jwt or Swt.
// +kubebuilder:validation:Optional
TokenType *string `json:"tokenType,omitempty" tf:"token_type,omitempty"`
}
// ContentKeyPolicySpec defines the desired state of ContentKeyPolicy
type ContentKeyPolicySpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ContentKeyPolicyParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider ContentKeyPolicyInitParameters `json:"initProvider,omitempty"`
}
// ContentKeyPolicyStatus defines the observed state of ContentKeyPolicy.
type ContentKeyPolicyStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ContentKeyPolicyObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// ContentKeyPolicy is the Schema for the ContentKeyPolicys API. Manages a Content Key Policy.
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure}
type ContentKeyPolicy struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.policyOption) || (has(self.initProvider) && has(self.initProvider.policyOption))",message="spec.forProvider.policyOption is a required parameter"
Spec ContentKeyPolicySpec `json:"spec"`
Status ContentKeyPolicyStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ContentKeyPolicyList contains a list of ContentKeyPolicys
type ContentKeyPolicyList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ContentKeyPolicy `json:"items"`
}
// Repository type metadata.
var (
ContentKeyPolicy_Kind = "ContentKeyPolicy"
ContentKeyPolicy_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ContentKeyPolicy_Kind}.String()
ContentKeyPolicy_KindAPIVersion = ContentKeyPolicy_Kind + "." + CRDGroupVersion.String()
ContentKeyPolicy_GroupVersionKind = CRDGroupVersion.WithKind(ContentKeyPolicy_Kind)
)
func init() {
SchemeBuilder.Register(&ContentKeyPolicy{}, &ContentKeyPolicyList{})
}