// 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/strfmt"
	"github.com/go-openapi/swag"
)

// HashicorpCloudIamCreateUserPrincipalRequest CreateUserPrincipalRequest is the request to create a user principal on the IAM service.
//
// swagger:model hashicorp.cloud.iam.CreateUserPrincipalRequest
type HashicorpCloudIamCreateUserPrincipalRequest struct {

	// accept_privacy_policy is a flag indicating user's agreement with the current Privacy Policy
	AcceptPrivacyPolicy bool `json:"accept_privacy_policy,omitempty"`

	// accept_tos is a flag indicating user's agreement with the current ToS
	AcceptTos bool `json:"accept_tos,omitempty"`
}

// Validate validates this hashicorp cloud iam create user principal request
func (m *HashicorpCloudIamCreateUserPrincipalRequest) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this hashicorp cloud iam create user principal request based on context it is used
func (m *HashicorpCloudIamCreateUserPrincipalRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *HashicorpCloudIamCreateUserPrincipalRequest) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *HashicorpCloudIamCreateUserPrincipalRequest) UnmarshalBinary(b []byte) error {
	var res HashicorpCloudIamCreateUserPrincipalRequest
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
