StorageParameters
Class: StorageParameters
Defined in: gcp/src/services/storage.service.ts:55
Configuration for Storage
Extends
CloudBinaryParameters
Constructors
Constructor
new StorageParameters():
StorageParameters
Returns
StorageParameters
Inherited from
CloudBinaryParameters.constructor
Properties
_maxFileSize
protected_maxFileSize:number
Defined in: core/lib/services/binary.service.d.ts:619
max file size
Inherited from
CloudBinaryParameters._maxFileSize
bucket
bucket:
string
Defined in: gcp/src/services/storage.service.ts:59
Bucket to store binaries in
endpoint?
optionalendpoint?:string
Defined in: gcp/src/services/storage.service.ts:63
Specify endpoint for GCS
models
models:
object
Defined in: core/lib/services/binary.service.d.ts:627
Define the map of models
- indicates all models
key is a Store name the string[] represent all valids attributes to store files in * indicates all attributes
Index Signature
[key: string]: string[]
Inherited from
CloudBinaryParameters.models
prefix?
optionalprefix?:string
Defined in: core/lib/services/cloudbinary.d.ts:7
Inherited from
CloudBinaryParameters.prefix
type
type:
string
Defined in: core/lib/services/serviceparameters.d.ts:8
Type of the service
Inherited from
CloudBinaryParameters.type
Accessors
maxFileSize
Get Signature
get maxFileSize():
number
Defined in: core/lib/services/binary.service.d.ts:640
Get the max file size in bytes
Returns
number
the result number
Set Signature
set maxFileSize(
value):void
Defined in: core/lib/services/binary.service.d.ts:635
Define the maximum filesize to accept as direct upload
Default
10 MB
Parameters
value
string | number
Returns
void
Inherited from
CloudBinaryParameters.maxFileSize
Methods
load()
load(
params):this
Defined in: core/lib/services/cloudbinary.d.ts:13
Load parameters with an empty prefix default
Parameters
params
any
the service parameters
Returns
this
this for chaining
Inherited from
CloudBinaryParameters.load
update()
update(
params,delta):this
Defined in: core/lib/services/serviceparameters.d.ts:25
Update parameters and call watchers if a parameter was changed
Parameters
params
any
the service parameters
delta
any
the delta
Returns
this
this for chaining
Inherited from
CloudBinaryParameters.update
with()
with(
callback):this
Defined in: core/lib/services/serviceparameters.d.ts:31
Watch for changes on the parameters and call watchers when a parameter is changed
Parameters
callback
(params) => void
the callback function
Returns
this
this for chaining
Inherited from
CloudBinaryParameters.with