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

// HashicorpCloudWaypointV20241122ActionConfigFlavorGitHub GitHub mode is configured to do various operations on a GitHub repositories
// defined Workflows.
//
// swagger:model hashicorp.cloud.waypoint.v20241122.ActionConfig.Flavor.GitHub
type HashicorpCloudWaypointV20241122ActionConfigFlavorGitHub struct {

	// Enables debug logging on the workflow, if supported by the Method
	EnableDebugLog bool `json:"enable_debug_log,omitempty"`

	// Checked by the user to determine if we can send the magic input param
	// False, i.e. default, means we will not supply the magic param or look
	// up the workflow ID automatically.
	GhEnabledWorkflowParam bool `json:"gh_enabled_workflow_param,omitempty"`

	// The git reference for the workflow. Can be a branch or tag name.
	GitRef string `json:"git_ref,omitempty"`

	// Input keys and values configured in the workflow file. Expected to be
	// turned into a string of json key/vals.
	Inputs map[string]string `json:"inputs,omitempty"`

	// Organization or account name
	InstallName string `json:"install_name,omitempty"`

	// The repo to submit the action to
	Repository string `json:"repository,omitempty"`

	// The workflow to run
	WorkflowID string `json:"workflow_id,omitempty"`
}

// Validate validates this hashicorp cloud waypoint v20241122 action config flavor git hub
func (m *HashicorpCloudWaypointV20241122ActionConfigFlavorGitHub) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this hashicorp cloud waypoint v20241122 action config flavor git hub based on context it is used
func (m *HashicorpCloudWaypointV20241122ActionConfigFlavorGitHub) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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