metadata

package
v3.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 11 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 metadata API

func (*Client) CreatePolicy

func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePolicyCreated, error)

CreatePolicy returns the permissions required to survey and remediate resources

Returns the permissions required to survey and remediate resources.

func (*Client) GetResourceTypes

func (a *Client) GetResourceTypes(params *GetResourceTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetResourceTypesOK, error)

GetResourceTypes lists the resource types supported by fugue

Lists the resource types supported by Fugue.

func (*Client) GetSwagger

func (a *Client) GetSwagger(params *GetSwaggerParams) (*GetSwaggerOK, error)

GetSwagger returns the open API 2 0 specification for this API

Returns the OpenAPI 2.0 specification for this API.

func (*Client) GetSwaggerUI

func (a *Client) GetSwaggerUI(params *GetSwaggerUIParams) (*GetSwaggerUIOK, error)

GetSwaggerUI returns a friendly user interface for the open API 2 0 specification for this API

Returns a friendly user interface for the OpenAPI 2.0 specification for this API.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePolicyCreated, error)

	GetResourceTypes(params *GetResourceTypesParams, authInfo runtime.ClientAuthInfoWriter) (*GetResourceTypesOK, error)

	GetSwagger(params *GetSwaggerParams) (*GetSwaggerOK, error)

	GetSwaggerUI(params *GetSwaggerUIParams) (*GetSwaggerUIOK, 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 metadata API client.

type CreatePolicyBadRequest

type CreatePolicyBadRequest struct {
	Payload *models.BadRequestError
}

CreatePolicyBadRequest handles this case with default header values.

BadRequestError

func NewCreatePolicyBadRequest

func NewCreatePolicyBadRequest() *CreatePolicyBadRequest

NewCreatePolicyBadRequest creates a CreatePolicyBadRequest with default headers values

func (*CreatePolicyBadRequest) Error

func (o *CreatePolicyBadRequest) Error() string

func (*CreatePolicyBadRequest) GetPayload

type CreatePolicyCreated

type CreatePolicyCreated struct {
	Payload *models.Permissions
}

CreatePolicyCreated handles this case with default header values.

Permissions for surveying and remediating the specified resource types.

func NewCreatePolicyCreated

func NewCreatePolicyCreated() *CreatePolicyCreated

NewCreatePolicyCreated creates a CreatePolicyCreated with default headers values

func (*CreatePolicyCreated) Error

func (o *CreatePolicyCreated) Error() string

func (*CreatePolicyCreated) GetPayload

func (o *CreatePolicyCreated) GetPayload() *models.Permissions

type CreatePolicyForbidden

type CreatePolicyForbidden struct {
	Payload *models.AuthorizationError
}

CreatePolicyForbidden handles this case with default header values.

AuthorizationError

func NewCreatePolicyForbidden

func NewCreatePolicyForbidden() *CreatePolicyForbidden

NewCreatePolicyForbidden creates a CreatePolicyForbidden with default headers values

func (*CreatePolicyForbidden) Error

func (o *CreatePolicyForbidden) Error() string

func (*CreatePolicyForbidden) GetPayload

type CreatePolicyInternalServerError

type CreatePolicyInternalServerError struct {
	Payload *models.InternalServerError
}

CreatePolicyInternalServerError handles this case with default header values.

InternalServerError

func NewCreatePolicyInternalServerError

func NewCreatePolicyInternalServerError() *CreatePolicyInternalServerError

NewCreatePolicyInternalServerError creates a CreatePolicyInternalServerError with default headers values

func (*CreatePolicyInternalServerError) Error

func (*CreatePolicyInternalServerError) GetPayload

type CreatePolicyParams

type CreatePolicyParams struct {

	/*Input
	  List of resource types to be able to survey and remediate.

	*/
	Input *models.CreatePolicyInput
	/*Provider
	  Name of the cloud provider.

	*/
	Provider string

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

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

func NewCreatePolicyParams

func NewCreatePolicyParams() *CreatePolicyParams

NewCreatePolicyParams creates a new CreatePolicyParams object with the default values initialized.

func NewCreatePolicyParamsWithContext

func NewCreatePolicyParamsWithContext(ctx context.Context) *CreatePolicyParams

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

func NewCreatePolicyParamsWithHTTPClient

func NewCreatePolicyParamsWithHTTPClient(client *http.Client) *CreatePolicyParams

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

func NewCreatePolicyParamsWithTimeout

func NewCreatePolicyParamsWithTimeout(timeout time.Duration) *CreatePolicyParams

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

func (*CreatePolicyParams) SetContext

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

SetContext adds the context to the create policy params

func (*CreatePolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create policy params

func (*CreatePolicyParams) SetInput

func (o *CreatePolicyParams) SetInput(input *models.CreatePolicyInput)

SetInput adds the input to the create policy params

func (*CreatePolicyParams) SetProvider

func (o *CreatePolicyParams) SetProvider(provider string)

SetProvider adds the provider to the create policy params

func (*CreatePolicyParams) SetTimeout

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

SetTimeout adds the timeout to the create policy params

func (*CreatePolicyParams) WithContext

WithContext adds the context to the create policy params

func (*CreatePolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create policy params

func (*CreatePolicyParams) WithInput

WithInput adds the input to the create policy params

func (*CreatePolicyParams) WithProvider

func (o *CreatePolicyParams) WithProvider(provider string) *CreatePolicyParams

WithProvider adds the provider to the create policy params

func (*CreatePolicyParams) WithTimeout

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

WithTimeout adds the timeout to the create policy params

func (*CreatePolicyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreatePolicyReader

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

CreatePolicyReader is a Reader for the CreatePolicy structure.

func (*CreatePolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreatePolicyUnauthorized

type CreatePolicyUnauthorized struct {
	Payload *models.AuthenticationError
}

CreatePolicyUnauthorized handles this case with default header values.

AuthenticationError

func NewCreatePolicyUnauthorized

func NewCreatePolicyUnauthorized() *CreatePolicyUnauthorized

NewCreatePolicyUnauthorized creates a CreatePolicyUnauthorized with default headers values

func (*CreatePolicyUnauthorized) Error

func (o *CreatePolicyUnauthorized) Error() string

func (*CreatePolicyUnauthorized) GetPayload

type GetResourceTypesBadRequest

type GetResourceTypesBadRequest struct {
	Payload *models.BadRequestError
}

GetResourceTypesBadRequest handles this case with default header values.

BadRequestError

func NewGetResourceTypesBadRequest

func NewGetResourceTypesBadRequest() *GetResourceTypesBadRequest

NewGetResourceTypesBadRequest creates a GetResourceTypesBadRequest with default headers values

func (*GetResourceTypesBadRequest) Error

func (*GetResourceTypesBadRequest) GetPayload

type GetResourceTypesForbidden

type GetResourceTypesForbidden struct {
	Payload *models.AuthorizationError
}

GetResourceTypesForbidden handles this case with default header values.

AuthorizationError

func NewGetResourceTypesForbidden

func NewGetResourceTypesForbidden() *GetResourceTypesForbidden

NewGetResourceTypesForbidden creates a GetResourceTypesForbidden with default headers values

func (*GetResourceTypesForbidden) Error

func (o *GetResourceTypesForbidden) Error() string

func (*GetResourceTypesForbidden) GetPayload

type GetResourceTypesInternalServerError

type GetResourceTypesInternalServerError struct {
	Payload *models.InternalServerError
}

GetResourceTypesInternalServerError handles this case with default header values.

InternalServerError

func NewGetResourceTypesInternalServerError

func NewGetResourceTypesInternalServerError() *GetResourceTypesInternalServerError

NewGetResourceTypesInternalServerError creates a GetResourceTypesInternalServerError with default headers values

func (*GetResourceTypesInternalServerError) Error

func (*GetResourceTypesInternalServerError) GetPayload

type GetResourceTypesOK

type GetResourceTypesOK struct {
	Payload *models.ResourceTypeMetadata
}

GetResourceTypesOK handles this case with default header values.

List of supported resource types.

func NewGetResourceTypesOK

func NewGetResourceTypesOK() *GetResourceTypesOK

NewGetResourceTypesOK creates a GetResourceTypesOK with default headers values

func (*GetResourceTypesOK) Error

func (o *GetResourceTypesOK) Error() string

func (*GetResourceTypesOK) GetPayload

type GetResourceTypesParams

type GetResourceTypesParams struct {

	/*BetaResources
	  Indicates whether resource types in beta will be returned.

	*/
	BetaResources *bool
	/*Provider
	  Name of the cloud provider.

	*/
	Provider string
	/*Region
	  The AWS region for which to return resource types.  Required if provider is aws or aws_govcloud.

	*/
	Region *string

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

GetResourceTypesParams contains all the parameters to send to the API endpoint for the get resource types operation typically these are written to a http.Request

func NewGetResourceTypesParams

func NewGetResourceTypesParams() *GetResourceTypesParams

NewGetResourceTypesParams creates a new GetResourceTypesParams object with the default values initialized.

func NewGetResourceTypesParamsWithContext

func NewGetResourceTypesParamsWithContext(ctx context.Context) *GetResourceTypesParams

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

func NewGetResourceTypesParamsWithHTTPClient

func NewGetResourceTypesParamsWithHTTPClient(client *http.Client) *GetResourceTypesParams

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

func NewGetResourceTypesParamsWithTimeout

func NewGetResourceTypesParamsWithTimeout(timeout time.Duration) *GetResourceTypesParams

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

func (*GetResourceTypesParams) SetBetaResources

func (o *GetResourceTypesParams) SetBetaResources(betaResources *bool)

SetBetaResources adds the betaResources to the get resource types params

func (*GetResourceTypesParams) SetContext

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

SetContext adds the context to the get resource types params

func (*GetResourceTypesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get resource types params

func (*GetResourceTypesParams) SetProvider

func (o *GetResourceTypesParams) SetProvider(provider string)

SetProvider adds the provider to the get resource types params

func (*GetResourceTypesParams) SetRegion

func (o *GetResourceTypesParams) SetRegion(region *string)

SetRegion adds the region to the get resource types params

func (*GetResourceTypesParams) SetTimeout

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

SetTimeout adds the timeout to the get resource types params

func (*GetResourceTypesParams) WithBetaResources

func (o *GetResourceTypesParams) WithBetaResources(betaResources *bool) *GetResourceTypesParams

WithBetaResources adds the betaResources to the get resource types params

func (*GetResourceTypesParams) WithContext

WithContext adds the context to the get resource types params

func (*GetResourceTypesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get resource types params

func (*GetResourceTypesParams) WithProvider

func (o *GetResourceTypesParams) WithProvider(provider string) *GetResourceTypesParams

WithProvider adds the provider to the get resource types params

func (*GetResourceTypesParams) WithRegion

func (o *GetResourceTypesParams) WithRegion(region *string) *GetResourceTypesParams

WithRegion adds the region to the get resource types params

func (*GetResourceTypesParams) WithTimeout

WithTimeout adds the timeout to the get resource types params

func (*GetResourceTypesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetResourceTypesReader

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

GetResourceTypesReader is a Reader for the GetResourceTypes structure.

func (*GetResourceTypesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetResourceTypesUnauthorized

type GetResourceTypesUnauthorized struct {
	Payload *models.AuthenticationError
}

GetResourceTypesUnauthorized handles this case with default header values.

AuthenticationError

func NewGetResourceTypesUnauthorized

func NewGetResourceTypesUnauthorized() *GetResourceTypesUnauthorized

NewGetResourceTypesUnauthorized creates a GetResourceTypesUnauthorized with default headers values

func (*GetResourceTypesUnauthorized) Error

func (*GetResourceTypesUnauthorized) GetPayload

type GetSwaggerInternalServerError

type GetSwaggerInternalServerError struct {
	Payload *models.InternalServerError
}

GetSwaggerInternalServerError handles this case with default header values.

InternalServerError

func NewGetSwaggerInternalServerError

func NewGetSwaggerInternalServerError() *GetSwaggerInternalServerError

NewGetSwaggerInternalServerError creates a GetSwaggerInternalServerError with default headers values

func (*GetSwaggerInternalServerError) Error

func (*GetSwaggerInternalServerError) GetPayload

type GetSwaggerOK

type GetSwaggerOK struct {
	Payload interface{}
}

GetSwaggerOK handles this case with default header values.

OpenAPI 2.0 specification.

func NewGetSwaggerOK

func NewGetSwaggerOK() *GetSwaggerOK

NewGetSwaggerOK creates a GetSwaggerOK with default headers values

func (*GetSwaggerOK) Error

func (o *GetSwaggerOK) Error() string

func (*GetSwaggerOK) GetPayload

func (o *GetSwaggerOK) GetPayload() interface{}

type GetSwaggerParams

type GetSwaggerParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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

func NewGetSwaggerParams

func NewGetSwaggerParams() *GetSwaggerParams

NewGetSwaggerParams creates a new GetSwaggerParams object with the default values initialized.

func NewGetSwaggerParamsWithContext

func NewGetSwaggerParamsWithContext(ctx context.Context) *GetSwaggerParams

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

func NewGetSwaggerParamsWithHTTPClient

func NewGetSwaggerParamsWithHTTPClient(client *http.Client) *GetSwaggerParams

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

func NewGetSwaggerParamsWithTimeout

func NewGetSwaggerParamsWithTimeout(timeout time.Duration) *GetSwaggerParams

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

func (*GetSwaggerParams) SetContext

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

SetContext adds the context to the get swagger params

func (*GetSwaggerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get swagger params

func (*GetSwaggerParams) SetTimeout

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

SetTimeout adds the timeout to the get swagger params

func (*GetSwaggerParams) WithContext

func (o *GetSwaggerParams) WithContext(ctx context.Context) *GetSwaggerParams

WithContext adds the context to the get swagger params

func (*GetSwaggerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get swagger params

func (*GetSwaggerParams) WithTimeout

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

WithTimeout adds the timeout to the get swagger params

func (*GetSwaggerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSwaggerReader

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

GetSwaggerReader is a Reader for the GetSwagger structure.

func (*GetSwaggerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSwaggerUIOK

type GetSwaggerUIOK struct {
	AccessControlAllowHeaders string

	AccessControlAllowMethods string

	AccessControlAllowOrigin string

	ContentType string
}

GetSwaggerUIOK handles this case with default header values.

The Swagger UI

func NewGetSwaggerUIOK

func NewGetSwaggerUIOK() *GetSwaggerUIOK

NewGetSwaggerUIOK creates a GetSwaggerUIOK with default headers values

func (*GetSwaggerUIOK) Error

func (o *GetSwaggerUIOK) Error() string

type GetSwaggerUIParams

type GetSwaggerUIParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSwaggerUIParams contains all the parameters to send to the API endpoint for the get swagger UI operation typically these are written to a http.Request

func NewGetSwaggerUIParams

func NewGetSwaggerUIParams() *GetSwaggerUIParams

NewGetSwaggerUIParams creates a new GetSwaggerUIParams object with the default values initialized.

func NewGetSwaggerUIParamsWithContext

func NewGetSwaggerUIParamsWithContext(ctx context.Context) *GetSwaggerUIParams

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

func NewGetSwaggerUIParamsWithHTTPClient

func NewGetSwaggerUIParamsWithHTTPClient(client *http.Client) *GetSwaggerUIParams

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

func NewGetSwaggerUIParamsWithTimeout

func NewGetSwaggerUIParamsWithTimeout(timeout time.Duration) *GetSwaggerUIParams

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

func (*GetSwaggerUIParams) SetContext

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

SetContext adds the context to the get swagger UI params

func (*GetSwaggerUIParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get swagger UI params

func (*GetSwaggerUIParams) SetTimeout

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

SetTimeout adds the timeout to the get swagger UI params

func (*GetSwaggerUIParams) WithContext

WithContext adds the context to the get swagger UI params

func (*GetSwaggerUIParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get swagger UI params

func (*GetSwaggerUIParams) WithTimeout

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

WithTimeout adds the timeout to the get swagger UI params

func (*GetSwaggerUIParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSwaggerUIReader

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

GetSwaggerUIReader is a Reader for the GetSwaggerUI structure.

func (*GetSwaggerUIReader) ReadResponse

func (o *GetSwaggerUIReader) 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