diff --git a/falcon/client/firewall_management/create_rule_group_parameters.go b/falcon/client/firewall_management/create_rule_group_parameters.go index 11e3d339..624b00d6 100644 --- a/falcon/client/firewall_management/create_rule_group_parameters.go +++ b/falcon/client/firewall_management/create_rule_group_parameters.go @@ -61,12 +61,6 @@ func NewCreateRuleGroupParamsWithHTTPClient(client *http.Client) *CreateRuleGrou */ type CreateRuleGroupParams struct { - /* XCSUSERNAME. - - The user id - */ - XCSUSERNAME string - // Body. Body *models.FwmgrAPIRuleGroupCreateRequestV1 @@ -141,17 +135,6 @@ func (o *CreateRuleGroupParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithXCSUSERNAME adds the xCSUSERNAME to the create rule group params -func (o *CreateRuleGroupParams) WithXCSUSERNAME(xCSUSERNAME string) *CreateRuleGroupParams { - o.SetXCSUSERNAME(xCSUSERNAME) - return o -} - -// SetXCSUSERNAME adds the xCSUSERNAME to the create rule group params -func (o *CreateRuleGroupParams) SetXCSUSERNAME(xCSUSERNAME string) { - o.XCSUSERNAME = xCSUSERNAME -} - // WithBody adds the body to the create rule group params func (o *CreateRuleGroupParams) WithBody(body *models.FwmgrAPIRuleGroupCreateRequestV1) *CreateRuleGroupParams { o.SetBody(body) @@ -203,11 +186,6 @@ func (o *CreateRuleGroupParams) WriteToRequest(r runtime.ClientRequest, reg strf return err } var res []error - - // header param X-CS-USERNAME - if err := r.SetHeaderParam("X-CS-USERNAME", o.XCSUSERNAME); err != nil { - return err - } if o.Body != nil { if err := r.SetBodyParam(o.Body); err != nil { return err diff --git a/falcon/client/firewall_management/create_rule_group_responses.go b/falcon/client/firewall_management/create_rule_group_responses.go index 33496c3e..56ee2b44 100644 --- a/falcon/client/firewall_management/create_rule_group_responses.go +++ b/falcon/client/firewall_management/create_rule_group_responses.go @@ -65,6 +65,10 @@ Created */ type CreateRuleGroupCreated struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -85,6 +89,13 @@ func (o *CreateRuleGroupCreated) GetPayload() *models.FwmgrAPIQueryResponse { func (o *CreateRuleGroupCreated) 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") @@ -128,6 +139,10 @@ Bad Request */ type CreateRuleGroupBadRequest struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -148,6 +163,13 @@ func (o *CreateRuleGroupBadRequest) GetPayload() *models.FwmgrMsaReplyMetaOnly { func (o *CreateRuleGroupBadRequest) 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") @@ -191,6 +213,10 @@ Forbidden */ type CreateRuleGroupForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -211,6 +237,13 @@ func (o *CreateRuleGroupForbidden) GetPayload() *models.MsaReplyMetaOnly { func (o *CreateRuleGroupForbidden) 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") @@ -254,6 +287,10 @@ Too Many Requests */ type CreateRuleGroupTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -278,6 +315,13 @@ func (o *CreateRuleGroupTooManyRequests) GetPayload() *models.MsaReplyMetaOnly { func (o *CreateRuleGroupTooManyRequests) 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/firewall_management/delete_rule_groups_parameters.go b/falcon/client/firewall_management/delete_rule_groups_parameters.go index d5f1fbbb..c7b30ab8 100644 --- a/falcon/client/firewall_management/delete_rule_groups_parameters.go +++ b/falcon/client/firewall_management/delete_rule_groups_parameters.go @@ -60,12 +60,6 @@ func NewDeleteRuleGroupsParamsWithHTTPClient(client *http.Client) *DeleteRuleGro */ type DeleteRuleGroupsParams struct { - /* XCSUSERNAME. - - The user id - */ - XCSUSERNAME string - /* Comment. Audit log comment for this action @@ -131,17 +125,6 @@ func (o *DeleteRuleGroupsParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithXCSUSERNAME adds the xCSUSERNAME to the delete rule groups params -func (o *DeleteRuleGroupsParams) WithXCSUSERNAME(xCSUSERNAME string) *DeleteRuleGroupsParams { - o.SetXCSUSERNAME(xCSUSERNAME) - return o -} - -// SetXCSUSERNAME adds the xCSUSERNAME to the delete rule groups params -func (o *DeleteRuleGroupsParams) SetXCSUSERNAME(xCSUSERNAME string) { - o.XCSUSERNAME = xCSUSERNAME -} - // WithComment adds the comment to the delete rule groups params func (o *DeleteRuleGroupsParams) WithComment(comment *string) *DeleteRuleGroupsParams { o.SetComment(comment) @@ -172,11 +155,6 @@ func (o *DeleteRuleGroupsParams) WriteToRequest(r runtime.ClientRequest, reg str } var res []error - // header param X-CS-USERNAME - if err := r.SetHeaderParam("X-CS-USERNAME", o.XCSUSERNAME); err != nil { - return err - } - if o.Comment != nil { // query param comment diff --git a/falcon/client/firewall_management/delete_rule_groups_responses.go b/falcon/client/firewall_management/delete_rule_groups_responses.go index 12356105..f7fbe0c0 100644 --- a/falcon/client/firewall_management/delete_rule_groups_responses.go +++ b/falcon/client/firewall_management/delete_rule_groups_responses.go @@ -72,6 +72,10 @@ OK */ type DeleteRuleGroupsOK struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -92,6 +96,13 @@ func (o *DeleteRuleGroupsOK) GetPayload() *models.FwmgrAPIQueryResponse { func (o *DeleteRuleGroupsOK) 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") @@ -135,6 +146,10 @@ Bad Request */ type DeleteRuleGroupsBadRequest struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -155,6 +170,13 @@ func (o *DeleteRuleGroupsBadRequest) GetPayload() *models.FwmgrMsaReplyMetaOnly func (o *DeleteRuleGroupsBadRequest) 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") @@ -198,6 +220,10 @@ Forbidden */ type DeleteRuleGroupsForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -218,6 +244,13 @@ func (o *DeleteRuleGroupsForbidden) GetPayload() *models.MsaReplyMetaOnly { func (o *DeleteRuleGroupsForbidden) 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") @@ -261,6 +294,10 @@ Too Many Requests */ type DeleteRuleGroupsTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -285,6 +322,13 @@ func (o *DeleteRuleGroupsTooManyRequests) GetPayload() *models.MsaReplyMetaOnly func (o *DeleteRuleGroupsTooManyRequests) 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/firewall_management/update_policy_container_parameters.go b/falcon/client/firewall_management/update_policy_container_parameters.go index 48fa1fb5..1e30a67a 100644 --- a/falcon/client/firewall_management/update_policy_container_parameters.go +++ b/falcon/client/firewall_management/update_policy_container_parameters.go @@ -61,12 +61,6 @@ func NewUpdatePolicyContainerParamsWithHTTPClient(client *http.Client) *UpdatePo */ type UpdatePolicyContainerParams struct { - /* XCSUSERNAME. - - The user id - */ - XCSUSERNAME string - // Body. Body *models.FwmgrAPIPolicyContainerUpsertRequestV1 @@ -123,17 +117,6 @@ func (o *UpdatePolicyContainerParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithXCSUSERNAME adds the xCSUSERNAME to the update policy container params -func (o *UpdatePolicyContainerParams) WithXCSUSERNAME(xCSUSERNAME string) *UpdatePolicyContainerParams { - o.SetXCSUSERNAME(xCSUSERNAME) - return o -} - -// SetXCSUSERNAME adds the xCSUSERNAME to the update policy container params -func (o *UpdatePolicyContainerParams) SetXCSUSERNAME(xCSUSERNAME string) { - o.XCSUSERNAME = xCSUSERNAME -} - // WithBody adds the body to the update policy container params func (o *UpdatePolicyContainerParams) WithBody(body *models.FwmgrAPIPolicyContainerUpsertRequestV1) *UpdatePolicyContainerParams { o.SetBody(body) @@ -152,11 +135,6 @@ func (o *UpdatePolicyContainerParams) WriteToRequest(r runtime.ClientRequest, re return err } var res []error - - // header param X-CS-USERNAME - if err := r.SetHeaderParam("X-CS-USERNAME", o.XCSUSERNAME); err != nil { - return err - } if o.Body != nil { if err := r.SetBodyParam(o.Body); err != nil { return err diff --git a/falcon/client/firewall_management/update_policy_container_responses.go b/falcon/client/firewall_management/update_policy_container_responses.go index 65c0a9ee..82229bc3 100644 --- a/falcon/client/firewall_management/update_policy_container_responses.go +++ b/falcon/client/firewall_management/update_policy_container_responses.go @@ -78,6 +78,10 @@ OK */ type UpdatePolicyContainerOK struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -98,6 +102,13 @@ func (o *UpdatePolicyContainerOK) GetPayload() *models.FwmgrMsaReplyMetaOnly { func (o *UpdatePolicyContainerOK) 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 @@ Created */ type UpdatePolicyContainerCreated struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -161,6 +176,13 @@ func (o *UpdatePolicyContainerCreated) GetPayload() *models.FwmgrMsaReplyMetaOnl func (o *UpdatePolicyContainerCreated) 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 @@ Bad Request */ type UpdatePolicyContainerBadRequest struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -224,6 +250,13 @@ func (o *UpdatePolicyContainerBadRequest) GetPayload() *models.FwmgrMsaReplyMeta func (o *UpdatePolicyContainerBadRequest) 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 @@ Forbidden */ type UpdatePolicyContainerForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -287,6 +324,13 @@ func (o *UpdatePolicyContainerForbidden) GetPayload() *models.MsaReplyMetaOnly { func (o *UpdatePolicyContainerForbidden) 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") @@ -330,6 +374,10 @@ Too Many Requests */ type UpdatePolicyContainerTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -354,6 +402,13 @@ func (o *UpdatePolicyContainerTooManyRequests) GetPayload() *models.MsaReplyMeta func (o *UpdatePolicyContainerTooManyRequests) 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/firewall_management/update_rule_group_parameters.go b/falcon/client/firewall_management/update_rule_group_parameters.go index b05df6c0..796588e9 100644 --- a/falcon/client/firewall_management/update_rule_group_parameters.go +++ b/falcon/client/firewall_management/update_rule_group_parameters.go @@ -61,12 +61,6 @@ func NewUpdateRuleGroupParamsWithHTTPClient(client *http.Client) *UpdateRuleGrou */ type UpdateRuleGroupParams struct { - /* XCSUSERNAME. - - The user id - */ - XCSUSERNAME string - // Body. Body *models.FwmgrAPIRuleGroupModifyRequestV1 @@ -129,17 +123,6 @@ func (o *UpdateRuleGroupParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client } -// WithXCSUSERNAME adds the xCSUSERNAME to the update rule group params -func (o *UpdateRuleGroupParams) WithXCSUSERNAME(xCSUSERNAME string) *UpdateRuleGroupParams { - o.SetXCSUSERNAME(xCSUSERNAME) - return o -} - -// SetXCSUSERNAME adds the xCSUSERNAME to the update rule group params -func (o *UpdateRuleGroupParams) SetXCSUSERNAME(xCSUSERNAME string) { - o.XCSUSERNAME = xCSUSERNAME -} - // WithBody adds the body to the update rule group params func (o *UpdateRuleGroupParams) WithBody(body *models.FwmgrAPIRuleGroupModifyRequestV1) *UpdateRuleGroupParams { o.SetBody(body) @@ -169,11 +152,6 @@ func (o *UpdateRuleGroupParams) WriteToRequest(r runtime.ClientRequest, reg strf return err } var res []error - - // header param X-CS-USERNAME - if err := r.SetHeaderParam("X-CS-USERNAME", o.XCSUSERNAME); err != nil { - return err - } if o.Body != nil { if err := r.SetBodyParam(o.Body); err != nil { return err diff --git a/falcon/client/firewall_management/update_rule_group_responses.go b/falcon/client/firewall_management/update_rule_group_responses.go index 564adbfe..b4788492 100644 --- a/falcon/client/firewall_management/update_rule_group_responses.go +++ b/falcon/client/firewall_management/update_rule_group_responses.go @@ -72,6 +72,10 @@ OK */ type UpdateRuleGroupOK struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -92,6 +96,13 @@ func (o *UpdateRuleGroupOK) GetPayload() *models.FwmgrAPIQueryResponse { func (o *UpdateRuleGroupOK) 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") @@ -135,6 +146,10 @@ Bad Request */ type UpdateRuleGroupBadRequest struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -155,6 +170,13 @@ func (o *UpdateRuleGroupBadRequest) GetPayload() *models.FwmgrMsaReplyMetaOnly { func (o *UpdateRuleGroupBadRequest) 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") @@ -198,6 +220,10 @@ Forbidden */ type UpdateRuleGroupForbidden struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -218,6 +244,13 @@ func (o *UpdateRuleGroupForbidden) GetPayload() *models.MsaReplyMetaOnly { func (o *UpdateRuleGroupForbidden) 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") @@ -261,6 +294,10 @@ Too Many Requests */ type UpdateRuleGroupTooManyRequests struct { + /* Trace-ID: submit to support if resolving an issue + */ + XCSTRACEID string + /* Request limit per minute. */ XRateLimitLimit int64 @@ -285,6 +322,13 @@ func (o *UpdateRuleGroupTooManyRequests) GetPayload() *models.MsaReplyMetaOnly { func (o *UpdateRuleGroupTooManyRequests) 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")