Skip to content

Commit

Permalink
feat: OpenAPI spec update via Stainless API
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 27, 2024
1 parent f3b9c2c commit 03e7631
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 554 deletions.
202 changes: 4 additions & 198 deletions dlpprofile.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ type DLPProfileListResponseDLPPredefinedProfile struct {
ID string `json:"id"`
// Related DLP policies will trigger when the match count exceeds the number set.
AllowedMatchCount float64 `json:"allowed_match_count"`
// Scan the context of predefined entries to only return matches surrounded by
// keywords.
ContextAwareness DLPProfileListResponseDLPPredefinedProfileContextAwareness `json:"context_awareness"`
// The entries for this profile.
Entries []DLPProfileListResponseDLPPredefinedProfileEntry `json:"entries"`
// The name of the profile.
Expand All @@ -95,7 +92,6 @@ type DLPProfileListResponseDLPPredefinedProfile struct {
type dlpProfileListResponseDLPPredefinedProfileJSON struct {
ID apijson.Field
AllowedMatchCount apijson.Field
ContextAwareness apijson.Field
Entries apijson.Field
Name apijson.Field
Type apijson.Field
Expand All @@ -109,51 +105,6 @@ func (r *DLPProfileListResponseDLPPredefinedProfile) UnmarshalJSON(data []byte)

func (r DLPProfileListResponseDLPPredefinedProfile) implementsDLPProfileListResponse() {}

// Scan the context of predefined entries to only return matches surrounded by
// keywords.
type DLPProfileListResponseDLPPredefinedProfileContextAwareness struct {
// If true, scan the context of predefined entries to only return matches
// surrounded by keywords.
Enabled bool `json:"enabled,required"`
// Content types to exclude from context analysis and return all matches.
Skip DLPProfileListResponseDLPPredefinedProfileContextAwarenessSkip `json:"skip,required"`
JSON dlpProfileListResponseDLPPredefinedProfileContextAwarenessJSON `json:"-"`
}

// dlpProfileListResponseDLPPredefinedProfileContextAwarenessJSON contains the JSON
// metadata for the struct
// [DLPProfileListResponseDLPPredefinedProfileContextAwareness]
type dlpProfileListResponseDLPPredefinedProfileContextAwarenessJSON struct {
Enabled apijson.Field
Skip apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *DLPProfileListResponseDLPPredefinedProfileContextAwareness) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

// Content types to exclude from context analysis and return all matches.
type DLPProfileListResponseDLPPredefinedProfileContextAwarenessSkip struct {
// If the content type is a file, skip context analysis and return all matches.
Files bool `json:"files,required"`
JSON dlpProfileListResponseDLPPredefinedProfileContextAwarenessSkipJSON `json:"-"`
}

// dlpProfileListResponseDLPPredefinedProfileContextAwarenessSkipJSON contains the
// JSON metadata for the struct
// [DLPProfileListResponseDLPPredefinedProfileContextAwarenessSkip]
type dlpProfileListResponseDLPPredefinedProfileContextAwarenessSkipJSON struct {
Files apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *DLPProfileListResponseDLPPredefinedProfileContextAwarenessSkip) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

// A predefined entry that matches a profile
type DLPProfileListResponseDLPPredefinedProfileEntry struct {
// The ID for this entry
Expand Down Expand Up @@ -193,11 +144,8 @@ type DLPProfileListResponseDLPCustomProfile struct {
// The ID for this profile
ID string `json:"id"`
// Related DLP policies will trigger when the match count exceeds the number set.
AllowedMatchCount float64 `json:"allowed_match_count"`
// Scan the context of predefined entries to only return matches surrounded by
// keywords.
ContextAwareness DLPProfileListResponseDLPCustomProfileContextAwareness `json:"context_awareness"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
AllowedMatchCount float64 `json:"allowed_match_count"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
// The description of the profile.
Description string `json:"description"`
// The entries for this profile.
Expand All @@ -215,7 +163,6 @@ type DLPProfileListResponseDLPCustomProfile struct {
type dlpProfileListResponseDLPCustomProfileJSON struct {
ID apijson.Field
AllowedMatchCount apijson.Field
ContextAwareness apijson.Field
CreatedAt apijson.Field
Description apijson.Field
Entries apijson.Field
Expand All @@ -232,50 +179,6 @@ func (r *DLPProfileListResponseDLPCustomProfile) UnmarshalJSON(data []byte) (err

func (r DLPProfileListResponseDLPCustomProfile) implementsDLPProfileListResponse() {}

// Scan the context of predefined entries to only return matches surrounded by
// keywords.
type DLPProfileListResponseDLPCustomProfileContextAwareness struct {
// If true, scan the context of predefined entries to only return matches
// surrounded by keywords.
Enabled bool `json:"enabled,required"`
// Content types to exclude from context analysis and return all matches.
Skip DLPProfileListResponseDLPCustomProfileContextAwarenessSkip `json:"skip,required"`
JSON dlpProfileListResponseDLPCustomProfileContextAwarenessJSON `json:"-"`
}

// dlpProfileListResponseDLPCustomProfileContextAwarenessJSON contains the JSON
// metadata for the struct [DLPProfileListResponseDLPCustomProfileContextAwareness]
type dlpProfileListResponseDLPCustomProfileContextAwarenessJSON struct {
Enabled apijson.Field
Skip apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *DLPProfileListResponseDLPCustomProfileContextAwareness) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

// Content types to exclude from context analysis and return all matches.
type DLPProfileListResponseDLPCustomProfileContextAwarenessSkip struct {
// If the content type is a file, skip context analysis and return all matches.
Files bool `json:"files,required"`
JSON dlpProfileListResponseDLPCustomProfileContextAwarenessSkipJSON `json:"-"`
}

// dlpProfileListResponseDLPCustomProfileContextAwarenessSkipJSON contains the JSON
// metadata for the struct
// [DLPProfileListResponseDLPCustomProfileContextAwarenessSkip]
type dlpProfileListResponseDLPCustomProfileContextAwarenessSkipJSON struct {
Files apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *DLPProfileListResponseDLPCustomProfileContextAwarenessSkip) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

// A custom entry that matches a profile
type DLPProfileListResponseDLPCustomProfileEntry struct {
// The ID for this entry
Expand Down Expand Up @@ -440,9 +343,6 @@ type DLPProfileGetResponseDLPPredefinedProfile struct {
ID string `json:"id"`
// Related DLP policies will trigger when the match count exceeds the number set.
AllowedMatchCount float64 `json:"allowed_match_count"`
// Scan the context of predefined entries to only return matches surrounded by
// keywords.
ContextAwareness DLPProfileGetResponseDLPPredefinedProfileContextAwareness `json:"context_awareness"`
// The entries for this profile.
Entries []DLPProfileGetResponseDLPPredefinedProfileEntry `json:"entries"`
// The name of the profile.
Expand All @@ -457,7 +357,6 @@ type DLPProfileGetResponseDLPPredefinedProfile struct {
type dlpProfileGetResponseDLPPredefinedProfileJSON struct {
ID apijson.Field
AllowedMatchCount apijson.Field
ContextAwareness apijson.Field
Entries apijson.Field
Name apijson.Field
Type apijson.Field
Expand All @@ -471,51 +370,6 @@ func (r *DLPProfileGetResponseDLPPredefinedProfile) UnmarshalJSON(data []byte) (

func (r DLPProfileGetResponseDLPPredefinedProfile) implementsDLPProfileGetResponse() {}

// Scan the context of predefined entries to only return matches surrounded by
// keywords.
type DLPProfileGetResponseDLPPredefinedProfileContextAwareness struct {
// If true, scan the context of predefined entries to only return matches
// surrounded by keywords.
Enabled bool `json:"enabled,required"`
// Content types to exclude from context analysis and return all matches.
Skip DLPProfileGetResponseDLPPredefinedProfileContextAwarenessSkip `json:"skip,required"`
JSON dlpProfileGetResponseDLPPredefinedProfileContextAwarenessJSON `json:"-"`
}

// dlpProfileGetResponseDLPPredefinedProfileContextAwarenessJSON contains the JSON
// metadata for the struct
// [DLPProfileGetResponseDLPPredefinedProfileContextAwareness]
type dlpProfileGetResponseDLPPredefinedProfileContextAwarenessJSON struct {
Enabled apijson.Field
Skip apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *DLPProfileGetResponseDLPPredefinedProfileContextAwareness) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

// Content types to exclude from context analysis and return all matches.
type DLPProfileGetResponseDLPPredefinedProfileContextAwarenessSkip struct {
// If the content type is a file, skip context analysis and return all matches.
Files bool `json:"files,required"`
JSON dlpProfileGetResponseDLPPredefinedProfileContextAwarenessSkipJSON `json:"-"`
}

// dlpProfileGetResponseDLPPredefinedProfileContextAwarenessSkipJSON contains the
// JSON metadata for the struct
// [DLPProfileGetResponseDLPPredefinedProfileContextAwarenessSkip]
type dlpProfileGetResponseDLPPredefinedProfileContextAwarenessSkipJSON struct {
Files apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *DLPProfileGetResponseDLPPredefinedProfileContextAwarenessSkip) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

// A predefined entry that matches a profile
type DLPProfileGetResponseDLPPredefinedProfileEntry struct {
// The ID for this entry
Expand Down Expand Up @@ -555,11 +409,8 @@ type DLPProfileGetResponseDLPCustomProfile struct {
// The ID for this profile
ID string `json:"id"`
// Related DLP policies will trigger when the match count exceeds the number set.
AllowedMatchCount float64 `json:"allowed_match_count"`
// Scan the context of predefined entries to only return matches surrounded by
// keywords.
ContextAwareness DLPProfileGetResponseDLPCustomProfileContextAwareness `json:"context_awareness"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
AllowedMatchCount float64 `json:"allowed_match_count"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
// The description of the profile.
Description string `json:"description"`
// The entries for this profile.
Expand All @@ -577,7 +428,6 @@ type DLPProfileGetResponseDLPCustomProfile struct {
type dlpProfileGetResponseDLPCustomProfileJSON struct {
ID apijson.Field
AllowedMatchCount apijson.Field
ContextAwareness apijson.Field
CreatedAt apijson.Field
Description apijson.Field
Entries apijson.Field
Expand All @@ -594,50 +444,6 @@ func (r *DLPProfileGetResponseDLPCustomProfile) UnmarshalJSON(data []byte) (err

func (r DLPProfileGetResponseDLPCustomProfile) implementsDLPProfileGetResponse() {}

// Scan the context of predefined entries to only return matches surrounded by
// keywords.
type DLPProfileGetResponseDLPCustomProfileContextAwareness struct {
// If true, scan the context of predefined entries to only return matches
// surrounded by keywords.
Enabled bool `json:"enabled,required"`
// Content types to exclude from context analysis and return all matches.
Skip DLPProfileGetResponseDLPCustomProfileContextAwarenessSkip `json:"skip,required"`
JSON dlpProfileGetResponseDLPCustomProfileContextAwarenessJSON `json:"-"`
}

// dlpProfileGetResponseDLPCustomProfileContextAwarenessJSON contains the JSON
// metadata for the struct [DLPProfileGetResponseDLPCustomProfileContextAwareness]
type dlpProfileGetResponseDLPCustomProfileContextAwarenessJSON struct {
Enabled apijson.Field
Skip apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *DLPProfileGetResponseDLPCustomProfileContextAwareness) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

// Content types to exclude from context analysis and return all matches.
type DLPProfileGetResponseDLPCustomProfileContextAwarenessSkip struct {
// If the content type is a file, skip context analysis and return all matches.
Files bool `json:"files,required"`
JSON dlpProfileGetResponseDLPCustomProfileContextAwarenessSkipJSON `json:"-"`
}

// dlpProfileGetResponseDLPCustomProfileContextAwarenessSkipJSON contains the JSON
// metadata for the struct
// [DLPProfileGetResponseDLPCustomProfileContextAwarenessSkip]
type dlpProfileGetResponseDLPCustomProfileContextAwarenessSkipJSON struct {
Files apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *DLPProfileGetResponseDLPCustomProfileContextAwarenessSkip) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

// A custom entry that matches a profile
type DLPProfileGetResponseDLPCustomProfileEntry struct {
// The ID for this entry
Expand Down
Loading

0 comments on commit 03e7631

Please sign in to comment.