Documentation
¶
Overview ¶
Package datawarehouse provides methods and message types of the datawarehouse v1beta1 API.
Index ¶
- Constants
- type API
- func (s *API) CreateDatabase(req *CreateDatabaseRequest, opts ...scw.RequestOption) (*Database, error)
- func (s *API) CreateDeployment(req *CreateDeploymentRequest, opts ...scw.RequestOption) (*Deployment, error)
- func (s *API) CreateEndpoint(req *CreateEndpointRequest, opts ...scw.RequestOption) (*Endpoint, error)
- func (s *API) CreateUser(req *CreateUserRequest, opts ...scw.RequestOption) (*User, error)
- func (s *API) DeleteDatabase(req *DeleteDatabaseRequest, opts ...scw.RequestOption) error
- func (s *API) DeleteDeployment(req *DeleteDeploymentRequest, opts ...scw.RequestOption) (*Deployment, error)
- func (s *API) DeleteEndpoint(req *DeleteEndpointRequest, opts ...scw.RequestOption) error
- func (s *API) DeleteUser(req *DeleteUserRequest, opts ...scw.RequestOption) error
- func (s *API) GetDeployment(req *GetDeploymentRequest, opts ...scw.RequestOption) (*Deployment, error)
- func (s *API) GetDeploymentCertificate(req *GetDeploymentCertificateRequest, opts ...scw.RequestOption) (*scw.File, error)
- func (s *API) ListDatabases(req *ListDatabasesRequest, opts ...scw.RequestOption) (*ListDatabasesResponse, error)
- func (s *API) ListDeployments(req *ListDeploymentsRequest, opts ...scw.RequestOption) (*ListDeploymentsResponse, error)
- func (s *API) ListPresets(req *ListPresetsRequest, opts ...scw.RequestOption) (*ListPresetsResponse, error)
- func (s *API) ListUsers(req *ListUsersRequest, opts ...scw.RequestOption) (*ListUsersResponse, error)
- func (s *API) ListVersions(req *ListVersionsRequest, opts ...scw.RequestOption) (*ListVersionsResponse, error)
- func (s *API) Regions() []scw.Region
- func (s *API) UpdateDeployment(req *UpdateDeploymentRequest, opts ...scw.RequestOption) (*Deployment, error)
- func (s *API) UpdateUser(req *UpdateUserRequest, opts ...scw.RequestOption) (*User, error)
- func (s *API) WaitForDeployment(req *WaitForDeploymentRequest, opts ...scw.RequestOption) (*Deployment, error)
- type CreateDatabaseRequest
- type CreateDeploymentRequest
- type CreateEndpointRequest
- type CreateUserRequest
- type Database
- type DeleteDatabaseRequest
- type DeleteDeploymentRequest
- type DeleteEndpointRequest
- type DeleteUserRequest
- type Deployment
- type DeploymentStatus
- type Endpoint
- type EndpointPrivateNetworkDetails
- type EndpointPublicDetails
- type EndpointService
- type EndpointServiceProtocol
- type EndpointSpec
- type EndpointSpecPrivateNetworkDetails
- type EndpointSpecPublicDetails
- type GetDeploymentCertificateRequest
- type GetDeploymentRequest
- type ListDatabasesRequest
- type ListDatabasesRequestOrderBy
- type ListDatabasesResponse
- type ListDeploymentsRequest
- type ListDeploymentsRequestOrderBy
- type ListDeploymentsResponse
- type ListPresetsRequest
- type ListPresetsResponse
- type ListUsersRequest
- type ListUsersRequestOrderBy
- type ListUsersResponse
- type ListVersionsRequest
- type ListVersionsResponse
- type Preset
- type UpdateDeploymentRequest
- type UpdateUserRequest
- type User
- type Version
- type WaitForDeploymentRequest
Constants ¶
const ( DeploymentStatusUnknownStatus = DeploymentStatus("unknown_status") DeploymentStatusReady = DeploymentStatus("ready") DeploymentStatusCreating = DeploymentStatus("creating") DeploymentStatusConfiguring = DeploymentStatus("configuring") DeploymentStatusDeleting = DeploymentStatus("deleting") DeploymentStatusError = DeploymentStatus("error") DeploymentStatusLocked = DeploymentStatus("locked") DeploymentStatusLocking = DeploymentStatus("locking") DeploymentStatusUnlocking = DeploymentStatus("unlocking") )
const ( EndpointServiceProtocolUnknownProtocol = EndpointServiceProtocol("unknown_protocol") EndpointServiceProtocolTCP = EndpointServiceProtocol("tcp") EndpointServiceProtocolHTTPS = EndpointServiceProtocol("https") EndpointServiceProtocolMysql = EndpointServiceProtocol("mysql") )
const ( ListDatabasesRequestOrderByNameAsc = ListDatabasesRequestOrderBy("name_asc") ListDatabasesRequestOrderByNameDesc = ListDatabasesRequestOrderBy("name_desc") ListDatabasesRequestOrderBySizeAsc = ListDatabasesRequestOrderBy("size_asc") ListDatabasesRequestOrderBySizeDesc = ListDatabasesRequestOrderBy("size_desc") )
const ( ListDeploymentsRequestOrderByCreatedAtDesc = ListDeploymentsRequestOrderBy("created_at_desc") ListDeploymentsRequestOrderByCreatedAtAsc = ListDeploymentsRequestOrderBy("created_at_asc") ListDeploymentsRequestOrderByNameAsc = ListDeploymentsRequestOrderBy("name_asc") ListDeploymentsRequestOrderByNameDesc = ListDeploymentsRequestOrderBy("name_desc") )
const ( ListUsersRequestOrderByNameAsc = ListUsersRequestOrderBy("name_asc") ListUsersRequestOrderByNameDesc = ListUsersRequestOrderBy("name_desc") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
This API allows you to manage your Data Warehouse.
func (*API) CreateDatabase ¶
func (s *API) CreateDatabase(req *CreateDatabaseRequest, opts ...scw.RequestOption) (*Database, error)
CreateDatabase: Create a new database within a deployment.
func (*API) CreateDeployment ¶
func (s *API) CreateDeployment(req *CreateDeploymentRequest, opts ...scw.RequestOption) (*Deployment, error)
CreateDeployment: Create a new deployment.
func (*API) CreateEndpoint ¶
func (s *API) CreateEndpoint(req *CreateEndpointRequest, opts ...scw.RequestOption) (*Endpoint, error)
CreateEndpoint: Create a new endpoint for a deployment.
func (*API) CreateUser ¶
func (s *API) CreateUser(req *CreateUserRequest, opts ...scw.RequestOption) (*User, error)
CreateUser: Create a new user for a deployment.
func (*API) DeleteDatabase ¶
func (s *API) DeleteDatabase(req *DeleteDatabaseRequest, opts ...scw.RequestOption) error
DeleteDatabase: Delete a database from a deployment.
func (*API) DeleteDeployment ¶
func (s *API) DeleteDeployment(req *DeleteDeploymentRequest, opts ...scw.RequestOption) (*Deployment, error)
DeleteDeployment: Delete a given deployment, specified by the `region` and `deployment_id` parameters. Deleting a deployment is permanent, and cannot be undone. Upon deletion, all your data will be lost.
func (*API) DeleteEndpoint ¶
func (s *API) DeleteEndpoint(req *DeleteEndpointRequest, opts ...scw.RequestOption) error
DeleteEndpoint: Delete an endpoint from a deployment.
func (*API) DeleteUser ¶
func (s *API) DeleteUser(req *DeleteUserRequest, opts ...scw.RequestOption) error
DeleteUser: Delete a user from a deployment.
func (*API) GetDeployment ¶
func (s *API) GetDeployment(req *GetDeploymentRequest, opts ...scw.RequestOption) (*Deployment, error)
GetDeployment: Retrieve information about a given deployment, specified by the `region` and `deployment_id` parameters. Its full details, including name, status are returned in the response object.
func (*API) GetDeploymentCertificate ¶
func (s *API) GetDeploymentCertificate(req *GetDeploymentCertificateRequest, opts ...scw.RequestOption) (*scw.File, error)
GetDeploymentCertificate:
func (*API) ListDatabases ¶
func (s *API) ListDatabases(req *ListDatabasesRequest, opts ...scw.RequestOption) (*ListDatabasesResponse, error)
ListDatabases: List databases within a deployment.
func (*API) ListDeployments ¶
func (s *API) ListDeployments(req *ListDeploymentsRequest, opts ...scw.RequestOption) (*ListDeploymentsResponse, error)
ListDeployments: List all deployments in the specified region, for a given Scaleway Project. By default, the deployments returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as `tags` and `name`. For the `name` parameter, the value you provide will be checked against the whole name string to see if it includes the string you put in the parameter.
func (*API) ListPresets ¶
func (s *API) ListPresets(req *ListPresetsRequest, opts ...scw.RequestOption) (*ListPresetsResponse, error)
ListPresets: List available presets.
func (*API) ListUsers ¶
func (s *API) ListUsers(req *ListUsersRequest, opts ...scw.RequestOption) (*ListUsersResponse, error)
ListUsers: List users associated with a deployment.
func (*API) ListVersions ¶
func (s *API) ListVersions(req *ListVersionsRequest, opts ...scw.RequestOption) (*ListVersionsResponse, error)
ListVersions: List available ClickHouse® versions.
func (*API) UpdateDeployment ¶
func (s *API) UpdateDeployment(req *UpdateDeploymentRequest, opts ...scw.RequestOption) (*Deployment, error)
UpdateDeployment: Update the parameters of a deployment.
func (*API) UpdateUser ¶
func (s *API) UpdateUser(req *UpdateUserRequest, opts ...scw.RequestOption) (*User, error)
UpdateUser: Update an existing user for a deployment.
func (*API) WaitForDeployment ¶
func (s *API) WaitForDeployment(req *WaitForDeploymentRequest, opts ...scw.RequestOption) (*Deployment, error)
WaitForDeployment waits until deployment reaches a terminal state.
type CreateDatabaseRequest ¶
type CreateDatabaseRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// DeploymentID: UUID of the deployment.
DeploymentID string `json:"-"`
// Name: name of the database.
Name string `json:"name"`
}
CreateDatabaseRequest: create database request.
type CreateDeploymentRequest ¶
type CreateDeploymentRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// ProjectID: the Project ID on which the deployment will be created.
ProjectID string `json:"project_id"`
// Name: name of the deployment.
Name string `json:"name"`
// Tags: tags to apply to the deployment.
Tags []string `json:"tags"`
// Version: clickHouse® version to use for the deployment.
Version string `json:"version"`
// ReplicaCount: number of replicas for the deployment.
ReplicaCount uint32 `json:"replica_count"`
// Password: password for the initial user.
Password string `json:"password"`
// CPUMin: minimum CPU count for the deployment.
CPUMin uint32 `json:"cpu_min"`
// CPUMax: maximum CPU count for the deployment.
CPUMax uint32 `json:"cpu_max"`
// Endpoints: endpoints to associate with the deployment.
Endpoints []*EndpointSpec `json:"endpoints"`
// RAMPerCPU: RAM per CPU count for the deployment (in GB).
RAMPerCPU uint32 `json:"ram_per_cpu"`
}
CreateDeploymentRequest: create deployment request.
type CreateEndpointRequest ¶
type CreateEndpointRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// DeploymentID: UUID of the deployment.
DeploymentID string `json:"deployment_id"`
// Endpoint: endpoint specification.
Endpoint *EndpointSpec `json:"endpoint,omitempty"`
}
CreateEndpointRequest: create endpoint request.
type CreateUserRequest ¶
type CreateUserRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// DeploymentID: UUID of the deployment.
DeploymentID string `json:"-"`
// Name: name of the user.
Name string `json:"name"`
// Password: password for the user.
Password string `json:"password"`
// IsAdmin: indicates if the user is an administrator.
IsAdmin bool `json:"is_admin"`
}
CreateUserRequest: create user request.
type Database ¶
type Database struct {
// Name: name of the database.
Name string `json:"name"`
// Size: size of the database.
Size scw.Size `json:"size"`
}
Database: database.
type DeleteDatabaseRequest ¶
type DeleteDatabaseRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// DeploymentID: UUID of the deployment.
DeploymentID string `json:"-"`
// Name: name of the database to delete.
Name string `json:"-"`
}
DeleteDatabaseRequest: delete database request.
type DeleteDeploymentRequest ¶
type DeleteDeploymentRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// DeploymentID: UUID of the deployment to delete.
DeploymentID string `json:"-"`
}
DeleteDeploymentRequest: delete deployment request.
type DeleteEndpointRequest ¶
type DeleteEndpointRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// EndpointID: UUID of the Endpoint to delete.
EndpointID string `json:"-"`
}
DeleteEndpointRequest: delete endpoint request.
type DeleteUserRequest ¶
type DeleteUserRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// DeploymentID: UUID of the deployment.
DeploymentID string `json:"-"`
// Name: name of the user to delete.
Name string `json:"-"`
}
DeleteUserRequest: delete user request.
type Deployment ¶
type Deployment struct {
// ID: unique identifier.
ID string `json:"id"`
// Name: name of the deployment.
Name string `json:"name"`
// OrganizationID: organization ID.
OrganizationID string `json:"organization_id"`
// ProjectID: project ID.
ProjectID string `json:"project_id"`
// Status: status of the deployment.
// Default value: unknown_status
Status DeploymentStatus `json:"status"`
// Tags: list of tags applied to the deployment.
Tags []string `json:"tags"`
// CreatedAt: creation date of the deployment.
CreatedAt *time.Time `json:"created_at"`
// UpdatedAt: last modification date of the deployment.
UpdatedAt *time.Time `json:"updated_at"`
// Version: clickHouse® version.
Version string `json:"version"`
// ReplicaCount: number of replicas for the deployment.
ReplicaCount uint32 `json:"replica_count"`
// CPUMin: minimum CPU count for the deployment.
CPUMin uint32 `json:"cpu_min"`
// CPUMax: maximum CPU count for the deployment.
CPUMax uint32 `json:"cpu_max"`
// Endpoints: list of endpoints associated with the deployment.
Endpoints []*Endpoint `json:"endpoints"`
// RAMPerCPU: RAM per CPU count for the deployment (in GB).
RAMPerCPU uint32 `json:"ram_per_cpu"`
// Region: region of the deployment.
Region scw.Region `json:"region"`
}
Deployment: deployment.
type DeploymentStatus ¶
type DeploymentStatus string
func (DeploymentStatus) MarshalJSON ¶
func (enum DeploymentStatus) MarshalJSON() ([]byte, error)
func (DeploymentStatus) String ¶
func (enum DeploymentStatus) String() string
func (*DeploymentStatus) UnmarshalJSON ¶
func (enum *DeploymentStatus) UnmarshalJSON(data []byte) error
func (DeploymentStatus) Values ¶
func (enum DeploymentStatus) Values() []DeploymentStatus
type Endpoint ¶
type Endpoint struct {
// ID: unique identifier of the endpoint.
ID string `json:"id"`
// DNSRecord: DNS record associated with the endpoint.
DNSRecord string `json:"dns_record"`
// Services: list of services associated with the endpoint.
Services []*EndpointService `json:"services"`
// PrivateNetwork: private Network endpoint details.
// Precisely one of PrivateNetwork, Public must be set.
PrivateNetwork *EndpointPrivateNetworkDetails `json:"private_network,omitempty"`
// Public: public endpoint details.
// Precisely one of PrivateNetwork, Public must be set.
Public *EndpointPublicDetails `json:"public,omitempty"`
}
Endpoint: endpoint.
type EndpointPrivateNetworkDetails ¶
type EndpointPrivateNetworkDetails struct {
PrivateNetworkID string `json:"private_network_id"`
}
EndpointPrivateNetworkDetails: endpoint private network details.
type EndpointPublicDetails ¶
type EndpointPublicDetails struct{}
EndpointPublicDetails: endpoint public details.
type EndpointService ¶
type EndpointService struct {
// Protocol: default value: unknown_protocol
Protocol EndpointServiceProtocol `json:"protocol"`
Port uint32 `json:"port"`
}
EndpointService: endpoint service.
type EndpointServiceProtocol ¶
type EndpointServiceProtocol string
func (EndpointServiceProtocol) MarshalJSON ¶
func (enum EndpointServiceProtocol) MarshalJSON() ([]byte, error)
func (EndpointServiceProtocol) String ¶
func (enum EndpointServiceProtocol) String() string
func (*EndpointServiceProtocol) UnmarshalJSON ¶
func (enum *EndpointServiceProtocol) UnmarshalJSON(data []byte) error
func (EndpointServiceProtocol) Values ¶
func (enum EndpointServiceProtocol) Values() []EndpointServiceProtocol
type EndpointSpec ¶
type EndpointSpec struct {
// Precisely one of Public, PrivateNetwork must be set.
Public *EndpointSpecPublicDetails `json:"public,omitempty"`
// Precisely one of Public, PrivateNetwork must be set.
PrivateNetwork *EndpointSpecPrivateNetworkDetails `json:"private_network,omitempty"`
}
EndpointSpec: endpoint spec.
type EndpointSpecPrivateNetworkDetails ¶
type EndpointSpecPrivateNetworkDetails struct {
// PrivateNetworkID: UUID of the Private Network.
PrivateNetworkID string `json:"private_network_id"`
}
EndpointSpecPrivateNetworkDetails: endpoint spec private network details.
type EndpointSpecPublicDetails ¶
type EndpointSpecPublicDetails struct{}
EndpointSpecPublicDetails: endpoint spec public details.
type GetDeploymentCertificateRequest ¶
type GetDeploymentCertificateRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
DeploymentID string `json:"-"`
}
GetDeploymentCertificateRequest: get deployment certificate request.
type GetDeploymentRequest ¶
type GetDeploymentRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// DeploymentID: UUID of the deployment.
DeploymentID string `json:"-"`
}
GetDeploymentRequest: get deployment request.
type ListDatabasesRequest ¶
type ListDatabasesRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// DeploymentID: UUID of the deployment.
DeploymentID string `json:"-"`
// Name: name of the database to filter by.
Name *string `json:"-"`
// OrderBy: criteria to use when ordering database listings.
// Default value: name_asc
OrderBy ListDatabasesRequestOrderBy `json:"-"`
Page *int32 `json:"-"`
PageSize *uint32 `json:"-"`
}
ListDatabasesRequest: list databases request.
type ListDatabasesRequestOrderBy ¶
type ListDatabasesRequestOrderBy string
func (ListDatabasesRequestOrderBy) MarshalJSON ¶
func (enum ListDatabasesRequestOrderBy) MarshalJSON() ([]byte, error)
func (ListDatabasesRequestOrderBy) String ¶
func (enum ListDatabasesRequestOrderBy) String() string
func (*ListDatabasesRequestOrderBy) UnmarshalJSON ¶
func (enum *ListDatabasesRequestOrderBy) UnmarshalJSON(data []byte) error
func (ListDatabasesRequestOrderBy) Values ¶
func (enum ListDatabasesRequestOrderBy) Values() []ListDatabasesRequestOrderBy
type ListDatabasesResponse ¶
type ListDatabasesResponse struct {
// Databases: list of databases associated with the deployment.
Databases []*Database `json:"databases"`
// TotalCount: total count of databases associated with the deployment.
TotalCount uint32 `json:"total_count"`
}
ListDatabasesResponse: list databases response.
func (*ListDatabasesResponse) UnsafeAppend ¶
func (r *ListDatabasesResponse) UnsafeAppend(res any) (uint32, error)
UnsafeAppend should not be used Internal usage only
func (*ListDatabasesResponse) UnsafeGetTotalCount ¶
func (r *ListDatabasesResponse) UnsafeGetTotalCount() uint32
UnsafeGetTotalCount should not be used Internal usage only
type ListDeploymentsRequest ¶
type ListDeploymentsRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// Tags: list deployments with a given tag.
Tags []string `json:"-"`
// Name: lists deployments that match a name pattern.
Name *string `json:"-"`
// OrderBy: criteria to use when ordering deployment listings.
// Default value: created_at_desc
OrderBy ListDeploymentsRequestOrderBy `json:"-"`
// OrganizationID: organization ID the deployment belongs to.
OrganizationID *string `json:"-"`
// ProjectID: project ID the deployment belongs to.
ProjectID *string `json:"-"`
Page *int32 `json:"-"`
PageSize *uint32 `json:"-"`
}
ListDeploymentsRequest: list deployments request.
type ListDeploymentsRequestOrderBy ¶
type ListDeploymentsRequestOrderBy string
func (ListDeploymentsRequestOrderBy) MarshalJSON ¶
func (enum ListDeploymentsRequestOrderBy) MarshalJSON() ([]byte, error)
func (ListDeploymentsRequestOrderBy) String ¶
func (enum ListDeploymentsRequestOrderBy) String() string
func (*ListDeploymentsRequestOrderBy) UnmarshalJSON ¶
func (enum *ListDeploymentsRequestOrderBy) UnmarshalJSON(data []byte) error
func (ListDeploymentsRequestOrderBy) Values ¶
func (enum ListDeploymentsRequestOrderBy) Values() []ListDeploymentsRequestOrderBy
type ListDeploymentsResponse ¶
type ListDeploymentsResponse struct {
// Deployments: list of all deployments available in an Organization or Project.
Deployments []*Deployment `json:"deployments"`
// TotalCount: total count of deployments available in an Organization or Project.
TotalCount uint64 `json:"total_count"`
}
ListDeploymentsResponse: list deployments response.
func (*ListDeploymentsResponse) UnsafeAppend ¶
func (r *ListDeploymentsResponse) UnsafeAppend(res any) (uint64, error)
UnsafeAppend should not be used Internal usage only
func (*ListDeploymentsResponse) UnsafeGetTotalCount ¶
func (r *ListDeploymentsResponse) UnsafeGetTotalCount() uint64
UnsafeGetTotalCount should not be used Internal usage only
type ListPresetsRequest ¶
type ListPresetsRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
Page *int32 `json:"-"`
PageSize *uint32 `json:"-"`
}
ListPresetsRequest: list presets request.
type ListPresetsResponse ¶
type ListPresetsResponse struct {
// Presets: list of available presets.
Presets []*Preset `json:"presets"`
// TotalCount: total count of presets available.
TotalCount uint64 `json:"total_count"`
}
ListPresetsResponse: list presets response.
func (*ListPresetsResponse) UnsafeAppend ¶
func (r *ListPresetsResponse) UnsafeAppend(res any) (uint64, error)
UnsafeAppend should not be used Internal usage only
func (*ListPresetsResponse) UnsafeGetTotalCount ¶
func (r *ListPresetsResponse) UnsafeGetTotalCount() uint64
UnsafeGetTotalCount should not be used Internal usage only
type ListUsersRequest ¶
type ListUsersRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// DeploymentID: UUID of the deployment.
DeploymentID string `json:"-"`
// Name: name of the user to filter by.
Name *string `json:"-"`
// OrderBy: criteria to use when ordering user listings.
// Default value: name_asc
OrderBy ListUsersRequestOrderBy `json:"-"`
Page *int32 `json:"-"`
PageSize *uint32 `json:"-"`
}
ListUsersRequest: list users request.
type ListUsersRequestOrderBy ¶
type ListUsersRequestOrderBy string
func (ListUsersRequestOrderBy) MarshalJSON ¶
func (enum ListUsersRequestOrderBy) MarshalJSON() ([]byte, error)
func (ListUsersRequestOrderBy) String ¶
func (enum ListUsersRequestOrderBy) String() string
func (*ListUsersRequestOrderBy) UnmarshalJSON ¶
func (enum *ListUsersRequestOrderBy) UnmarshalJSON(data []byte) error
func (ListUsersRequestOrderBy) Values ¶
func (enum ListUsersRequestOrderBy) Values() []ListUsersRequestOrderBy
type ListUsersResponse ¶
type ListUsersResponse struct {
// Users: list of users associated with the deployment.
Users []*User `json:"users"`
// TotalCount: total count of users associated with the deployment.
TotalCount uint64 `json:"total_count"`
}
ListUsersResponse: list users response.
func (*ListUsersResponse) UnsafeAppend ¶
func (r *ListUsersResponse) UnsafeAppend(res any) (uint64, error)
UnsafeAppend should not be used Internal usage only
func (*ListUsersResponse) UnsafeGetTotalCount ¶
func (r *ListUsersResponse) UnsafeGetTotalCount() uint64
UnsafeGetTotalCount should not be used Internal usage only
type ListVersionsRequest ¶
type ListVersionsRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
Version *string `json:"-"`
Page *int32 `json:"-"`
PageSize *uint32 `json:"-"`
}
ListVersionsRequest: list versions request.
type ListVersionsResponse ¶
type ListVersionsResponse struct {
// Versions: available deployment version.
Versions []*Version `json:"versions"`
// TotalCount: total count of deployment version available.
TotalCount uint64 `json:"total_count"`
}
ListVersionsResponse: list versions response.
func (*ListVersionsResponse) UnsafeAppend ¶
func (r *ListVersionsResponse) UnsafeAppend(res any) (uint64, error)
UnsafeAppend should not be used Internal usage only
func (*ListVersionsResponse) UnsafeGetTotalCount ¶
func (r *ListVersionsResponse) UnsafeGetTotalCount() uint64
UnsafeGetTotalCount should not be used Internal usage only
type Preset ¶
type Preset struct {
// Name: name of the preset.
Name string `json:"name"`
// Category: category of the preset.
Category string `json:"category"`
// CPUMin: minimum CPU count for the preset.
CPUMin uint32 `json:"cpu_min"`
// CPUMax: maximum CPU count for the preset.
CPUMax uint32 `json:"cpu_max"`
// RAMPerCPU: RAM per CPU count for the preset (in GB).
RAMPerCPU uint32 `json:"ram_per_cpu"`
// ReplicaCount: number of replicas for the preset.
ReplicaCount uint32 `json:"replica_count"`
}
Preset: preset.
type UpdateDeploymentRequest ¶
type UpdateDeploymentRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// DeploymentID: UUID of the deployment to update.
DeploymentID string `json:"-"`
// Name: name of the deployment.
Name *string `json:"name,omitempty"`
// Tags: tags of a deployment.
Tags *[]string `json:"tags,omitempty"`
// CPUMin: minimum CPU count for the deployment.
CPUMin *uint32 `json:"cpu_min,omitempty"`
// CPUMax: maximum CPU count for the deployment.
CPUMax *uint32 `json:"cpu_max,omitempty"`
// ReplicaCount: number of replicas for the deployment.
ReplicaCount *uint32 `json:"replica_count,omitempty"`
}
UpdateDeploymentRequest: update deployment request.
type UpdateUserRequest ¶
type UpdateUserRequest struct {
// Region: region to target. If none is passed will use default region from the config.
Region scw.Region `json:"-"`
// DeploymentID: UUID of the deployment.
DeploymentID string `json:"-"`
// Name: name of the user.
Name string `json:"-"`
// Password: new password for the user.
Password *string `json:"password,omitempty"`
// IsAdmin: updates the user administrator permissions.
IsAdmin *bool `json:"is_admin,omitempty"`
}
UpdateUserRequest: update user request.
type User ¶
type User struct {
// Name: name of the user.
Name string `json:"name"`
// IsAdmin: indicates if the user is an administrator.
IsAdmin bool `json:"is_admin"`
}
User: user.