objectstorage

package module
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedProjectScopeEnumValues = []ProjectScope{
	"PUBLIC",
	"SCHWARZ",
}

All allowed values of ProjectScope enum

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func NewConfiguration

func NewConfiguration() *config.Configuration

NewConfiguration returns a new Configuration object

func ParameterValueToString

func ParameterValueToString(obj interface{}, key string) string

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

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

APIClient manages communication with the STACKIT Object Storage API API v1.0.7 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) CreateAccessKey

func (a *APIClient) CreateAccessKey(ctx context.Context, projectId string) ApiCreateAccessKeyRequest

CreateAccessKey Create Access Key

Create an access key for the given project.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@return ApiCreateAccessKeyRequest

func (*APIClient) CreateAccessKeyExecute

func (a *APIClient) CreateAccessKeyExecute(ctx context.Context, projectId string) (*CreateAccessKeyResponse, error)

func (*APIClient) CreateBucket

func (a *APIClient) CreateBucket(ctx context.Context, projectId string, bucketName string) ApiCreateBucketRequest

CreateBucket Create Bucket

Create a bucket for the given project. Bucket with the same name cannot already exists in the object storage

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@param bucketName The name has to be dns-conform.
@return ApiCreateBucketRequest

func (*APIClient) CreateBucketExecute

func (a *APIClient) CreateBucketExecute(ctx context.Context, projectId string, bucketName string) (*CreateBucketResponse, error)

func (*APIClient) CreateCredentialsGroup

func (a *APIClient) CreateCredentialsGroup(ctx context.Context, projectId string) ApiCreateCredentialsGroupRequest

CreateCredentialsGroup Create Credentials Group

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@return ApiCreateCredentialsGroupRequest

func (*APIClient) CreateCredentialsGroupExecute

func (a *APIClient) CreateCredentialsGroupExecute(ctx context.Context, projectId string) (*CreateCredentialsGroupResponse, error)

func (*APIClient) DeleteAccessKey

func (a *APIClient) DeleteAccessKey(ctx context.Context, projectId string, keyId string) ApiDeleteAccessKeyRequest

DeleteAccessKey Delete Access Key

Delete an access key from the given project.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@param keyId Object storage access key
@return ApiDeleteAccessKeyRequest

func (*APIClient) DeleteAccessKeyExecute

func (a *APIClient) DeleteAccessKeyExecute(ctx context.Context, projectId string, keyId string) (*DeleteAccessKeyResponse, error)

func (*APIClient) DeleteBucket

func (a *APIClient) DeleteBucket(ctx context.Context, projectId string, bucketName string) ApiDeleteBucketRequest

DeleteBucket Delete Bucket

Delete a bucket from the given project.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@param bucketName The name has to be dns-conform.
@return ApiDeleteBucketRequest

func (*APIClient) DeleteBucketExecute

func (a *APIClient) DeleteBucketExecute(ctx context.Context, projectId string, bucketName string) (*DeleteBucketResponse, error)

func (*APIClient) DeleteCredentialsGroup

func (a *APIClient) DeleteCredentialsGroup(ctx context.Context, projectId string, groupId string) ApiDeleteCredentialsGroupRequest

DeleteCredentialsGroup Delete Credentials Group

Delete a credentials group inside a project if the project exists and no valid access keys are left in the group.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@param groupId Id of the credentials group
@return ApiDeleteCredentialsGroupRequest

func (*APIClient) DeleteCredentialsGroupExecute

func (a *APIClient) DeleteCredentialsGroupExecute(ctx context.Context, projectId string, groupId string) (*DeleteCredentialsGroupResponse, error)

func (*APIClient) DisableService

func (a *APIClient) DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest

DisableService Delete Project

Delete the given project

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@return ApiDisableServiceRequest

func (*APIClient) DisableServiceExecute

func (a *APIClient) DisableServiceExecute(ctx context.Context, projectId string) (*ProjectStatus, error)

func (*APIClient) EnableService

func (a *APIClient) EnableService(ctx context.Context, projectId string) ApiEnableServiceRequest

EnableService Create Project

Create a project. Creation will also be successful if the project already exists, but will not create a duplicate

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@return ApiEnableServiceRequest

func (*APIClient) EnableServiceExecute

func (a *APIClient) EnableServiceExecute(ctx context.Context, projectId string) (*ProjectStatus, error)

func (*APIClient) GetBucket

func (a *APIClient) GetBucket(ctx context.Context, projectId string, bucketName string) ApiGetBucketRequest

GetBucket Get Bucket

Get information for the given bucket in the project.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@param bucketName The name has to be dns-conform.
@return ApiGetBucketRequest

func (*APIClient) GetBucketExecute

func (a *APIClient) GetBucketExecute(ctx context.Context, projectId string, bucketName string) (*GetBucketResponse, error)

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) GetServiceStatus

func (a *APIClient) GetServiceStatus(ctx context.Context, projectId string) ApiGetServiceStatusRequest

GetServiceStatus Get Project

Get project details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@return ApiGetServiceStatusRequest

func (*APIClient) GetServiceStatusExecute

func (a *APIClient) GetServiceStatusExecute(ctx context.Context, projectId string) (*ProjectStatus, error)

func (*APIClient) ListAccessKeys

func (a *APIClient) ListAccessKeys(ctx context.Context, projectId string) ApiListAccessKeysRequest

ListAccessKeys Get Access Keys

Get a list of access keys for the given project.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@return ApiListAccessKeysRequest

func (*APIClient) ListAccessKeysExecute

func (a *APIClient) ListAccessKeysExecute(ctx context.Context, projectId string) (*ListAccessKeysResponse, error)

func (*APIClient) ListBuckets

func (a *APIClient) ListBuckets(ctx context.Context, projectId string) ApiListBucketsRequest

ListBuckets Get Buckets

Get the list of all buckets in the given project

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@return ApiListBucketsRequest

func (*APIClient) ListBucketsExecute

func (a *APIClient) ListBucketsExecute(ctx context.Context, projectId string) (*ListBucketsResponse, error)

func (*APIClient) ListCredentialsGroups

func (a *APIClient) ListCredentialsGroups(ctx context.Context, projectId string) ApiListCredentialsGroupsRequest

ListCredentialsGroups Get Credentials Groups

Get credentials groups inside a project if the project exists

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId STACKIT project ID
@return ApiListCredentialsGroupsRequest

func (*APIClient) ListCredentialsGroupsExecute

func (a *APIClient) ListCredentialsGroupsExecute(ctx context.Context, projectId string) (*ListCredentialsGroupsResponse, error)

type AccessKey

type AccessKey struct {
	// REQUIRED
	DisplayName *string `json:"displayName"`
	// REQUIRED
	Expires *string `json:"expires"`
	// Identifies the pair of access key and secret access key for deletion
	// REQUIRED
	KeyId *string `json:"keyId"`
}

type ApiCreateAccessKeyRequest

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

func (ApiCreateAccessKeyRequest) CreateAccessKeyPayload

func (r ApiCreateAccessKeyRequest) CreateAccessKeyPayload(createAccessKeyPayload CreateAccessKeyPayload) ApiCreateAccessKeyRequest

func (ApiCreateAccessKeyRequest) CredentialsGroup

func (r ApiCreateAccessKeyRequest) CredentialsGroup(credentialsGroup string) ApiCreateAccessKeyRequest

func (ApiCreateAccessKeyRequest) Execute

type ApiCreateBucketRequest

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

func (ApiCreateBucketRequest) Execute

type ApiCreateCredentialsGroupRequest

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

func (ApiCreateCredentialsGroupRequest) CreateCredentialsGroupPayload

func (r ApiCreateCredentialsGroupRequest) CreateCredentialsGroupPayload(createCredentialsGroupPayload CreateCredentialsGroupPayload) ApiCreateCredentialsGroupRequest

func (ApiCreateCredentialsGroupRequest) Execute

type ApiDeleteAccessKeyRequest

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

func (ApiDeleteAccessKeyRequest) CredentialsGroup

func (r ApiDeleteAccessKeyRequest) CredentialsGroup(credentialsGroup string) ApiDeleteAccessKeyRequest

func (ApiDeleteAccessKeyRequest) Execute

type ApiDeleteBucketRequest

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

func (ApiDeleteBucketRequest) Execute

type ApiDeleteCredentialsGroupRequest

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

func (ApiDeleteCredentialsGroupRequest) Execute

type ApiDisableServiceRequest

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

func (ApiDisableServiceRequest) Execute

type ApiEnableServiceRequest

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

func (ApiEnableServiceRequest) Execute

type ApiGetBucketRequest

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

func (ApiGetBucketRequest) Execute

type ApiGetServiceStatusRequest

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

func (ApiGetServiceStatusRequest) Execute

type ApiListAccessKeysRequest

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

func (ApiListAccessKeysRequest) CredentialsGroup

func (r ApiListAccessKeysRequest) CredentialsGroup(credentialsGroup string) ApiListAccessKeysRequest

func (ApiListAccessKeysRequest) Execute

type ApiListBucketsRequest

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

func (ApiListBucketsRequest) Execute

type ApiListCredentialsGroupsRequest

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

func (ApiListCredentialsGroupsRequest) Execute

type Bucket

type Bucket struct {
	// REQUIRED
	Name *string `json:"name"`
	// REQUIRED
	Region *string `json:"region"`
	// URL in path style
	// REQUIRED
	UrlPathStyle *string `json:"urlPathStyle"`
	// URL in virtual hosted style
	// REQUIRED
	UrlVirtualHostedStyle *string `json:"urlVirtualHostedStyle"`
}

type CreateAccessKeyPayload

type CreateAccessKeyPayload struct {
	// Expiration date. Null means never expires.
	Expires *time.Time `json:"expires,omitempty"`
}

type CreateAccessKeyResponse

type CreateAccessKeyResponse struct {
	// Access key
	// REQUIRED
	AccessKey *string `json:"accessKey"`
	// Obfuscated access key
	// REQUIRED
	DisplayName *string `json:"displayName"`
	// Expiration date. Null means never expires.
	// REQUIRED
	Expires *string `json:"expires"`
	// Identifies the pair of access key and secret access key for deletion
	// REQUIRED
	KeyId *string `json:"keyId"`
	// Project ID
	// REQUIRED
	Project *string `json:"project"`
	// Secret access key
	// REQUIRED
	SecretAccessKey *string `json:"secretAccessKey"`
}

type CreateBucketResponse

type CreateBucketResponse struct {
	// Name of the bucket
	// REQUIRED
	Bucket *string `json:"bucket"`
	// Project ID
	// REQUIRED
	Project *string `json:"project"`
}

type CreateCredentialsGroupPayload

type CreateCredentialsGroupPayload struct {
	// Name of the group holding credentials
	// REQUIRED
	DisplayName *string `json:"displayName"`
}

type CreateCredentialsGroupResponse

type CreateCredentialsGroupResponse struct {
	// REQUIRED
	CredentialsGroup *CredentialsGroup `json:"credentialsGroup"`
	// Project ID
	// REQUIRED
	Project *string `json:"project"`
}

type CredentialsGroup

type CredentialsGroup struct {
	// The ID of the credentials group
	// REQUIRED
	CredentialsGroupId *string `json:"credentialsGroupId"`
	// Name of the group holding credentials
	// REQUIRED
	DisplayName *string `json:"displayName"`
	// Credentials group URN
	// REQUIRED
	Urn *string `json:"urn"`
}

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

type DeleteAccessKeyResponse

type DeleteAccessKeyResponse struct {
	// Identifies the pair of access key and secret access key for deletion
	// REQUIRED
	KeyId *string `json:"keyId"`
	// Project ID
	// REQUIRED
	Project *string `json:"project"`
}

type DeleteBucketResponse

type DeleteBucketResponse struct {
	// Name of the bucket
	// REQUIRED
	Bucket *string `json:"bucket"`
	// Project ID
	// REQUIRED
	Project *string `json:"project"`
}

type DeleteCredentialsGroupResponse

type DeleteCredentialsGroupResponse struct {
	// The ID of the credentials group
	// REQUIRED
	CredentialsGroupId *string `json:"credentialsGroupId"`
	// Project ID
	// REQUIRED
	Project *string `json:"project"`
}

type DetailedError

type DetailedError struct {
	// REQUIRED
	Key *string `json:"key"`
	// REQUIRED
	Msg *string `json:"msg"`
}

type ErrorMessage

type ErrorMessage struct {
	// REQUIRED
	Detail *[]DetailedError `json:"detail"`
}

type GetBucketResponse

type GetBucketResponse struct {
	// REQUIRED
	Bucket *Bucket `json:"bucket"`
	// Project ID
	// REQUIRED
	Project *string `json:"project"`
}

type HTTPValidationError

type HTTPValidationError struct {
	Detail *[]ValidationError `json:"detail,omitempty"`
}

type ListAccessKeysResponse

type ListAccessKeysResponse struct {
	// REQUIRED
	AccessKeys *[]AccessKey `json:"accessKeys"`
	// Project ID
	// REQUIRED
	Project *string `json:"project"`
}

type ListBucketsResponse

type ListBucketsResponse struct {
	// REQUIRED
	Buckets *[]Bucket `json:"buckets"`
	// Project ID
	// REQUIRED
	Project *string `json:"project"`
}

type ListCredentialsGroupsResponse

type ListCredentialsGroupsResponse struct {
	// REQUIRED
	CredentialsGroups *[]CredentialsGroup `json:"credentialsGroups"`
	// Project ID
	// REQUIRED
	Project *string `json:"project"`
}

type LocationInner

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

LocationInner struct for LocationInner

func (*LocationInner) MarshalJSON

func (src *LocationInner) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*LocationInner) UnmarshalJSON

func (dst *LocationInner) UnmarshalJSON(data []byte) error

Unmarshal JSON data into any of the pointers in the struct

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

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 NullableLocationInner

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

func NewNullableLocationInner

func NewNullableLocationInner(val *LocationInner) *NullableLocationInner

func (NullableLocationInner) Get

func (NullableLocationInner) IsSet

func (v NullableLocationInner) IsSet() bool

func (NullableLocationInner) MarshalJSON

func (v NullableLocationInner) MarshalJSON() ([]byte, error)

func (*NullableLocationInner) Set

func (v *NullableLocationInner) Set(val *LocationInner)

func (*NullableLocationInner) UnmarshalJSON

func (v *NullableLocationInner) UnmarshalJSON(src []byte) error

func (*NullableLocationInner) Unset

func (v *NullableLocationInner) Unset()

type NullableProjectScope

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

func NewNullableProjectScope

func NewNullableProjectScope(val *ProjectScope) *NullableProjectScope

func (NullableProjectScope) Get

func (NullableProjectScope) IsSet

func (v NullableProjectScope) IsSet() bool

func (NullableProjectScope) MarshalJSON

func (v NullableProjectScope) MarshalJSON() ([]byte, error)

func (*NullableProjectScope) Set

func (v *NullableProjectScope) Set(val *ProjectScope)

func (*NullableProjectScope) UnmarshalJSON

func (v *NullableProjectScope) UnmarshalJSON(src []byte) error

func (*NullableProjectScope) Unset

func (v *NullableProjectScope) 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 ProjectScope

type ProjectScope string

ProjectScope The scope of a STACKIT project can be public (default) or can have client specific special requirements.

const (
	PROJECTSCOPE_PUBLIC  ProjectScope = "PUBLIC"
	PROJECTSCOPE_SCHWARZ ProjectScope = "SCHWARZ"
)

List of ProjectScope

func NewProjectScopeFromValue

func NewProjectScopeFromValue(v string) (*ProjectScope, error)

NewProjectScopeFromValue returns a pointer to a valid ProjectScope for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ProjectScope) IsValid

func (v ProjectScope) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (ProjectScope) Ptr

func (v ProjectScope) Ptr() *ProjectScope

Ptr returns reference to ProjectScope value

func (*ProjectScope) UnmarshalJSON

func (v *ProjectScope) UnmarshalJSON(src []byte) error

type ProjectStatus

type ProjectStatus struct {
	// Project ID
	// REQUIRED
	Project *string `json:"project"`
	// REQUIRED
	Scope *ProjectScope `json:"scope"`
}

type ValidationError

type ValidationError struct {
	// REQUIRED
	Loc *[]LocationInner `json:"loc"`
	// REQUIRED
	Msg *string `json:"msg"`
	// REQUIRED
	Type *string `json:"type"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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