Documentation
¶
Index ¶
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func NewConfiguration() *config.Configuration
- func ParameterValueToString(obj interface{}, key string) string
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type ACL
- type APIClient
- func (a *APIClient) CloneInstance(ctx context.Context, projectId string, instanceId string) ApiCloneInstanceRequest
- func (a *APIClient) CloneInstanceExecute(ctx context.Context, projectId string, instanceId string) (*CloneInstanceResponse, error)
- func (a *APIClient) CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest
- func (a *APIClient) CreateInstanceExecute(ctx context.Context, projectId string) (*CreateInstanceResponse, error)
- func (a *APIClient) CreateUser(ctx context.Context, projectId string, instanceId string) ApiCreateUserRequest
- func (a *APIClient) CreateUserExecute(ctx context.Context, projectId string, instanceId string) (*CreateUserResponse, error)
- func (a *APIClient) DeleteInstance(ctx context.Context, projectId string, instanceId string) ApiDeleteInstanceRequest
- func (a *APIClient) DeleteInstanceExecute(ctx context.Context, projectId string, instanceId string) error
- func (a *APIClient) DeleteUser(ctx context.Context, projectId string, instanceId string, userId string) ApiDeleteUserRequest
- func (a *APIClient) DeleteUserExecute(ctx context.Context, projectId string, instanceId string, userId string) error
- func (a *APIClient) DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest
- func (a *APIClient) DisableServiceExecute(ctx context.Context, projectId string) error
- func (a *APIClient) GetBackup(ctx context.Context, projectId string, instanceId string, backupId string) ApiGetBackupRequest
- func (a *APIClient) GetBackupExecute(ctx context.Context, projectId string, instanceId string, backupId string) (*GetBackupResponse, error)
- func (c *APIClient) GetConfig() *config.Configuration
- func (a *APIClient) GetInstance(ctx context.Context, projectId string, instanceId string) ApiGetInstanceRequest
- func (a *APIClient) GetInstanceExecute(ctx context.Context, projectId string, instanceId string) (*GetInstanceResponse, error)
- func (a *APIClient) GetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiGetUserRequest
- func (a *APIClient) GetUserExecute(ctx context.Context, projectId string, instanceId string, userId string) (*GetUserResponse, error)
- func (a *APIClient) ListBackups(ctx context.Context, projectId string, instanceId string) ApiListBackupsRequest
- func (a *APIClient) ListBackupsExecute(ctx context.Context, projectId string, instanceId string) (*ListBackupsResponse, error)
- func (a *APIClient) ListFlavors(ctx context.Context, projectId string) ApiListFlavorsRequest
- func (a *APIClient) ListFlavorsExecute(ctx context.Context, projectId string) (*ListFlavorsResponse, error)
- func (a *APIClient) ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest
- func (a *APIClient) ListInstancesExecute(ctx context.Context, projectId string) (*ListInstancesResponse, error)
- func (a *APIClient) ListMetrics(ctx context.Context, projectId string, instanceId string, metric string) ApiListMetricsRequest
- func (a *APIClient) ListMetricsExecute(ctx context.Context, projectId string, instanceId string, metric string) (*ListMetricsResponse, error)
- func (a *APIClient) ListRestoreJobs(ctx context.Context, projectId string, instanceId string) ApiListRestoreJobsRequest
- func (a *APIClient) ListRestoreJobsExecute(ctx context.Context, projectId string, instanceId string) (*ListRestoreJobsResponse, error)
- func (a *APIClient) ListStorages(ctx context.Context, projectId string, flavor string) ApiListStoragesRequest
- func (a *APIClient) ListStoragesExecute(ctx context.Context, projectId string, flavor string) (*ListStoragesResponse, error)
- func (a *APIClient) ListUsers(ctx context.Context, projectId string, instanceId string) ApiListUsersRequest
- func (a *APIClient) ListUsersExecute(ctx context.Context, projectId string, instanceId string) (*ListUsersResponse, error)
- func (a *APIClient) ListVersions(ctx context.Context, projectId string) ApiListVersionsRequest
- func (a *APIClient) ListVersionsExecute(ctx context.Context, projectId string) (*ListVersionsResponse, error)
- func (a *APIClient) PartialUpdateInstance(ctx context.Context, projectId string, instanceId string) ApiPartialUpdateInstanceRequest
- func (a *APIClient) PartialUpdateInstanceExecute(ctx context.Context, projectId string, instanceId string) (*UpdateInstanceResponse, error)
- func (a *APIClient) PartialUpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiPartialUpdateUserRequest
- func (a *APIClient) PartialUpdateUserExecute(ctx context.Context, projectId string, instanceId string, userId string) error
- func (a *APIClient) ResetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiResetUserRequest
- func (a *APIClient) ResetUserExecute(ctx context.Context, projectId string, instanceId string, userId string) (*User, error)
- func (a *APIClient) RestoreInstance(ctx context.Context, projectId string, instanceId string) ApiRestoreInstanceRequest
- func (a *APIClient) RestoreInstanceExecute(ctx context.Context, projectId string, instanceId string) (*RestoreInstanceResponse, error)
- func (a *APIClient) UpdateBackupSchedule(ctx context.Context, projectId string, instanceId string) ApiUpdateBackupScheduleRequest
- func (a *APIClient) UpdateBackupScheduleExecute(ctx context.Context, projectId string, instanceId string) (*BackupSchedule, error)
- func (a *APIClient) UpdateInstance(ctx context.Context, projectId string, instanceId string) ApiUpdateInstanceRequest
- func (a *APIClient) UpdateInstanceExecute(ctx context.Context, projectId string, instanceId string) (*UpdateInstanceResponse, error)
- func (a *APIClient) UpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiUpdateUserRequest
- func (a *APIClient) UpdateUserExecute(ctx context.Context, projectId string, instanceId string, userId string) error
- type ApiCloneInstanceRequest
- type ApiCreateInstanceRequest
- type ApiCreateUserRequest
- type ApiDeleteInstanceRequest
- type ApiDeleteUserRequest
- type ApiDisableServiceRequest
- type ApiGetBackupRequest
- type ApiGetInstanceRequest
- type ApiGetUserRequest
- type ApiListBackupsRequest
- type ApiListFlavorsRequest
- type ApiListInstancesRequest
- type ApiListMetricsRequest
- func (r ApiListMetricsRequest) End(end string) ApiListMetricsRequest
- func (r ApiListMetricsRequest) Execute() (*ListMetricsResponse, error)
- func (r ApiListMetricsRequest) Granularity(granularity string) ApiListMetricsRequest
- func (r ApiListMetricsRequest) Period(period string) ApiListMetricsRequest
- func (r ApiListMetricsRequest) Start(start string) ApiListMetricsRequest
- type ApiListRestoreJobsRequest
- type ApiListStoragesRequest
- type ApiListUsersRequest
- type ApiListVersionsRequest
- type ApiPartialUpdateInstanceRequest
- type ApiPartialUpdateUserRequest
- type ApiResetUserRequest
- type ApiRestoreInstanceRequest
- type ApiUpdateBackupScheduleRequest
- type ApiUpdateInstanceRequest
- type ApiUpdateUserRequest
- type Backup
- type BackupSchedule
- type CloneInstancePayload
- type CloneInstanceResponse
- type CreateInstancePayload
- type CreateInstanceResponse
- type CreateUserPayload
- type CreateUserRequest
- type CreateUserResponse
- type DataPoint
- type DefaultApiService
- type Error
- type Flavor
- type GetBackupResponse
- type GetInstanceResponse
- type GetUserResponse
- type HandlersInfraFlavor
- type HandlersInfraGetFlavorsResponse
- type HandlersInstancesGetInstanceResponse
- type Host
- type HostMetric
- type Instance
- type InstanceListInstance
- type InstanceResponseUser
- type ListBackupsResponse
- type ListFlavorsResponse
- type ListInstancesResponse
- type ListMetricsResponse
- type ListRestoreJobsResponse
- type ListStoragesResponse
- type ListUser
- type ListUsersResponse
- type ListVersionsResponse
- type MappedNullable
- type NullableBool
- type NullableFloat32
- type NullableFloat64
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableString
- type NullableTime
- type PartialUpdateInstancePayload
- type PartialUpdateUserPayload
- type RestoreInstancePayload
- type RestoreInstanceResponse
- type RestoreInstanceStatus
- type Storage
- type StorageRange
- type UpdateBackupSchedulePayload
- type UpdateInstancePayload
- type UpdateInstanceResponse
- type UpdateUserPayload
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func NewConfiguration ¶
func NewConfiguration() *config.Configuration
NewConfiguration returns a new Configuration object
func ParameterValueToString ¶
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct {
// contains filtered or unexported fields
}
APIClient manages communication with the STACKIT MongoDB Service API API v1.0.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error)
NewAPIClient creates a new API client. Optionally receives configuration options
func (*APIClient) CloneInstance ¶
func (a *APIClient) CloneInstance(ctx context.Context, projectId string, instanceId string) ApiCloneInstanceRequest
CloneInstance Clone instance
Clone an instance via PIT restore<br/> Note that the Timestamp is a RFC3339 standard and uses by default UTC time format<br/> As an example a valid timestamp look like "2023-04-20T15:05:15Z"
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @return ApiCloneInstanceRequest
func (*APIClient) CloneInstanceExecute ¶
func (*APIClient) CreateInstance ¶
func (a *APIClient) CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest
CreateInstance Create instance
Create and deploys an instance<br/> Note that the time format for the backupSchedule is in UTC
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @return ApiCreateInstanceRequest
func (*APIClient) CreateInstanceExecute ¶
func (*APIClient) CreateUser ¶
func (a *APIClient) CreateUser(ctx context.Context, projectId string, instanceId string) ApiCreateUserRequest
CreateUser Create User
create a new user for a mongodb instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @return ApiCreateUserRequest
func (*APIClient) CreateUserExecute ¶
func (*APIClient) DeleteInstance ¶
func (a *APIClient) DeleteInstance(ctx context.Context, projectId string, instanceId string) ApiDeleteInstanceRequest
DeleteInstance Delete instance
removes an instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @return ApiDeleteInstanceRequest
func (*APIClient) DeleteInstanceExecute ¶
func (*APIClient) DeleteUser ¶
func (a *APIClient) DeleteUser(ctx context.Context, projectId string, instanceId string, userId string) ApiDeleteUserRequest
DeleteUser Delete User
delete mongodb user
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @param userId user id @return ApiDeleteUserRequest
func (*APIClient) DeleteUserExecute ¶
func (*APIClient) DisableService ¶
func (a *APIClient) DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest
DisableService Delete project
removes all instances inside project
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @return ApiDisableServiceRequest
func (*APIClient) DisableServiceExecute ¶
func (*APIClient) GetBackup ¶
func (a *APIClient) GetBackup(ctx context.Context, projectId string, instanceId string, backupId string) ApiGetBackupRequest
GetBackup Get backup
Get details about a specific backup
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @param backupId backup id @return ApiGetBackupRequest
func (*APIClient) GetBackupExecute ¶
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *config.Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
func (*APIClient) GetInstance ¶
func (a *APIClient) GetInstance(ctx context.Context, projectId string, instanceId string) ApiGetInstanceRequest
GetInstance Get instance
gets information of an instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @return ApiGetInstanceRequest
func (*APIClient) GetInstanceExecute ¶
func (*APIClient) GetUser ¶
func (a *APIClient) GetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiGetUserRequest
GetUser Get User
get detailed information of a user of a mongodb instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @param userId user id @return ApiGetUserRequest
func (*APIClient) GetUserExecute ¶
func (*APIClient) ListBackups ¶
func (a *APIClient) ListBackups(ctx context.Context, projectId string, instanceId string) ApiListBackupsRequest
ListBackups List backup
List backups of an instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @return ApiListBackupsRequest
func (*APIClient) ListBackupsExecute ¶
func (*APIClient) ListFlavors ¶
func (a *APIClient) ListFlavors(ctx context.Context, projectId string) ApiListFlavorsRequest
ListFlavors Flavors
returns all possible flavors
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @return ApiListFlavorsRequest
func (*APIClient) ListFlavorsExecute ¶
func (*APIClient) ListInstances ¶
func (a *APIClient) ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest
ListInstances List Instances
list all instances for a projectID
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @return ApiListInstancesRequest
func (*APIClient) ListInstancesExecute ¶
func (*APIClient) ListMetrics ¶
func (a *APIClient) ListMetrics(ctx context.Context, projectId string, instanceId string, metric string) ApiListMetricsRequest
ListMetrics Metrics
returns metrics for an instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @param metric metric type @return ApiListMetricsRequest
func (*APIClient) ListMetricsExecute ¶
func (*APIClient) ListRestoreJobs ¶
func (a *APIClient) ListRestoreJobs(ctx context.Context, projectId string, instanceId string) ApiListRestoreJobsRequest
ListRestoreJobs List restore jobs
List restore jobs of an instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @return ApiListRestoreJobsRequest
func (*APIClient) ListRestoreJobsExecute ¶
func (*APIClient) ListStorages ¶
func (a *APIClient) ListStorages(ctx context.Context, projectId string, flavor string) ApiListStoragesRequest
ListStorages Get storage
returns the storage for a certain flavor
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param flavor flavor id @return ApiListStoragesRequest
func (*APIClient) ListStoragesExecute ¶
func (*APIClient) ListUsers ¶
func (a *APIClient) ListUsers(ctx context.Context, projectId string, instanceId string) ApiListUsersRequest
ListUsers List Users
list all users for a mongodb instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @return ApiListUsersRequest
func (*APIClient) ListUsersExecute ¶
func (*APIClient) ListVersions ¶
func (a *APIClient) ListVersions(ctx context.Context, projectId string) ApiListVersionsRequest
ListVersions Get versions
returns all available versions for creating endpoint
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @return ApiListVersionsRequest
func (*APIClient) ListVersionsExecute ¶
func (*APIClient) PartialUpdateInstance ¶
func (a *APIClient) PartialUpdateInstance(ctx context.Context, projectId string, instanceId string) ApiPartialUpdateInstanceRequest
PartialUpdateInstance Patch endpoint
Updates a deployment plan<br/> Note that the time format for the backupSchedule is in UTC
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @return ApiPartialUpdateInstanceRequest
func (*APIClient) PartialUpdateInstanceExecute ¶
func (*APIClient) PartialUpdateUser ¶
func (a *APIClient) PartialUpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiPartialUpdateUserRequest
PartialUpdateUser Update User
updates user for a mongodb instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @param userId user id @return ApiPartialUpdateUserRequest
func (*APIClient) PartialUpdateUserExecute ¶
func (*APIClient) ResetUser ¶
func (a *APIClient) ResetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiResetUserRequest
ResetUser Reset User
resets mongodb user's password
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @param userId user id @return ApiResetUserRequest
func (*APIClient) ResetUserExecute ¶
func (*APIClient) RestoreInstance ¶
func (a *APIClient) RestoreInstance(ctx context.Context, projectId string, instanceId string) ApiRestoreInstanceRequest
RestoreInstance Restore instance
Restore an instance based on snapshot
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @return ApiRestoreInstanceRequest
func (*APIClient) RestoreInstanceExecute ¶
func (*APIClient) UpdateBackupSchedule ¶
func (a *APIClient) UpdateBackupSchedule(ctx context.Context, projectId string, instanceId string) ApiUpdateBackupScheduleRequest
UpdateBackupSchedule Update schedule
Updates a backup schedule<br/> Note that the time format is in UTC
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @return ApiUpdateBackupScheduleRequest
func (*APIClient) UpdateBackupScheduleExecute ¶
func (*APIClient) UpdateInstance ¶
func (a *APIClient) UpdateInstance(ctx context.Context, projectId string, instanceId string) ApiUpdateInstanceRequest
UpdateInstance Put endpoint
Updates a deployment plan<br/> Note that the time format for the backupSchedule is in UTC
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @return ApiUpdateInstanceRequest
func (*APIClient) UpdateInstanceExecute ¶
func (*APIClient) UpdateUser ¶
func (a *APIClient) UpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiUpdateUserRequest
UpdateUser Update User
updates user for a mongodb instance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId project id @param instanceId instance id @param userId user id @return ApiUpdateUserRequest
type ApiCloneInstanceRequest ¶
type ApiCloneInstanceRequest struct {
// contains filtered or unexported fields
}
func (ApiCloneInstanceRequest) CloneInstancePayload ¶
func (r ApiCloneInstanceRequest) CloneInstancePayload(cloneInstancePayload CloneInstancePayload) ApiCloneInstanceRequest
func (ApiCloneInstanceRequest) Execute ¶
func (r ApiCloneInstanceRequest) Execute() (*CloneInstanceResponse, error)
type ApiCreateInstanceRequest ¶
type ApiCreateInstanceRequest struct {
// contains filtered or unexported fields
}
func (ApiCreateInstanceRequest) CreateInstancePayload ¶
func (r ApiCreateInstanceRequest) CreateInstancePayload(createInstancePayload CreateInstancePayload) ApiCreateInstanceRequest
func (ApiCreateInstanceRequest) Execute ¶
func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error)
type ApiCreateUserRequest ¶
type ApiCreateUserRequest struct {
// contains filtered or unexported fields
}
func (ApiCreateUserRequest) CreateUserPayload ¶
func (r ApiCreateUserRequest) CreateUserPayload(createUserPayload CreateUserPayload) ApiCreateUserRequest
func (ApiCreateUserRequest) Execute ¶
func (r ApiCreateUserRequest) Execute() (*CreateUserResponse, error)
type ApiDeleteInstanceRequest ¶
type ApiDeleteInstanceRequest struct {
// contains filtered or unexported fields
}
func (ApiDeleteInstanceRequest) Execute ¶
func (r ApiDeleteInstanceRequest) Execute() error
type ApiDeleteUserRequest ¶
type ApiDeleteUserRequest struct {
// contains filtered or unexported fields
}
func (ApiDeleteUserRequest) Execute ¶
func (r ApiDeleteUserRequest) Execute() error
type ApiDisableServiceRequest ¶
type ApiDisableServiceRequest struct {
// contains filtered or unexported fields
}
func (ApiDisableServiceRequest) Execute ¶
func (r ApiDisableServiceRequest) Execute() error
type ApiGetBackupRequest ¶
type ApiGetBackupRequest struct {
// contains filtered or unexported fields
}
func (ApiGetBackupRequest) Execute ¶
func (r ApiGetBackupRequest) Execute() (*GetBackupResponse, error)
type ApiGetInstanceRequest ¶
type ApiGetInstanceRequest struct {
// contains filtered or unexported fields
}
func (ApiGetInstanceRequest) Execute ¶
func (r ApiGetInstanceRequest) Execute() (*GetInstanceResponse, error)
type ApiGetUserRequest ¶
type ApiGetUserRequest struct {
// contains filtered or unexported fields
}
func (ApiGetUserRequest) Execute ¶
func (r ApiGetUserRequest) Execute() (*GetUserResponse, error)
type ApiListBackupsRequest ¶
type ApiListBackupsRequest struct {
// contains filtered or unexported fields
}
func (ApiListBackupsRequest) Execute ¶
func (r ApiListBackupsRequest) Execute() (*ListBackupsResponse, error)
type ApiListFlavorsRequest ¶
type ApiListFlavorsRequest struct {
// contains filtered or unexported fields
}
func (ApiListFlavorsRequest) Execute ¶
func (r ApiListFlavorsRequest) Execute() (*ListFlavorsResponse, error)
type ApiListInstancesRequest ¶
type ApiListInstancesRequest struct {
// contains filtered or unexported fields
}
func (ApiListInstancesRequest) Execute ¶
func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error)
func (ApiListInstancesRequest) Tag ¶
func (r ApiListInstancesRequest) Tag(tag string) ApiListInstancesRequest
type ApiListMetricsRequest ¶
type ApiListMetricsRequest struct {
// contains filtered or unexported fields
}
func (ApiListMetricsRequest) End ¶
func (r ApiListMetricsRequest) End(end string) ApiListMetricsRequest
func (ApiListMetricsRequest) Execute ¶
func (r ApiListMetricsRequest) Execute() (*ListMetricsResponse, error)
func (ApiListMetricsRequest) Granularity ¶
func (r ApiListMetricsRequest) Granularity(granularity string) ApiListMetricsRequest
func (ApiListMetricsRequest) Period ¶
func (r ApiListMetricsRequest) Period(period string) ApiListMetricsRequest
func (ApiListMetricsRequest) Start ¶
func (r ApiListMetricsRequest) Start(start string) ApiListMetricsRequest
type ApiListRestoreJobsRequest ¶
type ApiListRestoreJobsRequest struct {
// contains filtered or unexported fields
}
func (ApiListRestoreJobsRequest) Execute ¶
func (r ApiListRestoreJobsRequest) Execute() (*ListRestoreJobsResponse, error)
type ApiListStoragesRequest ¶
type ApiListStoragesRequest struct {
// contains filtered or unexported fields
}
func (ApiListStoragesRequest) Execute ¶
func (r ApiListStoragesRequest) Execute() (*ListStoragesResponse, error)
type ApiListUsersRequest ¶
type ApiListUsersRequest struct {
// contains filtered or unexported fields
}
func (ApiListUsersRequest) Execute ¶
func (r ApiListUsersRequest) Execute() (*ListUsersResponse, error)
type ApiListVersionsRequest ¶
type ApiListVersionsRequest struct {
// contains filtered or unexported fields
}
func (ApiListVersionsRequest) Execute ¶
func (r ApiListVersionsRequest) Execute() (*ListVersionsResponse, error)
type ApiPartialUpdateInstanceRequest ¶
type ApiPartialUpdateInstanceRequest struct {
// contains filtered or unexported fields
}
func (ApiPartialUpdateInstanceRequest) Execute ¶
func (r ApiPartialUpdateInstanceRequest) Execute() (*UpdateInstanceResponse, error)
func (ApiPartialUpdateInstanceRequest) PartialUpdateInstancePayload ¶
func (r ApiPartialUpdateInstanceRequest) PartialUpdateInstancePayload(partialUpdateInstancePayload PartialUpdateInstancePayload) ApiPartialUpdateInstanceRequest
type ApiPartialUpdateUserRequest ¶
type ApiPartialUpdateUserRequest struct {
// contains filtered or unexported fields
}
func (ApiPartialUpdateUserRequest) Execute ¶
func (r ApiPartialUpdateUserRequest) Execute() error
func (ApiPartialUpdateUserRequest) PartialUpdateUserPayload ¶
func (r ApiPartialUpdateUserRequest) PartialUpdateUserPayload(partialUpdateUserPayload PartialUpdateUserPayload) ApiPartialUpdateUserRequest
type ApiResetUserRequest ¶
type ApiResetUserRequest struct {
// contains filtered or unexported fields
}
func (ApiResetUserRequest) Execute ¶
func (r ApiResetUserRequest) Execute() (*User, error)
type ApiRestoreInstanceRequest ¶
type ApiRestoreInstanceRequest struct {
// contains filtered or unexported fields
}
func (ApiRestoreInstanceRequest) Execute ¶
func (r ApiRestoreInstanceRequest) Execute() (*RestoreInstanceResponse, error)
func (ApiRestoreInstanceRequest) RestoreInstancePayload ¶
func (r ApiRestoreInstanceRequest) RestoreInstancePayload(restoreInstancePayload RestoreInstancePayload) ApiRestoreInstanceRequest
type ApiUpdateBackupScheduleRequest ¶
type ApiUpdateBackupScheduleRequest struct {
// contains filtered or unexported fields
}
func (ApiUpdateBackupScheduleRequest) Execute ¶
func (r ApiUpdateBackupScheduleRequest) Execute() (*BackupSchedule, error)
func (ApiUpdateBackupScheduleRequest) UpdateBackupSchedulePayload ¶
func (r ApiUpdateBackupScheduleRequest) UpdateBackupSchedulePayload(updateBackupSchedulePayload UpdateBackupSchedulePayload) ApiUpdateBackupScheduleRequest
type ApiUpdateInstanceRequest ¶
type ApiUpdateInstanceRequest struct {
// contains filtered or unexported fields
}
func (ApiUpdateInstanceRequest) Execute ¶
func (r ApiUpdateInstanceRequest) Execute() (*UpdateInstanceResponse, error)
func (ApiUpdateInstanceRequest) UpdateInstancePayload ¶
func (r ApiUpdateInstanceRequest) UpdateInstancePayload(updateInstancePayload UpdateInstancePayload) ApiUpdateInstanceRequest
type ApiUpdateUserRequest ¶
type ApiUpdateUserRequest struct {
// contains filtered or unexported fields
}
func (ApiUpdateUserRequest) Execute ¶
func (r ApiUpdateUserRequest) Execute() error
func (ApiUpdateUserRequest) UpdateUserPayload ¶
func (r ApiUpdateUserRequest) UpdateUserPayload(updateUserPayload UpdateUserPayload) ApiUpdateUserRequest
type Backup ¶
type Backup struct { EndTime *string `json:"endTime,omitempty"` Error *string `json:"error,omitempty"` Id *string `json:"id,omitempty"` Labels *[]string `json:"labels,omitempty"` Name *string `json:"name,omitempty"` Options *map[string]string `json:"options,omitempty"` Size *int64 `json:"size,omitempty"` StartTime *string `json:"startTime,omitempty"` }
type BackupSchedule ¶
type BackupSchedule struct { BackupSchedule *string `json:"backupSchedule,omitempty"` DailySnapshotRetentionDays *int64 `json:"dailySnapshotRetentionDays,omitempty"` MonthlySnapshotRetentionMonths *int64 `json:"monthlySnapshotRetentionMonths,omitempty"` PointInTimeWindowHours *int64 `json:"pointInTimeWindowHours,omitempty"` SnapshotRetentionDays *int64 `json:"snapshotRetentionDays,omitempty"` WeeklySnapshotRetentionWeeks *int64 `json:"weeklySnapshotRetentionWeeks,omitempty"` }
type CloneInstancePayload ¶
type CloneInstanceResponse ¶
type CloneInstanceResponse struct {
InstanceId *string `json:"instanceId,omitempty"`
}
type CreateInstancePayload ¶
type CreateInstancePayload struct { // REQUIRED Acl *ACL `json:"acl"` // REQUIRED BackupSchedule *string `json:"backupSchedule"` // REQUIRED FlavorId *string `json:"flavorId"` // Labels field is not certain/clear Labels *map[string]string `json:"labels,omitempty"` // REQUIRED Name *string `json:"name"` // REQUIRED Options *map[string]string `json:"options"` // REQUIRED Replicas *int64 `json:"replicas"` // REQUIRED Storage *Storage `json:"storage"` // REQUIRED Version *string `json:"version"` }
type CreateInstanceResponse ¶
type CreateInstanceResponse struct {
Id *string `json:"id,omitempty"`
}
type CreateUserPayload ¶
type CreateUserRequest ¶
type CreateUserResponse ¶
type CreateUserResponse struct {
Item *User `json:"item,omitempty"`
}
type GetBackupResponse ¶
type GetBackupResponse struct {
Item *Backup `json:"item,omitempty"`
}
type GetInstanceResponse ¶
type GetInstanceResponse struct {
Item *Instance `json:"item,omitempty"`
}
type GetUserResponse ¶
type GetUserResponse struct {
Item *InstanceResponseUser `json:"item,omitempty"`
}
type HandlersInfraFlavor ¶
type HandlersInfraGetFlavorsResponse ¶
type HandlersInfraGetFlavorsResponse struct {
Flavors *[]HandlersInfraFlavor `json:"flavors,omitempty"`
}
type HandlersInstancesGetInstanceResponse ¶
type HandlersInstancesGetInstanceResponse struct {
Item *Instance `json:"item,omitempty"`
}
type Host ¶
type Host struct { HostMetrics *[]HostMetric `json:"hostMetrics,omitempty"` Id *string `json:"id,omitempty"` }
type HostMetric ¶
type Instance ¶
type Instance struct { Acl *ACL `json:"acl,omitempty"` BackupSchedule *string `json:"backupSchedule,omitempty"` Flavor *Flavor `json:"flavor,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Options *map[string]string `json:"options,omitempty"` Replicas *int64 `json:"replicas,omitempty"` Status *string `json:"status,omitempty"` Storage *Storage `json:"storage,omitempty"` Version *string `json:"version,omitempty"` }
type InstanceListInstance ¶
type InstanceResponseUser ¶
type ListBackupsResponse ¶
type ListFlavorsResponse ¶
type ListFlavorsResponse struct {
Flavors *[]HandlersInfraFlavor `json:"flavors,omitempty"`
}
type ListInstancesResponse ¶
type ListInstancesResponse struct { Count *int64 `json:"count,omitempty"` Items *[]InstanceListInstance `json:"items,omitempty"` }
type ListMetricsResponse ¶
type ListMetricsResponse struct {
Hosts *[]Host `json:"hosts,omitempty"`
}
type ListRestoreJobsResponse ¶
type ListRestoreJobsResponse struct {
Items *[]RestoreInstanceStatus `json:"items,omitempty"`
}
type ListStoragesResponse ¶
type ListStoragesResponse struct { StorageClasses *[]string `json:"storageClasses,omitempty"` StorageRange *StorageRange `json:"storageRange,omitempty"` }
type ListUsersResponse ¶
type ListVersionsResponse ¶
type ListVersionsResponse struct {
Versions *[]string `json:"versions,omitempty"`
}
type MappedNullable ¶
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type PartialUpdateInstancePayload ¶
type PartialUpdateInstancePayload struct { Acl *ACL `json:"acl,omitempty"` BackupSchedule *string `json:"backupSchedule,omitempty"` FlavorId *string `json:"flavorId,omitempty"` // Labels field is not certain/clear Labels *map[string]string `json:"labels,omitempty"` Name *string `json:"name,omitempty"` Options *map[string]string `json:"options,omitempty"` Replicas *int64 `json:"replicas,omitempty"` Storage *Storage `json:"storage,omitempty"` Version *string `json:"version,omitempty"` }
type RestoreInstancePayload ¶
type RestoreInstanceResponse ¶
type RestoreInstanceResponse struct {
Item *RestoreInstanceStatus `json:"item,omitempty"`
}
type RestoreInstanceStatus ¶
type StorageRange ¶
type UpdateBackupSchedulePayload ¶
type UpdateBackupSchedulePayload struct { BackupSchedule *string `json:"backupSchedule,omitempty"` DailySnapshotRetentionDays *int64 `json:"dailySnapshotRetentionDays,omitempty"` MonthlySnapshotRetentionMonths *int64 `json:"monthlySnapshotRetentionMonths,omitempty"` PointInTimeWindowHours *int64 `json:"pointInTimeWindowHours,omitempty"` SnapshotRetentionDays *int64 `json:"snapshotRetentionDays,omitempty"` WeeklySnapshotRetentionWeeks *int64 `json:"weeklySnapshotRetentionWeeks,omitempty"` }
type UpdateInstancePayload ¶
type UpdateInstancePayload struct { // REQUIRED Acl *ACL `json:"acl"` // REQUIRED BackupSchedule *string `json:"backupSchedule"` // REQUIRED FlavorId *string `json:"flavorId"` // Labels field is not certain/clear Labels *map[string]string `json:"labels,omitempty"` // REQUIRED Name *string `json:"name"` // REQUIRED Options *map[string]string `json:"options"` // REQUIRED Replicas *int64 `json:"replicas"` // REQUIRED Storage *Storage `json:"storage"` // REQUIRED Version *string `json:"version"` }
type UpdateInstanceResponse ¶
type UpdateInstanceResponse struct {
Item *Instance `json:"item,omitempty"`
}
type UpdateUserPayload ¶
type User ¶
type User struct { Database *string `json:"database,omitempty"` Host *string `json:"host,omitempty"` Id *string `json:"id,omitempty"` Password *string `json:"password,omitempty"` Port *int64 `json:"port,omitempty"` Roles *[]string `json:"roles,omitempty"` Uri *string `json:"uri,omitempty"` Username *string `json:"username,omitempty"` }
Source Files
¶
- api_default.go
- client.go
- configuration.go
- model_acl.go
- model_backup.go
- model_backup_schedule.go
- model_clone_instance_payload.go
- model_clone_instance_response.go
- model_create_instance_payload.go
- model_create_instance_response.go
- model_create_user_payload.go
- model_create_user_request.go
- model_create_user_response.go
- model_data_point.go
- model_error.go
- model_flavor.go
- model_get_backup_response.go
- model_get_instance_response.go
- model_get_user_response.go
- model_handlers_infra_flavor.go
- model_handlers_infra_get_flavors_response.go
- model_handlers_instances_get_instance_response.go
- model_host.go
- model_host_metric.go
- model_instance.go
- model_instance_list_instance.go
- model_instance_response_user.go
- model_list_backups_response.go
- model_list_flavors_response.go
- model_list_instances_response.go
- model_list_metrics_response.go
- model_list_restore_jobs_response.go
- model_list_storages_response.go
- model_list_user.go
- model_list_users_response.go
- model_list_versions_response.go
- model_partial_update_instance_payload.go
- model_partial_update_user_payload.go
- model_restore_instance_payload.go
- model_restore_instance_response.go
- model_restore_instance_status.go
- model_storage.go
- model_storage_range.go
- model_update_backup_schedule_payload.go
- model_update_instance_payload.go
- model_update_instance_response.go
- model_update_user_payload.go
- model_user.go
- utils.go