@@ -604,6 +604,7 @@ class RGWGetBucketReplication : public RGWOp {
604604
605605 virtual void send_response_data () = 0;
606606 const char * name () const override { return " get_bucket_replication" ; }
607+ std::string canonical_name () const override { return fmt::format (" REST.{}.REPLICATION" , s->info .method ); }
607608 virtual uint32_t op_mask () override { return RGW_OP_TYPE_READ; }
608609 RGWOpType get_type () override { return RGW_OP_GET_BUCKET_REPLICATION; }
609610};
@@ -619,6 +620,7 @@ class RGWPutBucketReplication : public RGWOp {
619620 virtual void send_response () override = 0;
620621 virtual int get_params (optional_yield y) = 0;
621622 const char * name () const override { return " put_bucket_replication" ; }
623+ std::string canonical_name () const override { return fmt::format (" REST.{}.REPLICATION" , s->info .method ); }
622624 virtual uint32_t op_mask () override { return RGW_OP_TYPE_WRITE; }
623625 RGWOpType get_type () override { return RGW_OP_PUT_BUCKET_REPLICATION; }
624626};
@@ -632,6 +634,7 @@ class RGWDeleteBucketReplication : public RGWOp {
632634 void execute (optional_yield y) override ;
633635
634636 const char * name () const override { return " delete_bucket_replication" ; }
637+ std::string canonical_name () const override { return fmt::format (" REST.{}.REPLICATION" , s->info .method ); }
635638 virtual uint32_t op_mask () override { return RGW_OP_TYPE_DELETE; }
636639 RGWOpType get_type () override { return RGW_OP_DELETE_BUCKET_REPLICATION;}
637640};
@@ -1016,6 +1019,7 @@ class RGWGetBucketVersioning : public RGWOp {
10161019
10171020 void send_response () override = 0;
10181021 const char * name () const override { return " get_bucket_versioning" ; }
1022+ std::string canonical_name () const override { return fmt::format (" REST.{}.VERSIONING" , s->info .method ); }
10191023 RGWOpType get_type () override { return RGW_OP_GET_BUCKET_VERSIONING; }
10201024 uint32_t op_mask () override { return RGW_OP_TYPE_READ; }
10211025};
@@ -1044,6 +1048,7 @@ class RGWSetBucketVersioning : public RGWOp {
10441048
10451049 void send_response () override = 0;
10461050 const char * name () const override { return " set_bucket_versioning" ; }
1051+ std::string canonical_name () const override { return fmt::format (" REST.{}.VERSIONING" , s->info .method ); }
10471052 RGWOpType get_type () override { return RGW_OP_SET_BUCKET_VERSIONING; }
10481053 uint32_t op_mask () override { return RGW_OP_TYPE_WRITE; }
10491054};
@@ -1845,6 +1850,7 @@ class RGWPutBucketEncryption : public RGWOp {
18451850 int verify_permission (optional_yield y) override ;
18461851 void execute (optional_yield y) override ;
18471852 const char * name () const override { return " put_bucket_encryption" ; }
1853+ std::string canonical_name () const override { return fmt::format (" REST.{}.ENCRYPTION" , s->info .method ); }
18481854 RGWOpType get_type () override { return RGW_OP_PUT_BUCKET_ENCRYPTION; }
18491855 uint32_t op_mask () override { return RGW_OP_TYPE_WRITE; }
18501856};
@@ -1859,6 +1865,7 @@ class RGWGetBucketEncryption : public RGWOp {
18591865 int verify_permission (optional_yield y) override ;
18601866 void execute (optional_yield y) override ;
18611867 const char * name () const override { return " get_bucket_encryption" ; }
1868+ std::string canonical_name () const override { return fmt::format (" REST.{}.ENCRYPTION" , s->info .method ); }
18621869 RGWOpType get_type () override { return RGW_OP_GET_BUCKET_ENCRYPTION; }
18631870 uint32_t op_mask () override { return RGW_OP_TYPE_READ; }
18641871};
@@ -1873,6 +1880,7 @@ class RGWDeleteBucketEncryption : public RGWOp {
18731880 int verify_permission (optional_yield y) override ;
18741881 void execute (optional_yield y) override ;
18751882 const char * name () const override { return " delete_bucket_encryption" ; }
1883+ std::string canonical_name () const override { return fmt::format (" REST.{}.ENCRYPTION" , s->info .method ); }
18761884 RGWOpType get_type () override { return RGW_OP_DELETE_BUCKET_ENCRYPTION; }
18771885 uint32_t op_mask () override { return RGW_OP_TYPE_WRITE; }
18781886};
@@ -1890,6 +1898,7 @@ class RGWGetRequestPayment : public RGWOp {
18901898
18911899 void send_response () override = 0;
18921900 const char * name () const override { return " get_request_payment" ; }
1901+ std::string canonical_name () const override { return fmt::format (" REST.{}.REQUEST_PAYMENT" , s->info .method ); }
18931902 RGWOpType get_type () override { return RGW_OP_GET_REQUEST_PAYMENT; }
18941903 uint32_t op_mask () override { return RGW_OP_TYPE_READ; }
18951904};
@@ -1909,6 +1918,7 @@ class RGWSetRequestPayment : public RGWOp {
19091918
19101919 void send_response () override = 0;
19111920 const char * name () const override { return " set_request_payment" ; }
1921+ std::string canonical_name () const override { return fmt::format (" REST.{}.REQUEST_PAYMENT" , s->info .method ); }
19121922 RGWOpType get_type () override { return RGW_OP_SET_REQUEST_PAYMENT; }
19131923 uint32_t op_mask () override { return RGW_OP_TYPE_WRITE; }
19141924};
@@ -2457,6 +2467,7 @@ class RGWPutBucketPolicy : public RGWOp {
24572467 void execute (optional_yield y) override ;
24582468 int get_params (optional_yield y);
24592469 const char * name () const override { return " put_bucket_policy" ; }
2470+ std::string canonical_name () const override { return fmt::format (" REST.{}.BUCKETPOLICY" , s->info .method ); }
24602471 RGWOpType get_type () override {
24612472 return RGW_OP_PUT_BUCKET_POLICY;
24622473 }
@@ -2473,6 +2484,7 @@ class RGWGetBucketPolicy : public RGWOp {
24732484 }
24742485 void execute (optional_yield y) override ;
24752486 const char * name () const override { return " get_bucket_policy" ; }
2487+ std::string canonical_name () const override { return fmt::format (" REST.{}.BUCKETPOLICY" , s->info .method ); }
24762488 RGWOpType get_type () override {
24772489 return RGW_OP_GET_BUCKET_POLICY;
24782490 }
@@ -2489,6 +2501,7 @@ class RGWDeleteBucketPolicy : public RGWOp {
24892501 void execute (optional_yield y) override ;
24902502 int get_params (optional_yield y);
24912503 const char * name () const override { return " delete_bucket_policy" ; }
2504+ std::string canonical_name () const override { return fmt::format (" REST.{}.BUCKETPOLICY" , s->info .method ); }
24922505 RGWOpType get_type () override {
24932506 return RGW_OP_DELETE_BUCKET_POLICY;
24942507 }
@@ -2662,6 +2675,7 @@ class RGWPutBucketPublicAccessBlock : public RGWOp {
26622675 int verify_permission (optional_yield y) override ;
26632676 const char * name () const override { return " put_bucket_public_access_block" ;}
26642677 virtual RGWOpType get_type () override { return RGW_OP_PUT_BUCKET_PUBLIC_ACCESS_BLOCK; }
2678+ std::string canonical_name () const override { return fmt::format (" REST.{}.PUBLIC_ACCESS_BLOCK" , s->info .method ); }
26652679 virtual uint32_t op_mask () override { return RGW_OP_TYPE_WRITE; }
26662680 int get_params (optional_yield y);
26672681 void execute (optional_yield y) override ;
@@ -2674,6 +2688,7 @@ class RGWGetBucketPublicAccessBlock : public RGWOp {
26742688public:
26752689 int verify_permission (optional_yield y) override ;
26762690 const char * name () const override { return " get_bucket_public_access_block" ;}
2691+ std::string canonical_name () const override { return fmt::format (" REST.{}.PUBLIC_ACCESS_BLOCK" , s->info .method ); }
26772692 virtual RGWOpType get_type () override { return RGW_OP_GET_BUCKET_PUBLIC_ACCESS_BLOCK; }
26782693 virtual uint32_t op_mask () override { return RGW_OP_TYPE_READ; }
26792694 int get_params (optional_yield y);
@@ -2687,6 +2702,7 @@ class RGWDeleteBucketPublicAccessBlock : public RGWOp {
26872702public:
26882703 int verify_permission (optional_yield y) override ;
26892704 const char * name () const override { return " delete_bucket_public_access_block" ;}
2705+ std::string canonical_name () const override { return fmt::format (" REST.{}.PUBLIC_ACCESS_BLOCK" , s->info .method ); }
26902706 virtual RGWOpType get_type () override { return RGW_OP_DELETE_BUCKET_PUBLIC_ACCESS_BLOCK; }
26912707 virtual uint32_t op_mask () override { return RGW_OP_TYPE_WRITE; }
26922708 int get_params (optional_yield y);
0 commit comments