@@ -237,15 +237,19 @@ func (r *DLPEntryUpdateResponse) UnmarshalJSON(data []byte) (err error) {
237237// Possible runtime types of the union are [DLPEntryUpdateResponseCustomEntry],
238238// [DLPEntryUpdateResponsePredefinedEntry],
239239// [DLPEntryUpdateResponseIntegrationEntry],
240- // [DLPEntryUpdateResponseExactDataEntry], [DLPEntryUpdateResponseWordListEntry].
240+ // [DLPEntryUpdateResponseExactDataEntry],
241+ // [DLPEntryUpdateResponseDocumentTemplateEntry],
242+ // [DLPEntryUpdateResponseWordListEntry].
241243func (r DLPEntryUpdateResponse ) AsUnion () DLPEntryUpdateResponseUnion {
242244 return r .union
243245}
244246
245247// Union satisfied by [DLPEntryUpdateResponseCustomEntry],
246248// [DLPEntryUpdateResponsePredefinedEntry],
247- // [DLPEntryUpdateResponseIntegrationEntry], [DLPEntryUpdateResponseExactDataEntry]
248- // or [DLPEntryUpdateResponseWordListEntry].
249+ // [DLPEntryUpdateResponseIntegrationEntry],
250+ // [DLPEntryUpdateResponseExactDataEntry],
251+ // [DLPEntryUpdateResponseDocumentTemplateEntry] or
252+ // [DLPEntryUpdateResponseWordListEntry].
249253type DLPEntryUpdateResponseUnion interface {
250254 implementsDLPEntryUpdateResponse ()
251255}
@@ -270,6 +274,10 @@ func init() {
270274 TypeFilter : gjson .JSON ,
271275 Type : reflect .TypeOf (DLPEntryUpdateResponseExactDataEntry {}),
272276 },
277+ apijson.UnionVariant {
278+ TypeFilter : gjson .JSON ,
279+ Type : reflect .TypeOf (DLPEntryUpdateResponseDocumentTemplateEntry {}),
280+ },
273281 apijson.UnionVariant {
274282 TypeFilter : gjson .JSON ,
275283 Type : reflect .TypeOf (DLPEntryUpdateResponseWordListEntry {}),
@@ -503,6 +511,53 @@ func (r DLPEntryUpdateResponseExactDataEntryType) IsKnown() bool {
503511 return false
504512}
505513
514+ type DLPEntryUpdateResponseDocumentTemplateEntry struct {
515+ ID string `json:"id,required" format:"uuid"`
516+ CreatedAt time.Time `json:"created_at,required" format:"date-time"`
517+ Enabled bool `json:"enabled,required"`
518+ Name string `json:"name,required"`
519+ Type DLPEntryUpdateResponseDocumentTemplateEntryType `json:"type,required"`
520+ UpdatedAt time.Time `json:"updated_at,required" format:"date-time"`
521+ JSON dlpEntryUpdateResponseDocumentTemplateEntryJSON `json:"-"`
522+ }
523+
524+ // dlpEntryUpdateResponseDocumentTemplateEntryJSON contains the JSON metadata for
525+ // the struct [DLPEntryUpdateResponseDocumentTemplateEntry]
526+ type dlpEntryUpdateResponseDocumentTemplateEntryJSON struct {
527+ ID apijson.Field
528+ CreatedAt apijson.Field
529+ Enabled apijson.Field
530+ Name apijson.Field
531+ Type apijson.Field
532+ UpdatedAt apijson.Field
533+ raw string
534+ ExtraFields map [string ]apijson.Field
535+ }
536+
537+ func (r * DLPEntryUpdateResponseDocumentTemplateEntry ) UnmarshalJSON (data []byte ) (err error ) {
538+ return apijson .UnmarshalRoot (data , r )
539+ }
540+
541+ func (r dlpEntryUpdateResponseDocumentTemplateEntryJSON ) RawJSON () string {
542+ return r .raw
543+ }
544+
545+ func (r DLPEntryUpdateResponseDocumentTemplateEntry ) implementsDLPEntryUpdateResponse () {}
546+
547+ type DLPEntryUpdateResponseDocumentTemplateEntryType string
548+
549+ const (
550+ DLPEntryUpdateResponseDocumentTemplateEntryTypeDocumentTemplate DLPEntryUpdateResponseDocumentTemplateEntryType = "document_template"
551+ )
552+
553+ func (r DLPEntryUpdateResponseDocumentTemplateEntryType ) IsKnown () bool {
554+ switch r {
555+ case DLPEntryUpdateResponseDocumentTemplateEntryTypeDocumentTemplate :
556+ return true
557+ }
558+ return false
559+ }
560+
506561type DLPEntryUpdateResponseWordListEntry struct {
507562 ID string `json:"id,required" format:"uuid"`
508563 CreatedAt time.Time `json:"created_at,required" format:"date-time"`
@@ -557,16 +612,17 @@ func (r DLPEntryUpdateResponseWordListEntryType) IsKnown() bool {
557612type DLPEntryUpdateResponseType string
558613
559614const (
560- DLPEntryUpdateResponseTypeCustom DLPEntryUpdateResponseType = "custom"
561- DLPEntryUpdateResponseTypePredefined DLPEntryUpdateResponseType = "predefined"
562- DLPEntryUpdateResponseTypeIntegration DLPEntryUpdateResponseType = "integration"
563- DLPEntryUpdateResponseTypeExactData DLPEntryUpdateResponseType = "exact_data"
564- DLPEntryUpdateResponseTypeWordList DLPEntryUpdateResponseType = "word_list"
615+ DLPEntryUpdateResponseTypeCustom DLPEntryUpdateResponseType = "custom"
616+ DLPEntryUpdateResponseTypePredefined DLPEntryUpdateResponseType = "predefined"
617+ DLPEntryUpdateResponseTypeIntegration DLPEntryUpdateResponseType = "integration"
618+ DLPEntryUpdateResponseTypeExactData DLPEntryUpdateResponseType = "exact_data"
619+ DLPEntryUpdateResponseTypeDocumentTemplate DLPEntryUpdateResponseType = "document_template"
620+ DLPEntryUpdateResponseTypeWordList DLPEntryUpdateResponseType = "word_list"
565621)
566622
567623func (r DLPEntryUpdateResponseType ) IsKnown () bool {
568624 switch r {
569- case DLPEntryUpdateResponseTypeCustom , DLPEntryUpdateResponseTypePredefined , DLPEntryUpdateResponseTypeIntegration , DLPEntryUpdateResponseTypeExactData , DLPEntryUpdateResponseTypeWordList :
625+ case DLPEntryUpdateResponseTypeCustom , DLPEntryUpdateResponseTypePredefined , DLPEntryUpdateResponseTypeIntegration , DLPEntryUpdateResponseTypeExactData , DLPEntryUpdateResponseTypeDocumentTemplate , DLPEntryUpdateResponseTypeWordList :
570626 return true
571627 }
572628 return false
@@ -631,14 +687,18 @@ func (r *DLPEntryListResponse) UnmarshalJSON(data []byte) (err error) {
631687//
632688// Possible runtime types of the union are [DLPEntryListResponseCustomEntry],
633689// [DLPEntryListResponsePredefinedEntry], [DLPEntryListResponseIntegrationEntry],
634- // [DLPEntryListResponseExactDataEntry], [DLPEntryListResponseWordListEntry].
690+ // [DLPEntryListResponseExactDataEntry],
691+ // [DLPEntryListResponseDocumentTemplateEntry],
692+ // [DLPEntryListResponseWordListEntry].
635693func (r DLPEntryListResponse ) AsUnion () DLPEntryListResponseUnion {
636694 return r .union
637695}
638696
639697// Union satisfied by [DLPEntryListResponseCustomEntry],
640698// [DLPEntryListResponsePredefinedEntry], [DLPEntryListResponseIntegrationEntry],
641- // [DLPEntryListResponseExactDataEntry] or [DLPEntryListResponseWordListEntry].
699+ // [DLPEntryListResponseExactDataEntry],
700+ // [DLPEntryListResponseDocumentTemplateEntry] or
701+ // [DLPEntryListResponseWordListEntry].
642702type DLPEntryListResponseUnion interface {
643703 implementsDLPEntryListResponse ()
644704}
@@ -663,6 +723,10 @@ func init() {
663723 TypeFilter : gjson .JSON ,
664724 Type : reflect .TypeOf (DLPEntryListResponseExactDataEntry {}),
665725 },
726+ apijson.UnionVariant {
727+ TypeFilter : gjson .JSON ,
728+ Type : reflect .TypeOf (DLPEntryListResponseDocumentTemplateEntry {}),
729+ },
666730 apijson.UnionVariant {
667731 TypeFilter : gjson .JSON ,
668732 Type : reflect .TypeOf (DLPEntryListResponseWordListEntry {}),
@@ -896,6 +960,53 @@ func (r DLPEntryListResponseExactDataEntryType) IsKnown() bool {
896960 return false
897961}
898962
963+ type DLPEntryListResponseDocumentTemplateEntry struct {
964+ ID string `json:"id,required" format:"uuid"`
965+ CreatedAt time.Time `json:"created_at,required" format:"date-time"`
966+ Enabled bool `json:"enabled,required"`
967+ Name string `json:"name,required"`
968+ Type DLPEntryListResponseDocumentTemplateEntryType `json:"type,required"`
969+ UpdatedAt time.Time `json:"updated_at,required" format:"date-time"`
970+ JSON dlpEntryListResponseDocumentTemplateEntryJSON `json:"-"`
971+ }
972+
973+ // dlpEntryListResponseDocumentTemplateEntryJSON contains the JSON metadata for the
974+ // struct [DLPEntryListResponseDocumentTemplateEntry]
975+ type dlpEntryListResponseDocumentTemplateEntryJSON struct {
976+ ID apijson.Field
977+ CreatedAt apijson.Field
978+ Enabled apijson.Field
979+ Name apijson.Field
980+ Type apijson.Field
981+ UpdatedAt apijson.Field
982+ raw string
983+ ExtraFields map [string ]apijson.Field
984+ }
985+
986+ func (r * DLPEntryListResponseDocumentTemplateEntry ) UnmarshalJSON (data []byte ) (err error ) {
987+ return apijson .UnmarshalRoot (data , r )
988+ }
989+
990+ func (r dlpEntryListResponseDocumentTemplateEntryJSON ) RawJSON () string {
991+ return r .raw
992+ }
993+
994+ func (r DLPEntryListResponseDocumentTemplateEntry ) implementsDLPEntryListResponse () {}
995+
996+ type DLPEntryListResponseDocumentTemplateEntryType string
997+
998+ const (
999+ DLPEntryListResponseDocumentTemplateEntryTypeDocumentTemplate DLPEntryListResponseDocumentTemplateEntryType = "document_template"
1000+ )
1001+
1002+ func (r DLPEntryListResponseDocumentTemplateEntryType ) IsKnown () bool {
1003+ switch r {
1004+ case DLPEntryListResponseDocumentTemplateEntryTypeDocumentTemplate :
1005+ return true
1006+ }
1007+ return false
1008+ }
1009+
8991010type DLPEntryListResponseWordListEntry struct {
9001011 ID string `json:"id,required" format:"uuid"`
9011012 CreatedAt time.Time `json:"created_at,required" format:"date-time"`
@@ -950,16 +1061,17 @@ func (r DLPEntryListResponseWordListEntryType) IsKnown() bool {
9501061type DLPEntryListResponseType string
9511062
9521063const (
953- DLPEntryListResponseTypeCustom DLPEntryListResponseType = "custom"
954- DLPEntryListResponseTypePredefined DLPEntryListResponseType = "predefined"
955- DLPEntryListResponseTypeIntegration DLPEntryListResponseType = "integration"
956- DLPEntryListResponseTypeExactData DLPEntryListResponseType = "exact_data"
957- DLPEntryListResponseTypeWordList DLPEntryListResponseType = "word_list"
1064+ DLPEntryListResponseTypeCustom DLPEntryListResponseType = "custom"
1065+ DLPEntryListResponseTypePredefined DLPEntryListResponseType = "predefined"
1066+ DLPEntryListResponseTypeIntegration DLPEntryListResponseType = "integration"
1067+ DLPEntryListResponseTypeExactData DLPEntryListResponseType = "exact_data"
1068+ DLPEntryListResponseTypeDocumentTemplate DLPEntryListResponseType = "document_template"
1069+ DLPEntryListResponseTypeWordList DLPEntryListResponseType = "word_list"
9581070)
9591071
9601072func (r DLPEntryListResponseType ) IsKnown () bool {
9611073 switch r {
962- case DLPEntryListResponseTypeCustom , DLPEntryListResponseTypePredefined , DLPEntryListResponseTypeIntegration , DLPEntryListResponseTypeExactData , DLPEntryListResponseTypeWordList :
1074+ case DLPEntryListResponseTypeCustom , DLPEntryListResponseTypePredefined , DLPEntryListResponseTypeIntegration , DLPEntryListResponseTypeExactData , DLPEntryListResponseTypeDocumentTemplate , DLPEntryListResponseTypeWordList :
9631075 return true
9641076 }
9651077 return false
@@ -1026,14 +1138,16 @@ func (r *DLPEntryGetResponse) UnmarshalJSON(data []byte) (err error) {
10261138//
10271139// Possible runtime types of the union are [DLPEntryGetResponseCustomEntry],
10281140// [DLPEntryGetResponsePredefinedEntry], [DLPEntryGetResponseIntegrationEntry],
1029- // [DLPEntryGetResponseExactDataEntry], [DLPEntryGetResponseWordListEntry].
1141+ // [DLPEntryGetResponseExactDataEntry], [DLPEntryGetResponseDocumentTemplateEntry],
1142+ // [DLPEntryGetResponseWordListEntry].
10301143func (r DLPEntryGetResponse ) AsUnion () DLPEntryGetResponseUnion {
10311144 return r .union
10321145}
10331146
10341147// Union satisfied by [DLPEntryGetResponseCustomEntry],
10351148// [DLPEntryGetResponsePredefinedEntry], [DLPEntryGetResponseIntegrationEntry],
1036- // [DLPEntryGetResponseExactDataEntry] or [DLPEntryGetResponseWordListEntry].
1149+ // [DLPEntryGetResponseExactDataEntry], [DLPEntryGetResponseDocumentTemplateEntry]
1150+ // or [DLPEntryGetResponseWordListEntry].
10371151type DLPEntryGetResponseUnion interface {
10381152 implementsDLPEntryGetResponse ()
10391153}
@@ -1058,6 +1172,10 @@ func init() {
10581172 TypeFilter : gjson .JSON ,
10591173 Type : reflect .TypeOf (DLPEntryGetResponseExactDataEntry {}),
10601174 },
1175+ apijson.UnionVariant {
1176+ TypeFilter : gjson .JSON ,
1177+ Type : reflect .TypeOf (DLPEntryGetResponseDocumentTemplateEntry {}),
1178+ },
10611179 apijson.UnionVariant {
10621180 TypeFilter : gjson .JSON ,
10631181 Type : reflect .TypeOf (DLPEntryGetResponseWordListEntry {}),
@@ -1291,6 +1409,53 @@ func (r DLPEntryGetResponseExactDataEntryType) IsKnown() bool {
12911409 return false
12921410}
12931411
1412+ type DLPEntryGetResponseDocumentTemplateEntry struct {
1413+ ID string `json:"id,required" format:"uuid"`
1414+ CreatedAt time.Time `json:"created_at,required" format:"date-time"`
1415+ Enabled bool `json:"enabled,required"`
1416+ Name string `json:"name,required"`
1417+ Type DLPEntryGetResponseDocumentTemplateEntryType `json:"type,required"`
1418+ UpdatedAt time.Time `json:"updated_at,required" format:"date-time"`
1419+ JSON dlpEntryGetResponseDocumentTemplateEntryJSON `json:"-"`
1420+ }
1421+
1422+ // dlpEntryGetResponseDocumentTemplateEntryJSON contains the JSON metadata for the
1423+ // struct [DLPEntryGetResponseDocumentTemplateEntry]
1424+ type dlpEntryGetResponseDocumentTemplateEntryJSON struct {
1425+ ID apijson.Field
1426+ CreatedAt apijson.Field
1427+ Enabled apijson.Field
1428+ Name apijson.Field
1429+ Type apijson.Field
1430+ UpdatedAt apijson.Field
1431+ raw string
1432+ ExtraFields map [string ]apijson.Field
1433+ }
1434+
1435+ func (r * DLPEntryGetResponseDocumentTemplateEntry ) UnmarshalJSON (data []byte ) (err error ) {
1436+ return apijson .UnmarshalRoot (data , r )
1437+ }
1438+
1439+ func (r dlpEntryGetResponseDocumentTemplateEntryJSON ) RawJSON () string {
1440+ return r .raw
1441+ }
1442+
1443+ func (r DLPEntryGetResponseDocumentTemplateEntry ) implementsDLPEntryGetResponse () {}
1444+
1445+ type DLPEntryGetResponseDocumentTemplateEntryType string
1446+
1447+ const (
1448+ DLPEntryGetResponseDocumentTemplateEntryTypeDocumentTemplate DLPEntryGetResponseDocumentTemplateEntryType = "document_template"
1449+ )
1450+
1451+ func (r DLPEntryGetResponseDocumentTemplateEntryType ) IsKnown () bool {
1452+ switch r {
1453+ case DLPEntryGetResponseDocumentTemplateEntryTypeDocumentTemplate :
1454+ return true
1455+ }
1456+ return false
1457+ }
1458+
12941459type DLPEntryGetResponseWordListEntry struct {
12951460 ID string `json:"id,required" format:"uuid"`
12961461 CreatedAt time.Time `json:"created_at,required" format:"date-time"`
@@ -1345,16 +1510,17 @@ func (r DLPEntryGetResponseWordListEntryType) IsKnown() bool {
13451510type DLPEntryGetResponseType string
13461511
13471512const (
1348- DLPEntryGetResponseTypeCustom DLPEntryGetResponseType = "custom"
1349- DLPEntryGetResponseTypePredefined DLPEntryGetResponseType = "predefined"
1350- DLPEntryGetResponseTypeIntegration DLPEntryGetResponseType = "integration"
1351- DLPEntryGetResponseTypeExactData DLPEntryGetResponseType = "exact_data"
1352- DLPEntryGetResponseTypeWordList DLPEntryGetResponseType = "word_list"
1513+ DLPEntryGetResponseTypeCustom DLPEntryGetResponseType = "custom"
1514+ DLPEntryGetResponseTypePredefined DLPEntryGetResponseType = "predefined"
1515+ DLPEntryGetResponseTypeIntegration DLPEntryGetResponseType = "integration"
1516+ DLPEntryGetResponseTypeExactData DLPEntryGetResponseType = "exact_data"
1517+ DLPEntryGetResponseTypeDocumentTemplate DLPEntryGetResponseType = "document_template"
1518+ DLPEntryGetResponseTypeWordList DLPEntryGetResponseType = "word_list"
13531519)
13541520
13551521func (r DLPEntryGetResponseType ) IsKnown () bool {
13561522 switch r {
1357- case DLPEntryGetResponseTypeCustom , DLPEntryGetResponseTypePredefined , DLPEntryGetResponseTypeIntegration , DLPEntryGetResponseTypeExactData , DLPEntryGetResponseTypeWordList :
1523+ case DLPEntryGetResponseTypeCustom , DLPEntryGetResponseTypePredefined , DLPEntryGetResponseTypeIntegration , DLPEntryGetResponseTypeExactData , DLPEntryGetResponseTypeDocumentTemplate , DLPEntryGetResponseTypeWordList :
13581524 return true
13591525 }
13601526 return false
0 commit comments