From 359e2b530d80ff58629315592e1997bcafc00f1d Mon Sep 17 00:00:00 2001 From: Simon Lukasik Date: Wed, 22 Sep 2021 12:15:20 +0200 Subject: [PATCH] Re-generate the codebase using the latest swagger --- .../create_prevention_policies_responses.go | 66 ++++ .../delete_prevention_policies_responses.go | 55 +++ .../get_prevention_policies_responses.go | 55 +++ ..._combined_prevention_policies_responses.go | 55 +++ ...ned_prevention_policy_members_responses.go | 66 ++++ .../query_prevention_policies_responses.go | 55 +++ ...ery_prevention_policy_members_responses.go | 66 ++++ ...revention_policies_precedence_responses.go | 55 +++ .../update_prevention_policies_responses.go | 66 ++++ falcon/models/device_device.go | 3 + .../models/responses_i_o_a_rule_group_v1.go | 324 ++++++++++++++++++ .../models/responses_prevention_policy_v1.go | 72 ++++ 12 files changed, 938 insertions(+) create mode 100644 falcon/models/responses_i_o_a_rule_group_v1.go diff --git a/falcon/client/prevention_policies/create_prevention_policies_responses.go b/falcon/client/prevention_policies/create_prevention_policies_responses.go index ba57f4b4..7c3e21a0 100644 --- a/falcon/client/prevention_policies/create_prevention_policies_responses.go +++ b/falcon/client/prevention_policies/create_prevention_policies_responses.go @@ -77,6 +77,10 @@ Created */ type CreatePreventionPoliciesCreated struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -97,6 +101,13 @@ func (o *CreatePreventionPoliciesCreated) GetPayload() *models.ResponsesPreventi func (o *CreatePreventionPoliciesCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -140,6 +151,10 @@ Bad Request */ type CreatePreventionPoliciesBadRequest struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -160,6 +175,13 @@ func (o *CreatePreventionPoliciesBadRequest) GetPayload() *models.ResponsesPreve func (o *CreatePreventionPoliciesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -203,6 +225,10 @@ Forbidden */ type CreatePreventionPoliciesForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -223,6 +249,13 @@ func (o *CreatePreventionPoliciesForbidden) GetPayload() *models.MsaErrorsOnly { func (o *CreatePreventionPoliciesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -266,6 +299,10 @@ Not Found */ type CreatePreventionPoliciesNotFound struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -286,6 +323,13 @@ func (o *CreatePreventionPoliciesNotFound) GetPayload() *models.ResponsesPrevent func (o *CreatePreventionPoliciesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -329,6 +373,10 @@ Too Many Requests */ type CreatePreventionPoliciesTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -353,6 +401,13 @@ func (o *CreatePreventionPoliciesTooManyRequests) GetPayload() *models.MsaReplyM func (o *CreatePreventionPoliciesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -407,6 +462,10 @@ Internal Server Error */ type CreatePreventionPoliciesInternalServerError struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -427,6 +486,13 @@ func (o *CreatePreventionPoliciesInternalServerError) GetPayload() *models.Respo func (o *CreatePreventionPoliciesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") diff --git a/falcon/client/prevention_policies/delete_prevention_policies_responses.go b/falcon/client/prevention_policies/delete_prevention_policies_responses.go index 30146b2d..c50ac5e4 100644 --- a/falcon/client/prevention_policies/delete_prevention_policies_responses.go +++ b/falcon/client/prevention_policies/delete_prevention_policies_responses.go @@ -78,6 +78,10 @@ OK */ type DeletePreventionPoliciesOK struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -98,6 +102,13 @@ func (o *DeletePreventionPoliciesOK) GetPayload() *models.MsaQueryResponse { func (o *DeletePreventionPoliciesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -141,6 +152,10 @@ Forbidden */ type DeletePreventionPoliciesForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -161,6 +176,13 @@ func (o *DeletePreventionPoliciesForbidden) GetPayload() *models.MsaErrorsOnly { func (o *DeletePreventionPoliciesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -204,6 +226,10 @@ Not Found */ type DeletePreventionPoliciesNotFound struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -224,6 +250,13 @@ func (o *DeletePreventionPoliciesNotFound) GetPayload() *models.MsaQueryResponse func (o *DeletePreventionPoliciesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -267,6 +300,10 @@ Too Many Requests */ type DeletePreventionPoliciesTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -291,6 +328,13 @@ func (o *DeletePreventionPoliciesTooManyRequests) GetPayload() *models.MsaReplyM func (o *DeletePreventionPoliciesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -345,6 +389,10 @@ Internal Server Error */ type DeletePreventionPoliciesInternalServerError struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -365,6 +413,13 @@ func (o *DeletePreventionPoliciesInternalServerError) GetPayload() *models.MsaQu func (o *DeletePreventionPoliciesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") diff --git a/falcon/client/prevention_policies/get_prevention_policies_responses.go b/falcon/client/prevention_policies/get_prevention_policies_responses.go index 6e303ec2..909242c0 100644 --- a/falcon/client/prevention_policies/get_prevention_policies_responses.go +++ b/falcon/client/prevention_policies/get_prevention_policies_responses.go @@ -78,6 +78,10 @@ OK */ type GetPreventionPoliciesOK struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -98,6 +102,13 @@ func (o *GetPreventionPoliciesOK) GetPayload() *models.ResponsesPreventionPolici func (o *GetPreventionPoliciesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -141,6 +152,10 @@ Forbidden */ type GetPreventionPoliciesForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -161,6 +176,13 @@ func (o *GetPreventionPoliciesForbidden) GetPayload() *models.MsaErrorsOnly { func (o *GetPreventionPoliciesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -204,6 +226,10 @@ Not Found */ type GetPreventionPoliciesNotFound struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -224,6 +250,13 @@ func (o *GetPreventionPoliciesNotFound) GetPayload() *models.ResponsesPrevention func (o *GetPreventionPoliciesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -267,6 +300,10 @@ Too Many Requests */ type GetPreventionPoliciesTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -291,6 +328,13 @@ func (o *GetPreventionPoliciesTooManyRequests) GetPayload() *models.MsaReplyMeta func (o *GetPreventionPoliciesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -345,6 +389,10 @@ Internal Server Error */ type GetPreventionPoliciesInternalServerError struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -365,6 +413,13 @@ func (o *GetPreventionPoliciesInternalServerError) GetPayload() *models.Response func (o *GetPreventionPoliciesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") diff --git a/falcon/client/prevention_policies/query_combined_prevention_policies_responses.go b/falcon/client/prevention_policies/query_combined_prevention_policies_responses.go index 72f217bf..55aceb30 100644 --- a/falcon/client/prevention_policies/query_combined_prevention_policies_responses.go +++ b/falcon/client/prevention_policies/query_combined_prevention_policies_responses.go @@ -78,6 +78,10 @@ OK */ type QueryCombinedPreventionPoliciesOK struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -98,6 +102,13 @@ func (o *QueryCombinedPreventionPoliciesOK) GetPayload() *models.ResponsesPreven func (o *QueryCombinedPreventionPoliciesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -141,6 +152,10 @@ Bad Request */ type QueryCombinedPreventionPoliciesBadRequest struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -161,6 +176,13 @@ func (o *QueryCombinedPreventionPoliciesBadRequest) GetPayload() *models.Respons func (o *QueryCombinedPreventionPoliciesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -204,6 +226,10 @@ Forbidden */ type QueryCombinedPreventionPoliciesForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -224,6 +250,13 @@ func (o *QueryCombinedPreventionPoliciesForbidden) GetPayload() *models.MsaError func (o *QueryCombinedPreventionPoliciesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -267,6 +300,10 @@ Too Many Requests */ type QueryCombinedPreventionPoliciesTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -291,6 +328,13 @@ func (o *QueryCombinedPreventionPoliciesTooManyRequests) GetPayload() *models.Ms func (o *QueryCombinedPreventionPoliciesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -345,6 +389,10 @@ Internal Server Error */ type QueryCombinedPreventionPoliciesInternalServerError struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -365,6 +413,13 @@ func (o *QueryCombinedPreventionPoliciesInternalServerError) GetPayload() *model func (o *QueryCombinedPreventionPoliciesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") diff --git a/falcon/client/prevention_policies/query_combined_prevention_policy_members_responses.go b/falcon/client/prevention_policies/query_combined_prevention_policy_members_responses.go index fbd00d0b..5acf7e51 100644 --- a/falcon/client/prevention_policies/query_combined_prevention_policy_members_responses.go +++ b/falcon/client/prevention_policies/query_combined_prevention_policy_members_responses.go @@ -84,6 +84,10 @@ OK */ type QueryCombinedPreventionPolicyMembersOK struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -104,6 +108,13 @@ func (o *QueryCombinedPreventionPolicyMembersOK) GetPayload() *models.ResponsesP func (o *QueryCombinedPreventionPolicyMembersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -147,6 +158,10 @@ Bad Request */ type QueryCombinedPreventionPolicyMembersBadRequest struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -167,6 +182,13 @@ func (o *QueryCombinedPreventionPolicyMembersBadRequest) GetPayload() *models.Re func (o *QueryCombinedPreventionPolicyMembersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -210,6 +232,10 @@ Forbidden */ type QueryCombinedPreventionPolicyMembersForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -230,6 +256,13 @@ func (o *QueryCombinedPreventionPolicyMembersForbidden) GetPayload() *models.Msa func (o *QueryCombinedPreventionPolicyMembersForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -273,6 +306,10 @@ Not Found */ type QueryCombinedPreventionPolicyMembersNotFound struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -293,6 +330,13 @@ func (o *QueryCombinedPreventionPolicyMembersNotFound) GetPayload() *models.Resp func (o *QueryCombinedPreventionPolicyMembersNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -336,6 +380,10 @@ Too Many Requests */ type QueryCombinedPreventionPolicyMembersTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -360,6 +408,13 @@ func (o *QueryCombinedPreventionPolicyMembersTooManyRequests) GetPayload() *mode func (o *QueryCombinedPreventionPolicyMembersTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -414,6 +469,10 @@ Internal Server Error */ type QueryCombinedPreventionPolicyMembersInternalServerError struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -434,6 +493,13 @@ func (o *QueryCombinedPreventionPolicyMembersInternalServerError) GetPayload() * func (o *QueryCombinedPreventionPolicyMembersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") diff --git a/falcon/client/prevention_policies/query_prevention_policies_responses.go b/falcon/client/prevention_policies/query_prevention_policies_responses.go index 53c909f7..72479be7 100644 --- a/falcon/client/prevention_policies/query_prevention_policies_responses.go +++ b/falcon/client/prevention_policies/query_prevention_policies_responses.go @@ -78,6 +78,10 @@ OK */ type QueryPreventionPoliciesOK struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -98,6 +102,13 @@ func (o *QueryPreventionPoliciesOK) GetPayload() *models.MsaQueryResponse { func (o *QueryPreventionPoliciesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -141,6 +152,10 @@ Bad Request */ type QueryPreventionPoliciesBadRequest struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -161,6 +176,13 @@ func (o *QueryPreventionPoliciesBadRequest) GetPayload() *models.MsaQueryRespons func (o *QueryPreventionPoliciesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -204,6 +226,10 @@ Forbidden */ type QueryPreventionPoliciesForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -224,6 +250,13 @@ func (o *QueryPreventionPoliciesForbidden) GetPayload() *models.MsaErrorsOnly { func (o *QueryPreventionPoliciesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -267,6 +300,10 @@ Too Many Requests */ type QueryPreventionPoliciesTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -291,6 +328,13 @@ func (o *QueryPreventionPoliciesTooManyRequests) GetPayload() *models.MsaReplyMe func (o *QueryPreventionPoliciesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -345,6 +389,10 @@ Internal Server Error */ type QueryPreventionPoliciesInternalServerError struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -365,6 +413,13 @@ func (o *QueryPreventionPoliciesInternalServerError) GetPayload() *models.MsaQue func (o *QueryPreventionPoliciesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") diff --git a/falcon/client/prevention_policies/query_prevention_policy_members_responses.go b/falcon/client/prevention_policies/query_prevention_policy_members_responses.go index 6ccd0bd7..64ea58e0 100644 --- a/falcon/client/prevention_policies/query_prevention_policy_members_responses.go +++ b/falcon/client/prevention_policies/query_prevention_policy_members_responses.go @@ -84,6 +84,10 @@ OK */ type QueryPreventionPolicyMembersOK struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -104,6 +108,13 @@ func (o *QueryPreventionPolicyMembersOK) GetPayload() *models.MsaQueryResponse { func (o *QueryPreventionPolicyMembersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -147,6 +158,10 @@ Bad Request */ type QueryPreventionPolicyMembersBadRequest struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -167,6 +182,13 @@ func (o *QueryPreventionPolicyMembersBadRequest) GetPayload() *models.MsaQueryRe func (o *QueryPreventionPolicyMembersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -210,6 +232,10 @@ Forbidden */ type QueryPreventionPolicyMembersForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -230,6 +256,13 @@ func (o *QueryPreventionPolicyMembersForbidden) GetPayload() *models.MsaErrorsOn func (o *QueryPreventionPolicyMembersForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -273,6 +306,10 @@ Not Found */ type QueryPreventionPolicyMembersNotFound struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -293,6 +330,13 @@ func (o *QueryPreventionPolicyMembersNotFound) GetPayload() *models.MsaQueryResp func (o *QueryPreventionPolicyMembersNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -336,6 +380,10 @@ Too Many Requests */ type QueryPreventionPolicyMembersTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -360,6 +408,13 @@ func (o *QueryPreventionPolicyMembersTooManyRequests) GetPayload() *models.MsaRe func (o *QueryPreventionPolicyMembersTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -414,6 +469,10 @@ Internal Server Error */ type QueryPreventionPolicyMembersInternalServerError struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -434,6 +493,13 @@ func (o *QueryPreventionPolicyMembersInternalServerError) GetPayload() *models.M func (o *QueryPreventionPolicyMembersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") diff --git a/falcon/client/prevention_policies/set_prevention_policies_precedence_responses.go b/falcon/client/prevention_policies/set_prevention_policies_precedence_responses.go index 198b6ded..ab10b02b 100644 --- a/falcon/client/prevention_policies/set_prevention_policies_precedence_responses.go +++ b/falcon/client/prevention_policies/set_prevention_policies_precedence_responses.go @@ -78,6 +78,10 @@ OK */ type SetPreventionPoliciesPrecedenceOK struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -98,6 +102,13 @@ func (o *SetPreventionPoliciesPrecedenceOK) GetPayload() *models.MsaQueryRespons func (o *SetPreventionPoliciesPrecedenceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -141,6 +152,10 @@ Bad Request */ type SetPreventionPoliciesPrecedenceBadRequest struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -161,6 +176,13 @@ func (o *SetPreventionPoliciesPrecedenceBadRequest) GetPayload() *models.MsaQuer func (o *SetPreventionPoliciesPrecedenceBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -204,6 +226,10 @@ Forbidden */ type SetPreventionPoliciesPrecedenceForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -224,6 +250,13 @@ func (o *SetPreventionPoliciesPrecedenceForbidden) GetPayload() *models.MsaError func (o *SetPreventionPoliciesPrecedenceForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -267,6 +300,10 @@ Too Many Requests */ type SetPreventionPoliciesPrecedenceTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -291,6 +328,13 @@ func (o *SetPreventionPoliciesPrecedenceTooManyRequests) GetPayload() *models.Ms func (o *SetPreventionPoliciesPrecedenceTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -345,6 +389,10 @@ Internal Server Error */ type SetPreventionPoliciesPrecedenceInternalServerError struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -365,6 +413,13 @@ func (o *SetPreventionPoliciesPrecedenceInternalServerError) GetPayload() *model func (o *SetPreventionPoliciesPrecedenceInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") diff --git a/falcon/client/prevention_policies/update_prevention_policies_responses.go b/falcon/client/prevention_policies/update_prevention_policies_responses.go index 078e5b2b..25ffcd54 100644 --- a/falcon/client/prevention_policies/update_prevention_policies_responses.go +++ b/falcon/client/prevention_policies/update_prevention_policies_responses.go @@ -84,6 +84,10 @@ OK */ type UpdatePreventionPoliciesOK struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -104,6 +108,13 @@ func (o *UpdatePreventionPoliciesOK) GetPayload() *models.ResponsesPreventionPol func (o *UpdatePreventionPoliciesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -147,6 +158,10 @@ Bad Request */ type UpdatePreventionPoliciesBadRequest struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -167,6 +182,13 @@ func (o *UpdatePreventionPoliciesBadRequest) GetPayload() *models.ResponsesPreve func (o *UpdatePreventionPoliciesBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -210,6 +232,10 @@ Forbidden */ type UpdatePreventionPoliciesForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -230,6 +256,13 @@ func (o *UpdatePreventionPoliciesForbidden) GetPayload() *models.MsaErrorsOnly { func (o *UpdatePreventionPoliciesForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -273,6 +306,10 @@ Not Found */ type UpdatePreventionPoliciesNotFound struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -293,6 +330,13 @@ func (o *UpdatePreventionPoliciesNotFound) GetPayload() *models.ResponsesPrevent func (o *UpdatePreventionPoliciesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -336,6 +380,10 @@ Too Many Requests */ type UpdatePreventionPoliciesTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -360,6 +408,13 @@ func (o *UpdatePreventionPoliciesTooManyRequests) GetPayload() *models.MsaReplyM func (o *UpdatePreventionPoliciesTooManyRequests) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") @@ -414,6 +469,10 @@ Internal Server Error */ type UpdatePreventionPoliciesInternalServerError struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -434,6 +493,13 @@ func (o *UpdatePreventionPoliciesInternalServerError) GetPayload() *models.Respo func (o *UpdatePreventionPoliciesInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + // hydrates response header X-CS-TRACEID + hdrXCSTRACEID := response.GetHeader("X-CS-TRACEID") + + if hdrXCSTRACEID != "" { + o.XCSTRACEID = hdrXCSTRACEID + } + // hydrates response header X-RateLimit-Limit hdrXRateLimitLimit := response.GetHeader("X-RateLimit-Limit") diff --git a/falcon/models/device_device.go b/falcon/models/device_device.go index 61c381a6..17a3358f 100644 --- a/falcon/models/device_device.go +++ b/falcon/models/device_device.go @@ -130,6 +130,9 @@ type DeviceDevice struct { // notes Notes []string `json:"notes"` + // os build + OsBuild string `json:"os_build,omitempty"` + // os version OsVersion string `json:"os_version,omitempty"` diff --git a/falcon/models/responses_i_o_a_rule_group_v1.go b/falcon/models/responses_i_o_a_rule_group_v1.go new file mode 100644 index 00000000..a0fa8426 --- /dev/null +++ b/falcon/models/responses_i_o_a_rule_group_v1.go @@ -0,0 +1,324 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// ResponsesIOARuleGroupV1 An IOA rule group which contains a set of IOA rules +// +// swagger:model responses.IOARuleGroupV1 +type ResponsesIOARuleGroupV1 struct { + + // comment + // Required: true + Comment *string `json:"comment"` + + // The last attempted time CFS got this data on the rule group + // Required: true + // Format: date-time + CommittedTimestamp *strfmt.DateTime `json:"committed_timestamp"` + + // The email of the user which created the rule group + // Required: true + CreatedBy *string `json:"created_by"` + + // The time at which the policy was created + // Required: true + // Format: date-time + CreatedTimestamp *strfmt.DateTime `json:"created_timestamp"` + + // customer id + // Required: true + CustomerID *string `json:"customer_id"` + + // deleted + // Required: true + Deleted *bool `json:"deleted"` + + // An additional description of the group or the rules it contains + // Required: true + Description *string `json:"description"` + + // enabled + // Required: true + Enabled *bool `json:"enabled"` + + // The identifier of this IOA rule group + // Required: true + ID *string `json:"id"` + + // The email of the user which last modified the rule group + // Required: true + ModifiedBy *string `json:"modified_by"` + + // The time at which the policy was last modified + // Required: true + // Format: date-time + ModifiedTimestamp *strfmt.DateTime `json:"modified_timestamp"` + + // The name of the group + // Required: true + Name *string `json:"name"` + + // platform + // Required: true + Platform *string `json:"platform"` + + // rule ids + // Required: true + RuleIds []string `json:"rule_ids"` + + // version + // Required: true + Version *int64 `json:"version"` +} + +// Validate validates this responses i o a rule group v1 +func (m *ResponsesIOARuleGroupV1) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateComment(formats); err != nil { + res = append(res, err) + } + + if err := m.validateCommittedTimestamp(formats); err != nil { + res = append(res, err) + } + + if err := m.validateCreatedBy(formats); err != nil { + res = append(res, err) + } + + if err := m.validateCreatedTimestamp(formats); err != nil { + res = append(res, err) + } + + if err := m.validateCustomerID(formats); err != nil { + res = append(res, err) + } + + if err := m.validateDeleted(formats); err != nil { + res = append(res, err) + } + + if err := m.validateDescription(formats); err != nil { + res = append(res, err) + } + + if err := m.validateEnabled(formats); err != nil { + res = append(res, err) + } + + if err := m.validateID(formats); err != nil { + res = append(res, err) + } + + if err := m.validateModifiedBy(formats); err != nil { + res = append(res, err) + } + + if err := m.validateModifiedTimestamp(formats); err != nil { + res = append(res, err) + } + + if err := m.validateName(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePlatform(formats); err != nil { + res = append(res, err) + } + + if err := m.validateRuleIds(formats); err != nil { + res = append(res, err) + } + + if err := m.validateVersion(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateComment(formats strfmt.Registry) error { + + if err := validate.Required("comment", "body", m.Comment); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateCommittedTimestamp(formats strfmt.Registry) error { + + if err := validate.Required("committed_timestamp", "body", m.CommittedTimestamp); err != nil { + return err + } + + if err := validate.FormatOf("committed_timestamp", "body", "date-time", m.CommittedTimestamp.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateCreatedBy(formats strfmt.Registry) error { + + if err := validate.Required("created_by", "body", m.CreatedBy); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateCreatedTimestamp(formats strfmt.Registry) error { + + if err := validate.Required("created_timestamp", "body", m.CreatedTimestamp); err != nil { + return err + } + + if err := validate.FormatOf("created_timestamp", "body", "date-time", m.CreatedTimestamp.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateCustomerID(formats strfmt.Registry) error { + + if err := validate.Required("customer_id", "body", m.CustomerID); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateDeleted(formats strfmt.Registry) error { + + if err := validate.Required("deleted", "body", m.Deleted); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateDescription(formats strfmt.Registry) error { + + if err := validate.Required("description", "body", m.Description); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateEnabled(formats strfmt.Registry) error { + + if err := validate.Required("enabled", "body", m.Enabled); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateID(formats strfmt.Registry) error { + + if err := validate.Required("id", "body", m.ID); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateModifiedBy(formats strfmt.Registry) error { + + if err := validate.Required("modified_by", "body", m.ModifiedBy); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateModifiedTimestamp(formats strfmt.Registry) error { + + if err := validate.Required("modified_timestamp", "body", m.ModifiedTimestamp); err != nil { + return err + } + + if err := validate.FormatOf("modified_timestamp", "body", "date-time", m.ModifiedTimestamp.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateName(formats strfmt.Registry) error { + + if err := validate.Required("name", "body", m.Name); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validatePlatform(formats strfmt.Registry) error { + + if err := validate.Required("platform", "body", m.Platform); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateRuleIds(formats strfmt.Registry) error { + + if err := validate.Required("rule_ids", "body", m.RuleIds); err != nil { + return err + } + + return nil +} + +func (m *ResponsesIOARuleGroupV1) validateVersion(formats strfmt.Registry) error { + + if err := validate.Required("version", "body", m.Version); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this responses i o a rule group v1 based on context it is used +func (m *ResponsesIOARuleGroupV1) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *ResponsesIOARuleGroupV1) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *ResponsesIOARuleGroupV1) UnmarshalBinary(b []byte) error { + var res ResponsesIOARuleGroupV1 + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/falcon/models/responses_prevention_policy_v1.go b/falcon/models/responses_prevention_policy_v1.go index f944f312..1d16b22e 100644 --- a/falcon/models/responses_prevention_policy_v1.go +++ b/falcon/models/responses_prevention_policy_v1.go @@ -21,6 +21,10 @@ import ( // swagger:model responses.PreventionPolicyV1 type ResponsesPreventionPolicyV1 struct { + // The customer id associated with the policy + // Required: true + Cid *string `json:"cid"` + // The email of the user which created the policy // Required: true CreatedBy *string `json:"created_by"` @@ -46,6 +50,10 @@ type ResponsesPreventionPolicyV1 struct { // Required: true ID *string `json:"id"` + // The IOA rule groups that are currently attached to the policy + // Required: true + IoaRuleGroups []*ResponsesIOARuleGroupV1 `json:"ioa_rule_groups"` + // The email of the user which last modified the policy // Required: true ModifiedBy *string `json:"modified_by"` @@ -73,6 +81,10 @@ type ResponsesPreventionPolicyV1 struct { func (m *ResponsesPreventionPolicyV1) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateCid(formats); err != nil { + res = append(res, err) + } + if err := m.validateCreatedBy(formats); err != nil { res = append(res, err) } @@ -97,6 +109,10 @@ func (m *ResponsesPreventionPolicyV1) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateIoaRuleGroups(formats); err != nil { + res = append(res, err) + } + if err := m.validateModifiedBy(formats); err != nil { res = append(res, err) } @@ -123,6 +139,15 @@ func (m *ResponsesPreventionPolicyV1) Validate(formats strfmt.Registry) error { return nil } +func (m *ResponsesPreventionPolicyV1) validateCid(formats strfmt.Registry) error { + + if err := validate.Required("cid", "body", m.Cid); err != nil { + return err + } + + return nil +} + func (m *ResponsesPreventionPolicyV1) validateCreatedBy(formats strfmt.Registry) error { if err := validate.Required("created_by", "body", m.CreatedBy); err != nil { @@ -197,6 +222,31 @@ func (m *ResponsesPreventionPolicyV1) validateID(formats strfmt.Registry) error return nil } +func (m *ResponsesPreventionPolicyV1) validateIoaRuleGroups(formats strfmt.Registry) error { + + if err := validate.Required("ioa_rule_groups", "body", m.IoaRuleGroups); err != nil { + return err + } + + for i := 0; i < len(m.IoaRuleGroups); i++ { + if swag.IsZero(m.IoaRuleGroups[i]) { // not required + continue + } + + if m.IoaRuleGroups[i] != nil { + if err := m.IoaRuleGroups[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("ioa_rule_groups" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *ResponsesPreventionPolicyV1) validateModifiedBy(formats strfmt.Registry) error { if err := validate.Required("modified_by", "body", m.ModifiedBy); err != nil { @@ -307,6 +357,10 @@ func (m *ResponsesPreventionPolicyV1) ContextValidate(ctx context.Context, forma res = append(res, err) } + if err := m.contextValidateIoaRuleGroups(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidatePreventionSettings(ctx, formats); err != nil { res = append(res, err) } @@ -335,6 +389,24 @@ func (m *ResponsesPreventionPolicyV1) contextValidateGroups(ctx context.Context, return nil } +func (m *ResponsesPreventionPolicyV1) contextValidateIoaRuleGroups(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.IoaRuleGroups); i++ { + + if m.IoaRuleGroups[i] != nil { + if err := m.IoaRuleGroups[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("ioa_rule_groups" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *ResponsesPreventionPolicyV1) contextValidatePreventionSettings(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.PreventionSettings); i++ {