storage

package
v0.127.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 20 Imported by: 4

README

Go API client for storage

REST API OpenAPI documentation for the Object Storage

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0 (v1)
  • Package version: 1.0.0
  • Generator version: 7.4.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import storage "github.com/GIT_USER_ID/GIT_REPO_ID"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value storage.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), storage.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value storage.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), storage.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using storage.ContextOperationServerIndices and storage.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), storage.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), storage.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.azion.com

Class Method HTTP request Description
StorageAPI StorageApiBucketsCreate Post /v4/storage/buckets Create a new bucket
StorageAPI StorageApiBucketsDestroy Delete /v4/storage/buckets/{name} Delete a bucket
StorageAPI StorageApiBucketsList Get /v4/storage/buckets List buckets
StorageAPI StorageApiBucketsObjectsCreate Post /v4/storage/buckets/{bucket_name}/objects/{object_key} Create new object key
StorageAPI StorageApiBucketsObjectsDestroy Delete /v4/storage/buckets/{bucket_name}/objects/{object_key} Delete object key
StorageAPI StorageApiBucketsObjectsList Get /v4/storage/buckets/{bucket_name}/objects List buckets objects
StorageAPI StorageApiBucketsObjectsRetrieve Get /v4/storage/buckets/{bucket_name}/objects/{object_key} Download object
StorageAPI StorageApiBucketsObjectsUpdate Put /v4/storage/buckets/{bucket_name}/objects/{object_key} Update the object key
StorageAPI StorageApiBucketsPartialUpdate Patch /v4/storage/buckets/{name} Update bucket info

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

tokenAuth
  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization and passed in as the auth context for each request.

Example

auth := context.WithValue(
		context.Background(),
		storage.ContextAPIKeys,
		map[string]storage.APIKey{
			"Authorization": {Key: "API_KEY_STRING"},
		},
	)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var AllowedEdgeAccessEnumEnumValues = []EdgeAccessEnum{
	"read_only",
	"read_write",
	"restricted",
}

All allowed values of EdgeAccessEnum enum

View Source
var AllowedStateEnumEnumValues = []StateEnum{
	"pending",
	"executed",
}

All allowed values of StateEnum 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 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 {
	StorageAPI *StorageAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the Object Storage API v1.0.0 (v1) In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *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

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiApiV1StorageBucketsCreateRequest

type ApiApiV1StorageBucketsCreateRequest struct {
	ApiService *BucketsAPIService
	// contains filtered or unexported fields
}

func (ApiApiV1StorageBucketsCreateRequest) BucketCreate

func (ApiApiV1StorageBucketsCreateRequest) Execute

type ApiApiV1StorageBucketsDestroyRequest

type ApiApiV1StorageBucketsDestroyRequest struct {
	ApiService *BucketsAPIService
	// contains filtered or unexported fields
}

func (ApiApiV1StorageBucketsDestroyRequest) Execute

type ApiApiV1StorageBucketsListRequest

type ApiApiV1StorageBucketsListRequest struct {
	ApiService *BucketsAPIService
	// contains filtered or unexported fields
}

func (ApiApiV1StorageBucketsListRequest) Execute

func (ApiApiV1StorageBucketsListRequest) Page

A page number within the paginated result set.

func (ApiApiV1StorageBucketsListRequest) PageSize

Number of results to return per page.

type ApiApiV1StorageBucketsPartialUpdateRequest

type ApiApiV1StorageBucketsPartialUpdateRequest struct {
	ApiService *BucketsAPIService
	// contains filtered or unexported fields
}

func (ApiApiV1StorageBucketsPartialUpdateRequest) Execute

func (ApiApiV1StorageBucketsPartialUpdateRequest) PatchedBucket

type ApiStorageApiBucketsCreateRequest added in v0.117.0

type ApiStorageApiBucketsCreateRequest struct {
	ApiService *StorageAPIService
	// contains filtered or unexported fields
}

func (ApiStorageApiBucketsCreateRequest) BucketCreate added in v0.117.0

func (ApiStorageApiBucketsCreateRequest) Execute added in v0.117.0

type ApiStorageApiBucketsDestroyRequest added in v0.117.0

type ApiStorageApiBucketsDestroyRequest struct {
	ApiService *StorageAPIService
	// contains filtered or unexported fields
}

func (ApiStorageApiBucketsDestroyRequest) Execute added in v0.117.0

type ApiStorageApiBucketsListRequest added in v0.117.0

type ApiStorageApiBucketsListRequest struct {
	ApiService *StorageAPIService
	// contains filtered or unexported fields
}

func (ApiStorageApiBucketsListRequest) Execute added in v0.117.0

func (ApiStorageApiBucketsListRequest) Page added in v0.117.0

A page number within the paginated result set.

func (ApiStorageApiBucketsListRequest) PageSize added in v0.117.0

Number of results to return per page.

type ApiStorageApiBucketsObjectsCreateRequest added in v0.117.0

type ApiStorageApiBucketsObjectsCreateRequest struct {
	ApiService *StorageAPIService
	// contains filtered or unexported fields
}

func (ApiStorageApiBucketsObjectsCreateRequest) Body added in v0.120.0

func (ApiStorageApiBucketsObjectsCreateRequest) ContentType added in v0.121.0

The content type of the file (Example: text/plain).

func (ApiStorageApiBucketsObjectsCreateRequest) Execute added in v0.117.0

type ApiStorageApiBucketsObjectsDestroyRequest added in v0.117.0

type ApiStorageApiBucketsObjectsDestroyRequest struct {
	ApiService *StorageAPIService
	// contains filtered or unexported fields
}

func (ApiStorageApiBucketsObjectsDestroyRequest) Execute added in v0.117.0

type ApiStorageApiBucketsObjectsListRequest added in v0.117.0

type ApiStorageApiBucketsObjectsListRequest struct {
	ApiService *StorageAPIService
	// contains filtered or unexported fields
}

func (ApiStorageApiBucketsObjectsListRequest) ContinuationToken added in v0.123.0

Token for next page.

func (ApiStorageApiBucketsObjectsListRequest) Execute added in v0.117.0

func (ApiStorageApiBucketsObjectsListRequest) MaxObjectCount added in v0.123.0

Number of results to return per page.

type ApiStorageApiBucketsObjectsRetrieveRequest added in v0.117.0

type ApiStorageApiBucketsObjectsRetrieveRequest struct {
	ApiService *StorageAPIService
	// contains filtered or unexported fields
}

func (ApiStorageApiBucketsObjectsRetrieveRequest) Execute added in v0.117.0

type ApiStorageApiBucketsObjectsUpdateRequest added in v0.117.0

type ApiStorageApiBucketsObjectsUpdateRequest struct {
	ApiService *StorageAPIService
	// contains filtered or unexported fields
}

func (ApiStorageApiBucketsObjectsUpdateRequest) Body added in v0.120.0

func (ApiStorageApiBucketsObjectsUpdateRequest) ContentType added in v0.121.0

The content type of the file (Example: text/plain).

func (ApiStorageApiBucketsObjectsUpdateRequest) Execute added in v0.117.0

type ApiStorageApiBucketsPartialUpdateRequest added in v0.117.0

type ApiStorageApiBucketsPartialUpdateRequest struct {
	ApiService *StorageAPIService
	// contains filtered or unexported fields
}

func (ApiStorageApiBucketsPartialUpdateRequest) BucketUpdate added in v0.123.0

func (ApiStorageApiBucketsPartialUpdateRequest) Execute added in v0.117.0

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Bucket

type Bucket struct {
	Name       string         `json:"name"`
	EdgeAccess EdgeAccessEnum `json:"edge_access"`
}

Bucket struct for Bucket

func NewBucket

func NewBucket(name string, edgeAccess EdgeAccessEnum) *Bucket

NewBucket instantiates a new Bucket object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBucketWithDefaults

func NewBucketWithDefaults() *Bucket

NewBucketWithDefaults instantiates a new Bucket object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Bucket) GetEdgeAccess

func (o *Bucket) GetEdgeAccess() EdgeAccessEnum

GetEdgeAccess returns the EdgeAccess field value

func (*Bucket) GetEdgeAccessOk

func (o *Bucket) GetEdgeAccessOk() (*EdgeAccessEnum, bool)

GetEdgeAccessOk returns a tuple with the EdgeAccess field value and a boolean to check if the value has been set.

func (*Bucket) GetName

func (o *Bucket) GetName() string

GetName returns the Name field value

func (*Bucket) GetNameOk

func (o *Bucket) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (Bucket) MarshalJSON

func (o Bucket) MarshalJSON() ([]byte, error)

func (*Bucket) SetEdgeAccess

func (o *Bucket) SetEdgeAccess(v EdgeAccessEnum)

SetEdgeAccess sets field value

func (*Bucket) SetName

func (o *Bucket) SetName(v string)

SetName sets field value

func (Bucket) ToMap

func (o Bucket) ToMap() (map[string]interface{}, error)

func (*Bucket) UnmarshalJSON

func (o *Bucket) UnmarshalJSON(data []byte) (err error)

type BucketCreate

type BucketCreate struct {
	Name       string         `json:"name"`
	EdgeAccess EdgeAccessEnum `json:"edge_access"`
}

BucketCreate struct for BucketCreate

func NewBucketCreate

func NewBucketCreate(name string, edgeAccess EdgeAccessEnum) *BucketCreate

NewBucketCreate instantiates a new BucketCreate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBucketCreateWithDefaults

func NewBucketCreateWithDefaults() *BucketCreate

NewBucketCreateWithDefaults instantiates a new BucketCreate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BucketCreate) GetEdgeAccess

func (o *BucketCreate) GetEdgeAccess() EdgeAccessEnum

GetEdgeAccess returns the EdgeAccess field value

func (*BucketCreate) GetEdgeAccessOk

func (o *BucketCreate) GetEdgeAccessOk() (*EdgeAccessEnum, bool)

GetEdgeAccessOk returns a tuple with the EdgeAccess field value and a boolean to check if the value has been set.

func (*BucketCreate) GetName

func (o *BucketCreate) GetName() string

GetName returns the Name field value

func (*BucketCreate) GetNameOk

func (o *BucketCreate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (BucketCreate) MarshalJSON

func (o BucketCreate) MarshalJSON() ([]byte, error)

func (*BucketCreate) SetEdgeAccess

func (o *BucketCreate) SetEdgeAccess(v EdgeAccessEnum)

SetEdgeAccess sets field value

func (*BucketCreate) SetName

func (o *BucketCreate) SetName(v string)

SetName sets field value

func (BucketCreate) ToMap

func (o BucketCreate) ToMap() (map[string]interface{}, error)

func (*BucketCreate) UnmarshalJSON

func (o *BucketCreate) UnmarshalJSON(data []byte) (err error)

type BucketObject added in v0.117.0

type BucketObject struct {
	Key          string    `json:"key"`
	LastModified time.Time `json:"last_modified"`
	Size         int32     `json:"size"`
	Etag         *string   `json:"etag,omitempty"`
}

BucketObject struct for BucketObject

func NewBucketObject added in v0.117.0

func NewBucketObject(key string, lastModified time.Time, size int32) *BucketObject

NewBucketObject instantiates a new BucketObject object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBucketObjectWithDefaults added in v0.117.0

func NewBucketObjectWithDefaults() *BucketObject

NewBucketObjectWithDefaults instantiates a new BucketObject object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BucketObject) GetEtag added in v0.117.0

func (o *BucketObject) GetEtag() string

GetEtag returns the Etag field value if set, zero value otherwise.

func (*BucketObject) GetEtagOk added in v0.117.0

func (o *BucketObject) GetEtagOk() (*string, bool)

GetEtagOk returns a tuple with the Etag field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BucketObject) GetKey added in v0.117.0

func (o *BucketObject) GetKey() string

GetKey returns the Key field value

func (*BucketObject) GetKeyOk added in v0.117.0

func (o *BucketObject) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*BucketObject) GetLastModified added in v0.117.0

func (o *BucketObject) GetLastModified() time.Time

GetLastModified returns the LastModified field value

func (*BucketObject) GetLastModifiedOk added in v0.117.0

func (o *BucketObject) GetLastModifiedOk() (*time.Time, bool)

GetLastModifiedOk returns a tuple with the LastModified field value and a boolean to check if the value has been set.

func (*BucketObject) GetSize added in v0.117.0

func (o *BucketObject) GetSize() int32

GetSize returns the Size field value

func (*BucketObject) GetSizeOk added in v0.117.0

func (o *BucketObject) GetSizeOk() (*int32, bool)

GetSizeOk returns a tuple with the Size field value and a boolean to check if the value has been set.

func (*BucketObject) HasEtag added in v0.122.0

func (o *BucketObject) HasEtag() bool

HasEtag returns a boolean if a field has been set.

func (BucketObject) MarshalJSON added in v0.117.0

func (o BucketObject) MarshalJSON() ([]byte, error)

func (*BucketObject) SetEtag added in v0.117.0

func (o *BucketObject) SetEtag(v string)

SetEtag gets a reference to the given string and assigns it to the Etag field.

func (*BucketObject) SetKey added in v0.117.0

func (o *BucketObject) SetKey(v string)

SetKey sets field value

func (*BucketObject) SetLastModified added in v0.117.0

func (o *BucketObject) SetLastModified(v time.Time)

SetLastModified sets field value

func (*BucketObject) SetSize added in v0.117.0

func (o *BucketObject) SetSize(v int32)

SetSize sets field value

func (BucketObject) ToMap added in v0.117.0

func (o BucketObject) ToMap() (map[string]interface{}, error)

func (*BucketObject) UnmarshalJSON added in v0.117.0

func (o *BucketObject) UnmarshalJSON(data []byte) (err error)

type BucketUpdate added in v0.123.0

type BucketUpdate struct {
	EdgeAccess EdgeAccessEnum `json:"edge_access"`
}

BucketUpdate struct for BucketUpdate

func NewBucketUpdate added in v0.123.0

func NewBucketUpdate(edgeAccess EdgeAccessEnum) *BucketUpdate

NewBucketUpdate instantiates a new BucketUpdate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBucketUpdateWithDefaults added in v0.123.0

func NewBucketUpdateWithDefaults() *BucketUpdate

NewBucketUpdateWithDefaults instantiates a new BucketUpdate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BucketUpdate) GetEdgeAccess added in v0.123.0

func (o *BucketUpdate) GetEdgeAccess() EdgeAccessEnum

GetEdgeAccess returns the EdgeAccess field value

func (*BucketUpdate) GetEdgeAccessOk added in v0.123.0

func (o *BucketUpdate) GetEdgeAccessOk() (*EdgeAccessEnum, bool)

GetEdgeAccessOk returns a tuple with the EdgeAccess field value and a boolean to check if the value has been set.

func (BucketUpdate) MarshalJSON added in v0.123.0

func (o BucketUpdate) MarshalJSON() ([]byte, error)

func (*BucketUpdate) SetEdgeAccess added in v0.123.0

func (o *BucketUpdate) SetEdgeAccess(v EdgeAccessEnum)

SetEdgeAccess sets field value

func (BucketUpdate) ToMap added in v0.123.0

func (o BucketUpdate) ToMap() (map[string]interface{}, error)

func (*BucketUpdate) UnmarshalJSON added in v0.123.0

func (o *BucketUpdate) UnmarshalJSON(data []byte) (err error)

type BucketsAPIService

type BucketsAPIService service

BucketsAPIService BucketsAPI service

func (*BucketsAPIService) ApiV1StorageBucketsCreate

func (a *BucketsAPIService) ApiV1StorageBucketsCreate(ctx context.Context) ApiApiV1StorageBucketsCreateRequest

ApiV1StorageBucketsCreate /v4/storage/buckets

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

func (*BucketsAPIService) ApiV1StorageBucketsCreateExecute

func (a *BucketsAPIService) ApiV1StorageBucketsCreateExecute(r ApiApiV1StorageBucketsCreateRequest) (*ResponseBucket, *http.Response, error)

Execute executes the request

@return ResponseBucket

func (*BucketsAPIService) ApiV1StorageBucketsDestroy

func (a *BucketsAPIService) ApiV1StorageBucketsDestroy(ctx context.Context, name string) ApiApiV1StorageBucketsDestroyRequest

ApiV1StorageBucketsDestroy /v4/storage/buckets/:name

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param name
@return ApiApiV1StorageBucketsDestroyRequest

func (*BucketsAPIService) ApiV1StorageBucketsDestroyExecute

func (a *BucketsAPIService) ApiV1StorageBucketsDestroyExecute(r ApiApiV1StorageBucketsDestroyRequest) (*ResponseDeleteBucket, *http.Response, error)

Execute executes the request

@return ResponseDeleteBucket

func (*BucketsAPIService) ApiV1StorageBucketsList

func (a *BucketsAPIService) ApiV1StorageBucketsList(ctx context.Context) ApiApiV1StorageBucketsListRequest

ApiV1StorageBucketsList /v4/storage/buckets

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

func (*BucketsAPIService) ApiV1StorageBucketsListExecute

Execute executes the request

@return PaginatedBucketList

func (*BucketsAPIService) ApiV1StorageBucketsPartialUpdate

func (a *BucketsAPIService) ApiV1StorageBucketsPartialUpdate(ctx context.Context, name string) ApiApiV1StorageBucketsPartialUpdateRequest

ApiV1StorageBucketsPartialUpdate /v4/storage/buckets/:name

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param name
@return ApiApiV1StorageBucketsPartialUpdateRequest

func (*BucketsAPIService) ApiV1StorageBucketsPartialUpdateExecute

func (a *BucketsAPIService) ApiV1StorageBucketsPartialUpdateExecute(r ApiApiV1StorageBucketsPartialUpdateRequest) (*ResponseBucket, *http.Response, error)

Execute executes the request

@return ResponseBucket

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type EdgeAccessEnum

type EdgeAccessEnum string

EdgeAccessEnum the model 'EdgeAccessEnum'

const (
	READ_ONLY  EdgeAccessEnum = "read_only"
	READ_WRITE EdgeAccessEnum = "read_write"
	RESTRICTED EdgeAccessEnum = "restricted"
)

List of EdgeAccessEnum

func NewEdgeAccessEnumFromValue

func NewEdgeAccessEnumFromValue(v string) (*EdgeAccessEnum, error)

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

func (EdgeAccessEnum) IsValid

func (v EdgeAccessEnum) IsValid() bool

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

func (EdgeAccessEnum) Ptr

func (v EdgeAccessEnum) Ptr() *EdgeAccessEnum

Ptr returns reference to EdgeAccessEnum value

func (*EdgeAccessEnum) UnmarshalJSON

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

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

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 NullableBucket

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

func NewNullableBucket

func NewNullableBucket(val *Bucket) *NullableBucket

func (NullableBucket) Get

func (v NullableBucket) Get() *Bucket

func (NullableBucket) IsSet

func (v NullableBucket) IsSet() bool

func (NullableBucket) MarshalJSON

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

func (*NullableBucket) Set

func (v *NullableBucket) Set(val *Bucket)

func (*NullableBucket) UnmarshalJSON

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

func (*NullableBucket) Unset

func (v *NullableBucket) Unset()

type NullableBucketCreate

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

func NewNullableBucketCreate

func NewNullableBucketCreate(val *BucketCreate) *NullableBucketCreate

func (NullableBucketCreate) Get

func (NullableBucketCreate) IsSet

func (v NullableBucketCreate) IsSet() bool

func (NullableBucketCreate) MarshalJSON

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

func (*NullableBucketCreate) Set

func (v *NullableBucketCreate) Set(val *BucketCreate)

func (*NullableBucketCreate) UnmarshalJSON

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

func (*NullableBucketCreate) Unset

func (v *NullableBucketCreate) Unset()

type NullableBucketObject added in v0.117.0

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

func NewNullableBucketObject added in v0.117.0

func NewNullableBucketObject(val *BucketObject) *NullableBucketObject

func (NullableBucketObject) Get added in v0.117.0

func (NullableBucketObject) IsSet added in v0.117.0

func (v NullableBucketObject) IsSet() bool

func (NullableBucketObject) MarshalJSON added in v0.117.0

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

func (*NullableBucketObject) Set added in v0.117.0

func (v *NullableBucketObject) Set(val *BucketObject)

func (*NullableBucketObject) UnmarshalJSON added in v0.117.0

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

func (*NullableBucketObject) Unset added in v0.117.0

func (v *NullableBucketObject) Unset()

type NullableBucketUpdate added in v0.123.0

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

func NewNullableBucketUpdate added in v0.123.0

func NewNullableBucketUpdate(val *BucketUpdate) *NullableBucketUpdate

func (NullableBucketUpdate) Get added in v0.123.0

func (NullableBucketUpdate) IsSet added in v0.123.0

func (v NullableBucketUpdate) IsSet() bool

func (NullableBucketUpdate) MarshalJSON added in v0.123.0

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

func (*NullableBucketUpdate) Set added in v0.123.0

func (v *NullableBucketUpdate) Set(val *BucketUpdate)

func (*NullableBucketUpdate) UnmarshalJSON added in v0.123.0

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

func (*NullableBucketUpdate) Unset added in v0.123.0

func (v *NullableBucketUpdate) Unset()

type NullableEdgeAccessEnum

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

func NewNullableEdgeAccessEnum

func NewNullableEdgeAccessEnum(val *EdgeAccessEnum) *NullableEdgeAccessEnum

func (NullableEdgeAccessEnum) Get

func (NullableEdgeAccessEnum) IsSet

func (v NullableEdgeAccessEnum) IsSet() bool

func (NullableEdgeAccessEnum) MarshalJSON

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

func (*NullableEdgeAccessEnum) Set

func (*NullableEdgeAccessEnum) UnmarshalJSON

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

func (*NullableEdgeAccessEnum) Unset

func (v *NullableEdgeAccessEnum) 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 NullableObjectResponseData added in v0.117.0

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

func NewNullableObjectResponseData added in v0.117.0

func NewNullableObjectResponseData(val *ObjectResponseData) *NullableObjectResponseData

func (NullableObjectResponseData) Get added in v0.117.0

func (NullableObjectResponseData) IsSet added in v0.117.0

func (v NullableObjectResponseData) IsSet() bool

func (NullableObjectResponseData) MarshalJSON added in v0.117.0

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

func (*NullableObjectResponseData) Set added in v0.117.0

func (*NullableObjectResponseData) UnmarshalJSON added in v0.117.0

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

func (*NullableObjectResponseData) Unset added in v0.117.0

func (v *NullableObjectResponseData) Unset()

type NullablePaginatedBucketList

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

func NewNullablePaginatedBucketList

func NewNullablePaginatedBucketList(val *PaginatedBucketList) *NullablePaginatedBucketList

func (NullablePaginatedBucketList) Get

func (NullablePaginatedBucketList) IsSet

func (NullablePaginatedBucketList) MarshalJSON

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

func (*NullablePaginatedBucketList) Set

func (*NullablePaginatedBucketList) UnmarshalJSON

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

func (*NullablePaginatedBucketList) Unset

func (v *NullablePaginatedBucketList) Unset()

type NullablePaginatedBucketObjectList added in v0.117.0

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

func NewNullablePaginatedBucketObjectList added in v0.117.0

func NewNullablePaginatedBucketObjectList(val *PaginatedBucketObjectList) *NullablePaginatedBucketObjectList

func (NullablePaginatedBucketObjectList) Get added in v0.117.0

func (NullablePaginatedBucketObjectList) IsSet added in v0.117.0

func (NullablePaginatedBucketObjectList) MarshalJSON added in v0.117.0

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

func (*NullablePaginatedBucketObjectList) Set added in v0.117.0

func (*NullablePaginatedBucketObjectList) UnmarshalJSON added in v0.117.0

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

func (*NullablePaginatedBucketObjectList) Unset added in v0.117.0

type NullablePatchedBucket

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

func NewNullablePatchedBucket

func NewNullablePatchedBucket(val *PatchedBucket) *NullablePatchedBucket

func (NullablePatchedBucket) Get

func (NullablePatchedBucket) IsSet

func (v NullablePatchedBucket) IsSet() bool

func (NullablePatchedBucket) MarshalJSON

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

func (*NullablePatchedBucket) Set

func (v *NullablePatchedBucket) Set(val *PatchedBucket)

func (*NullablePatchedBucket) UnmarshalJSON

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

func (*NullablePatchedBucket) Unset

func (v *NullablePatchedBucket) Unset()

type NullableResponseBucket

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

func NewNullableResponseBucket

func NewNullableResponseBucket(val *ResponseBucket) *NullableResponseBucket

func (NullableResponseBucket) Get

func (NullableResponseBucket) IsSet

func (v NullableResponseBucket) IsSet() bool

func (NullableResponseBucket) MarshalJSON

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

func (*NullableResponseBucket) Set

func (*NullableResponseBucket) UnmarshalJSON

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

func (*NullableResponseBucket) Unset

func (v *NullableResponseBucket) Unset()

type NullableResponseDeleteBucket

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

func NewNullableResponseDeleteBucket

func NewNullableResponseDeleteBucket(val *ResponseDeleteBucket) *NullableResponseDeleteBucket

func (NullableResponseDeleteBucket) Get

func (NullableResponseDeleteBucket) IsSet

func (NullableResponseDeleteBucket) MarshalJSON

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

func (*NullableResponseDeleteBucket) Set

func (*NullableResponseDeleteBucket) UnmarshalJSON

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

func (*NullableResponseDeleteBucket) Unset

func (v *NullableResponseDeleteBucket) Unset()

type NullableResponseDeleteBucketData

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

func (NullableResponseDeleteBucketData) Get

func (NullableResponseDeleteBucketData) IsSet

func (NullableResponseDeleteBucketData) MarshalJSON

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

func (*NullableResponseDeleteBucketData) Set

func (*NullableResponseDeleteBucketData) UnmarshalJSON

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

func (*NullableResponseDeleteBucketData) Unset

type NullableStateEnum

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

func NewNullableStateEnum

func NewNullableStateEnum(val *StateEnum) *NullableStateEnum

func (NullableStateEnum) Get

func (v NullableStateEnum) Get() *StateEnum

func (NullableStateEnum) IsSet

func (v NullableStateEnum) IsSet() bool

func (NullableStateEnum) MarshalJSON

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

func (*NullableStateEnum) Set

func (v *NullableStateEnum) Set(val *StateEnum)

func (*NullableStateEnum) UnmarshalJSON

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

func (*NullableStateEnum) Unset

func (v *NullableStateEnum) 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 NullableSuccessBucketOperation added in v0.117.0

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

func NewNullableSuccessBucketOperation added in v0.117.0

func NewNullableSuccessBucketOperation(val *SuccessBucketOperation) *NullableSuccessBucketOperation

func (NullableSuccessBucketOperation) Get added in v0.117.0

func (NullableSuccessBucketOperation) IsSet added in v0.117.0

func (NullableSuccessBucketOperation) MarshalJSON added in v0.117.0

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

func (*NullableSuccessBucketOperation) Set added in v0.117.0

func (*NullableSuccessBucketOperation) UnmarshalJSON added in v0.117.0

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

func (*NullableSuccessBucketOperation) Unset added in v0.117.0

func (v *NullableSuccessBucketOperation) Unset()

type NullableSuccessObjectOperation added in v0.117.0

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

func NewNullableSuccessObjectOperation added in v0.117.0

func NewNullableSuccessObjectOperation(val *SuccessObjectOperation) *NullableSuccessObjectOperation

func (NullableSuccessObjectOperation) Get added in v0.117.0

func (NullableSuccessObjectOperation) IsSet added in v0.117.0

func (NullableSuccessObjectOperation) MarshalJSON added in v0.117.0

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

func (*NullableSuccessObjectOperation) Set added in v0.117.0

func (*NullableSuccessObjectOperation) UnmarshalJSON added in v0.117.0

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

func (*NullableSuccessObjectOperation) Unset added in v0.117.0

func (v *NullableSuccessObjectOperation) 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 ObjectResponseData added in v0.117.0

type ObjectResponseData struct {
	ObjectKey string `json:"object_key"`
}

ObjectResponseData struct for ObjectResponseData

func NewObjectResponseData added in v0.117.0

func NewObjectResponseData(objectKey string) *ObjectResponseData

NewObjectResponseData instantiates a new ObjectResponseData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewObjectResponseDataWithDefaults added in v0.117.0

func NewObjectResponseDataWithDefaults() *ObjectResponseData

NewObjectResponseDataWithDefaults instantiates a new ObjectResponseData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ObjectResponseData) GetObjectKey added in v0.117.0

func (o *ObjectResponseData) GetObjectKey() string

GetObjectKey returns the ObjectKey field value

func (*ObjectResponseData) GetObjectKeyOk added in v0.117.0

func (o *ObjectResponseData) GetObjectKeyOk() (*string, bool)

GetObjectKeyOk returns a tuple with the ObjectKey field value and a boolean to check if the value has been set.

func (ObjectResponseData) MarshalJSON added in v0.117.0

func (o ObjectResponseData) MarshalJSON() ([]byte, error)

func (*ObjectResponseData) SetObjectKey added in v0.117.0

func (o *ObjectResponseData) SetObjectKey(v string)

SetObjectKey sets field value

func (ObjectResponseData) ToMap added in v0.117.0

func (o ObjectResponseData) ToMap() (map[string]interface{}, error)

func (*ObjectResponseData) UnmarshalJSON added in v0.117.0

func (o *ObjectResponseData) UnmarshalJSON(data []byte) (err error)

type PaginatedBucketList

type PaginatedBucketList struct {
	Count    *int32         `json:"count,omitempty"`
	Next     NullableString `json:"next,omitempty"`
	Previous NullableString `json:"previous,omitempty"`
	Results  []Bucket       `json:"results,omitempty"`
}

PaginatedBucketList struct for PaginatedBucketList

func NewPaginatedBucketList

func NewPaginatedBucketList() *PaginatedBucketList

NewPaginatedBucketList instantiates a new PaginatedBucketList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPaginatedBucketListWithDefaults

func NewPaginatedBucketListWithDefaults() *PaginatedBucketList

NewPaginatedBucketListWithDefaults instantiates a new PaginatedBucketList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PaginatedBucketList) GetCount

func (o *PaginatedBucketList) GetCount() int32

GetCount returns the Count field value if set, zero value otherwise.

func (*PaginatedBucketList) GetCountOk

func (o *PaginatedBucketList) GetCountOk() (*int32, bool)

GetCountOk returns a tuple with the Count field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedBucketList) GetNext

func (o *PaginatedBucketList) GetNext() string

GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).

func (*PaginatedBucketList) GetNextOk

func (o *PaginatedBucketList) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PaginatedBucketList) GetPrevious

func (o *PaginatedBucketList) GetPrevious() string

GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null).

func (*PaginatedBucketList) GetPreviousOk

func (o *PaginatedBucketList) GetPreviousOk() (*string, bool)

GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PaginatedBucketList) GetResults

func (o *PaginatedBucketList) GetResults() []Bucket

GetResults returns the Results field value if set, zero value otherwise.

func (*PaginatedBucketList) GetResultsOk

func (o *PaginatedBucketList) GetResultsOk() ([]Bucket, bool)

GetResultsOk returns a tuple with the Results field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedBucketList) HasCount

func (o *PaginatedBucketList) HasCount() bool

HasCount returns a boolean if a field has been set.

func (*PaginatedBucketList) HasNext

func (o *PaginatedBucketList) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*PaginatedBucketList) HasPrevious

func (o *PaginatedBucketList) HasPrevious() bool

HasPrevious returns a boolean if a field has been set.

func (*PaginatedBucketList) HasResults

func (o *PaginatedBucketList) HasResults() bool

HasResults returns a boolean if a field has been set.

func (PaginatedBucketList) MarshalJSON

func (o PaginatedBucketList) MarshalJSON() ([]byte, error)

func (*PaginatedBucketList) SetCount

func (o *PaginatedBucketList) SetCount(v int32)

SetCount gets a reference to the given int32 and assigns it to the Count field.

func (*PaginatedBucketList) SetNext

func (o *PaginatedBucketList) SetNext(v string)

SetNext gets a reference to the given NullableString and assigns it to the Next field.

func (*PaginatedBucketList) SetNextNil

func (o *PaginatedBucketList) SetNextNil()

SetNextNil sets the value for Next to be an explicit nil

func (*PaginatedBucketList) SetPrevious

func (o *PaginatedBucketList) SetPrevious(v string)

SetPrevious gets a reference to the given NullableString and assigns it to the Previous field.

func (*PaginatedBucketList) SetPreviousNil

func (o *PaginatedBucketList) SetPreviousNil()

SetPreviousNil sets the value for Previous to be an explicit nil

func (*PaginatedBucketList) SetResults

func (o *PaginatedBucketList) SetResults(v []Bucket)

SetResults gets a reference to the given []Bucket and assigns it to the Results field.

func (PaginatedBucketList) ToMap

func (o PaginatedBucketList) ToMap() (map[string]interface{}, error)

func (*PaginatedBucketList) UnsetNext

func (o *PaginatedBucketList) UnsetNext()

UnsetNext ensures that no value is present for Next, not even an explicit nil

func (*PaginatedBucketList) UnsetPrevious

func (o *PaginatedBucketList) UnsetPrevious()

UnsetPrevious ensures that no value is present for Previous, not even an explicit nil

type PaginatedBucketObjectList added in v0.117.0

type PaginatedBucketObjectList struct {
	Count             *int32         `json:"count,omitempty"`
	Next              NullableString `json:"next,omitempty"`
	Previous          NullableString `json:"previous,omitempty"`
	ContinuationToken NullableString `json:"continuation_token,omitempty"`
	Results           []BucketObject `json:"results,omitempty"`
}

PaginatedBucketObjectList struct for PaginatedBucketObjectList

func NewPaginatedBucketObjectList added in v0.117.0

func NewPaginatedBucketObjectList() *PaginatedBucketObjectList

NewPaginatedBucketObjectList instantiates a new PaginatedBucketObjectList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPaginatedBucketObjectListWithDefaults added in v0.117.0

func NewPaginatedBucketObjectListWithDefaults() *PaginatedBucketObjectList

NewPaginatedBucketObjectListWithDefaults instantiates a new PaginatedBucketObjectList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PaginatedBucketObjectList) GetContinuationToken added in v0.123.0

func (o *PaginatedBucketObjectList) GetContinuationToken() string

GetContinuationToken returns the ContinuationToken field value if set, zero value otherwise (both if not set or set to explicit null).

func (*PaginatedBucketObjectList) GetContinuationTokenOk added in v0.123.0

func (o *PaginatedBucketObjectList) GetContinuationTokenOk() (*string, bool)

GetContinuationTokenOk returns a tuple with the ContinuationToken field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PaginatedBucketObjectList) GetCount added in v0.117.0

func (o *PaginatedBucketObjectList) GetCount() int32

GetCount returns the Count field value if set, zero value otherwise.

func (*PaginatedBucketObjectList) GetCountOk added in v0.117.0

func (o *PaginatedBucketObjectList) GetCountOk() (*int32, bool)

GetCountOk returns a tuple with the Count field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedBucketObjectList) GetNext added in v0.117.0

func (o *PaginatedBucketObjectList) GetNext() string

GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null).

func (*PaginatedBucketObjectList) GetNextOk added in v0.117.0

func (o *PaginatedBucketObjectList) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PaginatedBucketObjectList) GetPrevious added in v0.117.0

func (o *PaginatedBucketObjectList) GetPrevious() string

GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null).

func (*PaginatedBucketObjectList) GetPreviousOk added in v0.117.0

func (o *PaginatedBucketObjectList) GetPreviousOk() (*string, bool)

GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*PaginatedBucketObjectList) GetResults added in v0.117.0

func (o *PaginatedBucketObjectList) GetResults() []BucketObject

GetResults returns the Results field value if set, zero value otherwise.

func (*PaginatedBucketObjectList) GetResultsOk added in v0.117.0

func (o *PaginatedBucketObjectList) GetResultsOk() ([]BucketObject, bool)

GetResultsOk returns a tuple with the Results field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaginatedBucketObjectList) HasContinuationToken added in v0.123.0

func (o *PaginatedBucketObjectList) HasContinuationToken() bool

HasContinuationToken returns a boolean if a field has been set.

func (*PaginatedBucketObjectList) HasCount added in v0.117.0

func (o *PaginatedBucketObjectList) HasCount() bool

HasCount returns a boolean if a field has been set.

func (*PaginatedBucketObjectList) HasNext added in v0.117.0

func (o *PaginatedBucketObjectList) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*PaginatedBucketObjectList) HasPrevious added in v0.117.0

func (o *PaginatedBucketObjectList) HasPrevious() bool

HasPrevious returns a boolean if a field has been set.

func (*PaginatedBucketObjectList) HasResults added in v0.117.0

func (o *PaginatedBucketObjectList) HasResults() bool

HasResults returns a boolean if a field has been set.

func (PaginatedBucketObjectList) MarshalJSON added in v0.117.0

func (o PaginatedBucketObjectList) MarshalJSON() ([]byte, error)

func (*PaginatedBucketObjectList) SetContinuationToken added in v0.123.0

func (o *PaginatedBucketObjectList) SetContinuationToken(v string)

SetContinuationToken gets a reference to the given NullableString and assigns it to the ContinuationToken field.

func (*PaginatedBucketObjectList) SetContinuationTokenNil added in v0.123.0

func (o *PaginatedBucketObjectList) SetContinuationTokenNil()

SetContinuationTokenNil sets the value for ContinuationToken to be an explicit nil

func (*PaginatedBucketObjectList) SetCount added in v0.117.0

func (o *PaginatedBucketObjectList) SetCount(v int32)

SetCount gets a reference to the given int32 and assigns it to the Count field.

func (*PaginatedBucketObjectList) SetNext added in v0.117.0

func (o *PaginatedBucketObjectList) SetNext(v string)

SetNext gets a reference to the given NullableString and assigns it to the Next field.

func (*PaginatedBucketObjectList) SetNextNil added in v0.117.0

func (o *PaginatedBucketObjectList) SetNextNil()

SetNextNil sets the value for Next to be an explicit nil

func (*PaginatedBucketObjectList) SetPrevious added in v0.117.0

func (o *PaginatedBucketObjectList) SetPrevious(v string)

SetPrevious gets a reference to the given NullableString and assigns it to the Previous field.

func (*PaginatedBucketObjectList) SetPreviousNil added in v0.117.0

func (o *PaginatedBucketObjectList) SetPreviousNil()

SetPreviousNil sets the value for Previous to be an explicit nil

func (*PaginatedBucketObjectList) SetResults added in v0.117.0

func (o *PaginatedBucketObjectList) SetResults(v []BucketObject)

SetResults gets a reference to the given []BucketObject and assigns it to the Results field.

func (PaginatedBucketObjectList) ToMap added in v0.117.0

func (o PaginatedBucketObjectList) ToMap() (map[string]interface{}, error)

func (*PaginatedBucketObjectList) UnsetContinuationToken added in v0.123.0

func (o *PaginatedBucketObjectList) UnsetContinuationToken()

UnsetContinuationToken ensures that no value is present for ContinuationToken, not even an explicit nil

func (*PaginatedBucketObjectList) UnsetNext added in v0.117.0

func (o *PaginatedBucketObjectList) UnsetNext()

UnsetNext ensures that no value is present for Next, not even an explicit nil

func (*PaginatedBucketObjectList) UnsetPrevious added in v0.117.0

func (o *PaginatedBucketObjectList) UnsetPrevious()

UnsetPrevious ensures that no value is present for Previous, not even an explicit nil

type PatchedBucket

type PatchedBucket struct {
	Name       *string         `json:"name,omitempty"`
	EdgeAccess *EdgeAccessEnum `json:"edge_access,omitempty"`
}

PatchedBucket struct for PatchedBucket

func NewPatchedBucket

func NewPatchedBucket() *PatchedBucket

NewPatchedBucket instantiates a new PatchedBucket object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPatchedBucketWithDefaults

func NewPatchedBucketWithDefaults() *PatchedBucket

NewPatchedBucketWithDefaults instantiates a new PatchedBucket object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PatchedBucket) GetEdgeAccess

func (o *PatchedBucket) GetEdgeAccess() EdgeAccessEnum

GetEdgeAccess returns the EdgeAccess field value if set, zero value otherwise.

func (*PatchedBucket) GetEdgeAccessOk

func (o *PatchedBucket) GetEdgeAccessOk() (*EdgeAccessEnum, bool)

GetEdgeAccessOk returns a tuple with the EdgeAccess field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchedBucket) GetName

func (o *PatchedBucket) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*PatchedBucket) GetNameOk

func (o *PatchedBucket) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchedBucket) HasEdgeAccess

func (o *PatchedBucket) HasEdgeAccess() bool

HasEdgeAccess returns a boolean if a field has been set.

func (*PatchedBucket) HasName

func (o *PatchedBucket) HasName() bool

HasName returns a boolean if a field has been set.

func (PatchedBucket) MarshalJSON

func (o PatchedBucket) MarshalJSON() ([]byte, error)

func (*PatchedBucket) SetEdgeAccess

func (o *PatchedBucket) SetEdgeAccess(v EdgeAccessEnum)

SetEdgeAccess gets a reference to the given EdgeAccessEnum and assigns it to the EdgeAccess field.

func (*PatchedBucket) SetName

func (o *PatchedBucket) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (PatchedBucket) ToMap

func (o PatchedBucket) ToMap() (map[string]interface{}, error)

type ResponseBucket

type ResponseBucket struct {
	State StateEnum `json:"state"`
	Data  Bucket    `json:"data"`
}

ResponseBucket struct for ResponseBucket

func NewResponseBucket

func NewResponseBucket(state StateEnum, data Bucket) *ResponseBucket

NewResponseBucket instantiates a new ResponseBucket object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewResponseBucketWithDefaults

func NewResponseBucketWithDefaults() *ResponseBucket

NewResponseBucketWithDefaults instantiates a new ResponseBucket object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ResponseBucket) GetData

func (o *ResponseBucket) GetData() Bucket

GetData returns the Data field value

func (*ResponseBucket) GetDataOk

func (o *ResponseBucket) GetDataOk() (*Bucket, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*ResponseBucket) GetState

func (o *ResponseBucket) GetState() StateEnum

GetState returns the State field value

func (*ResponseBucket) GetStateOk

func (o *ResponseBucket) GetStateOk() (*StateEnum, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.

func (ResponseBucket) MarshalJSON

func (o ResponseBucket) MarshalJSON() ([]byte, error)

func (*ResponseBucket) SetData

func (o *ResponseBucket) SetData(v Bucket)

SetData sets field value

func (*ResponseBucket) SetState

func (o *ResponseBucket) SetState(v StateEnum)

SetState sets field value

func (ResponseBucket) ToMap

func (o ResponseBucket) ToMap() (map[string]interface{}, error)

func (*ResponseBucket) UnmarshalJSON

func (o *ResponseBucket) UnmarshalJSON(data []byte) (err error)

type ResponseDeleteBucket

type ResponseDeleteBucket struct {
	State StateEnum                        `json:"state"`
	Data  NullableResponseDeleteBucketData `json:"data"`
}

ResponseDeleteBucket struct for ResponseDeleteBucket

func NewResponseDeleteBucket

func NewResponseDeleteBucket(state StateEnum, data NullableResponseDeleteBucketData) *ResponseDeleteBucket

NewResponseDeleteBucket instantiates a new ResponseDeleteBucket object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewResponseDeleteBucketWithDefaults

func NewResponseDeleteBucketWithDefaults() *ResponseDeleteBucket

NewResponseDeleteBucketWithDefaults instantiates a new ResponseDeleteBucket object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ResponseDeleteBucket) GetData

GetData returns the Data field value If the value is explicit nil, the zero value for ResponseDeleteBucketData will be returned

func (*ResponseDeleteBucket) GetDataOk

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ResponseDeleteBucket) GetState

func (o *ResponseDeleteBucket) GetState() StateEnum

GetState returns the State field value

func (*ResponseDeleteBucket) GetStateOk

func (o *ResponseDeleteBucket) GetStateOk() (*StateEnum, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.

func (ResponseDeleteBucket) MarshalJSON

func (o ResponseDeleteBucket) MarshalJSON() ([]byte, error)

func (*ResponseDeleteBucket) SetData

SetData sets field value

func (*ResponseDeleteBucket) SetState

func (o *ResponseDeleteBucket) SetState(v StateEnum)

SetState sets field value

func (ResponseDeleteBucket) ToMap

func (o ResponseDeleteBucket) ToMap() (map[string]interface{}, error)

func (*ResponseDeleteBucket) UnmarshalJSON

func (o *ResponseDeleteBucket) UnmarshalJSON(bytes []byte) (err error)

type ResponseDeleteBucketData

type ResponseDeleteBucketData struct {
	Name       string         `json:"name"`
	EdgeAccess EdgeAccessEnum `json:"edge_access"`
}

ResponseDeleteBucketData struct for ResponseDeleteBucketData

func NewResponseDeleteBucketData

func NewResponseDeleteBucketData(name string, edgeAccess EdgeAccessEnum) *ResponseDeleteBucketData

NewResponseDeleteBucketData instantiates a new ResponseDeleteBucketData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewResponseDeleteBucketDataWithDefaults

func NewResponseDeleteBucketDataWithDefaults() *ResponseDeleteBucketData

NewResponseDeleteBucketDataWithDefaults instantiates a new ResponseDeleteBucketData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ResponseDeleteBucketData) GetEdgeAccess

func (o *ResponseDeleteBucketData) GetEdgeAccess() EdgeAccessEnum

GetEdgeAccess returns the EdgeAccess field value

func (*ResponseDeleteBucketData) GetEdgeAccessOk

func (o *ResponseDeleteBucketData) GetEdgeAccessOk() (*EdgeAccessEnum, bool)

GetEdgeAccessOk returns a tuple with the EdgeAccess field value and a boolean to check if the value has been set.

func (*ResponseDeleteBucketData) GetName

func (o *ResponseDeleteBucketData) GetName() string

GetName returns the Name field value

func (*ResponseDeleteBucketData) GetNameOk

func (o *ResponseDeleteBucketData) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (ResponseDeleteBucketData) MarshalJSON

func (o ResponseDeleteBucketData) MarshalJSON() ([]byte, error)

func (*ResponseDeleteBucketData) SetEdgeAccess

func (o *ResponseDeleteBucketData) SetEdgeAccess(v EdgeAccessEnum)

SetEdgeAccess sets field value

func (*ResponseDeleteBucketData) SetName

func (o *ResponseDeleteBucketData) SetName(v string)

SetName sets field value

func (ResponseDeleteBucketData) ToMap

func (o ResponseDeleteBucketData) ToMap() (map[string]interface{}, error)

func (*ResponseDeleteBucketData) UnmarshalJSON

func (o *ResponseDeleteBucketData) UnmarshalJSON(bytes []byte) (err error)

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type StateEnum

type StateEnum string

StateEnum the model 'StateEnum'

const (
	PENDING  StateEnum = "pending"
	EXECUTED StateEnum = "executed"
)

List of StateEnum

func NewStateEnumFromValue

func NewStateEnumFromValue(v string) (*StateEnum, error)

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

func (StateEnum) IsValid

func (v StateEnum) IsValid() bool

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

func (StateEnum) Ptr

func (v StateEnum) Ptr() *StateEnum

Ptr returns reference to StateEnum value

func (*StateEnum) UnmarshalJSON

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

type StorageAPIService added in v0.117.0

type StorageAPIService service

StorageAPIService StorageAPI service

func (*StorageAPIService) StorageApiBucketsCreate added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsCreate(ctx context.Context) ApiStorageApiBucketsCreateRequest

StorageApiBucketsCreate Create a new bucket

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

func (*StorageAPIService) StorageApiBucketsCreateExecute added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsCreateExecute(r ApiStorageApiBucketsCreateRequest) (*ResponseBucket, *http.Response, error)

Execute executes the request

@return ResponseBucket

func (*StorageAPIService) StorageApiBucketsDestroy added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsDestroy(ctx context.Context, name string) ApiStorageApiBucketsDestroyRequest

StorageApiBucketsDestroy Delete a bucket

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param name
@return ApiStorageApiBucketsDestroyRequest

func (*StorageAPIService) StorageApiBucketsDestroyExecute added in v0.117.0

Execute executes the request

@return SuccessBucketOperation

func (*StorageAPIService) StorageApiBucketsList added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsList(ctx context.Context) ApiStorageApiBucketsListRequest

StorageApiBucketsList List buckets

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

func (*StorageAPIService) StorageApiBucketsListExecute added in v0.117.0

Execute executes the request

@return PaginatedBucketList

func (*StorageAPIService) StorageApiBucketsObjectsCreate added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsObjectsCreate(ctx context.Context, bucketName string, objectKey string) ApiStorageApiBucketsObjectsCreateRequest

StorageApiBucketsObjectsCreate Create new object key

Create a new object key in the bucket.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param bucketName
@param objectKey
@return ApiStorageApiBucketsObjectsCreateRequest

func (*StorageAPIService) StorageApiBucketsObjectsCreateExecute added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsObjectsCreateExecute(r ApiStorageApiBucketsObjectsCreateRequest) (*SuccessObjectOperation, *http.Response, error)

Execute executes the request

@return SuccessObjectOperation

func (*StorageAPIService) StorageApiBucketsObjectsDestroy added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsObjectsDestroy(ctx context.Context, bucketName string, objectKey string) ApiStorageApiBucketsObjectsDestroyRequest

StorageApiBucketsObjectsDestroy Delete object key

Delete an object key from bucket

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param bucketName
@param objectKey
@return ApiStorageApiBucketsObjectsDestroyRequest

func (*StorageAPIService) StorageApiBucketsObjectsDestroyExecute added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsObjectsDestroyExecute(r ApiStorageApiBucketsObjectsDestroyRequest) (*SuccessObjectOperation, *http.Response, error)

Execute executes the request

@return SuccessObjectOperation

func (*StorageAPIService) StorageApiBucketsObjectsList added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsObjectsList(ctx context.Context, bucketName string) ApiStorageApiBucketsObjectsListRequest

StorageApiBucketsObjectsList List buckets objects

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param bucketName
@return ApiStorageApiBucketsObjectsListRequest

func (*StorageAPIService) StorageApiBucketsObjectsListExecute added in v0.117.0

Execute executes the request

@return PaginatedBucketObjectList

func (*StorageAPIService) StorageApiBucketsObjectsRetrieve added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsObjectsRetrieve(ctx context.Context, bucketName string, objectKey string) ApiStorageApiBucketsObjectsRetrieveRequest

StorageApiBucketsObjectsRetrieve Download object

Download the object key from bucket.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param bucketName
@param objectKey
@return ApiStorageApiBucketsObjectsRetrieveRequest

func (*StorageAPIService) StorageApiBucketsObjectsRetrieveExecute added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsObjectsRetrieveExecute(r ApiStorageApiBucketsObjectsRetrieveRequest) (*http.Response, error)

Execute executes the request

func (*StorageAPIService) StorageApiBucketsObjectsUpdate added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsObjectsUpdate(ctx context.Context, bucketName string, objectKey string) ApiStorageApiBucketsObjectsUpdateRequest

StorageApiBucketsObjectsUpdate Update the object key

Update the object key from bucket.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param bucketName
@param objectKey
@return ApiStorageApiBucketsObjectsUpdateRequest

func (*StorageAPIService) StorageApiBucketsObjectsUpdateExecute added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsObjectsUpdateExecute(r ApiStorageApiBucketsObjectsUpdateRequest) (*SuccessObjectOperation, *http.Response, error)

Execute executes the request

@return SuccessObjectOperation

func (*StorageAPIService) StorageApiBucketsPartialUpdate added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsPartialUpdate(ctx context.Context, name string) ApiStorageApiBucketsPartialUpdateRequest

StorageApiBucketsPartialUpdate Update bucket info

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param name
@return ApiStorageApiBucketsPartialUpdateRequest

func (*StorageAPIService) StorageApiBucketsPartialUpdateExecute added in v0.117.0

func (a *StorageAPIService) StorageApiBucketsPartialUpdateExecute(r ApiStorageApiBucketsPartialUpdateRequest) (*ResponseBucket, *http.Response, error)

Execute executes the request

@return ResponseBucket

type SuccessBucketOperation added in v0.117.0

type SuccessBucketOperation struct {
	State StateEnum `json:"state"`
	Data  Bucket    `json:"data"`
}

SuccessBucketOperation struct for SuccessBucketOperation

func NewSuccessBucketOperation added in v0.117.0

func NewSuccessBucketOperation(state StateEnum, data Bucket) *SuccessBucketOperation

NewSuccessBucketOperation instantiates a new SuccessBucketOperation object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSuccessBucketOperationWithDefaults added in v0.117.0

func NewSuccessBucketOperationWithDefaults() *SuccessBucketOperation

NewSuccessBucketOperationWithDefaults instantiates a new SuccessBucketOperation object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SuccessBucketOperation) GetData added in v0.117.0

func (o *SuccessBucketOperation) GetData() Bucket

GetData returns the Data field value

func (*SuccessBucketOperation) GetDataOk added in v0.117.0

func (o *SuccessBucketOperation) GetDataOk() (*Bucket, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*SuccessBucketOperation) GetState added in v0.117.0

func (o *SuccessBucketOperation) GetState() StateEnum

GetState returns the State field value

func (*SuccessBucketOperation) GetStateOk added in v0.117.0

func (o *SuccessBucketOperation) GetStateOk() (*StateEnum, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.

func (SuccessBucketOperation) MarshalJSON added in v0.117.0

func (o SuccessBucketOperation) MarshalJSON() ([]byte, error)

func (*SuccessBucketOperation) SetData added in v0.117.0

func (o *SuccessBucketOperation) SetData(v Bucket)

SetData sets field value

func (*SuccessBucketOperation) SetState added in v0.117.0

func (o *SuccessBucketOperation) SetState(v StateEnum)

SetState sets field value

func (SuccessBucketOperation) ToMap added in v0.117.0

func (o SuccessBucketOperation) ToMap() (map[string]interface{}, error)

func (*SuccessBucketOperation) UnmarshalJSON added in v0.117.0

func (o *SuccessBucketOperation) UnmarshalJSON(data []byte) (err error)

type SuccessObjectOperation added in v0.117.0

type SuccessObjectOperation struct {
	State StateEnum          `json:"state"`
	Data  ObjectResponseData `json:"data"`
}

SuccessObjectOperation struct for SuccessObjectOperation

func NewSuccessObjectOperation added in v0.117.0

func NewSuccessObjectOperation(state StateEnum, data ObjectResponseData) *SuccessObjectOperation

NewSuccessObjectOperation instantiates a new SuccessObjectOperation object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSuccessObjectOperationWithDefaults added in v0.117.0

func NewSuccessObjectOperationWithDefaults() *SuccessObjectOperation

NewSuccessObjectOperationWithDefaults instantiates a new SuccessObjectOperation object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SuccessObjectOperation) GetData added in v0.117.0

GetData returns the Data field value

func (*SuccessObjectOperation) GetDataOk added in v0.117.0

func (o *SuccessObjectOperation) GetDataOk() (*ObjectResponseData, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*SuccessObjectOperation) GetState added in v0.117.0

func (o *SuccessObjectOperation) GetState() StateEnum

GetState returns the State field value

func (*SuccessObjectOperation) GetStateOk added in v0.117.0

func (o *SuccessObjectOperation) GetStateOk() (*StateEnum, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.

func (SuccessObjectOperation) MarshalJSON added in v0.117.0

func (o SuccessObjectOperation) MarshalJSON() ([]byte, error)

func (*SuccessObjectOperation) SetData added in v0.117.0

SetData sets field value

func (*SuccessObjectOperation) SetState added in v0.117.0

func (o *SuccessObjectOperation) SetState(v StateEnum)

SetState sets field value

func (SuccessObjectOperation) ToMap added in v0.117.0

func (o SuccessObjectOperation) ToMap() (map[string]interface{}, error)

func (*SuccessObjectOperation) UnmarshalJSON added in v0.117.0

func (o *SuccessObjectOperation) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

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