// Code generated by go-swagger; DO NOT EDIT. // (c) 2012-2020 by Telnexus LLC // All rights reserved worldwide. // Proprietary product; unlicensed use is not allowed package kazoo_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" "strconv" "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // GetAccountCallflowResponse get account callflow response // // swagger:model GetAccountCallflowResponse type GetAccountCallflowResponse struct { // auth token // Example: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImM2M2I1NjY5YmE0NTQzZWVmMTE5OTc3ZTUyNDYxYzRlIn0.eyJpc3MiOiJrYXpvbyIsImlkZW50aXR5X3NpZyI6InJUMW5DNnNOOHNKQWp4blBSSk1LVE5Ed1ZEQWZwek9sSFBnb0FYTHgtQU0iLCJhY2NvdW50X2lkIjoiYTY2ZjJiN2E0MDk0NGI3NDRkY2M2M2NhNmYxMGY0N2EiLCJvd25lcl9pZCI6IjUwOTE2MWZmMmE1NzZiZDZhYmU1YjhjNzVmNmIxNWYwIiwibWV0aG9kIjoiY2JfdXNlcl9hdXRoIiwiZXhwIjoxNTg4ODE0OTcwfQ.cW38X_JKe_bToQ19LzPY1U4aqjf96cFSwkszhqMhdpoR2Kq5JuPxkuCWoG6q49lwpIHb_9mZyoYBG83eLnYkamcORoejyUDb0ob79VKMBAUHAlXPkMNz7H2apLEHp0O8bdxr8ymh0Il9I4nAZSVnPkufQpx8L41Oy_ovU0vHS0jb2dSeXsySO0qcrCsoR9psTtqvB1GZBCEO8S_9EJKpYaT3o-Kio8uHZh7HgCD3NCUbfW8emfE6omTFIzIY7FTwXM_4kaMbWTUv09nN7iIpxJw2r_2drT-V5K8GFXZLAvm_1CqtLOMTYb26i3Iae3-zh9GPANSU3O0fq79kKupHfw AuthToken string `json:"auth_token,omitempty"` // data Data []*GetAccountCallflowResponseDataItems0 `json:"data"` // node // Example: dqZFtHthbelyE8MI6vU-LA Node string `json:"node,omitempty"` // page size // Example: 34 PageSize float64 `json:"page_size,omitempty"` // request id // Example: 3aa5241a8f3150258750425ce3c5c767 RequestID string `json:"request_id,omitempty"` // revision // Example: c10c73dd4f798fb595267e1d1c4eb9ff Revision string `json:"revision,omitempty"` // status // Example: success Status string `json:"status,omitempty"` // timestamp // Example: 2020-05-07T00:53:40Z Timestamp string `json:"timestamp,omitempty"` // version // Example: 4.3.103 Version string `json:"version,omitempty"` } // Validate validates this get account callflow response func (m *GetAccountCallflowResponse) Validate(formats strfmt.Registry) error { var res []error if err := m.validateData(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *GetAccountCallflowResponse) validateData(formats strfmt.Registry) error { if swag.IsZero(m.Data) { // not required return nil } for i := 0; i < len(m.Data); i++ { if swag.IsZero(m.Data[i]) { // not required continue } if m.Data[i] != nil { if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) } return err } } } return nil } // ContextValidate validate this get account callflow response based on the context it is used func (m *GetAccountCallflowResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error if err := m.contextValidateData(ctx, formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *GetAccountCallflowResponse) contextValidateData(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.Data); i++ { if m.Data[i] != nil { if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) } return err } } } return nil } // MarshalBinary interface implementation func (m *GetAccountCallflowResponse) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *GetAccountCallflowResponse) UnmarshalBinary(b []byte) error { var res GetAccountCallflowResponse if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // GetAccountCallflowResponseDataItems0 get account callflow response data items0 // // swagger:model GetAccountCallflowResponseDataItems0 type GetAccountCallflowResponseDataItems0 struct { // featurecode Featurecode *GetAccountCallflowResponseDataItems0Featurecode `json:"featurecode,omitempty"` // id // Example: ff059d91a6fe0d16ced1ef6ca1f2bc52 ID string `json:"id,omitempty"` // modules // Example: ["park"] Modules []string `json:"modules"` // name // Example: 2004 - Vern iPad Name string `json:"name,omitempty"` // numbers // Example: ["2004"] Numbers []string `json:"numbers"` // patterns // Example: ["^\\*3([0-9]*)$"] Patterns []string `json:"patterns"` } // Validate validates this get account callflow response data items0 func (m *GetAccountCallflowResponseDataItems0) Validate(formats strfmt.Registry) error { var res []error if err := m.validateFeaturecode(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *GetAccountCallflowResponseDataItems0) validateFeaturecode(formats strfmt.Registry) error { if swag.IsZero(m.Featurecode) { // not required return nil } if m.Featurecode != nil { if err := m.Featurecode.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("featurecode") } return err } } return nil } // ContextValidate validate this get account callflow response data items0 based on the context it is used func (m *GetAccountCallflowResponseDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error if err := m.contextValidateFeaturecode(ctx, formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *GetAccountCallflowResponseDataItems0) contextValidateFeaturecode(ctx context.Context, formats strfmt.Registry) error { if m.Featurecode != nil { if err := m.Featurecode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("featurecode") } return err } } return nil } // MarshalBinary interface implementation func (m *GetAccountCallflowResponseDataItems0) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *GetAccountCallflowResponseDataItems0) UnmarshalBinary(b []byte) error { var res GetAccountCallflowResponseDataItems0 if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } // GetAccountCallflowResponseDataItems0Featurecode get account callflow response data items0 featurecode // // swagger:model GetAccountCallflowResponseDataItems0Featurecode type GetAccountCallflowResponseDataItems0Featurecode struct { // name // Example: park_and_retrieve Name string `json:"name,omitempty"` // number // Example: 3 Number string `json:"number,omitempty"` } // Validate validates this get account callflow response data items0 featurecode func (m *GetAccountCallflowResponseDataItems0Featurecode) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this get account callflow response data items0 featurecode based on context it is used func (m *GetAccountCallflowResponseDataItems0Featurecode) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *GetAccountCallflowResponseDataItems0Featurecode) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *GetAccountCallflowResponseDataItems0Featurecode) UnmarshalBinary(b []byte) error { var res GetAccountCallflowResponseDataItems0Featurecode if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil }