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

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

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

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

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

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

	for the service principals service delete project service principal key operation.

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

	/* ClientID.

	   client_id is client ID of the service principal key.
	*/
	ClientID string

	/* OrganizationID.

	   organization_id is the organization the service principal key belongs to.
	*/
	OrganizationID string

	/* ProjectID.

	   project_id is the project the service principal key belongs to.
	*/
	ProjectID string

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

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

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

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

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

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

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

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

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

// WithClientID adds the clientID to the service principals service delete project service principal key params
func (o *ServicePrincipalsServiceDeleteProjectServicePrincipalKeyParams) WithClientID(clientID string) *ServicePrincipalsServiceDeleteProjectServicePrincipalKeyParams {
	o.SetClientID(clientID)
	return o
}

// SetClientID adds the clientId to the service principals service delete project service principal key params
func (o *ServicePrincipalsServiceDeleteProjectServicePrincipalKeyParams) SetClientID(clientID string) {
	o.ClientID = clientID
}

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

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

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

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

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

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

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

	// path param organization_id
	if err := r.SetPathParam("organization_id", o.OrganizationID); 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
}
