openapi

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 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/oapi-codegen/oapi-codegen/v2 version v2.4.0 DO NOT EDIT.

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

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

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

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.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 NewCreateBackupPolicyRequest added in v1.2.0

func NewCreateBackupPolicyRequest(server string, organization string, policy string, body CreateBackupPolicyJSONRequestBody) (*http.Request, error)

NewCreateBackupPolicyRequest calls the generic CreateBackupPolicy builder with application/json body

func NewCreateBackupPolicyRequestWithBody added in v1.2.0

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

NewCreateBackupPolicyRequestWithBody generates requests for CreateBackupPolicy with any type of body

func NewCreateBackupRequest added in v1.2.0

func NewCreateBackupRequest(server string, organization string, project string, database string, body CreateBackupJSONRequestBody) (*http.Request, error)

NewCreateBackupRequest calls the generic CreateBackup builder with application/json body

func NewCreateBackupRequestWithBody added in v1.2.0

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

NewCreateBackupRequestWithBody generates requests for CreateBackup with any type of body

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 NewCreateOrUpdateBackupRequest added in v1.2.0

func NewCreateOrUpdateBackupRequest(server string, organization string, project string, database string, backup string, body CreateOrUpdateBackupJSONRequestBody) (*http.Request, error)

NewCreateOrUpdateBackupRequest calls the generic CreateOrUpdateBackup builder with application/json body

func NewCreateOrUpdateBackupRequestWithBody added in v1.2.0

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

NewCreateOrUpdateBackupRequestWithBody generates requests for CreateOrUpdateBackup 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 NewDeleteBackupPolicyRequest added in v1.2.0

func NewDeleteBackupPolicyRequest(server string, organization string, policy string, params *DeleteBackupPolicyParams) (*http.Request, error)

NewDeleteBackupPolicyRequest generates requests for DeleteBackupPolicy

func NewDeleteBackupRequest added in v1.2.0

func NewDeleteBackupRequest(server string, organization string, project string, database string, backup string, params *DeleteBackupParams) (*http.Request, error)

NewDeleteBackupRequest generates requests for DeleteBackup

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 NewGetAllBackupPoliciesRequest added in v1.2.0

func NewGetAllBackupPoliciesRequest(server string, params *GetAllBackupPoliciesParams) (*http.Request, error)

NewGetAllBackupPoliciesRequest generates requests for GetAllBackupPolicies

func NewGetAllBackupsRequest added in v1.2.0

func NewGetAllBackupsRequest(server string, params *GetAllBackupsParams) (*http.Request, error)

NewGetAllBackupsRequest generates requests for GetAllBackups

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 NewGetBackupPoliciesRequest added in v1.2.0

func NewGetBackupPoliciesRequest(server string, organization string, params *GetBackupPoliciesParams) (*http.Request, error)

NewGetBackupPoliciesRequest generates requests for GetBackupPolicies

func NewGetBackupPolicyRequest added in v1.2.0

func NewGetBackupPolicyRequest(server string, organization string, policy string) (*http.Request, error)

NewGetBackupPolicyRequest generates requests for GetBackupPolicy

func NewGetBackupRequest added in v1.2.0

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

NewGetBackupRequest generates requests for GetBackup

func NewGetBackupsFromPolicyRequest added in v1.2.0

func NewGetBackupsFromPolicyRequest(server string, organization string, policy string, params *GetBackupsFromPolicyParams) (*http.Request, error)

NewGetBackupsFromPolicyRequest generates requests for GetBackupsFromPolicy

func NewGetBackupsRequest added in v1.2.0

func NewGetBackupsRequest(server string, organization string, project string, database string, params *GetBackupsParams) (*http.Request, error)

NewGetBackupsRequest generates requests for GetBackups

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 NewGetMatchingDatabasesRequest added in v1.2.0

func NewGetMatchingDatabasesRequest(server string, organization string, policy string, params *GetMatchingDatabasesParams) (*http.Request, error)

NewGetMatchingDatabasesRequest generates requests for GetMatchingDatabases

func NewGetOrganizationBackupsRequest added in v1.2.0

func NewGetOrganizationBackupsRequest(server string, organization string, params *GetOrganizationBackupsParams) (*http.Request, error)

NewGetOrganizationBackupsRequest generates requests for GetOrganizationBackups

func NewGetOrganizationDatabasesRequest

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

NewGetOrganizationDatabasesRequest generates requests for GetOrganizationDatabases

func NewGetProjectBackupsRequest added in v1.2.0

func NewGetProjectBackupsRequest(server string, organization string, project string, params *GetProjectBackupsParams) (*http.Request, error)

NewGetProjectBackupsRequest generates requests for GetProjectBackups

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 NewPatchBackupPolicyRequestWithApplicationJSONPatchPlusJSONBody added in v1.2.0

func NewPatchBackupPolicyRequestWithApplicationJSONPatchPlusJSONBody(server string, organization string, policy string, body PatchBackupPolicyApplicationJSONPatchPlusJSONRequestBody) (*http.Request, error)

NewPatchBackupPolicyRequestWithApplicationJSONPatchPlusJSONBody calls the generic PatchBackupPolicy builder with application/json-patch+json body

func NewPatchBackupPolicyRequestWithBody added in v1.2.0

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

NewPatchBackupPolicyRequestWithBody generates requests for PatchBackupPolicy with any type of body

func NewPatchBackupRequestWithApplicationJSONPatchPlusJSONBody added in v1.2.0

func NewPatchBackupRequestWithApplicationJSONPatchPlusJSONBody(server string, organization string, project string, database string, backup string, body PatchBackupApplicationJSONPatchPlusJSONRequestBody) (*http.Request, error)

NewPatchBackupRequestWithApplicationJSONPatchPlusJSONBody calls the generic PatchBackup builder with application/json-patch+json body

func NewPatchBackupRequestWithBody added in v1.2.0

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

NewPatchBackupRequestWithBody generates requests for PatchBackup with any type of body

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 BackupCreateModel added in v1.2.0

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

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

	// Database The database that the backup belongs to
	Database string `cty:"database" hcl:"database" json:"database" tfsdk:"database"`

	// 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"`
}

BackupCreateModel defines model for BackupCreateModel.

type BackupModel added in v1.2.0

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

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

	// Database The database that the backup belongs to
	Database string `cty:"database" hcl:"database" json:"database" tfsdk:"database"`

	// Name The name of the backup
	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"`

	// 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:"-"`
	ImportSource    *ImportSourceModel `cty:"import_source" hcl:"import_source" json:"importSource,omitempty" tfsdk:"import_source"`
	Status          *BackupStatusModel `cty:"status" hcl:"status" json:"status,omitempty" tfsdk:"status"`
}

BackupModel defines model for BackupModel.

type BackupPolicyMissedBackup added in v1.3.0

type BackupPolicyMissedBackup struct {
	// MissedTime The time that a backup was missed by this policy
	MissedTime *string `cty:"missed_time" hcl:"missed_time" json:"missedTime,omitempty" tfsdk:"missed_time"`

	// Database The fully-qualified database name for which a backup was missed by this policy
	Database *string `cty:"database" hcl:"database" json:"database,omitempty" tfsdk:"database"`

	// Reason A programmatic identifier indicating the reason for missing a backup by this policy
	Reason *string `cty:"reason" hcl:"reason" json:"reason,omitempty" tfsdk:"reason"`

	// Message A human readable message indicating details about the missed backup by this policy
	Message *string `cty:"message" hcl:"message" json:"message,omitempty" tfsdk:"message"`
}

BackupPolicyMissedBackup defines model for BackupPolicyMissedBackup.

type BackupPolicyModel added in v1.2.0

type BackupPolicyModel struct {
	// Organization The organization that the backup policy belongs to
	Organization string `cty:"organization" hcl:"organization" json:"organization" tfsdk:"organization"`

	// Name The name of the backup policy
	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"`

	// Frequency The frequency to schedule backups at, in cron format
	Frequency string `cty:"frequency" hcl:"frequency" json:"frequency" tfsdk:"frequency"`

	// Suspended Whether backups from the policy are suspended
	Suspended *bool `cty:"suspended" hcl:"suspended" json:"suspended,omitempty" tfsdk:"suspended"`

	// 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:"-"`
	Properties      *BackupPolicyPropertiesModel `cty:"properties" hcl:"properties" json:"properties,omitempty" tfsdk:"properties"`
	Retention       *RetentionModel              `cty:"retention" hcl:"retention" json:"retention,omitempty" tfsdk:"retention"`
	Selector        SelectorModel                `cty:"selector" hcl:"selector" json:"selector" tfsdk:"selector"`
	Status          *BackupPolicyStatusModel     `cty:"status" hcl:"status" json:"status,omitempty" tfsdk:"status"`
}

BackupPolicyModel defines model for BackupPolicyModel.

type BackupPolicyPropertiesModel added in v1.2.0

type BackupPolicyPropertiesModel struct {
	// PropagatePolicyLabels Whether to propagate the user-defined labels from the backup policy to backup resources created by this policy
	PropagatePolicyLabels *bool `` /* 130-byte string literal not displayed */

	// PropagateDatabaseLabels Whether to propagate the user-defined labels from the matching database to backup resources created by this policy
	PropagateDatabaseLabels *bool `` /* 138-byte string literal not displayed */
}

BackupPolicyPropertiesModel defines model for BackupPolicyPropertiesModel.

type BackupPolicyStatusModel added in v1.2.0

type BackupPolicyStatusModel struct {
	// LastScheduleTime The time that backups were last taken by this policy
	LastScheduleTime *string `cty:"last_schedule_time" hcl:"last_schedule_time" json:"lastScheduleTime,omitempty" tfsdk:"last_schedule_time"`

	// LastMissedScheduleTime The time that backups were last missed by this policy
	LastMissedScheduleTime *string `` /* 137-byte string literal not displayed */

	// NextScheduleTime The time that backups are next scheduled by this policy
	NextScheduleTime *string `cty:"next_schedule_time" hcl:"next_schedule_time" json:"nextScheduleTime,omitempty" tfsdk:"next_schedule_time"`

	// LastMissedBackups The last database backups that were not scheduled by this policy
	LastMissedBackups *[]BackupPolicyMissedBackup `cty:"last_missed_backups" hcl:"last_missed_backups" json:"lastMissedBackups,omitempty" tfsdk:"last_missed_backups"`
}

BackupPolicyStatusModel defines model for BackupPolicyStatusModel.

type BackupStatusModel added in v1.2.0

type BackupStatusModel struct {
	// CreationTime The time that the backup was taken
	CreationTime *string `cty:"creation_time" hcl:"creation_time" json:"creationTime,omitempty" tfsdk:"creation_time"`

	// BackupHandle The handle for the backup
	BackupHandle *string `cty:"backup_handle" hcl:"backup_handle" json:"backupHandle,omitempty" tfsdk:"backup_handle"`

	// BackupPlugin The plugin used to manage the backup
	BackupPlugin *string `cty:"backup_plugin" hcl:"backup_plugin" json:"backupPlugin,omitempty" tfsdk:"backup_plugin"`

	// ReadyToUse Whether the backup is ready to be used to restore a database
	ReadyToUse *bool `cty:"ready_to_use" hcl:"ready_to_use" json:"readyToUse,omitempty" tfsdk:"ready_to_use"`

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

	// State The state of the backup:
	//   * `Pending` - The backup is pending completion
	//   * `Succeeded` - The backup completed successfully and is available for use
	//   * `Failed` - The backup failed and is unusable
	//   * `Deleting` - The backup has been marked for deletion, which is in progress
	State *BackupStatusModelState `cty:"state" hcl:"state" json:"state,omitempty" tfsdk:"state"`

	// CreatedByPolicy The fully-qualified name of the backup policy that the backup was created by
	CreatedByPolicy *string `cty:"created_by_policy" hcl:"created_by_policy" json:"createdByPolicy,omitempty" tfsdk:"created_by_policy"`

	// RetainedAs The matching retention cycles by this backup
	RetainedAs *[]BackupStatusModelRetainedAs `cty:"retained_as" hcl:"retained_as" json:"retainedAs,omitempty" tfsdk:"retained_as"`
}

BackupStatusModel defines model for BackupStatusModel.

type BackupStatusModelRetainedAs added in v1.3.0

type BackupStatusModelRetainedAs string

BackupStatusModelRetainedAs defines model for BackupStatusModel.RetainedAs.

const (
	BackupStatusModelRetainedAsDaily   BackupStatusModelRetainedAs = "daily"
	BackupStatusModelRetainedAsHourly  BackupStatusModelRetainedAs = "hourly"
	BackupStatusModelRetainedAsMonthly BackupStatusModelRetainedAs = "monthly"
	BackupStatusModelRetainedAsWeekly  BackupStatusModelRetainedAs = "weekly"
	BackupStatusModelRetainedAsYearly  BackupStatusModelRetainedAs = "yearly"
)

Defines values for BackupStatusModelRetainedAs.

type BackupStatusModelState added in v1.2.0

type BackupStatusModelState string

BackupStatusModelState The state of the backup:

  • `Pending` - The backup is pending completion
  • `Succeeded` - The backup completed successfully and is available for use
  • `Failed` - The backup failed and is unusable
  • `Deleting` - The backup has been marked for deletion, which is in progress
const (
	BackupStatusModelStateDeleting  BackupStatusModelState = "Deleting"
	BackupStatusModelStateFailed    BackupStatusModelState = "Failed"
	BackupStatusModelStatePending   BackupStatusModelState = "Pending"
	BackupStatusModelStateSucceeded BackupStatusModelState = "Succeeded"
)

Defines values for BackupStatusModelState.

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) CreateBackup added in v1.2.0

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

func (*Client) CreateBackupPolicy added in v1.2.0

func (c *Client) CreateBackupPolicy(ctx context.Context, organization string, policy string, body CreateBackupPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBackupPolicyWithBody added in v1.2.0

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

func (*Client) CreateBackupWithBody added in v1.2.0

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

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) CreateOrUpdateBackup added in v1.2.0

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

func (*Client) CreateOrUpdateBackupWithBody added in v1.2.0

func (c *Client) CreateOrUpdateBackupWithBody(ctx context.Context, organization string, project string, database string, backup 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) DeleteBackup added in v1.2.0

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

func (*Client) DeleteBackupPolicy added in v1.2.0

func (c *Client) DeleteBackupPolicy(ctx context.Context, organization string, policy string, params *DeleteBackupPolicyParams, 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) GetAllBackupPolicies added in v1.2.0

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

func (*Client) GetAllBackups added in v1.2.0

func (c *Client) GetAllBackups(ctx context.Context, params *GetAllBackupsParams, 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) GetBackup added in v1.2.0

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

func (*Client) GetBackupPolicies added in v1.2.0

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

func (*Client) GetBackupPolicy added in v1.2.0

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

func (*Client) GetBackups added in v1.2.0

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

func (*Client) GetBackupsFromPolicy added in v1.2.0

func (c *Client) GetBackupsFromPolicy(ctx context.Context, organization string, policy string, params *GetBackupsFromPolicyParams, 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) GetMatchingDatabases added in v1.2.0

func (c *Client) GetMatchingDatabases(ctx context.Context, organization string, policy string, params *GetMatchingDatabasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOrganizationBackups added in v1.2.0

func (c *Client) GetOrganizationBackups(ctx context.Context, organization string, params *GetOrganizationBackupsParams, 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) GetProjectBackups added in v1.2.0

func (c *Client) GetProjectBackups(ctx context.Context, organization string, project string, params *GetProjectBackupsParams, 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) PatchBackupPolicyWithApplicationJSONPatchPlusJSONBody added in v1.2.0

func (c *Client) PatchBackupPolicyWithApplicationJSONPatchPlusJSONBody(ctx context.Context, organization string, policy string, body PatchBackupPolicyApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PatchBackupPolicyWithBody added in v1.2.0

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

func (*Client) PatchBackupWithApplicationJSONPatchPlusJSONBody added in v1.2.0

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

func (*Client) PatchBackupWithBody added in v1.2.0

func (c *Client) PatchBackupWithBody(ctx context.Context, organization string, project string, database string, backup string, contentType string, body io.Reader, 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 {
	// GetAllBackupPolicies request
	GetAllBackupPolicies(ctx context.Context, params *GetAllBackupPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// DeleteBackupPolicy request
	DeleteBackupPolicy(ctx context.Context, organization string, policy string, params *DeleteBackupPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	PatchBackupPolicyWithApplicationJSONPatchPlusJSONBody(ctx context.Context, organization string, policy string, body PatchBackupPolicyApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateBackupPolicy(ctx context.Context, organization string, policy string, body CreateBackupPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBackupsFromPolicy request
	GetBackupsFromPolicy(ctx context.Context, organization string, policy string, params *GetBackupsFromPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMatchingDatabases request
	GetMatchingDatabases(ctx context.Context, organization string, policy string, params *GetMatchingDatabasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

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

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

	PatchBackupWithApplicationJSONPatchPlusJSONBody(ctx context.Context, organization string, project string, database string, backup string, body PatchBackupApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateOrUpdateBackup(ctx context.Context, organization string, project string, database string, backup string, body CreateOrUpdateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// 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) CreateBackupPolicyWithBodyWithResponse added in v1.2.0

func (c *ClientWithResponses) CreateBackupPolicyWithBodyWithResponse(ctx context.Context, organization string, policy string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBackupPolicyResponse, error)

CreateBackupPolicyWithBodyWithResponse request with arbitrary body returning *CreateBackupPolicyResponse

func (*ClientWithResponses) CreateBackupPolicyWithResponse added in v1.2.0

func (c *ClientWithResponses) CreateBackupPolicyWithResponse(ctx context.Context, organization string, policy string, body CreateBackupPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBackupPolicyResponse, error)

func (*ClientWithResponses) CreateBackupWithBodyWithResponse added in v1.2.0

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

CreateBackupWithBodyWithResponse request with arbitrary body returning *CreateBackupResponse

func (*ClientWithResponses) CreateBackupWithResponse added in v1.2.0

func (c *ClientWithResponses) CreateBackupWithResponse(ctx context.Context, organization string, project string, database string, body CreateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBackupResponse, error)

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) CreateOrUpdateBackupWithBodyWithResponse added in v1.2.0

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

CreateOrUpdateBackupWithBodyWithResponse request with arbitrary body returning *CreateOrUpdateBackupResponse

func (*ClientWithResponses) CreateOrUpdateBackupWithResponse added in v1.2.0

func (c *ClientWithResponses) CreateOrUpdateBackupWithResponse(ctx context.Context, organization string, project string, database string, backup string, body CreateOrUpdateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrUpdateBackupResponse, 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) DeleteBackupPolicyWithResponse added in v1.2.0

func (c *ClientWithResponses) DeleteBackupPolicyWithResponse(ctx context.Context, organization string, policy string, params *DeleteBackupPolicyParams, reqEditors ...RequestEditorFn) (*DeleteBackupPolicyResponse, error)

DeleteBackupPolicyWithResponse request returning *DeleteBackupPolicyResponse

func (*ClientWithResponses) DeleteBackupWithResponse added in v1.2.0

func (c *ClientWithResponses) DeleteBackupWithResponse(ctx context.Context, organization string, project string, database string, backup string, params *DeleteBackupParams, reqEditors ...RequestEditorFn) (*DeleteBackupResponse, error)

DeleteBackupWithResponse request returning *DeleteBackupResponse

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) GetAllBackupPoliciesWithResponse added in v1.2.0

func (c *ClientWithResponses) GetAllBackupPoliciesWithResponse(ctx context.Context, params *GetAllBackupPoliciesParams, reqEditors ...RequestEditorFn) (*GetAllBackupPoliciesResponse, error)

GetAllBackupPoliciesWithResponse request returning *GetAllBackupPoliciesResponse

func (*ClientWithResponses) GetAllBackupsWithResponse added in v1.2.0

func (c *ClientWithResponses) GetAllBackupsWithResponse(ctx context.Context, params *GetAllBackupsParams, reqEditors ...RequestEditorFn) (*GetAllBackupsResponse, error)

GetAllBackupsWithResponse request returning *GetAllBackupsResponse

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) GetBackupPoliciesWithResponse added in v1.2.0

func (c *ClientWithResponses) GetBackupPoliciesWithResponse(ctx context.Context, organization string, params *GetBackupPoliciesParams, reqEditors ...RequestEditorFn) (*GetBackupPoliciesResponse, error)

GetBackupPoliciesWithResponse request returning *GetBackupPoliciesResponse

func (*ClientWithResponses) GetBackupPolicyWithResponse added in v1.2.0

func (c *ClientWithResponses) GetBackupPolicyWithResponse(ctx context.Context, organization string, policy string, reqEditors ...RequestEditorFn) (*GetBackupPolicyResponse, error)

GetBackupPolicyWithResponse request returning *GetBackupPolicyResponse

func (*ClientWithResponses) GetBackupWithResponse added in v1.2.0

func (c *ClientWithResponses) GetBackupWithResponse(ctx context.Context, organization string, project string, database string, backup string, reqEditors ...RequestEditorFn) (*GetBackupResponse, error)

GetBackupWithResponse request returning *GetBackupResponse

func (*ClientWithResponses) GetBackupsFromPolicyWithResponse added in v1.2.0

func (c *ClientWithResponses) GetBackupsFromPolicyWithResponse(ctx context.Context, organization string, policy string, params *GetBackupsFromPolicyParams, reqEditors ...RequestEditorFn) (*GetBackupsFromPolicyResponse, error)

GetBackupsFromPolicyWithResponse request returning *GetBackupsFromPolicyResponse

func (*ClientWithResponses) GetBackupsWithResponse added in v1.2.0

func (c *ClientWithResponses) GetBackupsWithResponse(ctx context.Context, organization string, project string, database string, params *GetBackupsParams, reqEditors ...RequestEditorFn) (*GetBackupsResponse, error)

GetBackupsWithResponse request returning *GetBackupsResponse

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) GetMatchingDatabasesWithResponse added in v1.2.0

func (c *ClientWithResponses) GetMatchingDatabasesWithResponse(ctx context.Context, organization string, policy string, params *GetMatchingDatabasesParams, reqEditors ...RequestEditorFn) (*GetMatchingDatabasesResponse, error)

GetMatchingDatabasesWithResponse request returning *GetMatchingDatabasesResponse

func (*ClientWithResponses) GetOrganizationBackupsWithResponse added in v1.2.0

func (c *ClientWithResponses) GetOrganizationBackupsWithResponse(ctx context.Context, organization string, params *GetOrganizationBackupsParams, reqEditors ...RequestEditorFn) (*GetOrganizationBackupsResponse, error)

GetOrganizationBackupsWithResponse request returning *GetOrganizationBackupsResponse

func (*ClientWithResponses) GetOrganizationDatabasesWithResponse

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

GetOrganizationDatabasesWithResponse request returning *GetOrganizationDatabasesResponse

func (*ClientWithResponses) GetProjectBackupsWithResponse added in v1.2.0

func (c *ClientWithResponses) GetProjectBackupsWithResponse(ctx context.Context, organization string, project string, params *GetProjectBackupsParams, reqEditors ...RequestEditorFn) (*GetProjectBackupsResponse, error)

GetProjectBackupsWithResponse request returning *GetProjectBackupsResponse

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) PatchBackupPolicyWithApplicationJSONPatchPlusJSONBodyWithResponse added in v1.2.0

func (c *ClientWithResponses) PatchBackupPolicyWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, organization string, policy string, body PatchBackupPolicyApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchBackupPolicyResponse, error)

func (*ClientWithResponses) PatchBackupPolicyWithBodyWithResponse added in v1.2.0

func (c *ClientWithResponses) PatchBackupPolicyWithBodyWithResponse(ctx context.Context, organization string, policy string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchBackupPolicyResponse, error)

PatchBackupPolicyWithBodyWithResponse request with arbitrary body returning *PatchBackupPolicyResponse

func (*ClientWithResponses) PatchBackupWithApplicationJSONPatchPlusJSONBodyWithResponse added in v1.2.0

func (c *ClientWithResponses) PatchBackupWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, organization string, project string, database string, backup string, body PatchBackupApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchBackupResponse, error)

func (*ClientWithResponses) PatchBackupWithBodyWithResponse added in v1.2.0

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

PatchBackupWithBodyWithResponse request with arbitrary body returning *PatchBackupResponse

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 {
	// GetAllBackupPoliciesWithResponse request
	GetAllBackupPoliciesWithResponse(ctx context.Context, params *GetAllBackupPoliciesParams, reqEditors ...RequestEditorFn) (*GetAllBackupPoliciesResponse, error)

	// GetBackupPoliciesWithResponse request
	GetBackupPoliciesWithResponse(ctx context.Context, organization string, params *GetBackupPoliciesParams, reqEditors ...RequestEditorFn) (*GetBackupPoliciesResponse, error)

	// DeleteBackupPolicyWithResponse request
	DeleteBackupPolicyWithResponse(ctx context.Context, organization string, policy string, params *DeleteBackupPolicyParams, reqEditors ...RequestEditorFn) (*DeleteBackupPolicyResponse, error)

	// GetBackupPolicyWithResponse request
	GetBackupPolicyWithResponse(ctx context.Context, organization string, policy string, reqEditors ...RequestEditorFn) (*GetBackupPolicyResponse, error)

	// PatchBackupPolicyWithBodyWithResponse request with any body
	PatchBackupPolicyWithBodyWithResponse(ctx context.Context, organization string, policy string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchBackupPolicyResponse, error)

	PatchBackupPolicyWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, organization string, policy string, body PatchBackupPolicyApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchBackupPolicyResponse, error)

	// CreateBackupPolicyWithBodyWithResponse request with any body
	CreateBackupPolicyWithBodyWithResponse(ctx context.Context, organization string, policy string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBackupPolicyResponse, error)

	CreateBackupPolicyWithResponse(ctx context.Context, organization string, policy string, body CreateBackupPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBackupPolicyResponse, error)

	// GetBackupsFromPolicyWithResponse request
	GetBackupsFromPolicyWithResponse(ctx context.Context, organization string, policy string, params *GetBackupsFromPolicyParams, reqEditors ...RequestEditorFn) (*GetBackupsFromPolicyResponse, error)

	// GetMatchingDatabasesWithResponse request
	GetMatchingDatabasesWithResponse(ctx context.Context, organization string, policy string, params *GetMatchingDatabasesParams, reqEditors ...RequestEditorFn) (*GetMatchingDatabasesResponse, error)

	// GetAllBackupsWithResponse request
	GetAllBackupsWithResponse(ctx context.Context, params *GetAllBackupsParams, reqEditors ...RequestEditorFn) (*GetAllBackupsResponse, error)

	// GetOrganizationBackupsWithResponse request
	GetOrganizationBackupsWithResponse(ctx context.Context, organization string, params *GetOrganizationBackupsParams, reqEditors ...RequestEditorFn) (*GetOrganizationBackupsResponse, error)

	// GetProjectBackupsWithResponse request
	GetProjectBackupsWithResponse(ctx context.Context, organization string, project string, params *GetProjectBackupsParams, reqEditors ...RequestEditorFn) (*GetProjectBackupsResponse, error)

	// GetBackupsWithResponse request
	GetBackupsWithResponse(ctx context.Context, organization string, project string, database string, params *GetBackupsParams, reqEditors ...RequestEditorFn) (*GetBackupsResponse, error)

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

	CreateBackupWithResponse(ctx context.Context, organization string, project string, database string, body CreateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBackupResponse, error)

	// DeleteBackupWithResponse request
	DeleteBackupWithResponse(ctx context.Context, organization string, project string, database string, backup string, params *DeleteBackupParams, reqEditors ...RequestEditorFn) (*DeleteBackupResponse, error)

	// GetBackupWithResponse request
	GetBackupWithResponse(ctx context.Context, organization string, project string, database string, backup string, reqEditors ...RequestEditorFn) (*GetBackupResponse, error)

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

	PatchBackupWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, organization string, project string, database string, backup string, body PatchBackupApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchBackupResponse, error)

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

	CreateOrUpdateBackupWithResponse(ctx context.Context, organization string, project string, database string, backup string, body CreateOrUpdateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrUpdateBackupResponse, error)

	// 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 CreateBackupJSONRequestBody added in v1.2.0

type CreateBackupJSONRequestBody = BackupCreateModel

CreateBackupJSONRequestBody defines body for CreateBackup for application/json ContentType.

type CreateBackupPolicyJSONRequestBody added in v1.2.0

type CreateBackupPolicyJSONRequestBody = BackupPolicyModel

CreateBackupPolicyJSONRequestBody defines body for CreateBackupPolicy for application/json ContentType.

type CreateBackupPolicyResponse added in v1.2.0

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

func ParseCreateBackupPolicyResponse added in v1.2.0

func ParseCreateBackupPolicyResponse(rsp *http.Response) (*CreateBackupPolicyResponse, error)

ParseCreateBackupPolicyResponse parses an HTTP response from a CreateBackupPolicyWithResponse call

func (CreateBackupPolicyResponse) Status added in v1.2.0

Status returns HTTPResponse.Status

func (CreateBackupPolicyResponse) StatusCode added in v1.2.0

func (r CreateBackupPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateBackupResponse added in v1.2.0

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

func ParseCreateBackupResponse added in v1.2.0

func ParseCreateBackupResponse(rsp *http.Response) (*CreateBackupResponse, error)

ParseCreateBackupResponse parses an HTTP response from a CreateBackupWithResponse call

func (CreateBackupResponse) Status added in v1.2.0

func (r CreateBackupResponse) Status() string

Status returns HTTPResponse.Status

func (CreateBackupResponse) StatusCode added in v1.2.0

func (r CreateBackupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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 CreateOrUpdateBackupJSONRequestBody added in v1.2.0

type CreateOrUpdateBackupJSONRequestBody = BackupModel

CreateOrUpdateBackupJSONRequestBody defines body for CreateOrUpdateBackup for application/json ContentType.

type CreateOrUpdateBackupResponse added in v1.2.0

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

func ParseCreateOrUpdateBackupResponse added in v1.2.0

func ParseCreateOrUpdateBackupResponse(rsp *http.Response) (*CreateOrUpdateBackupResponse, error)

ParseCreateOrUpdateBackupResponse parses an HTTP response from a CreateOrUpdateBackupWithResponse call

func (CreateOrUpdateBackupResponse) Status added in v1.2.0

Status returns HTTPResponse.Status

func (CreateOrUpdateBackupResponse) StatusCode added in v1.2.0

func (r CreateOrUpdateBackupResponse) 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/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
	//   * `RotatingCertificates` - TLS certificates rotation 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
  • `RotatingCertificates` - TLS certificates rotation 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"
	DatabaseStatusModelStateRotatingCertificates DatabaseStatusModelState = "RotatingCertificates"
	DatabaseStatusModelStateStopped              DatabaseStatusModelState = "Stopped"
	DatabaseStatusModelStateStopping             DatabaseStatusModelState = "Stopping"
)

Defines values for DatabaseStatusModelState.

type DeleteBackupParams added in v1.2.0

type DeleteBackupParams 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"`
}

DeleteBackupParams defines parameters for DeleteBackup.

type DeleteBackupPolicyParams added in v1.2.0

type DeleteBackupPolicyParams 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"`
}

DeleteBackupPolicyParams defines parameters for DeleteBackupPolicy.

type DeleteBackupPolicyResponse added in v1.2.0

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

func ParseDeleteBackupPolicyResponse added in v1.2.0

func ParseDeleteBackupPolicyResponse(rsp *http.Response) (*DeleteBackupPolicyResponse, error)

ParseDeleteBackupPolicyResponse parses an HTTP response from a DeleteBackupPolicyWithResponse call

func (DeleteBackupPolicyResponse) Status added in v1.2.0

Status returns HTTPResponse.Status

func (DeleteBackupPolicyResponse) StatusCode added in v1.2.0

func (r DeleteBackupPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteBackupResponse added in v1.2.0

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

func ParseDeleteBackupResponse added in v1.2.0

func ParseDeleteBackupResponse(rsp *http.Response) (*DeleteBackupResponse, error)

ParseDeleteBackupResponse parses an HTTP response from a DeleteBackupWithResponse call

func (DeleteBackupResponse) Status added in v1.2.0

func (r DeleteBackupResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteBackupResponse) StatusCode added in v1.2.0

func (r DeleteBackupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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 (
	ErrorContentCodeCONCURRENTUPDATE ErrorContentCode = "CONCURRENT_UPDATE"
	ErrorContentCodeHTTPERROR        ErrorContentCode = "HTTP_ERROR"
	ErrorContentCodeUNKNOWNREQUEST   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 GetAllBackupPoliciesParams added in v1.2.0

type GetAllBackupPoliciesParams 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"`
}

GetAllBackupPoliciesParams defines parameters for GetAllBackupPolicies.

type GetAllBackupPoliciesResponse added in v1.2.0

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

func ParseGetAllBackupPoliciesResponse added in v1.2.0

func ParseGetAllBackupPoliciesResponse(rsp *http.Response) (*GetAllBackupPoliciesResponse, error)

ParseGetAllBackupPoliciesResponse parses an HTTP response from a GetAllBackupPoliciesWithResponse call

func (GetAllBackupPoliciesResponse) Status added in v1.2.0

Status returns HTTPResponse.Status

func (GetAllBackupPoliciesResponse) StatusCode added in v1.2.0

func (r GetAllBackupPoliciesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAllBackupsParams added in v1.2.0

type GetAllBackupsParams 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"`
}

GetAllBackupsParams defines parameters for GetAllBackups.

type GetAllBackupsResponse added in v1.2.0

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

func ParseGetAllBackupsResponse added in v1.2.0

func ParseGetAllBackupsResponse(rsp *http.Response) (*GetAllBackupsResponse, error)

ParseGetAllBackupsResponse parses an HTTP response from a GetAllBackupsWithResponse call

func (GetAllBackupsResponse) Status added in v1.2.0

func (r GetAllBackupsResponse) Status() string

Status returns HTTPResponse.Status

func (GetAllBackupsResponse) StatusCode added in v1.2.0

func (r GetAllBackupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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 GetBackupPoliciesParams added in v1.2.0

type GetBackupPoliciesParams 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"`
}

GetBackupPoliciesParams defines parameters for GetBackupPolicies.

type GetBackupPoliciesResponse added in v1.2.0

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

func ParseGetBackupPoliciesResponse added in v1.2.0

func ParseGetBackupPoliciesResponse(rsp *http.Response) (*GetBackupPoliciesResponse, error)

ParseGetBackupPoliciesResponse parses an HTTP response from a GetBackupPoliciesWithResponse call

func (GetBackupPoliciesResponse) Status added in v1.2.0

func (r GetBackupPoliciesResponse) Status() string

Status returns HTTPResponse.Status

func (GetBackupPoliciesResponse) StatusCode added in v1.2.0

func (r GetBackupPoliciesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBackupPolicyResponse added in v1.2.0

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

func ParseGetBackupPolicyResponse added in v1.2.0

func ParseGetBackupPolicyResponse(rsp *http.Response) (*GetBackupPolicyResponse, error)

ParseGetBackupPolicyResponse parses an HTTP response from a GetBackupPolicyWithResponse call

func (GetBackupPolicyResponse) Status added in v1.2.0

func (r GetBackupPolicyResponse) Status() string

Status returns HTTPResponse.Status

func (GetBackupPolicyResponse) StatusCode added in v1.2.0

func (r GetBackupPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBackupResponse added in v1.2.0

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

func ParseGetBackupResponse added in v1.2.0

func ParseGetBackupResponse(rsp *http.Response) (*GetBackupResponse, error)

ParseGetBackupResponse parses an HTTP response from a GetBackupWithResponse call

func (GetBackupResponse) Status added in v1.2.0

func (r GetBackupResponse) Status() string

Status returns HTTPResponse.Status

func (GetBackupResponse) StatusCode added in v1.2.0

func (r GetBackupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBackupsFromPolicyParams added in v1.2.0

type GetBackupsFromPolicyParams 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"`
}

GetBackupsFromPolicyParams defines parameters for GetBackupsFromPolicy.

type GetBackupsFromPolicyResponse added in v1.2.0

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

func ParseGetBackupsFromPolicyResponse added in v1.2.0

func ParseGetBackupsFromPolicyResponse(rsp *http.Response) (*GetBackupsFromPolicyResponse, error)

ParseGetBackupsFromPolicyResponse parses an HTTP response from a GetBackupsFromPolicyWithResponse call

func (GetBackupsFromPolicyResponse) Status added in v1.2.0

Status returns HTTPResponse.Status

func (GetBackupsFromPolicyResponse) StatusCode added in v1.2.0

func (r GetBackupsFromPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBackupsParams added in v1.2.0

type GetBackupsParams 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"`
}

GetBackupsParams defines parameters for GetBackups.

type GetBackupsResponse added in v1.2.0

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

func ParseGetBackupsResponse added in v1.2.0

func ParseGetBackupsResponse(rsp *http.Response) (*GetBackupsResponse, error)

ParseGetBackupsResponse parses an HTTP response from a GetBackupsWithResponse call

func (GetBackupsResponse) Status added in v1.2.0

func (r GetBackupsResponse) Status() string

Status returns HTTPResponse.Status

func (GetBackupsResponse) StatusCode added in v1.2.0

func (r GetBackupsResponse) 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 GetMatchingDatabasesParams added in v1.2.0

type GetMatchingDatabasesParams 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"`
}

GetMatchingDatabasesParams defines parameters for GetMatchingDatabases.

type GetMatchingDatabasesResponse added in v1.2.0

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

func ParseGetMatchingDatabasesResponse added in v1.2.0

func ParseGetMatchingDatabasesResponse(rsp *http.Response) (*GetMatchingDatabasesResponse, error)

ParseGetMatchingDatabasesResponse parses an HTTP response from a GetMatchingDatabasesWithResponse call

func (GetMatchingDatabasesResponse) Status added in v1.2.0

Status returns HTTPResponse.Status

func (GetMatchingDatabasesResponse) StatusCode added in v1.2.0

func (r GetMatchingDatabasesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrganizationBackupsParams added in v1.2.0

type GetOrganizationBackupsParams 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"`
}

GetOrganizationBackupsParams defines parameters for GetOrganizationBackups.

type GetOrganizationBackupsResponse added in v1.2.0

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

func ParseGetOrganizationBackupsResponse added in v1.2.0

func ParseGetOrganizationBackupsResponse(rsp *http.Response) (*GetOrganizationBackupsResponse, error)

ParseGetOrganizationBackupsResponse parses an HTTP response from a GetOrganizationBackupsWithResponse call

func (GetOrganizationBackupsResponse) Status added in v1.2.0

Status returns HTTPResponse.Status

func (GetOrganizationBackupsResponse) StatusCode added in v1.2.0

func (r GetOrganizationBackupsResponse) 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 GetProjectBackupsParams added in v1.2.0

type GetProjectBackupsParams 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"`
}

GetProjectBackupsParams defines parameters for GetProjectBackups.

type GetProjectBackupsResponse added in v1.2.0

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

func ParseGetProjectBackupsResponse added in v1.2.0

func ParseGetProjectBackupsResponse(rsp *http.Response) (*GetProjectBackupsResponse, error)

ParseGetProjectBackupsResponse parses an HTTP response from a GetProjectBackupsWithResponse call

func (GetProjectBackupsResponse) Status added in v1.2.0

func (r GetProjectBackupsResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectBackupsResponse) StatusCode added in v1.2.0

func (r GetProjectBackupsResponse) 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 ImportSourceModel added in v1.2.0

type ImportSourceModel struct {
	// BackupHandle The existing backup handle to import
	BackupHandle string `cty:"backup_handle" hcl:"backup_handle" json:"backupHandle" tfsdk:"backup_handle"`

	// BackupPlugin The plugin used to create the backup to import
	BackupPlugin string `cty:"backup_plugin" hcl:"backup_plugin" json:"backupPlugin" tfsdk:"backup_plugin"`
}

ImportSourceModel defines model for ImportSourceModel.

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 (
	JsonPatchOperationOpAdd     JsonPatchOperationOp = "add"
	JsonPatchOperationOpCopy    JsonPatchOperationOp = "copy"
	JsonPatchOperationOpMove    JsonPatchOperationOp = "move"
	JsonPatchOperationOpRemove  JsonPatchOperationOp = "remove"
	JsonPatchOperationOpReplace JsonPatchOperationOp = "replace"
	JsonPatchOperationOpTest    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 PatchBackupApplicationJSONPatchPlusJSONBody added in v1.2.0

type PatchBackupApplicationJSONPatchPlusJSONBody = []JsonPatchOperation

PatchBackupApplicationJSONPatchPlusJSONBody defines parameters for PatchBackup.

type PatchBackupApplicationJSONPatchPlusJSONRequestBody added in v1.2.0

type PatchBackupApplicationJSONPatchPlusJSONRequestBody = PatchBackupApplicationJSONPatchPlusJSONBody

PatchBackupApplicationJSONPatchPlusJSONRequestBody defines body for PatchBackup for application/json-patch+json ContentType.

type PatchBackupPolicyApplicationJSONPatchPlusJSONBody added in v1.2.0

type PatchBackupPolicyApplicationJSONPatchPlusJSONBody = []JsonPatchOperation

PatchBackupPolicyApplicationJSONPatchPlusJSONBody defines parameters for PatchBackupPolicy.

type PatchBackupPolicyApplicationJSONPatchPlusJSONRequestBody added in v1.2.0

type PatchBackupPolicyApplicationJSONPatchPlusJSONRequestBody = PatchBackupPolicyApplicationJSONPatchPlusJSONBody

PatchBackupPolicyApplicationJSONPatchPlusJSONRequestBody defines body for PatchBackupPolicy for application/json-patch+json ContentType.

type PatchBackupPolicyResponse added in v1.2.0

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

func ParsePatchBackupPolicyResponse added in v1.2.0

func ParsePatchBackupPolicyResponse(rsp *http.Response) (*PatchBackupPolicyResponse, error)

ParsePatchBackupPolicyResponse parses an HTTP response from a PatchBackupPolicyWithResponse call

func (PatchBackupPolicyResponse) Status added in v1.2.0

func (r PatchBackupPolicyResponse) Status() string

Status returns HTTPResponse.Status

func (PatchBackupPolicyResponse) StatusCode added in v1.2.0

func (r PatchBackupPolicyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PatchBackupResponse added in v1.2.0

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

func ParsePatchBackupResponse added in v1.2.0

func ParsePatchBackupResponse(rsp *http.Response) (*PatchBackupResponse, error)

ParsePatchBackupResponse parses an HTTP response from a PatchBackupWithResponse call

func (PatchBackupResponse) Status added in v1.2.0

func (r PatchBackupResponse) Status() string

Status returns HTTPResponse.Status

func (PatchBackupResponse) StatusCode added in v1.2.0

func (r PatchBackupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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/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
	//   * `RotatingCertificates` - TLS certificates rotation is in progress for this domain
	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
  • `RotatingCertificates` - TLS certificates rotation is in progress for this domain
const (
	ProjectStatusModelStateAvailable            ProjectStatusModelState = "Available"
	ProjectStatusModelStateCreating             ProjectStatusModelState = "Creating"
	ProjectStatusModelStateDeleting             ProjectStatusModelState = "Deleting"
	ProjectStatusModelStateExpired              ProjectStatusModelState = "Expired"
	ProjectStatusModelStateFailed               ProjectStatusModelState = "Failed"
	ProjectStatusModelStateModifying            ProjectStatusModelState = "Modifying"
	ProjectStatusModelStateRotatingCertificates ProjectStatusModelState = "RotatingCertificates"
	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 RetentionModel added in v1.2.0

type RetentionModel struct {
	// Hourly The number of hourly backups to retain
	Hourly *int32 `cty:"hourly" hcl:"hourly" json:"hourly,omitempty" tfsdk:"hourly"`

	// Daily The number of daily backups to retain
	Daily *int32 `cty:"daily" hcl:"daily" json:"daily,omitempty" tfsdk:"daily"`

	// Weekly The number of weekly backups to retain
	Weekly *int32 `cty:"weekly" hcl:"weekly" json:"weekly,omitempty" tfsdk:"weekly"`

	// Monthly The number of monthly backups to retain
	Monthly *int32 `cty:"monthly" hcl:"monthly" json:"monthly,omitempty" tfsdk:"monthly"`

	// Yearly The number of yearly backups to retain
	Yearly   *int32                 `cty:"yearly" hcl:"yearly" json:"yearly,omitempty" tfsdk:"yearly"`
	Settings *RotationSettingsModel `cty:"settings" hcl:"settings" json:"settings,omitempty" tfsdk:"settings"`
}

RetentionModel defines model for RetentionModel.

type RotationSettingsModel added in v1.3.0

type RotationSettingsModel struct {
	// DayOfWeek The day of the week used to promote backup to weekly
	DayOfWeek *RotationSettingsModelDayOfWeek `cty:"day_of_week" hcl:"day_of_week" json:"dayOfWeek,omitempty" tfsdk:"day_of_week"`

	// Month The month of the year used to promote backup to yearly
	Month *RotationSettingsModelMonth `cty:"month" hcl:"month" json:"month,omitempty" tfsdk:"month"`

	// RelativeToLast Whether to apply the backup rotation scheme relative to the last successful backup instead to the current time
	RelativeToLast *bool `cty:"relative_to_last" hcl:"relative_to_last" json:"relativeToLast,omitempty" tfsdk:"relative_to_last"`

	// PromoteLatestToHourly Whether to promote the latest backup within the hour if multiple backups exist for that hour
	PromoteLatestToHourly *bool `` /* 133-byte string literal not displayed */

	// PromoteLatestToDaily Whether to promote the latest backup within the day if multiple backups exist for that day
	PromoteLatestToDaily *bool `` /* 129-byte string literal not displayed */

	// PromoteLatestToMonthly Whether to promote the latest backup within the month if multiple backups exist for that month
	PromoteLatestToMonthly *bool `` /* 137-byte string literal not displayed */
}

RotationSettingsModel defines model for RotationSettingsModel.

type RotationSettingsModelDayOfWeek added in v1.3.0

type RotationSettingsModelDayOfWeek string

RotationSettingsModelDayOfWeek The day of the week used to promote backup to weekly

const (
	RotationSettingsModelDayOfWeekFriday    RotationSettingsModelDayOfWeek = "Friday"
	RotationSettingsModelDayOfWeekMonday    RotationSettingsModelDayOfWeek = "Monday"
	RotationSettingsModelDayOfWeekSaturday  RotationSettingsModelDayOfWeek = "Saturday"
	RotationSettingsModelDayOfWeekSunday    RotationSettingsModelDayOfWeek = "Sunday"
	RotationSettingsModelDayOfWeekThursday  RotationSettingsModelDayOfWeek = "Thursday"
	RotationSettingsModelDayOfWeekTuesday   RotationSettingsModelDayOfWeek = "Tuesday"
	RotationSettingsModelDayOfWeekWednesday RotationSettingsModelDayOfWeek = "Wednesday"
)

Defines values for RotationSettingsModelDayOfWeek.

type RotationSettingsModelMonth added in v1.3.0

type RotationSettingsModelMonth string

RotationSettingsModelMonth The month of the year used to promote backup to yearly

const (
	RotationSettingsModelMonthApril     RotationSettingsModelMonth = "April"
	RotationSettingsModelMonthAugust    RotationSettingsModelMonth = "August"
	RotationSettingsModelMonthDecember  RotationSettingsModelMonth = "December"
	RotationSettingsModelMonthFebruary  RotationSettingsModelMonth = "February"
	RotationSettingsModelMonthJanuary   RotationSettingsModelMonth = "January"
	RotationSettingsModelMonthJuly      RotationSettingsModelMonth = "July"
	RotationSettingsModelMonthJune      RotationSettingsModelMonth = "June"
	RotationSettingsModelMonthMarch     RotationSettingsModelMonth = "March"
	RotationSettingsModelMonthMay       RotationSettingsModelMonth = "May"
	RotationSettingsModelMonthNovember  RotationSettingsModelMonth = "November"
	RotationSettingsModelMonthOctober   RotationSettingsModelMonth = "October"
	RotationSettingsModelMonthSeptember RotationSettingsModelMonth = "September"
)

Defines values for RotationSettingsModelMonth.

type SelectorModel added in v1.2.0

type SelectorModel struct {
	// Scope The scope that the backup policy applies to
	Scope string `cty:"scope" hcl:"scope" json:"scope" tfsdk:"scope"`

	// Slas The SLAs to filter databases on
	Slas *[]string `cty:"slas" hcl:"slas" json:"slas,omitempty" tfsdk:"slas"`

	// Tiers The tiers to filter databases on
	Tiers *[]string `cty:"tiers" hcl:"tiers" json:"tiers,omitempty" tfsdk:"tiers"`

	// Labels The user-defined labels to filter databases on
	Labels *map[string]string `cty:"labels" hcl:"labels" json:"labels,omitempty" tfsdk:"labels"`
}

SelectorModel defines model for SelectorModel.

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