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

// HashicorpCloudWaypointV20241122CreateGitHubSessionResponse hashicorp cloud waypoint v20241122 create git hub session response
//
// swagger:model hashicorp.cloud.waypoint.v20241122.CreateGitHubSessionResponse
type HashicorpCloudWaypointV20241122CreateGitHubSessionResponse struct {

	// auth_url is the URL of the GitHub install & auth flow for the app.
	// Use this for the regular “Authenticate with GitHub” flows from the Waypoint
	// UIs. It will automatically skip the relevant steps if the app is already
	// installed and authorized respective to the current user.
	AuthURL string `json:"auth_url,omitempty"`

	// install_url is the URL of the GitHub install-only flow page for the app.
	// Use this to allow the user to install the app in additional locations.
	InstallURL string `json:"install_url,omitempty"`

	// session_id is the ID of the session created. This is used to track the
	// session and is passed back in the callback.
	SessionID string `json:"session_id,omitempty"`
}

// Validate validates this hashicorp cloud waypoint v20241122 create git hub session response
func (m *HashicorpCloudWaypointV20241122CreateGitHubSessionResponse) Validate(formats strfmt.Registry) error {
	return nil
}

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

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

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