Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#1608)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Mar 25, 2024
1 parent 4dfc1f4 commit 2c5e716
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions zero_trust/dlpprofilecustom.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ type DLPCustomProfile struct {
// The name of the profile.
Name string `json:"name"`
// If true, scan images via OCR to determine if any text present matches filters.
OcrEnabled bool `json:"ocr_enabled"`
OCREnabled bool `json:"ocr_enabled"`
// The type of the profile.
Type DLPCustomProfileType `json:"type"`
UpdatedAt time.Time `json:"updated_at" format:"date-time"`
Expand All @@ -115,7 +115,7 @@ type dlpCustomProfileJSON struct {
Description apijson.Field
Entries apijson.Field
Name apijson.Field
OcrEnabled apijson.Field
OCREnabled apijson.Field
Type apijson.Field
UpdatedAt apijson.Field
raw string
Expand Down Expand Up @@ -322,7 +322,7 @@ type DLPProfileCustomNewParamsProfile struct {
// The name of the profile.
Name param.Field[string] `json:"name"`
// If true, scan images via OCR to determine if any text present matches filters.
OcrEnabled param.Field[bool] `json:"ocr_enabled"`
OCREnabled param.Field[bool] `json:"ocr_enabled"`
}

func (r DLPProfileCustomNewParamsProfile) MarshalJSON() (data []byte, err error) {
Expand Down Expand Up @@ -535,7 +535,7 @@ type DLPProfileCustomUpdateParams struct {
// The name of the profile.
Name param.Field[string] `json:"name"`
// If true, scan images via OCR to determine if any text present matches filters.
OcrEnabled param.Field[bool] `json:"ocr_enabled"`
OCREnabled param.Field[bool] `json:"ocr_enabled"`
// Entries from other profiles (e.g. pre-defined Cloudflare profiles, or your
// Microsoft Information Protection profiles).
SharedEntries param.Field[[]DLPProfileCustomUpdateParamsSharedEntry] `json:"shared_entries"`
Expand Down
8 changes: 4 additions & 4 deletions zero_trust/dlpprofilecustom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func TestDLPProfileCustomNew(t *testing.T) {
}),
}}),
Name: cloudflare.F("Generic CVV Card Number"),
OcrEnabled: cloudflare.F(true),
OCREnabled: cloudflare.F(true),
}, {
AllowedMatchCount: cloudflare.F(5.000000),
ContextAwareness: cloudflare.F(zero_trust.DLPProfileCustomNewParamsProfilesContextAwareness{
Expand Down Expand Up @@ -95,7 +95,7 @@ func TestDLPProfileCustomNew(t *testing.T) {
}),
}}),
Name: cloudflare.F("Generic CVV Card Number"),
OcrEnabled: cloudflare.F(true),
OCREnabled: cloudflare.F(true),
}, {
AllowedMatchCount: cloudflare.F(5.000000),
ContextAwareness: cloudflare.F(zero_trust.DLPProfileCustomNewParamsProfilesContextAwareness{
Expand Down Expand Up @@ -128,7 +128,7 @@ func TestDLPProfileCustomNew(t *testing.T) {
}),
}}),
Name: cloudflare.F("Generic CVV Card Number"),
OcrEnabled: cloudflare.F(true),
OCREnabled: cloudflare.F(true),
}}),
})
if err != nil {
Expand Down Expand Up @@ -193,7 +193,7 @@ func TestDLPProfileCustomUpdateWithOptionalParams(t *testing.T) {
ProfileID: cloudflare.F[any](map[string]interface{}{}),
}}),
Name: cloudflare.F("Generic CVV Card Number"),
OcrEnabled: cloudflare.F(true),
OCREnabled: cloudflare.F(true),
SharedEntries: cloudflare.F([]zero_trust.DLPProfileCustomUpdateParamsSharedEntry{zero_trust.DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdatePredefined(zero_trust.DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdatePredefined{
Enabled: cloudflare.F(true),
}), zero_trust.DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdatePredefined(zero_trust.DLPProfileCustomUpdateParamsSharedEntriesDLPSharedEntryUpdatePredefined{
Expand Down
6 changes: 3 additions & 3 deletions zero_trust/dlpprofilepredefined.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type DLPPredefinedProfile struct {
// The name of the profile.
Name string `json:"name"`
// If true, scan images via OCR to determine if any text present matches filters.
OcrEnabled bool `json:"ocr_enabled"`
OCREnabled bool `json:"ocr_enabled"`
// The type of the profile.
Type DLPPredefinedProfileType `json:"type"`
JSON dlpPredefinedProfileJSON `json:"-"`
Expand All @@ -79,7 +79,7 @@ type dlpPredefinedProfileJSON struct {
ContextAwareness apijson.Field
Entries apijson.Field
Name apijson.Field
OcrEnabled apijson.Field
OCREnabled apijson.Field
Type apijson.Field
raw string
ExtraFields map[string]apijson.Field
Expand Down Expand Up @@ -206,7 +206,7 @@ type DLPProfilePredefinedUpdateParams struct {
// The entries for this profile.
Entries param.Field[[]DLPProfilePredefinedUpdateParamsEntry] `json:"entries"`
// If true, scan images via OCR to determine if any text present matches filters.
OcrEnabled param.Field[bool] `json:"ocr_enabled"`
OCREnabled param.Field[bool] `json:"ocr_enabled"`
}

func (r DLPProfilePredefinedUpdateParams) MarshalJSON() (data []byte, err error) {
Expand Down
2 changes: 1 addition & 1 deletion zero_trust/dlpprofilepredefined_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func TestDLPProfilePredefinedUpdateWithOptionalParams(t *testing.T) {
}, {
Enabled: cloudflare.F(true),
}}),
OcrEnabled: cloudflare.F(true),
OCREnabled: cloudflare.F(true),
},
)
if err != nil {
Expand Down

0 comments on commit 2c5e716

Please sign in to comment.