openapi

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package openapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Package openapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Package openapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Index

Constants

View Source
const (
	BasicAuthScopes  = "basicAuth.Scopes"
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func NewCreateDatabaseRequest

func NewCreateDatabaseRequest(server string, organization string, project string, database string, body CreateDatabaseJSONRequestBody) (*http.Request, error)

NewCreateDatabaseRequest calls the generic CreateDatabase builder with application/json body

func NewCreateDatabaseRequestWithBody

func NewCreateDatabaseRequestWithBody(server string, organization string, project string, database string, contentType string, body io.Reader) (*http.Request, error)

NewCreateDatabaseRequestWithBody generates requests for CreateDatabase with any type of body

func NewCreateProjectRequest

func NewCreateProjectRequest(server string, organization string, project string, body CreateProjectJSONRequestBody) (*http.Request, error)

NewCreateProjectRequest calls the generic CreateProject builder with application/json body

func NewCreateProjectRequestWithBody

func NewCreateProjectRequestWithBody(server string, organization string, project string, contentType string, body io.Reader) (*http.Request, error)

NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body

func NewDeleteDatabaseRequest

func NewDeleteDatabaseRequest(server string, organization string, project string, database string, params *DeleteDatabaseParams) (*http.Request, error)

NewDeleteDatabaseRequest generates requests for DeleteDatabase

func NewDeleteProjectRequest

func NewDeleteProjectRequest(server string, organization string, project string, params *DeleteProjectParams) (*http.Request, error)

NewDeleteProjectRequest generates requests for DeleteProject

func NewGetAllDatabasesRequest

func NewGetAllDatabasesRequest(server string, params *GetAllDatabasesParams) (*http.Request, error)

NewGetAllDatabasesRequest generates requests for GetAllDatabases

func NewGetAllProjectsRequest

func NewGetAllProjectsRequest(server string, params *GetAllProjectsParams) (*http.Request, error)

NewGetAllProjectsRequest generates requests for GetAllProjects

func NewGetDatabaseRequest

func NewGetDatabaseRequest(server string, organization string, project string, database string) (*http.Request, error)

NewGetDatabaseRequest generates requests for GetDatabase

func NewGetDatabasesRequest

func NewGetDatabasesRequest(server string, organization string, project string, params *GetDatabasesParams) (*http.Request, error)

NewGetDatabasesRequest generates requests for GetDatabases

func NewGetOrganizationDatabasesRequest

func NewGetOrganizationDatabasesRequest(server string, organization string, params *GetOrganizationDatabasesParams) (*http.Request, error)

NewGetOrganizationDatabasesRequest generates requests for GetOrganizationDatabases

func NewGetProjectRequest

func NewGetProjectRequest(server string, organization string, project string) (*http.Request, error)

NewGetProjectRequest generates requests for GetProject

func NewGetProjectsRequest

func NewGetProjectsRequest(server string, organization string, params *GetProjectsParams) (*http.Request, error)

NewGetProjectsRequest generates requests for GetProjects

func NewPatchDatabaseRequestWithApplicationJSONPatchPlusJSONBody

func NewPatchDatabaseRequestWithApplicationJSONPatchPlusJSONBody(server string, organization string, project string, database string, body PatchDatabaseApplicationJSONPatchPlusJSONRequestBody) (*http.Request, error)

NewPatchDatabaseRequestWithApplicationJSONPatchPlusJSONBody calls the generic PatchDatabase builder with application/json-patch+json body

func NewPatchDatabaseRequestWithBody

func NewPatchDatabaseRequestWithBody(server string, organization string, project string, database string, contentType string, body io.Reader) (*http.Request, error)

NewPatchDatabaseRequestWithBody generates requests for PatchDatabase with any type of body

func NewPatchProjectRequestWithApplicationJSONPatchPlusJSONBody

func NewPatchProjectRequestWithApplicationJSONPatchPlusJSONBody(server string, organization string, project string, body PatchProjectApplicationJSONPatchPlusJSONRequestBody) (*http.Request, error)

NewPatchProjectRequestWithApplicationJSONPatchPlusJSONBody calls the generic PatchProject builder with application/json-patch+json body

func NewPatchProjectRequestWithBody

func NewPatchProjectRequestWithBody(server string, organization string, project string, contentType string, body io.Reader) (*http.Request, error)

NewPatchProjectRequestWithBody generates requests for PatchProject with any type of body

func NewUpdateDbaPasswordRequest added in v1.1.0

func NewUpdateDbaPasswordRequest(server string, organization string, project string, database string, params *UpdateDbaPasswordParams, body UpdateDbaPasswordJSONRequestBody) (*http.Request, error)

NewUpdateDbaPasswordRequest calls the generic UpdateDbaPassword builder with application/json body

func NewUpdateDbaPasswordRequestWithBody added in v1.1.0

func NewUpdateDbaPasswordRequestWithBody(server string, organization string, project string, database string, params *UpdateDbaPasswordParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateDbaPasswordRequestWithBody generates requests for UpdateDbaPassword with any type of body

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateDatabase

func (c *Client) CreateDatabase(ctx context.Context, organization string, project string, database string, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateDatabaseWithBody

func (c *Client) CreateDatabaseWithBody(ctx context.Context, organization string, project string, database string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, organization string, project string, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateProjectWithBody

func (c *Client) CreateProjectWithBody(ctx context.Context, organization string, project string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteDatabase

func (c *Client) DeleteDatabase(ctx context.Context, organization string, project string, database string, params *DeleteDatabaseParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteProject

func (c *Client) DeleteProject(ctx context.Context, organization string, project string, params *DeleteProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllDatabases

func (c *Client) GetAllDatabases(ctx context.Context, params *GetAllDatabasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllProjects

func (c *Client) GetAllProjects(ctx context.Context, params *GetAllProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDatabase

func (c *Client) GetDatabase(ctx context.Context, organization string, project string, database string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDatabases

func (c *Client) GetDatabases(ctx context.Context, organization string, project string, params *GetDatabasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOrganizationDatabases

func (c *Client) GetOrganizationDatabases(ctx context.Context, organization string, params *GetOrganizationDatabasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, organization string, project string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetProjects

func (c *Client) GetProjects(ctx context.Context, organization string, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchDatabaseWithApplicationJSONPatchPlusJSONBody

func (c *Client) PatchDatabaseWithApplicationJSONPatchPlusJSONBody(ctx context.Context, organization string, project string, database string, body PatchDatabaseApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchDatabaseWithBody

func (c *Client) PatchDatabaseWithBody(ctx context.Context, organization string, project string, database string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchProjectWithApplicationJSONPatchPlusJSONBody

func (c *Client) PatchProjectWithApplicationJSONPatchPlusJSONBody(ctx context.Context, organization string, project string, body PatchProjectApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchProjectWithBody

func (c *Client) PatchProjectWithBody(ctx context.Context, organization string, project string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateDbaPassword added in v1.1.0

func (c *Client) UpdateDbaPassword(ctx context.Context, organization string, project string, database string, params *UpdateDbaPasswordParams, body UpdateDbaPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateDbaPasswordWithBody added in v1.1.0

func (c *Client) UpdateDbaPasswordWithBody(ctx context.Context, organization string, project string, database string, params *UpdateDbaPasswordParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetAllDatabases request
	GetAllDatabases(ctx context.Context, params *GetAllDatabasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrganizationDatabases request
	GetOrganizationDatabases(ctx context.Context, organization string, params *GetOrganizationDatabasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDatabases request
	GetDatabases(ctx context.Context, organization string, project string, params *GetDatabasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDatabase request
	DeleteDatabase(ctx context.Context, organization string, project string, database string, params *DeleteDatabaseParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDatabase request
	GetDatabase(ctx context.Context, organization string, project string, database string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PatchDatabaseWithBody request with any body
	PatchDatabaseWithBody(ctx context.Context, organization string, project string, database string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PatchDatabaseWithApplicationJSONPatchPlusJSONBody(ctx context.Context, organization string, project string, database string, body PatchDatabaseApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateDatabaseWithBody request with any body
	CreateDatabaseWithBody(ctx context.Context, organization string, project string, database string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateDatabase(ctx context.Context, organization string, project string, database string, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateDbaPasswordWithBody request with any body
	UpdateDbaPasswordWithBody(ctx context.Context, organization string, project string, database string, params *UpdateDbaPasswordParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateDbaPassword(ctx context.Context, organization string, project string, database string, params *UpdateDbaPasswordParams, body UpdateDbaPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllProjects request
	GetAllProjects(ctx context.Context, params *GetAllProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjects request
	GetProjects(ctx context.Context, organization string, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteProject request
	DeleteProject(ctx context.Context, organization string, project string, params *DeleteProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProject request
	GetProject(ctx context.Context, organization string, project string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PatchProjectWithBody request with any body
	PatchProjectWithBody(ctx context.Context, organization string, project string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PatchProjectWithApplicationJSONPatchPlusJSONBody(ctx context.Context, organization string, project string, body PatchProjectApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateProjectWithBody request with any body
	CreateProjectWithBody(ctx context.Context, organization string, project string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateProject(ctx context.Context, organization string, project string, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateDatabaseWithBodyWithResponse

func (c *ClientWithResponses) CreateDatabaseWithBodyWithResponse(ctx context.Context, organization string, project string, database string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseResponse, error)

CreateDatabaseWithBodyWithResponse request with arbitrary body returning *CreateDatabaseResponse

func (*ClientWithResponses) CreateDatabaseWithResponse

func (c *ClientWithResponses) CreateDatabaseWithResponse(ctx context.Context, organization string, project string, database string, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseResponse, error)

func (*ClientWithResponses) CreateProjectWithBodyWithResponse

func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, organization string, project string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectResponse

func (*ClientWithResponses) CreateProjectWithResponse

func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, organization string, project string, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

func (*ClientWithResponses) DeleteDatabaseWithResponse

func (c *ClientWithResponses) DeleteDatabaseWithResponse(ctx context.Context, organization string, project string, database string, params *DeleteDatabaseParams, reqEditors ...RequestEditorFn) (*DeleteDatabaseResponse, error)

DeleteDatabaseWithResponse request returning *DeleteDatabaseResponse

func (*ClientWithResponses) DeleteProjectWithResponse

func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, organization string, project string, params *DeleteProjectParams, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)

DeleteProjectWithResponse request returning *DeleteProjectResponse

func (*ClientWithResponses) GetAllDatabasesWithResponse

func (c *ClientWithResponses) GetAllDatabasesWithResponse(ctx context.Context, params *GetAllDatabasesParams, reqEditors ...RequestEditorFn) (*GetAllDatabasesResponse, error)

GetAllDatabasesWithResponse request returning *GetAllDatabasesResponse

func (*ClientWithResponses) GetAllProjectsWithResponse

func (c *ClientWithResponses) GetAllProjectsWithResponse(ctx context.Context, params *GetAllProjectsParams, reqEditors ...RequestEditorFn) (*GetAllProjectsResponse, error)

GetAllProjectsWithResponse request returning *GetAllProjectsResponse

func (*ClientWithResponses) GetDatabaseWithResponse

func (c *ClientWithResponses) GetDatabaseWithResponse(ctx context.Context, organization string, project string, database string, reqEditors ...RequestEditorFn) (*GetDatabaseResponse, error)

GetDatabaseWithResponse request returning *GetDatabaseResponse

func (*ClientWithResponses) GetDatabasesWithResponse

func (c *ClientWithResponses) GetDatabasesWithResponse(ctx context.Context, organization string, project string, params *GetDatabasesParams, reqEditors ...RequestEditorFn) (*GetDatabasesResponse, error)

GetDatabasesWithResponse request returning *GetDatabasesResponse

func (*ClientWithResponses) GetOrganizationDatabasesWithResponse

func (c *ClientWithResponses) GetOrganizationDatabasesWithResponse(ctx context.Context, organization string, params *GetOrganizationDatabasesParams, reqEditors ...RequestEditorFn) (*GetOrganizationDatabasesResponse, error)

GetOrganizationDatabasesWithResponse request returning *GetOrganizationDatabasesResponse

func (*ClientWithResponses) GetProjectWithResponse

func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, organization string, project string, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)

GetProjectWithResponse request returning *GetProjectResponse

func (*ClientWithResponses) GetProjectsWithResponse

func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, organization string, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)

GetProjectsWithResponse request returning *GetProjectsResponse

func (*ClientWithResponses) PatchDatabaseWithApplicationJSONPatchPlusJSONBodyWithResponse

func (c *ClientWithResponses) PatchDatabaseWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, organization string, project string, database string, body PatchDatabaseApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchDatabaseResponse, error)

func (*ClientWithResponses) PatchDatabaseWithBodyWithResponse

func (c *ClientWithResponses) PatchDatabaseWithBodyWithResponse(ctx context.Context, organization string, project string, database string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchDatabaseResponse, error)

PatchDatabaseWithBodyWithResponse request with arbitrary body returning *PatchDatabaseResponse

func (*ClientWithResponses) PatchProjectWithApplicationJSONPatchPlusJSONBodyWithResponse

func (c *ClientWithResponses) PatchProjectWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, organization string, project string, body PatchProjectApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchProjectResponse, error)

func (*ClientWithResponses) PatchProjectWithBodyWithResponse

func (c *ClientWithResponses) PatchProjectWithBodyWithResponse(ctx context.Context, organization string, project string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchProjectResponse, error)

PatchProjectWithBodyWithResponse request with arbitrary body returning *PatchProjectResponse

func (*ClientWithResponses) UpdateDbaPasswordWithBodyWithResponse added in v1.1.0

func (c *ClientWithResponses) UpdateDbaPasswordWithBodyWithResponse(ctx context.Context, organization string, project string, database string, params *UpdateDbaPasswordParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDbaPasswordResponse, error)

UpdateDbaPasswordWithBodyWithResponse request with arbitrary body returning *UpdateDbaPasswordResponse

func (*ClientWithResponses) UpdateDbaPasswordWithResponse added in v1.1.0

func (c *ClientWithResponses) UpdateDbaPasswordWithResponse(ctx context.Context, organization string, project string, database string, params *UpdateDbaPasswordParams, body UpdateDbaPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDbaPasswordResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetAllDatabasesWithResponse request
	GetAllDatabasesWithResponse(ctx context.Context, params *GetAllDatabasesParams, reqEditors ...RequestEditorFn) (*GetAllDatabasesResponse, error)

	// GetOrganizationDatabasesWithResponse request
	GetOrganizationDatabasesWithResponse(ctx context.Context, organization string, params *GetOrganizationDatabasesParams, reqEditors ...RequestEditorFn) (*GetOrganizationDatabasesResponse, error)

	// GetDatabasesWithResponse request
	GetDatabasesWithResponse(ctx context.Context, organization string, project string, params *GetDatabasesParams, reqEditors ...RequestEditorFn) (*GetDatabasesResponse, error)

	// DeleteDatabaseWithResponse request
	DeleteDatabaseWithResponse(ctx context.Context, organization string, project string, database string, params *DeleteDatabaseParams, reqEditors ...RequestEditorFn) (*DeleteDatabaseResponse, error)

	// GetDatabaseWithResponse request
	GetDatabaseWithResponse(ctx context.Context, organization string, project string, database string, reqEditors ...RequestEditorFn) (*GetDatabaseResponse, error)

	// PatchDatabaseWithBodyWithResponse request with any body
	PatchDatabaseWithBodyWithResponse(ctx context.Context, organization string, project string, database string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchDatabaseResponse, error)

	PatchDatabaseWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, organization string, project string, database string, body PatchDatabaseApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchDatabaseResponse, error)

	// CreateDatabaseWithBodyWithResponse request with any body
	CreateDatabaseWithBodyWithResponse(ctx context.Context, organization string, project string, database string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDatabaseResponse, error)

	CreateDatabaseWithResponse(ctx context.Context, organization string, project string, database string, body CreateDatabaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDatabaseResponse, error)

	// UpdateDbaPasswordWithBodyWithResponse request with any body
	UpdateDbaPasswordWithBodyWithResponse(ctx context.Context, organization string, project string, database string, params *UpdateDbaPasswordParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDbaPasswordResponse, error)

	UpdateDbaPasswordWithResponse(ctx context.Context, organization string, project string, database string, params *UpdateDbaPasswordParams, body UpdateDbaPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDbaPasswordResponse, error)

	// GetAllProjectsWithResponse request
	GetAllProjectsWithResponse(ctx context.Context, params *GetAllProjectsParams, reqEditors ...RequestEditorFn) (*GetAllProjectsResponse, error)

	// GetProjectsWithResponse request
	GetProjectsWithResponse(ctx context.Context, organization string, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)

	// DeleteProjectWithResponse request
	DeleteProjectWithResponse(ctx context.Context, organization string, project string, params *DeleteProjectParams, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)

	// GetProjectWithResponse request
	GetProjectWithResponse(ctx context.Context, organization string, project string, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)

	// PatchProjectWithBodyWithResponse request with any body
	PatchProjectWithBodyWithResponse(ctx context.Context, organization string, project string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchProjectResponse, error)

	PatchProjectWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, organization string, project string, body PatchProjectApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchProjectResponse, error)

	// CreateProjectWithBodyWithResponse request with any body
	CreateProjectWithBodyWithResponse(ctx context.Context, organization string, project string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

	CreateProjectWithResponse(ctx context.Context, organization string, project string, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateDatabaseJSONRequestBody

type CreateDatabaseJSONRequestBody = DatabaseCreateUpdateModel

CreateDatabaseJSONRequestBody defines body for CreateDatabase for application/json ContentType.

type CreateDatabaseResponse

type CreateDatabaseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DatabaseModel
	JSON201      *DatabaseModel
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON404      *ErrorContent
	JSON409      *ErrorContent
	JSON415      *ErrorContent
	JSON422      *ErrorContent
	JSON500      *ErrorContent
}

func ParseCreateDatabaseResponse

func ParseCreateDatabaseResponse(rsp *http.Response) (*CreateDatabaseResponse, error)

ParseCreateDatabaseResponse parses an HTTP response from a CreateDatabaseWithResponse call

func (CreateDatabaseResponse) Status

func (r CreateDatabaseResponse) Status() string

Status returns HTTPResponse.Status

func (CreateDatabaseResponse) StatusCode

func (r CreateDatabaseResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateProjectJSONRequestBody

type CreateProjectJSONRequestBody = ProjectModel

CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.

type CreateProjectResponse

type CreateProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectModel
	JSON201      *ProjectModel
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON404      *ErrorContent
	JSON409      *ErrorContent
	JSON415      *ErrorContent
	JSON500      *ErrorContent
}

func ParseCreateProjectResponse

func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error)

ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call

func (CreateProjectResponse) Status

func (r CreateProjectResponse) Status() string

Status returns HTTPResponse.Status

func (CreateProjectResponse) StatusCode

func (r CreateProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DatabaseCreateUpdateModel

type DatabaseCreateUpdateModel struct {
	// Organization The organization that the database belongs to
	Organization string `cty:"organization" hcl:"organization" json:"organization" tfsdk:"organization"`

	// Project The project that the database belongs to
	Project string `cty:"project" hcl:"project" json:"project" tfsdk:"project"`

	// Name The name of the database
	Name string `cty:"name" hcl:"name" json:"name" tfsdk:"name"`

	// Labels User-defined labels attached to the resource that can be used for filtering
	Labels *map[string]string `cty:"labels" hcl:"labels" json:"labels,omitempty" tfsdk:"labels"`

	// DbaPassword The password for the DBA user. Can only be specified when creating a database.
	DbaPassword *string `cty:"dba_password" hcl:"dba_password" json:"dbaPassword,omitempty" tfsdk:"dba_password"`

	// Tier The service tier for the database. If omitted, the project service tier is inherited.
	Tier *string `cty:"tier" hcl:"tier" json:"tier,omitempty" tfsdk:"tier"`

	// ResourceVersion The version of the resource. When specified in a `PUT` request payload, indicates that the resoure should be updated, and is used by the system to guard against concurrent updates.
	ResourceVersion *string                  `json:"resourceVersion,omitempty" tfsdk:"-"`
	Maintenance     *MaintenanceModel        `cty:"maintenance" hcl:"maintenance" json:"maintenance,omitempty" tfsdk:"maintenance"`
	Properties      *DatabasePropertiesModel `cty:"properties" hcl:"properties" json:"properties,omitempty" tfsdk:"properties"`
	RestoreFrom     *RestoreFromModel        `cty:"restore_from" hcl:"restore_from" json:"restoreFrom,omitempty" tfsdk:"restore_from"`
	Status          *DatabaseStatusModel     `cty:"status" hcl:"status" json:"status,omitempty" tfsdk:"status"`
}

DatabaseCreateUpdateModel defines model for DatabaseCreateUpdateModel.

type DatabaseModel

type DatabaseModel struct {
	// Organization The organization that the database belongs to
	Organization string `cty:"organization" hcl:"organization" json:"organization" tfsdk:"organization"`

	// Project The project that the database belongs to
	Project string `cty:"project" hcl:"project" json:"project" tfsdk:"project"`

	// Name The name of the database
	Name string `cty:"name" hcl:"name" json:"name" tfsdk:"name"`

	// Labels User-defined labels attached to the resource that can be used for filtering
	Labels *map[string]string `cty:"labels" hcl:"labels" json:"labels,omitempty" tfsdk:"labels"`

	// Tier The service tier for the database. If omitted, the project service tier is inherited.
	Tier *string `cty:"tier" hcl:"tier" json:"tier,omitempty" tfsdk:"tier"`

	// ResourceVersion The version of the resource. When specified in a `PUT` request payload, indicates that the resoure should be updated, and is used by the system to guard against concurrent updates.
	ResourceVersion *string                  `json:"resourceVersion,omitempty" tfsdk:"-"`
	Maintenance     *MaintenanceModel        `cty:"maintenance" hcl:"maintenance" json:"maintenance,omitempty" tfsdk:"maintenance"`
	Properties      *DatabasePropertiesModel `cty:"properties" hcl:"properties" json:"properties,omitempty" tfsdk:"properties"`
	RestoreFrom     *RestoreFromModel        `cty:"restore_from" hcl:"restore_from" json:"restoreFrom,omitempty" tfsdk:"restore_from"`
	Status          *DatabaseStatusModel     `cty:"status" hcl:"status" json:"status,omitempty" tfsdk:"status"`
}

DatabaseModel defines model for DatabaseModel.

type DatabasePropertiesModel

type DatabasePropertiesModel struct {
	// ArchiveDiskSize The size of the archive volumes for the database. Can be only updated to increase the volume size.
	ArchiveDiskSize *string `cty:"archive_disk_size" hcl:"archive_disk_size" json:"archiveDiskSize,omitempty" tfsdk:"archive_disk_size"`

	// JournalDiskSize The size of the journal volumes for the database. Can be only updated to increase the volume size.
	JournalDiskSize *string `cty:"journal_disk_size" hcl:"journal_disk_size" json:"journalDiskSize,omitempty" tfsdk:"journal_disk_size"`

	// TierParameters Opaque parameters supplied to database service tier.
	TierParameters *map[string]string `cty:"tier_parameters" hcl:"tier_parameters" json:"tierParameters,omitempty" tfsdk:"tier_parameters"`

	// InheritTierParameters Whether to inherit tier parameters from the project if the database service tier matches the project.
	InheritTierParameters *bool `json:"inheritTierParameters,omitempty" tfsdk:"-"`

	// ProductVersion The version/tag of the NuoDB image to use. For available tags, see https://hub.docker.com/r/nuodb/nuodb-ce/tags. If omitted, the database version will be inherited from the project.
	ProductVersion *string `cty:"product_version" hcl:"product_version" json:"productVersion,omitempty" tfsdk:"product_version"`
}

DatabasePropertiesModel defines model for DatabasePropertiesModel.

type DatabaseStatusModel

type DatabaseStatusModel struct {
	// SqlEndpoint The endpoint for SQL clients to connect to
	SqlEndpoint *string `cty:"sql_endpoint" hcl:"sql_endpoint" json:"sqlEndpoint,omitempty" tfsdk:"sql_endpoint"`

	// CaPem The PEM-encoded certificate for SQL clients to verify database servers
	CaPem *string `cty:"ca_pem" hcl:"ca_pem" json:"caPem,omitempty" tfsdk:"ca_pem"`

	// Ready Whether the database is ready
	Ready *bool `cty:"ready" hcl:"ready" json:"ready,omitempty" tfsdk:"ready"`

	// Shutdown Whether the database has shutdown
	Shutdown *bool `cty:"shutdown" hcl:"shutdown" json:"shutdown,omitempty" tfsdk:"shutdown"`

	// Message Message summarizing the state of the database
	Message *string `cty:"message" hcl:"message" json:"message,omitempty" tfsdk:"message"`

	// State The state of the database:
	//   * `Available` - The database is ready to accept SQL connections
	//   * `Creating` - The database is being created and not yet available
	//   * `Modifying` - The database is being modified
	//   * `Stopping` - Shutdown is in progress for this database
	//   * `Stopped` - The database has been stopped
	//   * `Expired` - The database has expired
	//   * `Failed` - The database has failed to achieve a usable state
	//   * `Deleting` - The database has been marked for deletion, which is in progress
	//   * `Restoring` - Restore from backup is in progress for this database
	State *DatabaseStatusModelState `cty:"state" hcl:"state" json:"state,omitempty" tfsdk:"state"`
}

DatabaseStatusModel defines model for DatabaseStatusModel.

type DatabaseStatusModelState

type DatabaseStatusModelState string

DatabaseStatusModelState The state of the database:

  • `Available` - The database is ready to accept SQL connections
  • `Creating` - The database is being created and not yet available
  • `Modifying` - The database is being modified
  • `Stopping` - Shutdown is in progress for this database
  • `Stopped` - The database has been stopped
  • `Expired` - The database has expired
  • `Failed` - The database has failed to achieve a usable state
  • `Deleting` - The database has been marked for deletion, which is in progress
  • `Restoring` - Restore from backup is in progress for this database
const (
	DatabaseStatusModelStateAvailable DatabaseStatusModelState = "Available"
	DatabaseStatusModelStateCreating  DatabaseStatusModelState = "Creating"
	DatabaseStatusModelStateDeleting  DatabaseStatusModelState = "Deleting"
	DatabaseStatusModelStateExpired   DatabaseStatusModelState = "Expired"
	DatabaseStatusModelStateFailed    DatabaseStatusModelState = "Failed"
	DatabaseStatusModelStateModifying DatabaseStatusModelState = "Modifying"
	DatabaseStatusModelStateRestoring DatabaseStatusModelState = "Restoring"
	DatabaseStatusModelStateStopped   DatabaseStatusModelState = "Stopped"
	DatabaseStatusModelStateStopping  DatabaseStatusModelState = "Stopping"
)

Defines values for DatabaseStatusModelState.

type DeleteDatabaseParams

type DeleteDatabaseParams struct {
	// TimeoutSeconds The number of seconds to wait for the operation to be finalized, unless 0 is specified which indicates not to wait
	TimeoutSeconds *int32 `form:"timeoutSeconds,omitempty" json:"timeoutSeconds,omitempty"`
}

DeleteDatabaseParams defines parameters for DeleteDatabase.

type DeleteDatabaseResponse

type DeleteDatabaseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON404      *ErrorContent
	JSON408      *ErrorContent
	JSON500      *ErrorContent
}

func ParseDeleteDatabaseResponse

func ParseDeleteDatabaseResponse(rsp *http.Response) (*DeleteDatabaseResponse, error)

ParseDeleteDatabaseResponse parses an HTTP response from a DeleteDatabaseWithResponse call

func (DeleteDatabaseResponse) Status

func (r DeleteDatabaseResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteDatabaseResponse) StatusCode

func (r DeleteDatabaseResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteProjectParams

type DeleteProjectParams struct {
	// TimeoutSeconds The number of seconds to wait for the operation to be finalized, unless 0 is specified which indicates not to wait
	TimeoutSeconds *int32 `form:"timeoutSeconds,omitempty" json:"timeoutSeconds,omitempty"`
}

DeleteProjectParams defines parameters for DeleteProject.

type DeleteProjectResponse

type DeleteProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON404      *ErrorContent
	JSON408      *ErrorContent
	JSON409      *ErrorContent
	JSON500      *ErrorContent
}

func ParseDeleteProjectResponse

func ParseDeleteProjectResponse(rsp *http.Response) (*DeleteProjectResponse, error)

ParseDeleteProjectResponse parses an HTTP response from a DeleteProjectWithResponse call

func (DeleteProjectResponse) Status

func (r DeleteProjectResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteProjectResponse) StatusCode

func (r DeleteProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ErrorContent

type ErrorContent struct {
	// Code Application-level error code that describes how the error should be handled and how the `detail` field should be interpreted:
	//   * `HTTP_ERROR` - The error should be handled based on the HTTP status code (`status`) of the response according to RFC-9910, and `detail` should be interpreted as a human-readable string.
	//   * `CONCURRENT_UPDATE` - A concurrent update caused the `PUT` or `PATCH` request to fail. A `PUT` request can be retried after using `GET` to obtain the latest resource version and applying the desired change to it. A `PATCH` request can be retried without any changes to the request content.
	//   * `UNKNOWN_REQUEST` - The client request is unroutable due to an unknown content-type, method, or resource path. This can be indicate a versioning issue between the client and server.
	Code *ErrorContentCode `json:"code,omitempty"`

	// Status HTTP status code and reason
	Status *string `json:"status,omitempty"`

	// Detail Detail about the error
	Detail *string `json:"detail,omitempty"`
}

ErrorContent defines model for ErrorContent.

type ErrorContentCode

type ErrorContentCode string

ErrorContentCode Application-level error code that describes how the error should be handled and how the `detail` field should be interpreted:

  • `HTTP_ERROR` - The error should be handled based on the HTTP status code (`status`) of the response according to RFC-9910, and `detail` should be interpreted as a human-readable string.
  • `CONCURRENT_UPDATE` - A concurrent update caused the `PUT` or `PATCH` request to fail. A `PUT` request can be retried after using `GET` to obtain the latest resource version and applying the desired change to it. A `PATCH` request can be retried without any changes to the request content.
  • `UNKNOWN_REQUEST` - The client request is unroutable due to an unknown content-type, method, or resource path. This can be indicate a versioning issue between the client and server.
const (
	CONCURRENTUPDATE ErrorContentCode = "CONCURRENT_UPDATE"
	HTTPERROR        ErrorContentCode = "HTTP_ERROR"
	UNKNOWNREQUEST   ErrorContentCode = "UNKNOWN_REQUEST"
)

Defines values for ErrorContentCode.

type ExpandedListEntry added in v1.1.0

type ExpandedListEntry struct {
	// Ref The sub-path relative to the request URL that can be used to obtain the resource
	Ref *string `json:"$ref,omitempty"`
}

ExpandedListEntry defines model for ExpandedListEntry.

type GetAllDatabasesParams

type GetAllDatabasesParams struct {
	// Offset The offset at which to list items
	Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`

	// Cursor The cursor at which to list items, which represents the last item returned. If specified, all items returned must be lexicographically greater than the supplied value. For expanded payloads, the `$ref` value is compared to the cursor.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit The number of items to return. If payload expansion was enabled and `limit` was not specified, the default of 20 is used. Otherwise, the default is 0 to indicate that all items should be returned.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Expand Whether to expand payload fields. If `expand=true`, then all payload fields are expanded. If `expand=<field>,...` is supplied, then the value is interpreted as a comma-separated list of top-level fields to expand. If `expand.<field>=<JSONPath expression> is supplied, then the JSONPath expression is used to resolve the user-supplied field.
	Expand *string `form:"expand,omitempty" json:"expand,omitempty"`

	// LabelFilter Comma-separated list of filters to apply based on labels, which are composed using `AND`. Acceptable filter expressions are:
	// * `key` - Only return resources that have label with specified key
	// * `key=value` - Only return resources that have label with specified key set to value
	// * `!key` - Only return resources that do _not_ have label with specified key
	// * `key!=value` - Only return resources that do _not_ have label with specified key set to value
	LabelFilter *string `form:"labelFilter,omitempty" json:"labelFilter,omitempty"`

	// ListAccessible Whether to return any accessible sub-resources even if the current user does not have access privileges to list all resources at this level
	ListAccessible *bool `form:"listAccessible,omitempty" json:"listAccessible,omitempty"`
}

GetAllDatabasesParams defines parameters for GetAllDatabases.

type GetAllDatabasesResponse

type GetAllDatabasesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ItemList
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON500      *ErrorContent
}

func ParseGetAllDatabasesResponse

func ParseGetAllDatabasesResponse(rsp *http.Response) (*GetAllDatabasesResponse, error)

ParseGetAllDatabasesResponse parses an HTTP response from a GetAllDatabasesWithResponse call

func (GetAllDatabasesResponse) Status

func (r GetAllDatabasesResponse) Status() string

Status returns HTTPResponse.Status

func (GetAllDatabasesResponse) StatusCode

func (r GetAllDatabasesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAllProjectsParams

type GetAllProjectsParams struct {
	// Offset The offset at which to list items
	Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`

	// Cursor The cursor at which to list items, which represents the last item returned. If specified, all items returned must be lexicographically greater than the supplied value. For expanded payloads, the `$ref` value is compared to the cursor.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit The number of items to return. If payload expansion was enabled and `limit` was not specified, the default of 20 is used. Otherwise, the default is 0 to indicate that all items should be returned.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Expand Whether to expand payload fields. If `expand=true`, then all payload fields are expanded. If `expand=<field>,...` is supplied, then the value is interpreted as a comma-separated list of top-level fields to expand. If `expand.<field>=<JSONPath expression> is supplied, then the JSONPath expression is used to resolve the user-supplied field.
	Expand *string `form:"expand,omitempty" json:"expand,omitempty"`

	// LabelFilter Comma-separated list of filters to apply based on labels, which are composed using `AND`. Acceptable filter expressions are:
	// * `key` - Only return resources that have label with specified key
	// * `key=value` - Only return resources that have label with specified key set to value
	// * `!key` - Only return resources that do _not_ have label with specified key
	// * `key!=value` - Only return resources that do _not_ have label with specified key set to value
	LabelFilter *string `form:"labelFilter,omitempty" json:"labelFilter,omitempty"`

	// ListAccessible Whether to return any accessible sub-resources even if the current user does not have access privileges to list all resources at this level
	ListAccessible *bool `form:"listAccessible,omitempty" json:"listAccessible,omitempty"`
}

GetAllProjectsParams defines parameters for GetAllProjects.

type GetAllProjectsResponse

type GetAllProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ItemList
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON500      *ErrorContent
}

func ParseGetAllProjectsResponse

func ParseGetAllProjectsResponse(rsp *http.Response) (*GetAllProjectsResponse, error)

ParseGetAllProjectsResponse parses an HTTP response from a GetAllProjectsWithResponse call

func (GetAllProjectsResponse) Status

func (r GetAllProjectsResponse) Status() string

Status returns HTTPResponse.Status

func (GetAllProjectsResponse) StatusCode

func (r GetAllProjectsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDatabaseResponse

type GetDatabaseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DatabaseModel
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON404      *ErrorContent
	JSON500      *ErrorContent
}

func ParseGetDatabaseResponse

func ParseGetDatabaseResponse(rsp *http.Response) (*GetDatabaseResponse, error)

ParseGetDatabaseResponse parses an HTTP response from a GetDatabaseWithResponse call

func (GetDatabaseResponse) Status

func (r GetDatabaseResponse) Status() string

Status returns HTTPResponse.Status

func (GetDatabaseResponse) StatusCode

func (r GetDatabaseResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDatabasesParams

type GetDatabasesParams struct {
	// Offset The offset at which to list items
	Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`

	// Cursor The cursor at which to list items, which represents the last item returned. If specified, all items returned must be lexicographically greater than the supplied value. For expanded payloads, the `$ref` value is compared to the cursor.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit The number of items to return. If payload expansion was enabled and `limit` was not specified, the default of 20 is used. Otherwise, the default is 0 to indicate that all items should be returned.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Expand Whether to expand payload fields. If `expand=true`, then all payload fields are expanded. If `expand=<field>,...` is supplied, then the value is interpreted as a comma-separated list of top-level fields to expand. If `expand.<field>=<JSONPath expression> is supplied, then the JSONPath expression is used to resolve the user-supplied field.
	Expand *string `form:"expand,omitempty" json:"expand,omitempty"`

	// LabelFilter Comma-separated list of filters to apply based on labels, which are composed using `AND`. Acceptable filter expressions are:
	// * `key` - Only return resources that have label with specified key
	// * `key=value` - Only return resources that have label with specified key set to value
	// * `!key` - Only return resources that do _not_ have label with specified key
	// * `key!=value` - Only return resources that do _not_ have label with specified key set to value
	LabelFilter *string `form:"labelFilter,omitempty" json:"labelFilter,omitempty"`

	// ListAccessible Whether to return any accessible sub-resources even if the current user does not have access privileges to list all resources at this level
	ListAccessible *bool `form:"listAccessible,omitempty" json:"listAccessible,omitempty"`
}

GetDatabasesParams defines parameters for GetDatabases.

type GetDatabasesResponse

type GetDatabasesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ItemList
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON404      *ErrorContent
	JSON500      *ErrorContent
}

func ParseGetDatabasesResponse

func ParseGetDatabasesResponse(rsp *http.Response) (*GetDatabasesResponse, error)

ParseGetDatabasesResponse parses an HTTP response from a GetDatabasesWithResponse call

func (GetDatabasesResponse) Status

func (r GetDatabasesResponse) Status() string

Status returns HTTPResponse.Status

func (GetDatabasesResponse) StatusCode

func (r GetDatabasesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrganizationDatabasesParams

type GetOrganizationDatabasesParams struct {
	// Offset The offset at which to list items
	Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`

	// Cursor The cursor at which to list items, which represents the last item returned. If specified, all items returned must be lexicographically greater than the supplied value. For expanded payloads, the `$ref` value is compared to the cursor.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit The number of items to return. If payload expansion was enabled and `limit` was not specified, the default of 20 is used. Otherwise, the default is 0 to indicate that all items should be returned.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Expand Whether to expand payload fields. If `expand=true`, then all payload fields are expanded. If `expand=<field>,...` is supplied, then the value is interpreted as a comma-separated list of top-level fields to expand. If `expand.<field>=<JSONPath expression> is supplied, then the JSONPath expression is used to resolve the user-supplied field.
	Expand *string `form:"expand,omitempty" json:"expand,omitempty"`

	// LabelFilter Comma-separated list of filters to apply based on labels, which are composed using `AND`. Acceptable filter expressions are:
	// * `key` - Only return resources that have label with specified key
	// * `key=value` - Only return resources that have label with specified key set to value
	// * `!key` - Only return resources that do _not_ have label with specified key
	// * `key!=value` - Only return resources that do _not_ have label with specified key set to value
	LabelFilter *string `form:"labelFilter,omitempty" json:"labelFilter,omitempty"`

	// ListAccessible Whether to return any accessible sub-resources even if the current user does not have access privileges to list all resources at this level
	ListAccessible *bool `form:"listAccessible,omitempty" json:"listAccessible,omitempty"`
}

GetOrganizationDatabasesParams defines parameters for GetOrganizationDatabases.

type GetOrganizationDatabasesResponse

type GetOrganizationDatabasesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ItemList
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON500      *ErrorContent
}

func ParseGetOrganizationDatabasesResponse

func ParseGetOrganizationDatabasesResponse(rsp *http.Response) (*GetOrganizationDatabasesResponse, error)

ParseGetOrganizationDatabasesResponse parses an HTTP response from a GetOrganizationDatabasesWithResponse call

func (GetOrganizationDatabasesResponse) Status

Status returns HTTPResponse.Status

func (GetOrganizationDatabasesResponse) StatusCode

func (r GetOrganizationDatabasesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectResponse

type GetProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectModel
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON404      *ErrorContent
	JSON500      *ErrorContent
}

func ParseGetProjectResponse

func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error)

ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call

func (GetProjectResponse) Status

func (r GetProjectResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectResponse) StatusCode

func (r GetProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectsParams

type GetProjectsParams struct {
	// Offset The offset at which to list items
	Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"`

	// Cursor The cursor at which to list items, which represents the last item returned. If specified, all items returned must be lexicographically greater than the supplied value. For expanded payloads, the `$ref` value is compared to the cursor.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit The number of items to return. If payload expansion was enabled and `limit` was not specified, the default of 20 is used. Otherwise, the default is 0 to indicate that all items should be returned.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Expand Whether to expand payload fields. If `expand=true`, then all payload fields are expanded. If `expand=<field>,...` is supplied, then the value is interpreted as a comma-separated list of top-level fields to expand. If `expand.<field>=<JSONPath expression> is supplied, then the JSONPath expression is used to resolve the user-supplied field.
	Expand *string `form:"expand,omitempty" json:"expand,omitempty"`

	// LabelFilter Comma-separated list of filters to apply based on labels, which are composed using `AND`. Acceptable filter expressions are:
	// * `key` - Only return resources that have label with specified key
	// * `key=value` - Only return resources that have label with specified key set to value
	// * `!key` - Only return resources that do _not_ have label with specified key
	// * `key!=value` - Only return resources that do _not_ have label with specified key set to value
	LabelFilter *string `form:"labelFilter,omitempty" json:"labelFilter,omitempty"`

	// ListAccessible Whether to return any accessible sub-resources even if the current user does not have access privileges to list all resources at this level
	ListAccessible *bool `form:"listAccessible,omitempty" json:"listAccessible,omitempty"`
}

GetProjectsParams defines parameters for GetProjects.

type GetProjectsResponse

type GetProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ItemList
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON500      *ErrorContent
}

func ParseGetProjectsResponse

func ParseGetProjectsResponse(rsp *http.Response) (*GetProjectsResponse, error)

ParseGetProjectsResponse parses an HTTP response from a GetProjectsWithResponse call

func (GetProjectsResponse) Status

func (r GetProjectsResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectsResponse) StatusCode

func (r GetProjectsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ItemList added in v1.1.0

type ItemList struct {
	// Offset The offset at which items are being listed, based on the user request
	Offset *int32 `json:"offset,omitempty"`

	// Cursor The cursor at which items are being listed, based on the user request
	Cursor *string `json:"cursor,omitempty"`

	// Limit The maximum number of items that could have been returned, based on the user request. If `limit` is equal to the number of items returned, then it is possible that more items are available (see `next`), which can be obtained by advancing the `offset` by `limit` or supplying the last value in the list (or its `$ref`) as `cursor`.
	Limit *int32 `json:"limit,omitempty"`

	// Items The list of items returned. If expansion of payload fields was requested using the query parameter `expand` or `expand.<field>`, then the items will be objects, otherwise, they will be strings representing the sub-paths at which the resource can be found.
	Items *[]ItemList_Items_Item `json:"items,omitempty"`

	// Next The URL to obtain the next list of items, if `limit` was specified and more items are available. The absence of the `next` field indicates that all items have been returned.
	Next *string `json:"next,omitempty"`
}

ItemList defines model for ItemList.

type ItemListItems0 added in v1.1.0

type ItemListItems0 = string

ItemListItems0 defines model for .

type ItemList_Items_Item added in v1.1.0

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

ItemList_Items_Item defines model for ItemList.items.Item.

func (ItemList_Items_Item) AsExpandedListEntry added in v1.1.0

func (t ItemList_Items_Item) AsExpandedListEntry() (ExpandedListEntry, error)

AsExpandedListEntry returns the union data inside the ItemList_Items_Item as a ExpandedListEntry

func (ItemList_Items_Item) AsItemListItems0 added in v1.1.0

func (t ItemList_Items_Item) AsItemListItems0() (ItemListItems0, error)

AsItemListItems0 returns the union data inside the ItemList_Items_Item as a ItemListItems0

func (*ItemList_Items_Item) FromExpandedListEntry added in v1.1.0

func (t *ItemList_Items_Item) FromExpandedListEntry(v ExpandedListEntry) error

FromExpandedListEntry overwrites any union data inside the ItemList_Items_Item as the provided ExpandedListEntry

func (*ItemList_Items_Item) FromItemListItems0 added in v1.1.0

func (t *ItemList_Items_Item) FromItemListItems0(v ItemListItems0) error

FromItemListItems0 overwrites any union data inside the ItemList_Items_Item as the provided ItemListItems0

func (ItemList_Items_Item) MarshalJSON added in v1.1.0

func (t ItemList_Items_Item) MarshalJSON() ([]byte, error)

func (*ItemList_Items_Item) MergeExpandedListEntry added in v1.1.0

func (t *ItemList_Items_Item) MergeExpandedListEntry(v ExpandedListEntry) error

MergeExpandedListEntry performs a merge with any union data inside the ItemList_Items_Item, using the provided ExpandedListEntry

func (*ItemList_Items_Item) MergeItemListItems0 added in v1.1.0

func (t *ItemList_Items_Item) MergeItemListItems0(v ItemListItems0) error

MergeItemListItems0 performs a merge with any union data inside the ItemList_Items_Item, using the provided ItemListItems0

func (*ItemList_Items_Item) UnmarshalJSON added in v1.1.0

func (t *ItemList_Items_Item) UnmarshalJSON(b []byte) error

type JsonNode

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

JsonNode defines model for JsonNode.

func (JsonNode) AsJsonNode0

func (t JsonNode) AsJsonNode0() (JsonNode0, error)

AsJsonNode0 returns the union data inside the JsonNode as a JsonNode0

func (JsonNode) AsJsonNode1

func (t JsonNode) AsJsonNode1() (JsonNode1, error)

AsJsonNode1 returns the union data inside the JsonNode as a JsonNode1

func (JsonNode) AsJsonNode2

func (t JsonNode) AsJsonNode2() (JsonNode2, error)

AsJsonNode2 returns the union data inside the JsonNode as a JsonNode2

func (JsonNode) AsJsonNode3

func (t JsonNode) AsJsonNode3() (JsonNode3, error)

AsJsonNode3 returns the union data inside the JsonNode as a JsonNode3

func (*JsonNode) FromJsonNode0

func (t *JsonNode) FromJsonNode0(v JsonNode0) error

FromJsonNode0 overwrites any union data inside the JsonNode as the provided JsonNode0

func (*JsonNode) FromJsonNode1

func (t *JsonNode) FromJsonNode1(v JsonNode1) error

FromJsonNode1 overwrites any union data inside the JsonNode as the provided JsonNode1

func (*JsonNode) FromJsonNode2

func (t *JsonNode) FromJsonNode2(v JsonNode2) error

FromJsonNode2 overwrites any union data inside the JsonNode as the provided JsonNode2

func (*JsonNode) FromJsonNode3

func (t *JsonNode) FromJsonNode3(v JsonNode3) error

FromJsonNode3 overwrites any union data inside the JsonNode as the provided JsonNode3

func (JsonNode) MarshalJSON

func (t JsonNode) MarshalJSON() ([]byte, error)

func (*JsonNode) MergeJsonNode0

func (t *JsonNode) MergeJsonNode0(v JsonNode0) error

MergeJsonNode0 performs a merge with any union data inside the JsonNode, using the provided JsonNode0

func (*JsonNode) MergeJsonNode1

func (t *JsonNode) MergeJsonNode1(v JsonNode1) error

MergeJsonNode1 performs a merge with any union data inside the JsonNode, using the provided JsonNode1

func (*JsonNode) MergeJsonNode2

func (t *JsonNode) MergeJsonNode2(v JsonNode2) error

MergeJsonNode2 performs a merge with any union data inside the JsonNode, using the provided JsonNode2

func (*JsonNode) MergeJsonNode3

func (t *JsonNode) MergeJsonNode3(v JsonNode3) error

MergeJsonNode3 performs a merge with any union data inside the JsonNode, using the provided JsonNode3

func (*JsonNode) UnmarshalJSON

func (t *JsonNode) UnmarshalJSON(b []byte) error

type JsonNode0

type JsonNode0 = map[string]interface{}

JsonNode0 defines model for .

type JsonNode1

type JsonNode1 = string

JsonNode1 defines model for .

type JsonNode2

type JsonNode2 = float32

JsonNode2 defines model for .

type JsonNode3

type JsonNode3 = bool

JsonNode3 defines model for .

type JsonPatchOperation

type JsonPatchOperation struct {
	Op    JsonPatchOperationOp `json:"op"`
	From  *string              `json:"from,omitempty"`
	Path  string               `json:"path"`
	Value *JsonNode            `json:"value,omitempty"`
}

JsonPatchOperation defines model for JsonPatchOperation.

type JsonPatchOperationOp

type JsonPatchOperationOp string

JsonPatchOperationOp defines model for JsonPatchOperation.Op.

const (
	Add     JsonPatchOperationOp = "add"
	Copy    JsonPatchOperationOp = "copy"
	Move    JsonPatchOperationOp = "move"
	Remove  JsonPatchOperationOp = "remove"
	Replace JsonPatchOperationOp = "replace"
	Test    JsonPatchOperationOp = "test"
)

Defines values for JsonPatchOperationOp.

type MaintenanceModel

type MaintenanceModel struct {
	// ExpiresAtTime The time at which the project or database will be disabled
	ExpiresAtTime *time.Time `json:"expiresAtTime,omitempty" tfsdk:"-"`

	// ExpiresIn The time until the project or database is disabled, e.g. `1d`
	ExpiresIn *string `json:"expiresIn,omitempty" tfsdk:"-"`

	// IsDisabled Whether the project or database should be shutdown
	IsDisabled *bool `cty:"is_disabled" hcl:"is_disabled" json:"isDisabled,omitempty" tfsdk:"is_disabled"`
}

MaintenanceModel defines model for MaintenanceModel.

type PatchDatabaseApplicationJSONPatchPlusJSONBody

type PatchDatabaseApplicationJSONPatchPlusJSONBody = []JsonPatchOperation

PatchDatabaseApplicationJSONPatchPlusJSONBody defines parameters for PatchDatabase.

type PatchDatabaseApplicationJSONPatchPlusJSONRequestBody

type PatchDatabaseApplicationJSONPatchPlusJSONRequestBody = PatchDatabaseApplicationJSONPatchPlusJSONBody

PatchDatabaseApplicationJSONPatchPlusJSONRequestBody defines body for PatchDatabase for application/json-patch+json ContentType.

type PatchDatabaseResponse

type PatchDatabaseResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DatabaseModel
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON404      *ErrorContent
	JSON409      *ErrorContent
	JSON415      *ErrorContent
	JSON422      *ErrorContent
	JSON500      *ErrorContent
}

func ParsePatchDatabaseResponse

func ParsePatchDatabaseResponse(rsp *http.Response) (*PatchDatabaseResponse, error)

ParsePatchDatabaseResponse parses an HTTP response from a PatchDatabaseWithResponse call

func (PatchDatabaseResponse) Status

func (r PatchDatabaseResponse) Status() string

Status returns HTTPResponse.Status

func (PatchDatabaseResponse) StatusCode

func (r PatchDatabaseResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PatchProjectApplicationJSONPatchPlusJSONBody

type PatchProjectApplicationJSONPatchPlusJSONBody = []JsonPatchOperation

PatchProjectApplicationJSONPatchPlusJSONBody defines parameters for PatchProject.

type PatchProjectApplicationJSONPatchPlusJSONRequestBody

type PatchProjectApplicationJSONPatchPlusJSONRequestBody = PatchProjectApplicationJSONPatchPlusJSONBody

PatchProjectApplicationJSONPatchPlusJSONRequestBody defines body for PatchProject for application/json-patch+json ContentType.

type PatchProjectResponse

type PatchProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProjectModel
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON404      *ErrorContent
	JSON409      *ErrorContent
	JSON415      *ErrorContent
	JSON500      *ErrorContent
}

func ParsePatchProjectResponse

func ParsePatchProjectResponse(rsp *http.Response) (*PatchProjectResponse, error)

ParsePatchProjectResponse parses an HTTP response from a PatchProjectWithResponse call

func (PatchProjectResponse) Status

func (r PatchProjectResponse) Status() string

Status returns HTTPResponse.Status

func (PatchProjectResponse) StatusCode

func (r PatchProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ProjectModel

type ProjectModel struct {
	// Organization The organization that the project belongs to
	Organization string `cty:"organization" hcl:"organization" json:"organization" tfsdk:"organization"`

	// Name The name of the project
	Name string `cty:"name" hcl:"name" json:"name" tfsdk:"name"`

	// Labels User-defined labels attached to the resource that can be used for filtering
	Labels *map[string]string `cty:"labels" hcl:"labels" json:"labels,omitempty" tfsdk:"labels"`

	// Sla The SLA for the project. Cannot be updated once the project is created.
	Sla string `cty:"sla" hcl:"sla" json:"sla" tfsdk:"sla"`

	// Tier The service tier for the project
	Tier string `cty:"tier" hcl:"tier" json:"tier" tfsdk:"tier"`

	// ResourceVersion The version of the resource. When specified in a `PUT` request payload, indicates that the resoure should be updated, and is used by the system to guard against concurrent updates.
	ResourceVersion *string                 `json:"resourceVersion,omitempty" tfsdk:"-"`
	Maintenance     *MaintenanceModel       `cty:"maintenance" hcl:"maintenance" json:"maintenance,omitempty" tfsdk:"maintenance"`
	Properties      *ProjectPropertiesModel `cty:"properties" hcl:"properties" json:"properties,omitempty" tfsdk:"properties"`
	Status          *ProjectStatusModel     `cty:"status" hcl:"status" json:"status,omitempty" tfsdk:"status"`
}

ProjectModel defines model for ProjectModel.

type ProjectPropertiesModel

type ProjectPropertiesModel struct {
	// TierParameters Opaque parameters supplied to project service tier.
	TierParameters *map[string]string `cty:"tier_parameters" hcl:"tier_parameters" json:"tierParameters,omitempty" tfsdk:"tier_parameters"`

	// ProductVersion The version/tag of the NuoDB image to use. For available tags, see https://hub.docker.com/r/nuodb/nuodb-ce/tags. If omitted, the project version will be resolved based on the SLA and cluster configuration.
	ProductVersion *string `cty:"product_version" hcl:"product_version" json:"productVersion,omitempty" tfsdk:"product_version"`
}

ProjectPropertiesModel defines model for ProjectPropertiesModel.

type ProjectStatusModel

type ProjectStatusModel struct {
	// CaPem The PEM-encoded certificate for SQL clients to verify database servers within the project
	CaPem *string `cty:"ca_pem" hcl:"ca_pem" json:"caPem,omitempty" tfsdk:"ca_pem"`

	// Ready Whether the project is ready
	Ready *bool `cty:"ready" hcl:"ready" json:"ready,omitempty" tfsdk:"ready"`

	// Shutdown Whether the project and all of its databases have shutdown
	Shutdown *bool `cty:"shutdown" hcl:"shutdown" json:"shutdown,omitempty" tfsdk:"shutdown"`

	// Message Message summarizing the state of the project
	Message *string `cty:"message" hcl:"message" json:"message,omitempty" tfsdk:"message"`

	// State The state of the project:
	//   * `Available` - The project is available
	//   * `Creating` - The project is being created and not yet available
	//   * `Modifying` - The project is being modified
	//   * `Stopping` - Shutdown is in progress for this project
	//   * `Stopped` - The project and its databases have been stopped
	//   * `Expired` - The project and its databases have expired
	//   * `Failed` - The project has failed to achieve a usable state
	//   * `Deleting` - The project has been marked for deletion, which is in progress
	State *ProjectStatusModelState `cty:"state" hcl:"state" json:"state,omitempty" tfsdk:"state"`
}

ProjectStatusModel defines model for ProjectStatusModel.

type ProjectStatusModelState

type ProjectStatusModelState string

ProjectStatusModelState The state of the project:

  • `Available` - The project is available
  • `Creating` - The project is being created and not yet available
  • `Modifying` - The project is being modified
  • `Stopping` - Shutdown is in progress for this project
  • `Stopped` - The project and its databases have been stopped
  • `Expired` - The project and its databases have expired
  • `Failed` - The project has failed to achieve a usable state
  • `Deleting` - The project has been marked for deletion, which is in progress
const (
	ProjectStatusModelStateAvailable ProjectStatusModelState = "Available"
	ProjectStatusModelStateCreating  ProjectStatusModelState = "Creating"
	ProjectStatusModelStateDeleting  ProjectStatusModelState = "Deleting"
	ProjectStatusModelStateExpired   ProjectStatusModelState = "Expired"
	ProjectStatusModelStateFailed    ProjectStatusModelState = "Failed"
	ProjectStatusModelStateModifying ProjectStatusModelState = "Modifying"
	ProjectStatusModelStateStopped   ProjectStatusModelState = "Stopped"
	ProjectStatusModelStateStopping  ProjectStatusModelState = "Stopping"
)

Defines values for ProjectStatusModelState.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RestoreFromModel

type RestoreFromModel struct {
	// Backup The name of the backup to restore the database from. If a fully-qualified name is not supplied, then the organization, project, or name of the database being created is assumed.
	Backup *string `cty:"backup" hcl:"backup" json:"backup,omitempty" tfsdk:"backup"`
}

RestoreFromModel defines model for RestoreFromModel.

type UpdateDbaPasswordJSONRequestBody added in v1.1.0

type UpdateDbaPasswordJSONRequestBody = UpdateDbaPasswordModel

UpdateDbaPasswordJSONRequestBody defines body for UpdateDbaPassword for application/json ContentType.

type UpdateDbaPasswordModel added in v1.1.0

type UpdateDbaPasswordModel struct {
	// Current The current DBA password, which must be supplied for verification purposes
	Current string `json:"current"`

	// Target The target DBA password
	Target *string `json:"target,omitempty"`

	// Resync Whether to update configured DBA password so that it matches actual DBA password. If `true`, `current` is verified by connecting to the database directly before updating configured DBA password.
	Resync *bool `json:"resync,omitempty"`
}

UpdateDbaPasswordModel defines model for UpdateDbaPasswordModel.

type UpdateDbaPasswordParams added in v1.1.0

type UpdateDbaPasswordParams struct {
	// TimeoutSeconds The number of seconds to wait for the operation to be finalized, unless 0 is specified which indicates not to wait
	TimeoutSeconds *int32 `form:"timeoutSeconds,omitempty" json:"timeoutSeconds,omitempty"`
}

UpdateDbaPasswordParams defines parameters for UpdateDbaPassword.

type UpdateDbaPasswordResponse added in v1.1.0

type UpdateDbaPasswordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *ErrorContent
	JSON401      *ErrorContent
	JSON403      *ErrorContent
	JSON404      *ErrorContent
	JSON408      *ErrorContent
	JSON409      *ErrorContent
	JSON415      *ErrorContent
	JSON500      *ErrorContent
}

func ParseUpdateDbaPasswordResponse added in v1.1.0

func ParseUpdateDbaPasswordResponse(rsp *http.Response) (*UpdateDbaPasswordResponse, error)

ParseUpdateDbaPasswordResponse parses an HTTP response from a UpdateDbaPasswordWithResponse call

func (UpdateDbaPasswordResponse) Status added in v1.1.0

func (r UpdateDbaPasswordResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateDbaPasswordResponse) StatusCode added in v1.1.0

func (r UpdateDbaPasswordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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