@@ -254,6 +254,7 @@ func (r *DLPEntryUpdateResponse) UnmarshalJSON(data []byte) (err error) {
254254// the specific types for more type safety.
255255//
256256// Possible runtime types of the union are [DLPEntryUpdateResponseCustomEntry],
257+ // [DLPEntryUpdateResponseCustomPromptTopicEntry],
257258// [DLPEntryUpdateResponsePredefinedEntry],
258259// [DLPEntryUpdateResponseIntegrationEntry],
259260// [DLPEntryUpdateResponseExactDataEntry],
@@ -264,6 +265,7 @@ func (r DLPEntryUpdateResponse) AsUnion() DLPEntryUpdateResponseUnion {
264265}
265266
266267// Union satisfied by [DLPEntryUpdateResponseCustomEntry],
268+ // [DLPEntryUpdateResponseCustomPromptTopicEntry],
267269// [DLPEntryUpdateResponsePredefinedEntry],
268270// [DLPEntryUpdateResponseIntegrationEntry],
269271// [DLPEntryUpdateResponseExactDataEntry],
@@ -281,6 +283,10 @@ func init() {
281283 TypeFilter : gjson .JSON ,
282284 Type : reflect .TypeOf (DLPEntryUpdateResponseCustomEntry {}),
283285 },
286+ apijson.UnionVariant {
287+ TypeFilter : gjson .JSON ,
288+ Type : reflect .TypeOf (DLPEntryUpdateResponseCustomPromptTopicEntry {}),
289+ },
284290 apijson.UnionVariant {
285291 TypeFilter : gjson .JSON ,
286292 Type : reflect .TypeOf (DLPEntryUpdateResponsePredefinedEntry {}),
@@ -359,6 +365,54 @@ func (r DLPEntryUpdateResponseCustomEntryType) IsKnown() bool {
359365 return false
360366}
361367
368+ type DLPEntryUpdateResponseCustomPromptTopicEntry struct {
369+ ID string `json:"id" api:"required" format:"uuid"`
370+ CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"`
371+ // Deprecated: deprecated
372+ Enabled bool `json:"enabled" api:"required"`
373+ Name string `json:"name" api:"required"`
374+ Type DLPEntryUpdateResponseCustomPromptTopicEntryType `json:"type" api:"required"`
375+ UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"`
376+ JSON dlpEntryUpdateResponseCustomPromptTopicEntryJSON `json:"-"`
377+ }
378+
379+ // dlpEntryUpdateResponseCustomPromptTopicEntryJSON contains the JSON metadata for
380+ // the struct [DLPEntryUpdateResponseCustomPromptTopicEntry]
381+ type dlpEntryUpdateResponseCustomPromptTopicEntryJSON struct {
382+ ID apijson.Field
383+ CreatedAt apijson.Field
384+ Enabled apijson.Field
385+ Name apijson.Field
386+ Type apijson.Field
387+ UpdatedAt apijson.Field
388+ raw string
389+ ExtraFields map [string ]apijson.Field
390+ }
391+
392+ func (r * DLPEntryUpdateResponseCustomPromptTopicEntry ) UnmarshalJSON (data []byte ) (err error ) {
393+ return apijson .UnmarshalRoot (data , r )
394+ }
395+
396+ func (r dlpEntryUpdateResponseCustomPromptTopicEntryJSON ) RawJSON () string {
397+ return r .raw
398+ }
399+
400+ func (r DLPEntryUpdateResponseCustomPromptTopicEntry ) implementsDLPEntryUpdateResponse () {}
401+
402+ type DLPEntryUpdateResponseCustomPromptTopicEntryType string
403+
404+ const (
405+ DLPEntryUpdateResponseCustomPromptTopicEntryTypeCustomPromptTopic DLPEntryUpdateResponseCustomPromptTopicEntryType = "custom_prompt_topic"
406+ )
407+
408+ func (r DLPEntryUpdateResponseCustomPromptTopicEntryType ) IsKnown () bool {
409+ switch r {
410+ case DLPEntryUpdateResponseCustomPromptTopicEntryTypeCustomPromptTopic :
411+ return true
412+ }
413+ return false
414+ }
415+
362416type DLPEntryUpdateResponsePredefinedEntry struct {
363417 ID string `json:"id" api:"required" format:"uuid"`
364418 Confidence DLPEntryUpdateResponsePredefinedEntryConfidence `json:"confidence" api:"required"`
@@ -797,6 +851,7 @@ type DLPEntryUpdateResponseType string
797851
798852const (
799853 DLPEntryUpdateResponseTypeCustom DLPEntryUpdateResponseType = "custom"
854+ DLPEntryUpdateResponseTypeCustomPromptTopic DLPEntryUpdateResponseType = "custom_prompt_topic"
800855 DLPEntryUpdateResponseTypePredefined DLPEntryUpdateResponseType = "predefined"
801856 DLPEntryUpdateResponseTypeIntegration DLPEntryUpdateResponseType = "integration"
802857 DLPEntryUpdateResponseTypeExactData DLPEntryUpdateResponseType = "exact_data"
@@ -806,7 +861,7 @@ const (
806861
807862func (r DLPEntryUpdateResponseType ) IsKnown () bool {
808863 switch r {
809- case DLPEntryUpdateResponseTypeCustom , DLPEntryUpdateResponseTypePredefined , DLPEntryUpdateResponseTypeIntegration , DLPEntryUpdateResponseTypeExactData , DLPEntryUpdateResponseTypeDocumentFingerprint , DLPEntryUpdateResponseTypeWordList :
864+ case DLPEntryUpdateResponseTypeCustom , DLPEntryUpdateResponseTypeCustomPromptTopic , DLPEntryUpdateResponseTypePredefined , DLPEntryUpdateResponseTypeIntegration , DLPEntryUpdateResponseTypeExactData , DLPEntryUpdateResponseTypeDocumentFingerprint , DLPEntryUpdateResponseTypeWordList :
810865 return true
811866 }
812867 return false
@@ -880,14 +935,15 @@ func (r *DLPEntryListResponse) UnmarshalJSON(data []byte) (err error) {
880935// Possible runtime types of the union are [DLPEntryListResponseObject],
881936// [DLPEntryListResponseObject], [DLPEntryListResponseObject],
882937// [DLPEntryListResponseObject], [DLPEntryListResponseObject],
883- // [DLPEntryListResponseObject].
938+ // [DLPEntryListResponseObject], [DLPEntryListResponseObject] .
884939func (r DLPEntryListResponse ) AsUnion () DLPEntryListResponseUnion {
885940 return r .union
886941}
887942
888943// Union satisfied by [DLPEntryListResponseObject], [DLPEntryListResponseObject],
889944// [DLPEntryListResponseObject], [DLPEntryListResponseObject],
890- // [DLPEntryListResponseObject] or [DLPEntryListResponseObject].
945+ // [DLPEntryListResponseObject], [DLPEntryListResponseObject] or
946+ // [DLPEntryListResponseObject].
891947type DLPEntryListResponseUnion interface {
892948 implementsDLPEntryListResponse ()
893949}
@@ -920,6 +976,10 @@ func init() {
920976 TypeFilter : gjson .JSON ,
921977 Type : reflect .TypeOf (DLPEntryListResponseObject {}),
922978 },
979+ apijson.UnionVariant {
980+ TypeFilter : gjson .JSON ,
981+ Type : reflect .TypeOf (DLPEntryListResponseObject {}),
982+ },
923983 )
924984}
925985
@@ -1003,6 +1063,7 @@ type DLPEntryListResponseType string
10031063
10041064const (
10051065 DLPEntryListResponseTypeCustom DLPEntryListResponseType = "custom"
1066+ DLPEntryListResponseTypeCustomPromptTopic DLPEntryListResponseType = "custom_prompt_topic"
10061067 DLPEntryListResponseTypePredefined DLPEntryListResponseType = "predefined"
10071068 DLPEntryListResponseTypeIntegration DLPEntryListResponseType = "integration"
10081069 DLPEntryListResponseTypeExactData DLPEntryListResponseType = "exact_data"
@@ -1012,7 +1073,7 @@ const (
10121073
10131074func (r DLPEntryListResponseType ) IsKnown () bool {
10141075 switch r {
1015- case DLPEntryListResponseTypeCustom , DLPEntryListResponseTypePredefined , DLPEntryListResponseTypeIntegration , DLPEntryListResponseTypeExactData , DLPEntryListResponseTypeDocumentFingerprint , DLPEntryListResponseTypeWordList :
1076+ case DLPEntryListResponseTypeCustom , DLPEntryListResponseTypeCustomPromptTopic , DLPEntryListResponseTypePredefined , DLPEntryListResponseTypeIntegration , DLPEntryListResponseTypeExactData , DLPEntryListResponseTypeDocumentFingerprint , DLPEntryListResponseTypeWordList :
10161077 return true
10171078 }
10181079 return false
@@ -1110,14 +1171,15 @@ func (r *DLPEntryGetResponse) UnmarshalJSON(data []byte) (err error) {
11101171// Possible runtime types of the union are [DLPEntryGetResponseObject],
11111172// [DLPEntryGetResponseObject], [DLPEntryGetResponseObject],
11121173// [DLPEntryGetResponseObject], [DLPEntryGetResponseObject],
1113- // [DLPEntryGetResponseObject].
1174+ // [DLPEntryGetResponseObject], [DLPEntryGetResponseObject] .
11141175func (r DLPEntryGetResponse ) AsUnion () DLPEntryGetResponseUnion {
11151176 return r .union
11161177}
11171178
11181179// Union satisfied by [DLPEntryGetResponseObject], [DLPEntryGetResponseObject],
11191180// [DLPEntryGetResponseObject], [DLPEntryGetResponseObject],
1120- // [DLPEntryGetResponseObject] or [DLPEntryGetResponseObject].
1181+ // [DLPEntryGetResponseObject], [DLPEntryGetResponseObject] or
1182+ // [DLPEntryGetResponseObject].
11211183type DLPEntryGetResponseUnion interface {
11221184 implementsDLPEntryGetResponse ()
11231185}
@@ -1150,6 +1212,10 @@ func init() {
11501212 TypeFilter : gjson .JSON ,
11511213 Type : reflect .TypeOf (DLPEntryGetResponseObject {}),
11521214 },
1215+ apijson.UnionVariant {
1216+ TypeFilter : gjson .JSON ,
1217+ Type : reflect .TypeOf (DLPEntryGetResponseObject {}),
1218+ },
11531219 )
11541220}
11551221
@@ -1259,6 +1325,7 @@ type DLPEntryGetResponseType string
12591325
12601326const (
12611327 DLPEntryGetResponseTypeCustom DLPEntryGetResponseType = "custom"
1328+ DLPEntryGetResponseTypeCustomPromptTopic DLPEntryGetResponseType = "custom_prompt_topic"
12621329 DLPEntryGetResponseTypePredefined DLPEntryGetResponseType = "predefined"
12631330 DLPEntryGetResponseTypeIntegration DLPEntryGetResponseType = "integration"
12641331 DLPEntryGetResponseTypeExactData DLPEntryGetResponseType = "exact_data"
@@ -1268,7 +1335,7 @@ const (
12681335
12691336func (r DLPEntryGetResponseType ) IsKnown () bool {
12701337 switch r {
1271- case DLPEntryGetResponseTypeCustom , DLPEntryGetResponseTypePredefined , DLPEntryGetResponseTypeIntegration , DLPEntryGetResponseTypeExactData , DLPEntryGetResponseTypeDocumentFingerprint , DLPEntryGetResponseTypeWordList :
1338+ case DLPEntryGetResponseTypeCustom , DLPEntryGetResponseTypeCustomPromptTopic , DLPEntryGetResponseTypePredefined , DLPEntryGetResponseTypeIntegration , DLPEntryGetResponseTypeExactData , DLPEntryGetResponseTypeDocumentFingerprint , DLPEntryGetResponseTypeWordList :
12721339 return true
12731340 }
12741341 return false
0 commit comments