// Code generated by go-swagger; DO NOT EDIT.

package service_principals_service

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"context"
	"net/http"
	"time"

	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	"github.com/go-openapi/strfmt"
)

// NewServicePrincipalsServiceDeleteOrganizationServicePrincipalParams creates a new ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams object,
// with the default timeout for this client.
//
// Default values are not hydrated, since defaults are normally applied by the API server side.
//
// To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewServicePrincipalsServiceDeleteOrganizationServicePrincipalParams() *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams {
	return &ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams{
		timeout: cr.DefaultTimeout,
	}
}

// NewServicePrincipalsServiceDeleteOrganizationServicePrincipalParamsWithTimeout creates a new ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams object
// with the ability to set a timeout on a request.
func NewServicePrincipalsServiceDeleteOrganizationServicePrincipalParamsWithTimeout(timeout time.Duration) *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams {
	return &ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams{
		timeout: timeout,
	}
}

// NewServicePrincipalsServiceDeleteOrganizationServicePrincipalParamsWithContext creates a new ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams object
// with the ability to set a context for a request.
func NewServicePrincipalsServiceDeleteOrganizationServicePrincipalParamsWithContext(ctx context.Context) *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams {
	return &ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams{
		Context: ctx,
	}
}

// NewServicePrincipalsServiceDeleteOrganizationServicePrincipalParamsWithHTTPClient creates a new ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams object
// with the ability to set a custom HTTPClient for a request.
func NewServicePrincipalsServiceDeleteOrganizationServicePrincipalParamsWithHTTPClient(client *http.Client) *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams {
	return &ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams{
		HTTPClient: client,
	}
}

/*
ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams contains all the parameters to send to the API endpoint

	for the service principals service delete organization service principal operation.

	Typically these are written to a http.Request.
*/
type ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams struct {

	/* OrganizationID.

	     organization_id is the unique identifier (UUID) of the organization from
	which the service principal should be deleted.
	*/
	OrganizationID string

	/* PrincipalID.

	   principal_id is the ID of the service principal to be deleted.
	*/
	PrincipalID string

	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}

// WithDefaults hydrates default values in the service principals service delete organization service principal params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) WithDefaults() *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams {
	o.SetDefaults()
	return o
}

// SetDefaults hydrates default values in the service principals service delete organization service principal params (not the query body).
//
// All values with no default are reset to their zero value.
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) SetDefaults() {
	// no default values defined for this parameter
}

// WithTimeout adds the timeout to the service principals service delete organization service principal params
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) WithTimeout(timeout time.Duration) *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams {
	o.SetTimeout(timeout)
	return o
}

// SetTimeout adds the timeout to the service principals service delete organization service principal params
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}

// WithContext adds the context to the service principals service delete organization service principal params
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) WithContext(ctx context.Context) *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams {
	o.SetContext(ctx)
	return o
}

// SetContext adds the context to the service principals service delete organization service principal params
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) SetContext(ctx context.Context) {
	o.Context = ctx
}

// WithHTTPClient adds the HTTPClient to the service principals service delete organization service principal params
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) WithHTTPClient(client *http.Client) *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams {
	o.SetHTTPClient(client)
	return o
}

// SetHTTPClient adds the HTTPClient to the service principals service delete organization service principal params
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}

// WithOrganizationID adds the organizationID to the service principals service delete organization service principal params
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) WithOrganizationID(organizationID string) *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams {
	o.SetOrganizationID(organizationID)
	return o
}

// SetOrganizationID adds the organizationId to the service principals service delete organization service principal params
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) SetOrganizationID(organizationID string) {
	o.OrganizationID = organizationID
}

// WithPrincipalID adds the principalID to the service principals service delete organization service principal params
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) WithPrincipalID(principalID string) *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams {
	o.SetPrincipalID(principalID)
	return o
}

// SetPrincipalID adds the principalId to the service principals service delete organization service principal params
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) SetPrincipalID(principalID string) {
	o.PrincipalID = principalID
}

// WriteToRequest writes these params to a swagger request
func (o *ServicePrincipalsServiceDeleteOrganizationServicePrincipalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {

	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error

	// path param organization_id
	if err := r.SetPathParam("organization_id", o.OrganizationID); err != nil {
		return err
	}

	// path param principal_id
	if err := r.SetPathParam("principal_id", o.PrincipalID); err != nil {
		return err
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
