Function names updated to reflect AWS names. Updated docs (#150)
* updated inline doc * updated inline doc * API naming conform AWS * fixed clippy issues * fixed minor API naming issues
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
use minio::s3::client::DEFAULT_REGION;
|
||||
use minio::s3::response::{
|
||||
DeleteBucketLifecycleResponse, GetBucketLifecycleResponse, SetBucketLifecycleResponse,
|
||||
DeleteBucketLifecycleResponse, GetBucketLifecycleResponse, PutBucketLifecycleResponse,
|
||||
};
|
||||
use minio::s3::types::{LifecycleConfig, S3Api};
|
||||
use minio_common::example::create_bucket_lifecycle_config_examples;
|
||||
@@ -28,9 +28,9 @@ async fn bucket_lifecycle() {
|
||||
|
||||
let config: LifecycleConfig = create_bucket_lifecycle_config_examples();
|
||||
|
||||
let resp: SetBucketLifecycleResponse = ctx
|
||||
let resp: PutBucketLifecycleResponse = ctx
|
||||
.client
|
||||
.set_bucket_lifecycle(&bucket_name)
|
||||
.put_bucket_lifecycle(&bucket_name)
|
||||
.life_cycle_config(config.clone())
|
||||
.send()
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user