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

// NewServicePrincipalsServiceDeleteProjectServicePrincipalParams creates a new ServicePrincipalsServiceDeleteProjectServicePrincipalParams 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 NewServicePrincipalsServiceDeleteProjectServicePrincipalParams() *ServicePrincipalsServiceDeleteProjectServicePrincipalParams {
	return &ServicePrincipalsServiceDeleteProjectServicePrincipalParams{
		timeout: cr.DefaultTimeout,
	}
}

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

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

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

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

	for the service principals service delete project service principal operation.

	Typically these are written to a http.Request.
*/
type ServicePrincipalsServiceDeleteProjectServicePrincipalParams 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

	/* ProjectID.

	     project_id is the unique identifier (UUID) of the project that
	owns the requested service principal.
	*/
	ProjectID string

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

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

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

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

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

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

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

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

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

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

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

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

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

// WithProjectID adds the projectID to the service principals service delete project service principal params
func (o *ServicePrincipalsServiceDeleteProjectServicePrincipalParams) WithProjectID(projectID string) *ServicePrincipalsServiceDeleteProjectServicePrincipalParams {
	o.SetProjectID(projectID)
	return o
}

// SetProjectID adds the projectId to the service principals service delete project service principal params
func (o *ServicePrincipalsServiceDeleteProjectServicePrincipalParams) SetProjectID(projectID string) {
	o.ProjectID = projectID
}

// WriteToRequest writes these params to a swagger request
func (o *ServicePrincipalsServiceDeleteProjectServicePrincipalParams) 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
	}

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

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