diff --git a/models/list_buckets_response.go b/models/list_buckets_response.go index f7c8a01cb..90f3d2975 100644 --- a/models/list_buckets_response.go +++ b/models/list_buckets_response.go @@ -39,7 +39,7 @@ type ListBucketsResponse struct { // list of resulting buckets Buckets []*Bucket `json:"buckets"` - // number of buckets accessible to tenant user + // number of buckets accessible to the user Total int64 `json:"total,omitempty"` } diff --git a/operatorapi/embedded_spec.go b/operatorapi/embedded_spec.go index f8058d695..cf1f02732 100644 --- a/operatorapi/embedded_spec.go +++ b/operatorapi/embedded_spec.go @@ -1383,113 +1383,6 @@ func init() { } }, "definitions": { - "accountChangePasswordRequest": { - "type": "object", - "required": [ - "current_secret_key", - "new_secret_key" - ], - "properties": { - "current_secret_key": { - "type": "string" - }, - "new_secret_key": { - "type": "string" - } - } - }, - "addBucketLifecycle": { - "type": "object", - "properties": { - "disable": { - "description": "Non required, toggle to disable or enable rule", - "type": "boolean" - }, - "expired_object_delete_marker": { - "description": "Non required, toggle to disable or enable rule", - "type": "boolean" - }, - "expiry_date": { - "description": "Required in case of expiry_days or transition fields are not set. it defines an expiry date for ILM", - "type": "string" - }, - "expiry_days": { - "description": "Required in case of expiry_date or transition fields are not set. it defines an expiry days for ILM", - "type": "integer", - "format": "int32", - "default": 0 - }, - "noncurrentversion_expiration_days": { - "description": "Non required, can be set in case of expiration is enabled", - "type": "integer", - "format": "int32", - "default": 0 - }, - "noncurrentversion_transition_days": { - "description": "Non required, can be set in case of transition is enabled", - "type": "integer", - "format": "int32", - "default": 0 - }, - "noncurrentversion_transition_storage_class": { - "description": "Non required, can be set in case of transition is enabled", - "type": "string" - }, - "prefix": { - "description": "Non required field, it matches a prefix to perform ILM operations on it", - "type": "string" - }, - "storage_class": { - "description": "Required only in case of transition is set. it refers to a tier", - "type": "string" - }, - "tags": { - "description": "Non required field, tags to match ILM files", - "type": "string" - }, - "transition_date": { - "description": "Required in case of transition_days or expiry fields are not set. it defines a transition date for ILM", - "type": "string" - }, - "transition_days": { - "description": "Required in case of transition_date or expiry fields are not set. it defines a transition days for ILM", - "type": "integer", - "format": "int32", - "default": 0 - } - } - }, - "adminInfoResponse": { - "type": "object", - "properties": { - "buckets": { - "type": "integer" - }, - "objects": { - "type": "integer" - }, - "usage": { - "type": "integer" - }, - "widgets": { - "type": "array", - "items": { - "$ref": "#/definitions/widget" - } - } - } - }, - "arnsResponse": { - "type": "object", - "properties": { - "arns": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, "awsConfiguration": { "type": "object", "required": [ @@ -1535,109 +1428,6 @@ func init() { } } }, - "bucket": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "access": { - "$ref": "#/definitions/bucketAccess" - }, - "creation_date": { - "type": "string" - }, - "name": { - "type": "string", - "minLength": 3 - }, - "size": { - "type": "integer", - "format": "int64" - } - } - }, - "bucketAccess": { - "type": "string", - "default": "PRIVATE", - "enum": [ - "PRIVATE", - "PUBLIC", - "CUSTOM" - ] - }, - "bucketEncryptionInfo": { - "type": "object", - "properties": { - "algorithm": { - "type": "string" - }, - "kmsMasterKeyID": { - "type": "string" - } - } - }, - "bucketEncryptionRequest": { - "type": "object", - "properties": { - "encType": { - "$ref": "#/definitions/bucketEncryptionType" - }, - "kmsKeyID": { - "type": "string" - } - } - }, - "bucketEncryptionType": { - "type": "string", - "default": "sse-s3", - "enum": [ - "sse-s3", - "sse-kms" - ] - }, - "bucketLifecycleResponse": { - "type": "object", - "properties": { - "lifecycle": { - "type": "array", - "items": { - "$ref": "#/definitions/objectBucketLifecycle" - } - } - } - }, - "bucketObLockingResponse": { - "type": "object", - "properties": { - "object_locking_enabled": { - "type": "boolean" - } - } - }, - "bucketQuota": { - "type": "object", - "properties": { - "quota": { - "type": "integer" - }, - "type": { - "type": "string", - "enum": [ - "hard", - "fifo" - ] - } - } - }, - "bucketVersioningResponse": { - "type": "object", - "properties": { - "is_versioned": { - "type": "boolean" - } - } - }, "certificateInfo": { "type": "object", "properties": { @@ -1658,46 +1448,6 @@ func init() { } } }, - "changeUserPasswordRequest": { - "type": "object", - "required": [ - "selectedUser", - "newSecretKey" - ], - "properties": { - "newSecretKey": { - "type": "string" - }, - "selectedUser": { - "type": "string" - } - } - }, - "configuration": { - "type": "object", - "properties": { - "key_values": { - "type": "array", - "items": { - "$ref": "#/definitions/configurationKV" - } - }, - "name": { - "type": "string" - } - } - }, - "configurationKV": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "value": { - "type": "string" - } - } - }, "consoleConfiguration": { "allOf": [ { @@ -1983,21 +1733,6 @@ func init() { "$ref": "#/definitions/eventListElement" } }, - "expirationResponse": { - "type": "object", - "properties": { - "date": { - "type": "string" - }, - "days": { - "type": "integer", - "format": "int64" - }, - "delete_marker": { - "type": "boolean" - } - } - }, "formatConfiguration": { "type": "object", "required": [ @@ -2117,21 +1852,6 @@ func init() { } } }, - "getBucketRetentionConfig": { - "type": "object", - "properties": { - "mode": { - "$ref": "#/definitions/objectRetentionMode" - }, - "unit": { - "$ref": "#/definitions/objectRetentionUnit" - }, - "validity": { - "type": "integer", - "format": "int32" - } - } - }, "getDirectCSIDriveListResponse": { "type": "object", "properties": { @@ -2154,48 +1874,6 @@ func init() { } } }, - "group": { - "type": "object", - "properties": { - "members": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "policy": { - "type": "string" - }, - "status": { - "type": "string" - } - } - }, - "hasPermissionRequest": { - "type": "object", - "properties": { - "actions": { - "type": "array", - "items": { - "$ref": "#/definitions/policyArgs" - } - } - } - }, - "hasPermissionResponse": { - "type": "object", - "properties": { - "permissions": { - "type": "array", - "items": { - "$ref": "#/definitions/permissionAction" - } - } - } - }, "idpConfiguration": { "type": "object", "properties": { @@ -2362,34 +2040,6 @@ func init() { } } }, - "lifecycleTag": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "value": { - "type": "string" - } - } - }, - "listBucketsResponse": { - "type": "object", - "properties": { - "buckets": { - "type": "array", - "title": "list of resulting buckets", - "items": { - "$ref": "#/definitions/bucket" - } - }, - "total": { - "type": "integer", - "format": "int64", - "title": "number of buckets accessible to tenant user" - } - } - }, "listPVCsResponse": { "type": "object", "properties": { @@ -2437,15 +2087,6 @@ func init() { } } }, - "logSearchResponse": { - "type": "object", - "properties": { - "results": { - "type": "object", - "title": "list of log search responses" - } - } - }, "loginDetails": { "type": "object", "properties": { @@ -2627,131 +2268,6 @@ func init() { } } }, - "nofiticationService": { - "type": "string", - "enum": [ - "webhook", - "amqp", - "kafka", - "mqtt", - "nats", - "nsq", - "mysql", - "postgres", - "elasticsearch", - "redis" - ] - }, - "notificationConfig": { - "type": "object", - "required": [ - "arn" - ], - "properties": { - "arn": { - "type": "string" - }, - "events": { - "type": "array", - "title": "filter specific type of event. Defaults to all event (default: '[put,delete,get]')", - "items": { - "$ref": "#/definitions/notificationEventType" - } - }, - "id": { - "type": "string" - }, - "prefix": { - "type": "string", - "title": "filter event associated to the specified prefix" - }, - "suffix": { - "type": "string", - "title": "filter event associated to the specified suffix" - } - } - }, - "notificationDeleteRequest": { - "type": "object", - "required": [ - "events", - "prefix", - "suffix" - ], - "properties": { - "events": { - "type": "array", - "title": "filter specific type of event. Defaults to all event (default: '[put,delete,get]')", - "minLength": 1, - "items": { - "$ref": "#/definitions/notificationEventType" - } - }, - "prefix": { - "type": "string", - "title": "filter event associated to the specified prefix" - }, - "suffix": { - "type": "string", - "title": "filter event associated to the specified suffix" - } - } - }, - "notificationEventType": { - "type": "string", - "enum": [ - "put", - "delete", - "get" - ] - }, - "objectBucketLifecycle": { - "type": "object", - "properties": { - "expiration": { - "$ref": "#/definitions/expirationResponse" - }, - "id": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "status": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/lifecycleTag" - } - }, - "transition": { - "$ref": "#/definitions/transitionResponse" - } - } - }, - "objectLegalHoldStatus": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - }, - "objectRetentionMode": { - "type": "string", - "enum": [ - "governance", - "compliance" - ] - }, - "objectRetentionUnit": { - "type": "string", - "enum": [ - "days", - "years" - ] - }, "operatorSessionResponse": { "type": "object", "properties": { @@ -2784,17 +2300,6 @@ func init() { "type": "string" } }, - "permissionAction": { - "type": "object", - "properties": { - "can": { - "type": "boolean" - }, - "id": { - "type": "string" - } - } - }, "podAffinityTerm": { "description": "Required. A pod affinity term, associated with the corresponding weight.", "type": "object", @@ -2857,31 +2362,6 @@ func init() { } } }, - "policy": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "policy": { - "type": "string" - } - } - }, - "policyArgs": { - "type": "object", - "properties": { - "action": { - "type": "string" - }, - "bucket_name": { - "type": "string" - }, - "id": { - "type": "string" - } - } - }, "pool": { "type": "object", "required": [ @@ -3144,52 +2624,6 @@ func init() { } } }, - "principal": { - "type": "object", - "properties": { - "STSAccessKeyID": { - "type": "string" - }, - "STSSecretAccessKey": { - "type": "string" - }, - "STSSessionToken": { - "type": "string" - }, - "accountAccessKey": { - "type": "string" - }, - "actions": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "profilerType": { - "type": "string", - "enum": [ - "cpu", - "mem", - "block", - "mutex", - "trace", - "threads", - "goroutines" - ] - }, - "profilingStartRequest": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "$ref": "#/definitions/profilerType" - } - } - }, "prometheusConfiguration": { "type": "object", "properties": { @@ -3206,65 +2640,6 @@ func init() { } } }, - "putBucketRetentionRequest": { - "type": "object", - "required": [ - "mode", - "unit", - "validity" - ], - "properties": { - "mode": { - "$ref": "#/definitions/objectRetentionMode" - }, - "unit": { - "$ref": "#/definitions/objectRetentionUnit" - }, - "validity": { - "type": "integer", - "format": "int32" - } - } - }, - "putObjectLegalHoldRequest": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "$ref": "#/definitions/objectLegalHoldStatus" - } - } - }, - "putObjectRetentionRequest": { - "type": "object", - "required": [ - "mode", - "expires" - ], - "properties": { - "expires": { - "type": "string" - }, - "governance_bypass": { - "type": "boolean" - }, - "mode": { - "$ref": "#/definitions/objectRetentionMode" - } - } - }, - "putObjectTagsRequest": { - "type": "object", - "properties": { - "tags": { - "additionalProperties": { - "type": "string" - } - } - } - }, "pvcsListResponse": { "type": "object", "properties": { @@ -3324,152 +2699,6 @@ func init() { } } }, - "resultTarget": { - "type": "object", - "properties": { - "legendFormat": { - "type": "string" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/widgetResult" - } - }, - "resultType": { - "type": "string" - } - } - }, - "rewindItem": { - "type": "object", - "properties": { - "action": { - "type": "string" - }, - "delete_flag": { - "type": "boolean" - }, - "last_modified": { - "type": "string" - }, - "name": { - "type": "string" - }, - "size": { - "type": "integer", - "format": "int64" - }, - "version_id": { - "type": "string" - } - } - }, - "rewindResponse": { - "type": "object", - "properties": { - "objects": { - "type": "array", - "items": { - "$ref": "#/definitions/rewindItem" - } - } - } - }, - "serviceAccountCreds": { - "type": "object", - "properties": { - "accessKey": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - } - }, - "serviceAccountRequest": { - "type": "object", - "properties": { - "policy": { - "type": "string", - "title": "policy to be applied to the Service Account if any" - } - } - }, - "serviceAccounts": { - "type": "array", - "items": { - "type": "string" - } - }, - "setBucketQuota": { - "type": "object", - "required": [ - "enabled" - ], - "properties": { - "amount": { - "type": "integer" - }, - "enabled": { - "type": "boolean" - }, - "quota_type": { - "type": "string", - "enum": [ - "fifo", - "hard" - ] - } - } - }, - "setBucketVersioning": { - "type": "object", - "properties": { - "versioning": { - "type": "boolean" - } - } - }, - "setConfigResponse": { - "type": "object", - "properties": { - "restart": { - "description": "Returns wheter server needs to restart to apply changes or not", - "type": "boolean" - } - } - }, - "startProfilingItem": { - "type": "object", - "properties": { - "error": { - "type": "string" - }, - "nodeName": { - "type": "string" - }, - "success": { - "type": "boolean" - } - } - }, - "startProfilingList": { - "type": "object", - "properties": { - "startResults": { - "type": "array", - "items": { - "$ref": "#/definitions/startProfilingItem" - } - }, - "total": { - "type": "integer", - "format": "int64", - "title": "number of start results" - } - } - }, "subscriptionValidateRequest": { "type": "object", "properties": { @@ -3718,136 +2947,6 @@ func init() { } } }, - "tier": { - "type": "object", - "properties": { - "azure": { - "type": "object", - "$ref": "#/definitions/tier_azure" - }, - "gcs": { - "type": "object", - "$ref": "#/definitions/tier_gcs" - }, - "s3": { - "type": "object", - "$ref": "#/definitions/tier_s3" - }, - "type": { - "type": "string", - "enum": [ - "s3", - "gcs", - "azure", - "unsupported" - ] - } - } - }, - "tierCredentialsRequest": { - "type": "object", - "properties": { - "access_key": { - "type": "string" - }, - "creds": { - "description": "a base64 encoded value", - "type": "string" - }, - "secret_key": { - "type": "string" - } - } - }, - "tierListResponse": { - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/tier" - } - } - } - }, - "tier_azure": { - "type": "object", - "properties": { - "accountkey": { - "type": "string" - }, - "accountname": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "name": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "region": { - "type": "string" - } - } - }, - "tier_gcs": { - "type": "object", - "properties": { - "bucket": { - "type": "string" - }, - "creds": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "name": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "region": { - "type": "string" - } - } - }, - "tier_s3": { - "type": "object", - "properties": { - "accesskey": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "name": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "region": { - "type": "string" - }, - "secretkey": { - "type": "string" - }, - "storageclass": { - "type": "string" - } - } - }, "tlsConfiguration": { "type": "object", "properties": { @@ -3875,32 +2974,6 @@ func init() { } } }, - "transitionResponse": { - "type": "object", - "properties": { - "date": { - "type": "string" - }, - "days": { - "type": "integer", - "format": "int64" - }, - "storage_class": { - "type": "string" - } - } - }, - "updateBucketLifecycle": { - "type": "object", - "properties": { - "disable": { - "type": "boolean" - }, - "tags": { - "type": "string" - } - } - }, "updateTenantRequest": { "type": "object", "properties": { @@ -3966,47 +3039,6 @@ func init() { } } }, - "updateUser": { - "type": "object", - "required": [ - "status", - "groups" - ], - "properties": { - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "status": { - "type": "string" - } - } - }, - "user": { - "type": "object", - "properties": { - "accessKey": { - "type": "string" - }, - "memberOf": { - "type": "array", - "items": { - "type": "string" - } - }, - "policy": { - "type": "array", - "items": { - "type": "string" - } - }, - "status": { - "type": "string" - } - } - }, "vaultConfiguration": { "type": "object", "required": [ @@ -4072,95 +3104,6 @@ func init() { } } } - }, - "widget": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int32" - }, - "options": { - "type": "object", - "properties": { - "reduceOptions": { - "type": "object", - "properties": { - "calcs": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - }, - "targets": { - "type": "array", - "items": { - "$ref": "#/definitions/resultTarget" - } - }, - "title": { - "type": "string" - }, - "type": { - "type": "string" - } - } - }, - "widgetDetails": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int32" - }, - "options": { - "type": "object", - "properties": { - "reduceOptions": { - "type": "object", - "properties": { - "calcs": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - }, - "targets": { - "type": "array", - "items": { - "$ref": "#/definitions/resultTarget" - } - }, - "title": { - "type": "string" - }, - "type": { - "type": "string" - } - } - }, - "widgetResult": { - "type": "object", - "properties": { - "metric": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "values": { - "type": "array", - "items": {} - } - } } }, "securityDefinitions": { @@ -6209,167 +5152,6 @@ func init() { } } }, - "WidgetDetailsOptions": { - "type": "object", - "properties": { - "reduceOptions": { - "type": "object", - "properties": { - "calcs": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - }, - "WidgetDetailsOptionsReduceOptions": { - "type": "object", - "properties": { - "calcs": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "WidgetOptions": { - "type": "object", - "properties": { - "reduceOptions": { - "type": "object", - "properties": { - "calcs": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - }, - "WidgetOptionsReduceOptions": { - "type": "object", - "properties": { - "calcs": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "accountChangePasswordRequest": { - "type": "object", - "required": [ - "current_secret_key", - "new_secret_key" - ], - "properties": { - "current_secret_key": { - "type": "string" - }, - "new_secret_key": { - "type": "string" - } - } - }, - "addBucketLifecycle": { - "type": "object", - "properties": { - "disable": { - "description": "Non required, toggle to disable or enable rule", - "type": "boolean" - }, - "expired_object_delete_marker": { - "description": "Non required, toggle to disable or enable rule", - "type": "boolean" - }, - "expiry_date": { - "description": "Required in case of expiry_days or transition fields are not set. it defines an expiry date for ILM", - "type": "string" - }, - "expiry_days": { - "description": "Required in case of expiry_date or transition fields are not set. it defines an expiry days for ILM", - "type": "integer", - "format": "int32", - "default": 0 - }, - "noncurrentversion_expiration_days": { - "description": "Non required, can be set in case of expiration is enabled", - "type": "integer", - "format": "int32", - "default": 0 - }, - "noncurrentversion_transition_days": { - "description": "Non required, can be set in case of transition is enabled", - "type": "integer", - "format": "int32", - "default": 0 - }, - "noncurrentversion_transition_storage_class": { - "description": "Non required, can be set in case of transition is enabled", - "type": "string" - }, - "prefix": { - "description": "Non required field, it matches a prefix to perform ILM operations on it", - "type": "string" - }, - "storage_class": { - "description": "Required only in case of transition is set. it refers to a tier", - "type": "string" - }, - "tags": { - "description": "Non required field, tags to match ILM files", - "type": "string" - }, - "transition_date": { - "description": "Required in case of transition_days or expiry fields are not set. it defines a transition date for ILM", - "type": "string" - }, - "transition_days": { - "description": "Required in case of transition_date or expiry fields are not set. it defines a transition days for ILM", - "type": "integer", - "format": "int32", - "default": 0 - } - } - }, - "adminInfoResponse": { - "type": "object", - "properties": { - "buckets": { - "type": "integer" - }, - "objects": { - "type": "integer" - }, - "usage": { - "type": "integer" - }, - "widgets": { - "type": "array", - "items": { - "$ref": "#/definitions/widget" - } - } - } - }, - "arnsResponse": { - "type": "object", - "properties": { - "arns": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, "awsConfiguration": { "type": "object", "required": [ @@ -6415,109 +5197,6 @@ func init() { } } }, - "bucket": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "access": { - "$ref": "#/definitions/bucketAccess" - }, - "creation_date": { - "type": "string" - }, - "name": { - "type": "string", - "minLength": 3 - }, - "size": { - "type": "integer", - "format": "int64" - } - } - }, - "bucketAccess": { - "type": "string", - "default": "PRIVATE", - "enum": [ - "PRIVATE", - "PUBLIC", - "CUSTOM" - ] - }, - "bucketEncryptionInfo": { - "type": "object", - "properties": { - "algorithm": { - "type": "string" - }, - "kmsMasterKeyID": { - "type": "string" - } - } - }, - "bucketEncryptionRequest": { - "type": "object", - "properties": { - "encType": { - "$ref": "#/definitions/bucketEncryptionType" - }, - "kmsKeyID": { - "type": "string" - } - } - }, - "bucketEncryptionType": { - "type": "string", - "default": "sse-s3", - "enum": [ - "sse-s3", - "sse-kms" - ] - }, - "bucketLifecycleResponse": { - "type": "object", - "properties": { - "lifecycle": { - "type": "array", - "items": { - "$ref": "#/definitions/objectBucketLifecycle" - } - } - } - }, - "bucketObLockingResponse": { - "type": "object", - "properties": { - "object_locking_enabled": { - "type": "boolean" - } - } - }, - "bucketQuota": { - "type": "object", - "properties": { - "quota": { - "type": "integer" - }, - "type": { - "type": "string", - "enum": [ - "hard", - "fifo" - ] - } - } - }, - "bucketVersioningResponse": { - "type": "object", - "properties": { - "is_versioned": { - "type": "boolean" - } - } - }, "certificateInfo": { "type": "object", "properties": { @@ -6538,46 +5217,6 @@ func init() { } } }, - "changeUserPasswordRequest": { - "type": "object", - "required": [ - "selectedUser", - "newSecretKey" - ], - "properties": { - "newSecretKey": { - "type": "string" - }, - "selectedUser": { - "type": "string" - } - } - }, - "configuration": { - "type": "object", - "properties": { - "key_values": { - "type": "array", - "items": { - "$ref": "#/definitions/configurationKV" - } - }, - "name": { - "type": "string" - } - } - }, - "configurationKV": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "value": { - "type": "string" - } - } - }, "consoleConfiguration": { "allOf": [ { @@ -6863,21 +5502,6 @@ func init() { "$ref": "#/definitions/eventListElement" } }, - "expirationResponse": { - "type": "object", - "properties": { - "date": { - "type": "string" - }, - "days": { - "type": "integer", - "format": "int64" - }, - "delete_marker": { - "type": "boolean" - } - } - }, "formatConfiguration": { "type": "object", "required": [ @@ -6997,21 +5621,6 @@ func init() { } } }, - "getBucketRetentionConfig": { - "type": "object", - "properties": { - "mode": { - "$ref": "#/definitions/objectRetentionMode" - }, - "unit": { - "$ref": "#/definitions/objectRetentionUnit" - }, - "validity": { - "type": "integer", - "format": "int32" - } - } - }, "getDirectCSIDriveListResponse": { "type": "object", "properties": { @@ -7034,48 +5643,6 @@ func init() { } } }, - "group": { - "type": "object", - "properties": { - "members": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "policy": { - "type": "string" - }, - "status": { - "type": "string" - } - } - }, - "hasPermissionRequest": { - "type": "object", - "properties": { - "actions": { - "type": "array", - "items": { - "$ref": "#/definitions/policyArgs" - } - } - } - }, - "hasPermissionResponse": { - "type": "object", - "properties": { - "permissions": { - "type": "array", - "items": { - "$ref": "#/definitions/permissionAction" - } - } - } - }, "idpConfiguration": { "type": "object", "properties": { @@ -7230,34 +5797,6 @@ func init() { } } }, - "lifecycleTag": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "value": { - "type": "string" - } - } - }, - "listBucketsResponse": { - "type": "object", - "properties": { - "buckets": { - "type": "array", - "title": "list of resulting buckets", - "items": { - "$ref": "#/definitions/bucket" - } - }, - "total": { - "type": "integer", - "format": "int64", - "title": "number of buckets accessible to tenant user" - } - } - }, "listPVCsResponse": { "type": "object", "properties": { @@ -7305,15 +5844,6 @@ func init() { } } }, - "logSearchResponse": { - "type": "object", - "properties": { - "results": { - "type": "object", - "title": "list of log search responses" - } - } - }, "loginDetails": { "type": "object", "properties": { @@ -7451,131 +5981,6 @@ func init() { } } }, - "nofiticationService": { - "type": "string", - "enum": [ - "webhook", - "amqp", - "kafka", - "mqtt", - "nats", - "nsq", - "mysql", - "postgres", - "elasticsearch", - "redis" - ] - }, - "notificationConfig": { - "type": "object", - "required": [ - "arn" - ], - "properties": { - "arn": { - "type": "string" - }, - "events": { - "type": "array", - "title": "filter specific type of event. Defaults to all event (default: '[put,delete,get]')", - "items": { - "$ref": "#/definitions/notificationEventType" - } - }, - "id": { - "type": "string" - }, - "prefix": { - "type": "string", - "title": "filter event associated to the specified prefix" - }, - "suffix": { - "type": "string", - "title": "filter event associated to the specified suffix" - } - } - }, - "notificationDeleteRequest": { - "type": "object", - "required": [ - "events", - "prefix", - "suffix" - ], - "properties": { - "events": { - "type": "array", - "title": "filter specific type of event. Defaults to all event (default: '[put,delete,get]')", - "minLength": 1, - "items": { - "$ref": "#/definitions/notificationEventType" - } - }, - "prefix": { - "type": "string", - "title": "filter event associated to the specified prefix" - }, - "suffix": { - "type": "string", - "title": "filter event associated to the specified suffix" - } - } - }, - "notificationEventType": { - "type": "string", - "enum": [ - "put", - "delete", - "get" - ] - }, - "objectBucketLifecycle": { - "type": "object", - "properties": { - "expiration": { - "$ref": "#/definitions/expirationResponse" - }, - "id": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "status": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/lifecycleTag" - } - }, - "transition": { - "$ref": "#/definitions/transitionResponse" - } - } - }, - "objectLegalHoldStatus": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - }, - "objectRetentionMode": { - "type": "string", - "enum": [ - "governance", - "compliance" - ] - }, - "objectRetentionUnit": { - "type": "string", - "enum": [ - "days", - "years" - ] - }, "operatorSessionResponse": { "type": "object", "properties": { @@ -7608,17 +6013,6 @@ func init() { "type": "string" } }, - "permissionAction": { - "type": "object", - "properties": { - "can": { - "type": "boolean" - }, - "id": { - "type": "string" - } - } - }, "podAffinityTerm": { "description": "Required. A pod affinity term, associated with the corresponding weight.", "type": "object", @@ -7659,31 +6053,6 @@ func init() { } } }, - "policy": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "policy": { - "type": "string" - } - } - }, - "policyArgs": { - "type": "object", - "properties": { - "action": { - "type": "string" - }, - "bucket_name": { - "type": "string" - }, - "id": { - "type": "string" - } - } - }, "pool": { "type": "object", "required": [ @@ -7877,52 +6246,6 @@ func init() { } } }, - "principal": { - "type": "object", - "properties": { - "STSAccessKeyID": { - "type": "string" - }, - "STSSecretAccessKey": { - "type": "string" - }, - "STSSessionToken": { - "type": "string" - }, - "accountAccessKey": { - "type": "string" - }, - "actions": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "profilerType": { - "type": "string", - "enum": [ - "cpu", - "mem", - "block", - "mutex", - "trace", - "threads", - "goroutines" - ] - }, - "profilingStartRequest": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "$ref": "#/definitions/profilerType" - } - } - }, "prometheusConfiguration": { "type": "object", "properties": { @@ -7939,65 +6262,6 @@ func init() { } } }, - "putBucketRetentionRequest": { - "type": "object", - "required": [ - "mode", - "unit", - "validity" - ], - "properties": { - "mode": { - "$ref": "#/definitions/objectRetentionMode" - }, - "unit": { - "$ref": "#/definitions/objectRetentionUnit" - }, - "validity": { - "type": "integer", - "format": "int32" - } - } - }, - "putObjectLegalHoldRequest": { - "type": "object", - "required": [ - "status" - ], - "properties": { - "status": { - "$ref": "#/definitions/objectLegalHoldStatus" - } - } - }, - "putObjectRetentionRequest": { - "type": "object", - "required": [ - "mode", - "expires" - ], - "properties": { - "expires": { - "type": "string" - }, - "governance_bypass": { - "type": "boolean" - }, - "mode": { - "$ref": "#/definitions/objectRetentionMode" - } - } - }, - "putObjectTagsRequest": { - "type": "object", - "properties": { - "tags": { - "additionalProperties": { - "type": "string" - } - } - } - }, "pvcsListResponse": { "type": "object", "properties": { @@ -8057,152 +6321,6 @@ func init() { } } }, - "resultTarget": { - "type": "object", - "properties": { - "legendFormat": { - "type": "string" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/widgetResult" - } - }, - "resultType": { - "type": "string" - } - } - }, - "rewindItem": { - "type": "object", - "properties": { - "action": { - "type": "string" - }, - "delete_flag": { - "type": "boolean" - }, - "last_modified": { - "type": "string" - }, - "name": { - "type": "string" - }, - "size": { - "type": "integer", - "format": "int64" - }, - "version_id": { - "type": "string" - } - } - }, - "rewindResponse": { - "type": "object", - "properties": { - "objects": { - "type": "array", - "items": { - "$ref": "#/definitions/rewindItem" - } - } - } - }, - "serviceAccountCreds": { - "type": "object", - "properties": { - "accessKey": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - } - }, - "serviceAccountRequest": { - "type": "object", - "properties": { - "policy": { - "type": "string", - "title": "policy to be applied to the Service Account if any" - } - } - }, - "serviceAccounts": { - "type": "array", - "items": { - "type": "string" - } - }, - "setBucketQuota": { - "type": "object", - "required": [ - "enabled" - ], - "properties": { - "amount": { - "type": "integer" - }, - "enabled": { - "type": "boolean" - }, - "quota_type": { - "type": "string", - "enum": [ - "fifo", - "hard" - ] - } - } - }, - "setBucketVersioning": { - "type": "object", - "properties": { - "versioning": { - "type": "boolean" - } - } - }, - "setConfigResponse": { - "type": "object", - "properties": { - "restart": { - "description": "Returns wheter server needs to restart to apply changes or not", - "type": "boolean" - } - } - }, - "startProfilingItem": { - "type": "object", - "properties": { - "error": { - "type": "string" - }, - "nodeName": { - "type": "string" - }, - "success": { - "type": "boolean" - } - } - }, - "startProfilingList": { - "type": "object", - "properties": { - "startResults": { - "type": "array", - "items": { - "$ref": "#/definitions/startProfilingItem" - } - }, - "total": { - "type": "integer", - "format": "int64", - "title": "number of start results" - } - } - }, "subscriptionValidateRequest": { "type": "object", "properties": { @@ -8451,136 +6569,6 @@ func init() { } } }, - "tier": { - "type": "object", - "properties": { - "azure": { - "type": "object", - "$ref": "#/definitions/tier_azure" - }, - "gcs": { - "type": "object", - "$ref": "#/definitions/tier_gcs" - }, - "s3": { - "type": "object", - "$ref": "#/definitions/tier_s3" - }, - "type": { - "type": "string", - "enum": [ - "s3", - "gcs", - "azure", - "unsupported" - ] - } - } - }, - "tierCredentialsRequest": { - "type": "object", - "properties": { - "access_key": { - "type": "string" - }, - "creds": { - "description": "a base64 encoded value", - "type": "string" - }, - "secret_key": { - "type": "string" - } - } - }, - "tierListResponse": { - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "$ref": "#/definitions/tier" - } - } - } - }, - "tier_azure": { - "type": "object", - "properties": { - "accountkey": { - "type": "string" - }, - "accountname": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "name": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "region": { - "type": "string" - } - } - }, - "tier_gcs": { - "type": "object", - "properties": { - "bucket": { - "type": "string" - }, - "creds": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "name": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "region": { - "type": "string" - } - } - }, - "tier_s3": { - "type": "object", - "properties": { - "accesskey": { - "type": "string" - }, - "bucket": { - "type": "string" - }, - "endpoint": { - "type": "string" - }, - "name": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "region": { - "type": "string" - }, - "secretkey": { - "type": "string" - }, - "storageclass": { - "type": "string" - } - } - }, "tlsConfiguration": { "type": "object", "properties": { @@ -8608,32 +6596,6 @@ func init() { } } }, - "transitionResponse": { - "type": "object", - "properties": { - "date": { - "type": "string" - }, - "days": { - "type": "integer", - "format": "int64" - }, - "storage_class": { - "type": "string" - } - } - }, - "updateBucketLifecycle": { - "type": "object", - "properties": { - "disable": { - "type": "boolean" - }, - "tags": { - "type": "string" - } - } - }, "updateTenantRequest": { "type": "object", "properties": { @@ -8699,47 +6661,6 @@ func init() { } } }, - "updateUser": { - "type": "object", - "required": [ - "status", - "groups" - ], - "properties": { - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "status": { - "type": "string" - } - } - }, - "user": { - "type": "object", - "properties": { - "accessKey": { - "type": "string" - }, - "memberOf": { - "type": "array", - "items": { - "type": "string" - } - }, - "policy": { - "type": "array", - "items": { - "type": "string" - } - }, - "status": { - "type": "string" - } - } - }, "vaultConfiguration": { "type": "object", "required": [ @@ -8805,95 +6726,6 @@ func init() { } } } - }, - "widget": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int32" - }, - "options": { - "type": "object", - "properties": { - "reduceOptions": { - "type": "object", - "properties": { - "calcs": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - }, - "targets": { - "type": "array", - "items": { - "$ref": "#/definitions/resultTarget" - } - }, - "title": { - "type": "string" - }, - "type": { - "type": "string" - } - } - }, - "widgetDetails": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int32" - }, - "options": { - "type": "object", - "properties": { - "reduceOptions": { - "type": "object", - "properties": { - "calcs": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - }, - "targets": { - "type": "array", - "items": { - "$ref": "#/definitions/resultTarget" - } - }, - "title": { - "type": "string" - }, - "type": { - "type": "string" - } - } - }, - "widgetResult": { - "type": "object", - "properties": { - "metric": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "values": { - "type": "array", - "items": {} - } - } } }, "securityDefinitions": { diff --git a/restapi/embedded_spec.go b/restapi/embedded_spec.go index ea551d536..ad10f822a 100644 --- a/restapi/embedded_spec.go +++ b/restapi/embedded_spec.go @@ -3760,53 +3760,6 @@ func init() { } } }, - "directCSIDriveInfo": { - "type": "object", - "properties": { - "allocated": { - "type": "number", - "format": "int64" - }, - "capacity": { - "type": "number", - "format": "int64" - }, - "drive": { - "type": "string" - }, - "message": { - "type": "string" - }, - "node": { - "type": "string" - }, - "status": { - "type": "string" - }, - "volumes": { - "type": "number", - "format": "int64" - } - } - }, - "directCSIVolumeInfo": { - "type": "object", - "properties": { - "capacity": { - "type": "number", - "format": "int64" - }, - "drive": { - "type": "string" - }, - "node": { - "type": "string" - }, - "volume": { - "type": "string" - } - } - }, "error": { "type": "object", "required": [ @@ -3841,25 +3794,6 @@ func init() { } } }, - "formatConfiguration": { - "type": "object", - "required": [ - "drives", - "force" - ], - "properties": { - "drives": { - "type": "array", - "minLength": 1, - "items": { - "type": "string" - } - }, - "force": { - "type": "boolean" - } - } - }, "getBucketRetentionConfig": { "type": "object", "properties": { @@ -3875,28 +3809,6 @@ func init() { } } }, - "getDirectCSIDriveListResponse": { - "type": "object", - "properties": { - "drives": { - "type": "array", - "items": { - "$ref": "#/definitions/directCSIDriveInfo" - } - } - } - }, - "getDirectCSIVolumeListResponse": { - "type": "object", - "properties": { - "volumes": { - "type": "array", - "items": { - "$ref": "#/definitions/directCSIVolumeInfo" - } - } - } - }, "group": { "type": "object", "properties": { @@ -3943,95 +3855,6 @@ func init() { "type": "string", "pattern": "^[\\w+=,.@-]{1,64}$" }, - "idpConfiguration": { - "type": "object", - "properties": { - "active_directory": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "group_name_attribute": { - "type": "string" - }, - "group_search_base_dn": { - "type": "string" - }, - "group_search_filter": { - "type": "string" - }, - "server_insecure": { - "type": "boolean" - }, - "skip_tls_verification": { - "type": "boolean" - }, - "url": { - "type": "string" - }, - "user_search_filter": { - "type": "string" - }, - "username_format": { - "type": "string" - } - } - }, - "keys": { - "type": "array", - "items": { - "type": "object", - "required": [ - "access_key", - "secret_key" - ], - "properties": { - "access_key": { - "type": "string" - }, - "secret_key": { - "type": "string" - } - } - } - }, - "oidc": { - "type": "object", - "required": [ - "url", - "client_id", - "secret_id" - ], - "properties": { - "client_id": { - "type": "string" - }, - "secret_id": { - "type": "string" - }, - "url": { - "type": "string" - } - } - } - } - }, - "keyPairConfiguration": { - "type": "object", - "required": [ - "crt", - "key" - ], - "properties": { - "crt": { - "type": "string" - }, - "key": { - "type": "string" - } - } - }, "license": { "type": "object", "properties": { @@ -4222,25 +4045,6 @@ func init() { } } }, - "logSearchConfiguration": { - "type": "object", - "properties": { - "image": { - "type": "string" - }, - "postgres_image": { - "type": "string" - }, - "storageClass": { - "type": "string", - "default": "" - }, - "storageSize": { - "type": "number", - "default": 5 - } - } - }, "logSearchResponse": { "type": "object", "properties": { @@ -4698,22 +4502,6 @@ func init() { } } }, - "prometheusConfiguration": { - "type": "object", - "properties": { - "image": { - "type": "string" - }, - "storageClass": { - "type": "string", - "default": "" - }, - "storageSize": { - "type": "number", - "default": 5 - } - } - }, "putBucketRetentionRequest": { "type": "object", "required": [ @@ -5214,33 +5002,6 @@ func init() { } } }, - "tlsConfiguration": { - "type": "object", - "properties": { - "ca_certificates": { - "type": "array", - "items": { - "type": "string" - } - }, - "console": { - "type": "object", - "$ref": "#/definitions/keyPairConfiguration" - }, - "console_ca_certificates": { - "type": "array", - "items": { - "type": "string" - } - }, - "minio": { - "type": "array", - "items": { - "$ref": "#/definitions/keyPairConfiguration" - } - } - } - }, "transitionResponse": { "type": "object", "properties": { @@ -8604,72 +8365,6 @@ func init() { } }, "definitions": { - "IdpConfigurationActiveDirectory": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "group_name_attribute": { - "type": "string" - }, - "group_search_base_dn": { - "type": "string" - }, - "group_search_filter": { - "type": "string" - }, - "server_insecure": { - "type": "boolean" - }, - "skip_tls_verification": { - "type": "boolean" - }, - "url": { - "type": "string" - }, - "user_search_filter": { - "type": "string" - }, - "username_format": { - "type": "string" - } - } - }, - "IdpConfigurationKeysItems0": { - "type": "object", - "required": [ - "access_key", - "secret_key" - ], - "properties": { - "access_key": { - "type": "string" - }, - "secret_key": { - "type": "string" - } - } - }, - "IdpConfigurationOidc": { - "type": "object", - "required": [ - "url", - "client_id", - "secret_id" - ], - "properties": { - "client_id": { - "type": "string" - }, - "secret_id": { - "type": "string" - }, - "url": { - "type": "string" - } - } - }, "WidgetDetailsOptions": { "type": "object", "properties": { @@ -9290,53 +8985,6 @@ func init() { } } }, - "directCSIDriveInfo": { - "type": "object", - "properties": { - "allocated": { - "type": "number", - "format": "int64" - }, - "capacity": { - "type": "number", - "format": "int64" - }, - "drive": { - "type": "string" - }, - "message": { - "type": "string" - }, - "node": { - "type": "string" - }, - "status": { - "type": "string" - }, - "volumes": { - "type": "number", - "format": "int64" - } - } - }, - "directCSIVolumeInfo": { - "type": "object", - "properties": { - "capacity": { - "type": "number", - "format": "int64" - }, - "drive": { - "type": "string" - }, - "node": { - "type": "string" - }, - "volume": { - "type": "string" - } - } - }, "error": { "type": "object", "required": [ @@ -9371,25 +9019,6 @@ func init() { } } }, - "formatConfiguration": { - "type": "object", - "required": [ - "drives", - "force" - ], - "properties": { - "drives": { - "type": "array", - "minLength": 1, - "items": { - "type": "string" - } - }, - "force": { - "type": "boolean" - } - } - }, "getBucketRetentionConfig": { "type": "object", "properties": { @@ -9405,28 +9034,6 @@ func init() { } } }, - "getDirectCSIDriveListResponse": { - "type": "object", - "properties": { - "drives": { - "type": "array", - "items": { - "$ref": "#/definitions/directCSIDriveInfo" - } - } - } - }, - "getDirectCSIVolumeListResponse": { - "type": "object", - "properties": { - "volumes": { - "type": "array", - "items": { - "$ref": "#/definitions/directCSIVolumeInfo" - } - } - } - }, "group": { "type": "object", "properties": { @@ -9473,83 +9080,6 @@ func init() { "type": "string", "pattern": "^[\\w+=,.@-]{1,64}$" }, - "idpConfiguration": { - "type": "object", - "properties": { - "active_directory": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "group_name_attribute": { - "type": "string" - }, - "group_search_base_dn": { - "type": "string" - }, - "group_search_filter": { - "type": "string" - }, - "server_insecure": { - "type": "boolean" - }, - "skip_tls_verification": { - "type": "boolean" - }, - "url": { - "type": "string" - }, - "user_search_filter": { - "type": "string" - }, - "username_format": { - "type": "string" - } - } - }, - "keys": { - "type": "array", - "items": { - "$ref": "#/definitions/IdpConfigurationKeysItems0" - } - }, - "oidc": { - "type": "object", - "required": [ - "url", - "client_id", - "secret_id" - ], - "properties": { - "client_id": { - "type": "string" - }, - "secret_id": { - "type": "string" - }, - "url": { - "type": "string" - } - } - } - } - }, - "keyPairConfiguration": { - "type": "object", - "required": [ - "crt", - "key" - ], - "properties": { - "crt": { - "type": "string" - }, - "key": { - "type": "string" - } - } - }, "license": { "type": "object", "properties": { @@ -9740,25 +9270,6 @@ func init() { } } }, - "logSearchConfiguration": { - "type": "object", - "properties": { - "image": { - "type": "string" - }, - "postgres_image": { - "type": "string" - }, - "storageClass": { - "type": "string", - "default": "" - }, - "storageSize": { - "type": "number", - "default": 5 - } - } - }, "logSearchResponse": { "type": "object", "properties": { @@ -10216,22 +9727,6 @@ func init() { } } }, - "prometheusConfiguration": { - "type": "object", - "properties": { - "image": { - "type": "string" - }, - "storageClass": { - "type": "string", - "default": "" - }, - "storageSize": { - "type": "number", - "default": 5 - } - } - }, "putBucketRetentionRequest": { "type": "object", "required": [ @@ -10732,33 +10227,6 @@ func init() { } } }, - "tlsConfiguration": { - "type": "object", - "properties": { - "ca_certificates": { - "type": "array", - "items": { - "type": "string" - } - }, - "console": { - "type": "object", - "$ref": "#/definitions/keyPairConfiguration" - }, - "console_ca_certificates": { - "type": "array", - "items": { - "type": "string" - } - }, - "minio": { - "type": "array", - "items": { - "$ref": "#/definitions/keyPairConfiguration" - } - } - } - }, "transitionResponse": { "type": "object", "properties": { diff --git a/swagger-console.yml b/swagger-console.yml index 9c8577842..46c70b977 100644 --- a/swagger-console.yml +++ b/swagger-console.yml @@ -3183,85 +3183,6 @@ definitions: title: list of log search responses - keyPairConfiguration: - type: object - required: - - crt - - key - properties: - crt: - type: string - key: - type: string - - tlsConfiguration: - type: object - properties: - minio: - type: array - items: - $ref: "#/definitions/keyPairConfiguration" - console: - type: object - $ref: "#/definitions/keyPairConfiguration" - ca_certificates: - type: array - items: - type: string - console_ca_certificates: - type: array - items: - type: string - - idpConfiguration: - type: object - properties: - oidc: - type: object - required: - - url - - client_id - - secret_id - properties: - url: - type: string - client_id: - type: string - secret_id: - type: string - keys: - type: array - items: - type: object - required: - - access_key - - secret_key - properties: - access_key: - type: string - secret_key: - type: string - active_directory: - type: object - required: - - url - properties: - url: - type: string - username_format: - type: string - user_search_filter: - type: string - group_search_base_dn: - type: string - group_search_filter: - type: string - group_name_attribute: - type: string - skip_tls_verification: - type: boolean - server_insecure: - type: boolean objectLegalHoldStatus: @@ -3471,56 +3392,6 @@ definitions: expires_at: type: string - getDirectCSIDriveListResponse: - type: object - properties: - drives: - type: array - items: - $ref: "#/definitions/directCSIDriveInfo" - - directCSIDriveInfo: - type: object - properties: - drive: - type: string - capacity: - type: number - format: int64 - allocated: - type: number - format: int64 - volumes: - type: number - format: int64 - node: - type: string - status: - type: string - message: - type: string - - getDirectCSIVolumeListResponse: - type: object - properties: - volumes: - type: array - items: - $ref: "#/definitions/directCSIVolumeInfo" - - directCSIVolumeInfo: - type: object - properties: - volume: - type: string - capacity: - type: number - format: int64 - node: - type: string - drive: - type: string - policyArgs: type: object properties: @@ -3555,31 +3426,7 @@ definitions: items: $ref: "#/definitions/permissionAction" - logSearchConfiguration: - type: object - properties: - storageClass: - type: string - default: "" - storageSize: - type: number - default: 5 - image: - type: string - postgres_image: - type: string - prometheusConfiguration: - type: object - properties: - storageClass: - type: string - default: "" - storageSize: - type: number - default: 5 - image: - type: string tier_s3: type: object properties: @@ -3682,21 +3529,6 @@ definitions: creds: type: string description: a base64 encoded value - formatConfiguration: - type: object - required: - - drives - - force - properties: - drives: - type: array - minLength: 1 - items: - type: string - force: - type: boolean - - rewindItem: type: object diff --git a/swagger-operator.yml b/swagger-operator.yml index dc60135c9..f89ee407d 100644 --- a/swagger-operator.yml +++ b/swagger-operator.yml @@ -927,87 +927,6 @@ paths: - OperatorAPI definitions: - accountChangePasswordRequest: - type: object - required: - - current_secret_key - - new_secret_key - properties: - current_secret_key: - type: string - new_secret_key: - type: string - - changeUserPasswordRequest: - type: object - required: - - selectedUser - - newSecretKey - properties: - selectedUser: - type: string - newSecretKey: - type: string - - bucketEncryptionType: - type: string - enum: - - sse-s3 - - sse-kms - default: sse-s3 - - bucketAccess: - type: string - enum: - - PRIVATE - - PUBLIC - - CUSTOM - default: PRIVATE - - bucket: - type: object - required: - - name - properties: - name: - type: string - minLength: 3 - size: - type: integer - format: int64 - access: - $ref: "#/definitions/bucketAccess" - creation_date: - type: string - - bucketEncryptionRequest: - type: object - properties: - encType: - $ref: "#/definitions/bucketEncryptionType" - kmsKeyID: - type: string - - bucketEncryptionInfo: - type: object - properties: - kmsMasterKeyID: - type: string - algorithm: - type: string - - listBucketsResponse: - type: object - properties: - buckets: - type: array - items: - $ref: "#/definitions/bucket" - title: list of resulting buckets - total: - type: integer - format: int64 - title: number of buckets accessible to tenant user error: type: object @@ -1022,128 +941,6 @@ definitions: type: string detailedMessage: type: string - user: - type: object - properties: - accessKey: - type: string - policy: - type: array - items: - type: string - memberOf: - type: array - items: - type: string - status: - type: string - group: - type: object - properties: - name: - type: string - status: - type: string - members: - type: array - items: - type: string - policy: - type: string - policy: - type: object - properties: - name: - type: string - policy: - type: string - - configurationKV: - type: object - properties: - key: - type: string - value: - type: string - configuration: - type: object - properties: - name: - type: string - key_values: - type: array - items: - $ref: "#/definitions/configurationKV" - notificationEventType: - type: string - enum: - - put - - delete - - get - notificationConfig: - type: object - required: - - arn - properties: - id: - type: string - arn: - type: string - events: - type: array - items: - $ref: "#/definitions/notificationEventType" - title: "filter specific type of event. Defaults to all event (default: '[put,delete,get]')" - prefix: - type: string - title: "filter event associated to the specified prefix" - suffix: - type: string - title: "filter event associated to the specified suffix" - notificationDeleteRequest: - type: object - required: - - events - - prefix - - suffix - properties: - events: - type: array - minLength: 1 - items: - $ref: "#/definitions/notificationEventType" - title: "filter specific type of event. Defaults to all event (default: '[put,delete,get]')" - prefix: - type: string - title: "filter event associated to the specified prefix" - suffix: - type: string - title: "filter event associated to the specified suffix" - - bucketQuota: - type: object - properties: - quota: - type: integer - type: - type: string - enum: - - hard - - fifo - setBucketQuota: - type: object - required: - - enabled - properties: - enabled: - type: boolean - quota_type: - type: string - enum: - - fifo - - hard - amount: - type: integer loginDetails: type: object properties: @@ -1152,6 +949,21 @@ definitions: enum: [ form, redirect, service-account ] redirect: type: string + loginRequest: + type: object + required: + - accessKey + - secretKey + properties: + accessKey: + type: string + secretKey: + type: string + loginResponse: + type: object + properties: + sessionId: + type: string loginOauth2AuthRequest: type: object required: @@ -1169,74 +981,6 @@ definitions: properties: jwt: type: string - loginRequest: - type: object - required: - - accessKey - - secretKey - properties: - accessKey: - type: string - secretKey: - type: string - loginResponse: - type: object - properties: - sessionId: - type: string - # Structure that holds the `Bearer {TOKEN}` present on authenticated requests - principal: - type: object - properties: - STSAccessKeyID: - type: string - STSSecretAccessKey: - type: string - STSSessionToken: - type: string - actions: - type: array - items: - type: string - accountAccessKey: - type: string - startProfilingItem: - type: object - properties: - nodeName: - type: string - success: - type: boolean - error: - type: string - startProfilingList: - type: object - properties: - total: - type: integer - format: int64 - title: number of start results - startResults: - type: array - items: - $ref: "#/definitions/startProfilingItem" - profilerType: - type: string - enum: - - cpu - - mem - - block - - mutex - - trace - - threads - - goroutines - profilingStartRequest: - type: object - required: - - type - properties: - type: - $ref: "#/definitions/profilerType" operatorSessionResponse: type: object properties: @@ -1253,152 +997,6 @@ definitions: enum: [ ok ] operator: type: boolean - widgetResult: - type: object - properties: - metric: - type: object - additionalProperties: - type: string - values: - type: array - items: { } - resultTarget: - type: object - properties: - legendFormat: - type: string - resultType: - type: string - result: - type: array - items: - $ref: "#/definitions/widgetResult" - widget: - type: object - properties: - title: - type: string - type: - type: string - id: - type: integer - format: int32 - options: - type: object - properties: - reduceOptions: - type: object - properties: - calcs: - type: array - items: - type: string - targets: - type: array - items: - $ref: "#/definitions/resultTarget" - widgetDetails: - type: object - properties: - title: - type: string - type: - type: string - id: - type: integer - format: int32 - options: - type: object - properties: - reduceOptions: - type: object - properties: - calcs: - type: array - items: - type: string - targets: - type: array - items: - $ref: "#/definitions/resultTarget" - adminInfoResponse: - type: object - properties: - buckets: - type: integer - objects: - type: integer - usage: - type: integer - widgets: - type: array - items: - $ref: "#/definitions/widget" - arnsResponse: - type: object - properties: - arns: - type: array - items: - type: string - nofiticationService: - type: string - enum: - - webhook - - amqp - - kafka - - mqtt - - nats - - nsq - - mysql - - postgres - - elasticsearch - - redis - updateUser: - type: object - required: - - status - - groups - properties: - status: - type: string - groups: - type: array - items: - type: string - serviceAccounts: - type: array - items: - type: string - serviceAccountRequest: - type: object - properties: - policy: - type: string - title: "policy to be applied to the Service Account if any" - serviceAccountCreds: - type: object - properties: - accessKey: - type: string - secretKey: - type: string - bucketVersioningResponse: - type: object - properties: - is_versioned: - type: boolean - setBucketVersioning: - type: object - properties: - versioning: - type: boolean - bucketObLockingResponse: - type: object - properties: - object_locking_enabled: - type: boolean tenantStatus: type: object @@ -1573,13 +1171,6 @@ definitions: health_status: type: string - logSearchResponse: - type: object - properties: - results: - type: object - title: list of log search responses - listTenantsResponse: type: object properties: @@ -1738,7 +1329,30 @@ definitions: type: array items: type: string - + logSearchConfiguration: + type: object + properties: + storageClass: + type: string + default: "" + storageSize: + type: number + default: 5 + image: + type: string + postgres_image: + type: string + prometheusConfiguration: + type: object + properties: + storageClass: + type: string + default: "" + storageSize: + type: number + default: 5 + image: + type: string idpConfiguration: type: object properties: @@ -2512,196 +2126,6 @@ definitions: items: type: string - objectLegalHoldStatus: - type: string - enum: - - enabled - - disabled - - putObjectLegalHoldRequest: - type: object - required: - - status - properties: - status: - $ref: "#/definitions/objectLegalHoldStatus" - - objectRetentionMode: - type: string - enum: - - governance - - compliance - - putObjectRetentionRequest: - type: object - required: - - mode - - expires - properties: - mode: - $ref: "#/definitions/objectRetentionMode" - expires: - type: string - governance_bypass: - type: boolean - - putObjectTagsRequest: - type: object - properties: - tags: - additionalProperties: - type: string - - objectRetentionUnit: - type: string - enum: - - days - - years - - putBucketRetentionRequest: - type: object - required: - - mode - - unit - - validity - properties: - mode: - $ref: "#/definitions/objectRetentionMode" - unit: - $ref: "#/definitions/objectRetentionUnit" - validity: - type: integer - format: int32 - - getBucketRetentionConfig: - type: object - properties: - mode: - $ref: "#/definitions/objectRetentionMode" - unit: - $ref: "#/definitions/objectRetentionUnit" - validity: - type: integer - format: int32 - - bucketLifecycleResponse: - type: object - properties: - lifecycle: - type: array - items: - $ref: "#/definitions/objectBucketLifecycle" - - expirationResponse: - type: object - properties: - date: - type: string - days: - type: integer - format: int64 - delete_marker: - type: boolean - - transitionResponse: - type: object - properties: - date: - type: string - storage_class: - type: string - days: - type: integer - format: int64 - - lifecycleTag: - type: object - properties: - key: - type: string - value: - type: string - - objectBucketLifecycle: - type: object - properties: - id: - type: string - prefix: - type: string - status: - type: string - expiration: - $ref: "#/definitions/expirationResponse" - transition: - $ref: "#/definitions/transitionResponse" - tags: - type: array - items: - $ref: "#/definitions/lifecycleTag" - - addBucketLifecycle: - type: object - properties: - prefix: - description: Non required field, it matches a prefix to perform ILM operations on it - type: string - tags: - description: Non required field, tags to match ILM files - type: string - expiry_date: - description: Required in case of expiry_days or transition fields are not set. it defines an expiry date for ILM - type: string - expiry_days: - description: Required in case of expiry_date or transition fields are not set. it defines an expiry days for ILM - type: integer - format: int32 - default: 0 - transition_date: - description: Required in case of transition_days or expiry fields are not set. it defines a transition date for ILM - type: string - transition_days: - description: Required in case of transition_date or expiry fields are not set. it defines a transition days for ILM - type: integer - format: int32 - default: 0 - storage_class: - description: Required only in case of transition is set. it refers to a tier - type: string - disable: - description: Non required, toggle to disable or enable rule - type: boolean - expired_object_delete_marker: - description: Non required, toggle to disable or enable rule - type: boolean - noncurrentversion_expiration_days: - description: Non required, can be set in case of expiration is enabled - type: integer - format: int32 - default: 0 - noncurrentversion_transition_days: - description: Non required, can be set in case of transition is enabled - type: integer - format: int32 - default: 0 - noncurrentversion_transition_storage_class: - description: Non required, can be set in case of transition is enabled - type: string - - updateBucketLifecycle: - type: object - properties: - tags: - type: string - disable: - type: boolean - - setConfigResponse: - type: object - properties: - restart: - description: Returns wheter server needs to restart to apply changes or not - type: boolean subscriptionValidateRequest: type: object @@ -2778,170 +2202,6 @@ definitions: drive: type: string - policyArgs: - type: object - properties: - id: - type: string - action: - type: string - bucket_name: - type: string - - hasPermissionRequest: - type: object - properties: - actions: - type: array - items: - $ref: "#/definitions/policyArgs" - - permissionAction: - type: object - properties: - id: - type: string - can: - type: boolean - - hasPermissionResponse: - type: object - properties: - permissions: - type: array - items: - $ref: "#/definitions/permissionAction" - - logSearchConfiguration: - type: object - properties: - storageClass: - type: string - default: "" - storageSize: - type: number - default: 5 - image: - type: string - postgres_image: - type: string - - prometheusConfiguration: - type: object - properties: - storageClass: - type: string - default: "" - storageSize: - type: number - default: 5 - image: - type: string - tier_s3: - type: object - properties: - name: - type: string - endpoint: - type: string - accesskey: - type: string - secretkey: - type: string - bucket: - type: string - prefix: - type: string - region: - type: string - storageclass: - type: string - - tier_azure: - type: object - properties: - name: - type: string - endpoint: - type: string - accountname: - type: string - accountkey: - type: string - bucket: - type: string - prefix: - type: string - region: - type: string - - tier_gcs: - type: object - properties: - name: - type: string - endpoint: - type: string - creds: - type: string - bucket: - type: string - prefix: - type: string - region: - type: string - - tier: - type: object - properties: - type: - type: string - enum: - - s3 - - gcs - - azure - - unsupported - s3: - type: object - $ref: "#/definitions/tier_s3" - gcs: - type: object - $ref: "#/definitions/tier_gcs" - azure: - type: object - $ref: "#/definitions/tier_azure" - - tierListResponse: - type: object - properties: - items: - type: array - items: - $ref: "#/definitions/tier" - - tierCredentialsRequest: - type: object - properties: - access_key: - type: string - secret_key: - type: string - creds: - type: string - description: a base64 encoded value - formatConfiguration: - type: object - required: - - drives - - force - properties: - drives: - type: array - minLength: 1 - items: - type: string - force: - type: boolean csiFormatErrorResponse: type: object @@ -3032,27 +2292,16 @@ definitions: message: type: string - rewindItem: + formatConfiguration: type: object + required: + - drives + - force properties: - last_modified: - type: string - size: - type: integer - format: int64 - version_id: - type: string - delete_flag: - type: boolean - action: - type: string - name: - type: string - - rewindResponse: - type: object - properties: - objects: + drives: type: array + minLength: 1 items: - $ref: "#/definitions/rewindItem" + type: string + force: + type: boolean