credential_vault

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for credential vault API

func (*Client) CreateCredential

func (a *Client) CreateCredential(params *CreateCredentialParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCredentialCreated, error)

CreateCredential creates a new credentials set pipe maturity e a r l y a d o p t e r

The body must not provide an ID. An ID is assigned automatically by the Dynatrace server.

func (*Client) DeleteCredential

func (a *Client) DeleteCredential(params *DeleteCredentialParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCredentialNoContent, error)

DeleteCredential deletes the specified credentials set pipe maturity e a r l y a d o p t e r

func (*Client) GetCredential

func (a *Client) GetCredential(params *GetCredentialParams, authInfo runtime.ClientAuthInfoWriter) (*GetCredentialOK, error)

GetCredential gets the metadata of the specified credentials set pipe maturity e a r l y a d o p t e r

The credentials set itself (username/certificate and password) is not included in the response.

func (*Client) GetCredentials

func (a *Client) GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCredentialsOK, error)

GetCredentials lists all sets of credentials for synthetic monitors stored in your environment pipe maturity e a r l y a d o p t e r

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateCredential

UpdateCredential updates the specified credentials set pipe maturity e a r l y a d o p t e r

type ClientService

type ClientService interface {
	CreateCredential(params *CreateCredentialParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCredentialCreated, error)

	DeleteCredential(params *DeleteCredentialParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCredentialNoContent, error)

	GetCredential(params *GetCredentialParams, authInfo runtime.ClientAuthInfoWriter) (*GetCredentialOK, error)

	GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCredentialsOK, error)

	UpdateCredential(params *UpdateCredentialParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCredentialCreated, *UpdateCredentialNoContent, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new credential vault API client.

type CreateCredentialBadRequest

type CreateCredentialBadRequest struct {
	Payload *dynatrace.ErrorEnvelope
}

CreateCredentialBadRequest handles this case with default header values.

Failed. The input is invalid.

func NewCreateCredentialBadRequest

func NewCreateCredentialBadRequest() *CreateCredentialBadRequest

NewCreateCredentialBadRequest creates a CreateCredentialBadRequest with default headers values

func (*CreateCredentialBadRequest) Error

func (*CreateCredentialBadRequest) GetPayload

type CreateCredentialCreated

type CreateCredentialCreated struct {
	Payload *dynatrace.CredentialsResponseElement
}

CreateCredentialCreated handles this case with default header values.

Success. The new credentials set has been created. The response contains the ID of the set.

func NewCreateCredentialCreated

func NewCreateCredentialCreated() *CreateCredentialCreated

NewCreateCredentialCreated creates a CreateCredentialCreated with default headers values

func (*CreateCredentialCreated) Error

func (o *CreateCredentialCreated) Error() string

func (*CreateCredentialCreated) GetPayload

type CreateCredentialParams

type CreateCredentialParams struct {

	/*Body
	  The JSON body of the request. Contains parameters of the new credentials set.

	*/
	Body dynatrace.Credentials

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateCredentialParams contains all the parameters to send to the API endpoint for the create credential operation typically these are written to a http.Request

func NewCreateCredentialParams

func NewCreateCredentialParams() *CreateCredentialParams

NewCreateCredentialParams creates a new CreateCredentialParams object with the default values initialized.

func NewCreateCredentialParamsWithContext

func NewCreateCredentialParamsWithContext(ctx context.Context) *CreateCredentialParams

NewCreateCredentialParamsWithContext creates a new CreateCredentialParams object with the default values initialized, and the ability to set a context for a request

func NewCreateCredentialParamsWithHTTPClient

func NewCreateCredentialParamsWithHTTPClient(client *http.Client) *CreateCredentialParams

NewCreateCredentialParamsWithHTTPClient creates a new CreateCredentialParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateCredentialParamsWithTimeout

func NewCreateCredentialParamsWithTimeout(timeout time.Duration) *CreateCredentialParams

NewCreateCredentialParamsWithTimeout creates a new CreateCredentialParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateCredentialParams) SetBody

func (o *CreateCredentialParams) SetBody(body dynatrace.Credentials)

SetBody adds the body to the create credential params

func (*CreateCredentialParams) SetContext

func (o *CreateCredentialParams) SetContext(ctx context.Context)

SetContext adds the context to the create credential params

func (*CreateCredentialParams) SetHTTPClient

func (o *CreateCredentialParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create credential params

func (*CreateCredentialParams) SetTimeout

func (o *CreateCredentialParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create credential params

func (*CreateCredentialParams) WithBody

WithBody adds the body to the create credential params

func (*CreateCredentialParams) WithContext

WithContext adds the context to the create credential params

func (*CreateCredentialParams) WithHTTPClient

func (o *CreateCredentialParams) WithHTTPClient(client *http.Client) *CreateCredentialParams

WithHTTPClient adds the HTTPClient to the create credential params

func (*CreateCredentialParams) WithTimeout

WithTimeout adds the timeout to the create credential params

func (*CreateCredentialParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateCredentialReader

type CreateCredentialReader struct {
	// contains filtered or unexported fields
}

CreateCredentialReader is a Reader for the CreateCredential structure.

func (*CreateCredentialReader) ReadResponse

func (o *CreateCredentialReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteCredentialNoContent

type DeleteCredentialNoContent struct {
}

DeleteCredentialNoContent handles this case with default header values.

Success. The credentials set has been deleted. Response doesn't have a body.

func NewDeleteCredentialNoContent

func NewDeleteCredentialNoContent() *DeleteCredentialNoContent

NewDeleteCredentialNoContent creates a DeleteCredentialNoContent with default headers values

func (*DeleteCredentialNoContent) Error

func (o *DeleteCredentialNoContent) Error() string

type DeleteCredentialParams

type DeleteCredentialParams struct {

	/*ID
	  The ID of the credentials set to be deleted.

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteCredentialParams contains all the parameters to send to the API endpoint for the delete credential operation typically these are written to a http.Request

func NewDeleteCredentialParams

func NewDeleteCredentialParams() *DeleteCredentialParams

NewDeleteCredentialParams creates a new DeleteCredentialParams object with the default values initialized.

func NewDeleteCredentialParamsWithContext

func NewDeleteCredentialParamsWithContext(ctx context.Context) *DeleteCredentialParams

NewDeleteCredentialParamsWithContext creates a new DeleteCredentialParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteCredentialParamsWithHTTPClient

func NewDeleteCredentialParamsWithHTTPClient(client *http.Client) *DeleteCredentialParams

NewDeleteCredentialParamsWithHTTPClient creates a new DeleteCredentialParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteCredentialParamsWithTimeout

func NewDeleteCredentialParamsWithTimeout(timeout time.Duration) *DeleteCredentialParams

NewDeleteCredentialParamsWithTimeout creates a new DeleteCredentialParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteCredentialParams) SetContext

func (o *DeleteCredentialParams) SetContext(ctx context.Context)

SetContext adds the context to the delete credential params

func (*DeleteCredentialParams) SetHTTPClient

func (o *DeleteCredentialParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete credential params

func (*DeleteCredentialParams) SetID

func (o *DeleteCredentialParams) SetID(id string)

SetID adds the id to the delete credential params

func (*DeleteCredentialParams) SetTimeout

func (o *DeleteCredentialParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete credential params

func (*DeleteCredentialParams) WithContext

WithContext adds the context to the delete credential params

func (*DeleteCredentialParams) WithHTTPClient

func (o *DeleteCredentialParams) WithHTTPClient(client *http.Client) *DeleteCredentialParams

WithHTTPClient adds the HTTPClient to the delete credential params

func (*DeleteCredentialParams) WithID

WithID adds the id to the delete credential params

func (*DeleteCredentialParams) WithTimeout

WithTimeout adds the timeout to the delete credential params

func (*DeleteCredentialParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteCredentialReader

type DeleteCredentialReader struct {
	// contains filtered or unexported fields
}

DeleteCredentialReader is a Reader for the DeleteCredential structure.

func (*DeleteCredentialReader) ReadResponse

func (o *DeleteCredentialReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetCredentialOK

type GetCredentialOK struct {
	Payload *dynatrace.CredentialsResponseElement
}

GetCredentialOK handles this case with default header values.

Success. The response contains the metadata of the credentials set.

func NewGetCredentialOK

func NewGetCredentialOK() *GetCredentialOK

NewGetCredentialOK creates a GetCredentialOK with default headers values

func (*GetCredentialOK) Error

func (o *GetCredentialOK) Error() string

func (*GetCredentialOK) GetPayload

type GetCredentialParams

type GetCredentialParams struct {

	/*ID
	  The Dynatrace entity ID of the required credentials set.

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetCredentialParams contains all the parameters to send to the API endpoint for the get credential operation typically these are written to a http.Request

func NewGetCredentialParams

func NewGetCredentialParams() *GetCredentialParams

NewGetCredentialParams creates a new GetCredentialParams object with the default values initialized.

func NewGetCredentialParamsWithContext

func NewGetCredentialParamsWithContext(ctx context.Context) *GetCredentialParams

NewGetCredentialParamsWithContext creates a new GetCredentialParams object with the default values initialized, and the ability to set a context for a request

func NewGetCredentialParamsWithHTTPClient

func NewGetCredentialParamsWithHTTPClient(client *http.Client) *GetCredentialParams

NewGetCredentialParamsWithHTTPClient creates a new GetCredentialParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetCredentialParamsWithTimeout

func NewGetCredentialParamsWithTimeout(timeout time.Duration) *GetCredentialParams

NewGetCredentialParamsWithTimeout creates a new GetCredentialParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetCredentialParams) SetContext

func (o *GetCredentialParams) SetContext(ctx context.Context)

SetContext adds the context to the get credential params

func (*GetCredentialParams) SetHTTPClient

func (o *GetCredentialParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get credential params

func (*GetCredentialParams) SetID

func (o *GetCredentialParams) SetID(id string)

SetID adds the id to the get credential params

func (*GetCredentialParams) SetTimeout

func (o *GetCredentialParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get credential params

func (*GetCredentialParams) WithContext

WithContext adds the context to the get credential params

func (*GetCredentialParams) WithHTTPClient

func (o *GetCredentialParams) WithHTTPClient(client *http.Client) *GetCredentialParams

WithHTTPClient adds the HTTPClient to the get credential params

func (*GetCredentialParams) WithID

WithID adds the id to the get credential params

func (*GetCredentialParams) WithTimeout

func (o *GetCredentialParams) WithTimeout(timeout time.Duration) *GetCredentialParams

WithTimeout adds the timeout to the get credential params

func (*GetCredentialParams) WriteToRequest

func (o *GetCredentialParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetCredentialReader

type GetCredentialReader struct {
	// contains filtered or unexported fields
}

GetCredentialReader is a Reader for the GetCredential structure.

func (*GetCredentialReader) ReadResponse

func (o *GetCredentialReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetCredentialsOK

type GetCredentialsOK struct {
	Payload *dynatrace.CredentialsList
}

GetCredentialsOK handles this case with default header values.

successful operation

func NewGetCredentialsOK

func NewGetCredentialsOK() *GetCredentialsOK

NewGetCredentialsOK creates a GetCredentialsOK with default headers values

func (*GetCredentialsOK) Error

func (o *GetCredentialsOK) Error() string

func (*GetCredentialsOK) GetPayload

func (o *GetCredentialsOK) GetPayload() *dynatrace.CredentialsList

type GetCredentialsParams

type GetCredentialsParams struct {

	/*Type
	  Filters the result by the specified credentials type.

	*/
	Type *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetCredentialsParams contains all the parameters to send to the API endpoint for the get credentials operation typically these are written to a http.Request

func NewGetCredentialsParams

func NewGetCredentialsParams() *GetCredentialsParams

NewGetCredentialsParams creates a new GetCredentialsParams object with the default values initialized.

func NewGetCredentialsParamsWithContext

func NewGetCredentialsParamsWithContext(ctx context.Context) *GetCredentialsParams

NewGetCredentialsParamsWithContext creates a new GetCredentialsParams object with the default values initialized, and the ability to set a context for a request

func NewGetCredentialsParamsWithHTTPClient

func NewGetCredentialsParamsWithHTTPClient(client *http.Client) *GetCredentialsParams

NewGetCredentialsParamsWithHTTPClient creates a new GetCredentialsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetCredentialsParamsWithTimeout

func NewGetCredentialsParamsWithTimeout(timeout time.Duration) *GetCredentialsParams

NewGetCredentialsParamsWithTimeout creates a new GetCredentialsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetCredentialsParams) SetContext

func (o *GetCredentialsParams) SetContext(ctx context.Context)

SetContext adds the context to the get credentials params

func (*GetCredentialsParams) SetHTTPClient

func (o *GetCredentialsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get credentials params

func (*GetCredentialsParams) SetTimeout

func (o *GetCredentialsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get credentials params

func (*GetCredentialsParams) SetType

func (o *GetCredentialsParams) SetType(typeVar *string)

SetType adds the type to the get credentials params

func (*GetCredentialsParams) WithContext

WithContext adds the context to the get credentials params

func (*GetCredentialsParams) WithHTTPClient

func (o *GetCredentialsParams) WithHTTPClient(client *http.Client) *GetCredentialsParams

WithHTTPClient adds the HTTPClient to the get credentials params

func (*GetCredentialsParams) WithTimeout

func (o *GetCredentialsParams) WithTimeout(timeout time.Duration) *GetCredentialsParams

WithTimeout adds the timeout to the get credentials params

func (*GetCredentialsParams) WithType

func (o *GetCredentialsParams) WithType(typeVar *string) *GetCredentialsParams

WithType adds the typeVar to the get credentials params

func (*GetCredentialsParams) WriteToRequest

func (o *GetCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetCredentialsReader

type GetCredentialsReader struct {
	// contains filtered or unexported fields
}

GetCredentialsReader is a Reader for the GetCredentials structure.

func (*GetCredentialsReader) ReadResponse

func (o *GetCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateCredentialBadRequest

type UpdateCredentialBadRequest struct {
	Payload *dynatrace.ErrorEnvelope
}

UpdateCredentialBadRequest handles this case with default header values.

Failed. The input is invalid.

func NewUpdateCredentialBadRequest

func NewUpdateCredentialBadRequest() *UpdateCredentialBadRequest

NewUpdateCredentialBadRequest creates a UpdateCredentialBadRequest with default headers values

func (*UpdateCredentialBadRequest) Error

func (*UpdateCredentialBadRequest) GetPayload

type UpdateCredentialCreated

type UpdateCredentialCreated struct {
	Payload *dynatrace.CredentialsResponseElement
}

UpdateCredentialCreated handles this case with default header values.

Success. The new credentials set has been created. The response contains the ID of the set.

func NewUpdateCredentialCreated

func NewUpdateCredentialCreated() *UpdateCredentialCreated

NewUpdateCredentialCreated creates a UpdateCredentialCreated with default headers values

func (*UpdateCredentialCreated) Error

func (o *UpdateCredentialCreated) Error() string

func (*UpdateCredentialCreated) GetPayload

type UpdateCredentialNoContent

type UpdateCredentialNoContent struct {
}

UpdateCredentialNoContent handles this case with default header values.

Success. The credentials set has been updated. Response doesn't have a body.

func NewUpdateCredentialNoContent

func NewUpdateCredentialNoContent() *UpdateCredentialNoContent

NewUpdateCredentialNoContent creates a UpdateCredentialNoContent with default headers values

func (*UpdateCredentialNoContent) Error

func (o *UpdateCredentialNoContent) Error() string

type UpdateCredentialParams

type UpdateCredentialParams struct {

	/*Body
	  The JSON body of the request. Contains updated parameters of the credentials set.

	*/
	Body dynatrace.Credentials
	/*ID
	  The Dynatrace entity ID of the credentials set to be updated.

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateCredentialParams contains all the parameters to send to the API endpoint for the update credential operation typically these are written to a http.Request

func NewUpdateCredentialParams

func NewUpdateCredentialParams() *UpdateCredentialParams

NewUpdateCredentialParams creates a new UpdateCredentialParams object with the default values initialized.

func NewUpdateCredentialParamsWithContext

func NewUpdateCredentialParamsWithContext(ctx context.Context) *UpdateCredentialParams

NewUpdateCredentialParamsWithContext creates a new UpdateCredentialParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateCredentialParamsWithHTTPClient

func NewUpdateCredentialParamsWithHTTPClient(client *http.Client) *UpdateCredentialParams

NewUpdateCredentialParamsWithHTTPClient creates a new UpdateCredentialParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateCredentialParamsWithTimeout

func NewUpdateCredentialParamsWithTimeout(timeout time.Duration) *UpdateCredentialParams

NewUpdateCredentialParamsWithTimeout creates a new UpdateCredentialParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateCredentialParams) SetBody

func (o *UpdateCredentialParams) SetBody(body dynatrace.Credentials)

SetBody adds the body to the update credential params

func (*UpdateCredentialParams) SetContext

func (o *UpdateCredentialParams) SetContext(ctx context.Context)

SetContext adds the context to the update credential params

func (*UpdateCredentialParams) SetHTTPClient

func (o *UpdateCredentialParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update credential params

func (*UpdateCredentialParams) SetID

func (o *UpdateCredentialParams) SetID(id string)

SetID adds the id to the update credential params

func (*UpdateCredentialParams) SetTimeout

func (o *UpdateCredentialParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update credential params

func (*UpdateCredentialParams) WithBody

WithBody adds the body to the update credential params

func (*UpdateCredentialParams) WithContext

WithContext adds the context to the update credential params

func (*UpdateCredentialParams) WithHTTPClient

func (o *UpdateCredentialParams) WithHTTPClient(client *http.Client) *UpdateCredentialParams

WithHTTPClient adds the HTTPClient to the update credential params

func (*UpdateCredentialParams) WithID

WithID adds the id to the update credential params

func (*UpdateCredentialParams) WithTimeout

WithTimeout adds the timeout to the update credential params

func (*UpdateCredentialParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateCredentialReader

type UpdateCredentialReader struct {
	// contains filtered or unexported fields
}

UpdateCredentialReader is a Reader for the UpdateCredential structure.

func (*UpdateCredentialReader) ReadResponse

func (o *UpdateCredentialReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL