ServiceProvider Property
The S3 service provider to use.
Syntax
ANSI (Cross Platform) int GetServiceProvider();
int SetServiceProvider(int iServiceProvider); Unicode (Windows) INT GetServiceProvider();
INT SetServiceProvider(INT iServiceProvider);
Possible Values
SP_AMAZON_S3(0),
SP_DIGITAL_OCEAN(1),
SP_GOOGLE_STORAGE(2),
SP_WASABI(3),
SP_BACKBLAZE_B2(4),
SP_HUAWEI(5),
SP_ALIBABA(6),
SP_IBM(7),
SP_ORACLE(8),
SP_LINODE(9),
SP_CUSTOM(255)
@property (nonatomic,readwrite,assign,getter=serviceProvider,setter=setServiceProvider:) int serviceProvider; - (int)serviceProvider; - (void)setServiceProvider:(int)newServiceProvider;
Possible Values
SP_AMAZON_S3(0),
SP_DIGITAL_OCEAN(1),
SP_GOOGLE_STORAGE(2),
SP_WASABI(3),
SP_BACKBLAZE_B2(4),
SP_HUAWEI(5),
SP_ALIBABA(6),
SP_IBM(7),
SP_ORACLE(8),
SP_LINODE(9),
SP_CUSTOM(255)
#define PID_S3CLIENT_SERVICEPROVIDER 69 IPWORKSS3_EXTERNAL void* IPWORKSS3_CALL IPWorksS3_S3Client_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSS3_EXTERNAL int IPWORKSS3_CALL IPWorksS3_S3Client_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
0
Remarks
This property specifies the S3 service provider that the class should use. Possible values are:
spAmazonS3 (0) (default) | Amazon S3 |
spDigitalOcean (1) | Digital Ocean Spaces |
spGoogleStorage (2) | Google Cloud Storage |
spWasabi (3) | Wasabi |
spBackblazeB2 (4) | Backblaze B2 |
spHuawei (5) | Huawei Cloud Object Storage |
spAlibaba (6) | Alibaba Cloud Object Storage |
spIBM (7) | IBM Cloud Object Storage |
spOracle (8) | Oracle Cloud Object Storage |
spLinode (9) | Linode Object Storage |
spCustom (255) | Custom service provider |
Note that the following providers require additional configuration before requests can be made:
- spOracle (8): An "Object Storage Namespace" must be specified using the OracleNamespace configuration setting.
- spCustom (255): A base URL must be specified using the URL configuration setting.
Changing this property will automatically:
- Set the Region property to the default region for the provider (empty string for spCustom (255)).
- Reset the UseSSL property to true.
- Reset the StartByte property to 0.
- Clear the ObjectMarker, PartMarker, and VersionMarker properties, as well as the StorageClass and ResumableUploadState configuration settings.
This property is not available at design time.
Data Type
Integer