// 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"
)

// Assignment assignment
//
// swagger:model Assignment
type Assignment struct {

	// Whether or not specified devices should be included or excluded
	// Example: Include
	Action string `json:"action,omitempty"`

	// Whether or not alerting should be disabled for discovered devices
	// Example: false
	DisableAlerting bool `json:"disableAlerting,omitempty"`

	// The ID of the group that discovered devices should be added into
	// Example: 1
	Group int32 `json:"group,omitempty"`

	// The name of the group that discovered devices should be added into
	// Example: qapr
	GroupName string `json:"groupName,omitempty"`

	// tag key
	TagKey string `json:"tagKey,omitempty"`

	// tag value
	TagValue string `json:"tagValue,omitempty"`
}

// Validate validates this assignment
func (m *Assignment) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this assignment based on context it is used
func (m *Assignment) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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