Documentation ¶
Index ¶
- type ObjectStorageProjectResponse
- type ObjectStorageProjectsService
- func (svc *ObjectStorageProjectsService) Create(ctx context.Context, projectID string) (res ObjectStorageProjectResponse, err error)
- func (svc *ObjectStorageProjectsService) Delete(ctx context.Context, projectID string) (err error)
- func (svc *ObjectStorageProjectsService) ForceDelete(ctx context.Context, projectID string) (err error)
- func (svc *ObjectStorageProjectsService) Get(ctx context.Context, projectID string) (res ObjectStorageProjectResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectStorageProjectResponse ¶
type ObjectStorageProjectResponse struct { ProjectID string `json:"projectId"` Scope string `json:"scope"` }
ObjectStorageProjectResponse is the project ID and state response
type ObjectStorageProjectsService ¶
ObjectStorageProjectsService is the service that handles enabling / disabling Storage for a project
func New ¶
func New(c common.Client) *ObjectStorageProjectsService
New returns a new handler for the service
func (*ObjectStorageProjectsService) Create ¶
func (svc *ObjectStorageProjectsService) Create(ctx context.Context, projectID string) (res ObjectStorageProjectResponse, err error)
Create creates an Storage project See also https://api.stackit.schwarz/object-storage-service/openapi.v1.html#operation/create_project_v1_project__projectId__post
func (*ObjectStorageProjectsService) Delete ¶
func (svc *ObjectStorageProjectsService) Delete(ctx context.Context, projectID string) (err error)
Delete deletes an Storage project See also https://api.stackit.schwarz/object-storage-service/openapi.v1.html#operation/delete_project_v1_project__projectId__delete
func (*ObjectStorageProjectsService) ForceDelete ¶
func (svc *ObjectStorageProjectsService) ForceDelete(ctx context.Context, projectID string) (err error)
ForceDelete force deletes an Storage project See also https://api.stackit.schwarz/object-storage-service/openapi.v1.html#operation/delete_project_v1_project__projectId__delete
func (*ObjectStorageProjectsService) Get ¶
func (svc *ObjectStorageProjectsService) Get(ctx context.Context, projectID string) (res ObjectStorageProjectResponse, err error)
Get returns 200 if the Storage project is set, and error otherwise See also https://api.stackit.schwarz/object-storage-service/openapi.v1.html#tag/project