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

// HashicorpCloudIamNewOrganizationInvitation NewOrganizationInvitation contains the data for the creation of a new organization
// invitation. It's used as part of the request to create a number of org invitations.
//
// swagger:model hashicorp.cloud.iam.NewOrganizationInvitation
type HashicorpCloudIamNewOrganizationInvitation struct {

	// invitee_email is the email address of the person who is being
	// invited to join an organization.
	InviteeEmail string `json:"invitee_email,omitempty"`

	// role is the globally unique identifier that corresponds to the "id" column
	// in cloud-resource-manager roles table.
	// For now, this field can only have the values "roles/admin", "roles/viewer",
	// "roles/contributor".
	Role string `json:"role,omitempty"`
}

// Validate validates this hashicorp cloud iam new organization invitation
func (m *HashicorpCloudIamNewOrganizationInvitation) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this hashicorp cloud iam new organization invitation based on context it is used
func (m *HashicorpCloudIamNewOrganizationInvitation) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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