diff --git a/e2e/tests/permission_test.go b/e2e/tests/permission_test.go index bf998799e..0b47460c5 100644 --- a/e2e/tests/permission_test.go +++ b/e2e/tests/permission_test.go @@ -138,7 +138,7 @@ func (s *StorageTestSuite) TestDeletePolicy() { verifyPermReq := storagetypes.QueryVerifyPermissionRequest{ Operator: user[1].GetAddr().String(), BucketName: bucketName, - ActionType: types.ACTION_UPDATE_BUCKET_INFO, + ActionType: types.ACTION_UPDATE_BUCKET, } verifyPermResp, err := s.Client.VerifyPermission(ctx, &verifyPermReq) s.Require().NoError(err) @@ -147,7 +147,7 @@ func (s *StorageTestSuite) TestDeletePolicy() { // Put bucket policy statement := &types.Statement{ - Actions: []types.ActionType{types.ACTION_UPDATE_BUCKET_INFO, types.ACTION_DELETE_BUCKET}, + Actions: []types.ActionType{types.ACTION_UPDATE_BUCKET, types.ACTION_DELETE_BUCKET}, Effect: types.EFFECT_ALLOW, } principal := types.NewPrincipalWithAccount(user[1].GetAddr()) @@ -159,7 +159,7 @@ func (s *StorageTestSuite) TestDeletePolicy() { verifyPermReq = storagetypes.QueryVerifyPermissionRequest{ Operator: user[1].GetAddr().String(), BucketName: bucketName, - ActionType: types.ACTION_UPDATE_BUCKET_INFO, + ActionType: types.ACTION_UPDATE_BUCKET, } verifyPermResp, err = s.Client.VerifyPermission(ctx, &verifyPermReq) s.T().Logf("resp: %s, rep %s", verifyPermReq.String(), verifyPermResp.String()) @@ -200,7 +200,7 @@ func (s *StorageTestSuite) TestDeletePolicy() { verifyPermReq = storagetypes.QueryVerifyPermissionRequest{ Operator: user[1].GetAddr().String(), BucketName: bucketName, - ActionType: types.ACTION_UPDATE_BUCKET_INFO, + ActionType: types.ACTION_UPDATE_BUCKET, } verifyPermResp, err = s.Client.VerifyPermission(ctx, &verifyPermReq) s.T().Logf("resp: %s, rep %s", verifyPermReq.String(), verifyPermResp.String()) @@ -244,7 +244,7 @@ func (s *StorageTestSuite) TestCreateObjectByOthers() { verifyPermReq := storagetypes.QueryVerifyPermissionRequest{ Operator: user[1].GetAddr().String(), BucketName: bucketName, - ActionType: types.ACTION_UPDATE_BUCKET_INFO, + ActionType: types.ACTION_UPDATE_BUCKET, } verifyPermResp, err := s.Client.VerifyPermission(ctx, &verifyPermReq) s.Require().NoError(err) @@ -257,7 +257,7 @@ func (s *StorageTestSuite) TestCreateObjectByOthers() { Effect: types.EFFECT_ALLOW, } statement2 := &types.Statement{ - Actions: []types.ActionType{types.ACTION_UPDATE_OBJECT_INFO}, + Actions: []types.ActionType{types.ACTION_UPDATE_OBJECT}, Effect: types.EFFECT_ALLOW, } principal := types.NewPrincipalWithAccount(user[1].GetAddr()) @@ -385,7 +385,7 @@ func (s *StorageTestSuite) TestCreateObjectByOthers() { verifyPermReq = storagetypes.QueryVerifyPermissionRequest{ Operator: user[1].GetAddr().String(), BucketName: bucketName, - ActionType: types.ACTION_UPDATE_BUCKET_INFO, + ActionType: types.ACTION_UPDATE_BUCKET, } verifyPermResp, err = s.Client.VerifyPermission(ctx, &verifyPermReq) s.T().Logf("resp: %s, rep %s", verifyPermReq.String(), verifyPermResp.String()) @@ -680,7 +680,7 @@ func (s *StorageTestSuite) TestGrantsPermissionToGroup() { verifyPermReq := storagetypes.QueryVerifyPermissionRequest{ Operator: user[1].GetAddr().String(), BucketName: bucketName, - ActionType: types.ACTION_UPDATE_BUCKET_INFO, + ActionType: types.ACTION_UPDATE_BUCKET, } verifyPermResp, err := s.Client.VerifyPermission(ctx, &verifyPermReq) s.Require().NoError(err) @@ -715,7 +715,7 @@ func (s *StorageTestSuite) TestGrantsPermissionToGroup() { // Put bucket policy statement := &types.Statement{ - Actions: []types.ActionType{types.ACTION_UPDATE_BUCKET_INFO, types.ACTION_DELETE_BUCKET}, + Actions: []types.ActionType{types.ACTION_UPDATE_BUCKET, types.ACTION_DELETE_BUCKET}, Effect: types.EFFECT_ALLOW, } principal := types.NewPrincipalWithGroupInfo(user[0].GetAddr(), headGroupResponse.GroupInfo.GroupName) @@ -727,7 +727,7 @@ func (s *StorageTestSuite) TestGrantsPermissionToGroup() { verifyPermReq = storagetypes.QueryVerifyPermissionRequest{ Operator: user[1].GetAddr().String(), BucketName: bucketName, - ActionType: types.ACTION_UPDATE_BUCKET_INFO, + ActionType: types.ACTION_UPDATE_BUCKET, } verifyPermResp, err = s.Client.VerifyPermission(ctx, &verifyPermReq) s.T().Logf("resp: %s, rep %s", verifyPermReq.String(), verifyPermResp.String()) @@ -1567,7 +1567,7 @@ func (s *StorageTestSuite) TestUpdateGroupExtraWithPermission() { // Put policy groupStatement := &types.Statement{ - Actions: []types.ActionType{types.ACTION_UPDATE_GROUP_EXTRA}, + Actions: []types.ActionType{types.ACTION_UPDATE_GROUP_META}, Effect: types.EFFECT_ALLOW, } msgPutGroupPolicy := storagetypes.NewMsgPutPolicy(owner.GetAddr(), types2.NewGroupGRN(owner.GetAddr(), testGroupName).String(), @@ -2033,3 +2033,107 @@ func (s *StorageTestSuite) TestExpiredGroupPolicyGCAndRePut() { s.Require().Equal(queryPolicyForGroupResp.Policy.ResourceType, resource.RESOURCE_TYPE_BUCKET) s.Require().Equal(types.EFFECT_ALLOW, queryPolicyForGroupResp.Policy.Statements[0].Effect) } + +func (s *StorageTestSuite) TestSetTagWithPermission() { + var err error + owner := s.GenAndChargeAccounts(1, 1000000)[0] + user := s.GenAndChargeAccounts(1, 1000000)[0] + + // CreateBucket + sp := s.BaseSuite.PickStorageProvider() + gvg, found := sp.GetFirstGlobalVirtualGroup() + s.Require().True(found) + + bucketName := storageutil.GenRandomBucketName() + msgCreateBucket := storagetypes.NewMsgCreateBucket( + owner.GetAddr(), bucketName, storagetypes.VISIBILITY_TYPE_PUBLIC_READ, sp.OperatorKey.GetAddr(), + nil, math.MaxUint, nil, 0) + msgCreateBucket.PrimarySpApproval.GlobalVirtualGroupFamilyId = gvg.FamilyId + msgCreateBucket.PrimarySpApproval.Sig, err = sp.ApprovalKey.Sign(msgCreateBucket.GetApprovalBytes()) + s.Require().NoError(err) + + // Put bucket policy, grant the user updateBucket permission + userPrincipal := types.NewPrincipalWithAccount(user.GetAddr()) + bucketStatement := &types.Statement{ + Actions: []types.ActionType{types.ACTION_UPDATE_BUCKET}, + Effect: types.EFFECT_ALLOW, + } + bucketGRN := types2.NewBucketGRN(bucketName).String() + msgPutBucketPolicy := storagetypes.NewMsgPutPolicy(owner.GetAddr(), bucketGRN, + userPrincipal, []*types.Statement{bucketStatement}, nil) + s.SendTxBlock(owner, msgCreateBucket, msgPutBucketPolicy) + + // set bucket tag by user + var tags storagetypes.ResourceTags + tags.Tags = append(tags.Tags, storagetypes.ResourceTags_Tag{Key: "key1", Value: "value1"}) + msgSetTag := storagetypes.NewMsgSetTag(user.GetAddr(), bucketGRN, &tags) + s.SendTxBlock(user, msgSetTag) + + req := storagetypes.QueryHeadBucketRequest{ + BucketName: bucketName, + } + resp, err := s.Client.HeadBucket(context.Background(), &req) + s.Require().NoError(err) + s.Require().Equal(tags, *resp.BucketInfo.Tags) + + // Create object by owner + objectName := storageutil.GenRandomObjectName() + // create test buffer + var buffer bytes.Buffer + // Create 1MiB content where each line contains 1024 characters. + for i := 0; i < 1024; i++ { + buffer.WriteString(fmt.Sprintf("[%05d] %s\n", i, line)) + } + payloadSize := buffer.Len() + checksum := sdk.Keccak256(buffer.Bytes()) + expectChecksum := [][]byte{checksum, checksum, checksum, checksum, checksum, checksum, checksum} + contextType := "text/event-stream" + msgCreateObject := storagetypes.NewMsgCreateObject(owner.GetAddr(), bucketName, objectName, uint64(payloadSize), storagetypes.VISIBILITY_TYPE_PRIVATE, expectChecksum, contextType, storagetypes.REDUNDANCY_EC_TYPE, math.MaxUint, nil) + msgCreateObject.PrimarySpApproval.Sig, err = sp.ApprovalKey.Sign(msgCreateObject.GetApprovalBytes()) + s.Require().NoError(err) + + // Put object policy, grant the user updateBucket permission + objectStatement := &types.Statement{ + Actions: []types.ActionType{types.ACTION_UPDATE_OBJECT}, + Effect: types.EFFECT_ALLOW, + } + objectGRN := types2.NewObjectGRN(bucketName, objectName).String() + msgPutObjectPolicy := storagetypes.NewMsgPutPolicy(owner.GetAddr(), objectGRN, + userPrincipal, []*types.Statement{objectStatement}, nil) + s.SendTxBlock(owner, msgCreateObject, msgPutObjectPolicy) + + // set object tag by user + msgSetTag = storagetypes.NewMsgSetTag(user.GetAddr(), objectGRN, &tags) + s.SendTxBlock(user, msgSetTag) + + // Head object, tag shown + objectResp, err := s.Client.HeadObject(context.Background(), &storagetypes.QueryHeadObjectRequest{ + BucketName: bucketName, + ObjectName: objectName, + }) + s.Require().NoError(err) + s.Require().Equal(tags, *objectResp.ObjectInfo.Tags) + + // Create a group by owner + groupName := storageutil.GenRandomGroupName() + msgCreateGroup := storagetypes.NewMsgCreateGroup(owner.GetAddr(), groupName, "") + groupGRN := types2.NewGroupGRN(owner.GetAddr(), groupName).String() + + // Put group policy by owner, grant the user updateGroupMeta permission + groupStatement := &types.Statement{ + Actions: []types.ActionType{types.ACTION_UPDATE_GROUP_META}, + Effect: types.EFFECT_ALLOW, + } + msgPutGroupPolicy := storagetypes.NewMsgPutPolicy(owner.GetAddr(), types2.NewGroupGRN(owner.GetAddr(), groupName).String(), + types.NewPrincipalWithAccount(user.GetAddr()), []*types.Statement{groupStatement}, nil) + s.SendTxBlock(owner, msgCreateGroup, msgPutGroupPolicy) + + // // set group tag by user + msgSetTag = storagetypes.NewMsgSetTag(user.GetAddr(), groupGRN, &tags) + s.SendTxBlock(user, msgSetTag) + + // Head group, tag shown + headGroupResponse, err := s.Client.HeadGroup(context.Background(), &storagetypes.QueryHeadGroupRequest{GroupOwner: owner.GetAddr().String(), GroupName: groupName}) + s.Require().NoError(err) + s.Require().Equal(tags, *headGroupResponse.GroupInfo.Tags) +} diff --git a/proto/greenfield/permission/common.proto b/proto/greenfield/permission/common.proto index 8d9d56d25..51d52980f 100644 --- a/proto/greenfield/permission/common.proto +++ b/proto/greenfield/permission/common.proto @@ -13,7 +13,7 @@ enum ActionType { option (gogoproto.goproto_enum_prefix) = false; ACTION_UNSPECIFIED = 0; - ACTION_UPDATE_BUCKET_INFO = 1; + ACTION_UPDATE_BUCKET = 1; ACTION_DELETE_BUCKET = 2; ACTION_CREATE_OBJECT = 3; @@ -26,9 +26,9 @@ enum ActionType { ACTION_UPDATE_GROUP_MEMBER = 9; ACTION_DELETE_GROUP = 10; - ACTION_UPDATE_OBJECT_INFO = 11; + ACTION_UPDATE_OBJECT = 11; - ACTION_UPDATE_GROUP_EXTRA = 12; + ACTION_UPDATE_GROUP_META = 12; ACTION_TYPE_ALL = 99; } diff --git a/swagger/static/swagger.yaml b/swagger/static/swagger.yaml index a694c0dc5..efea32c6f 100644 --- a/swagger/static/swagger.yaml +++ b/swagger/static/swagger.yaml @@ -4996,7 +4996,7 @@ paths: type: string enum: - ACTION_UNSPECIFIED - - ACTION_UPDATE_BUCKET_INFO + - ACTION_UPDATE_BUCKET - ACTION_DELETE_BUCKET - ACTION_CREATE_OBJECT - ACTION_DELETE_OBJECT @@ -5006,8 +5006,8 @@ paths: - ACTION_LIST_OBJECT - ACTION_UPDATE_GROUP_MEMBER - ACTION_DELETE_GROUP - - ACTION_UPDATE_OBJECT_INFO - - ACTION_UPDATE_GROUP_EXTRA + - ACTION_UPDATE_OBJECT + - ACTION_UPDATE_GROUP_META - ACTION_TYPE_ALL default: ACTION_UNSPECIFIED title: >- @@ -5190,7 +5190,7 @@ paths: type: string enum: - ACTION_UNSPECIFIED - - ACTION_UPDATE_BUCKET_INFO + - ACTION_UPDATE_BUCKET - ACTION_DELETE_BUCKET - ACTION_CREATE_OBJECT - ACTION_DELETE_OBJECT @@ -5200,8 +5200,8 @@ paths: - ACTION_LIST_OBJECT - ACTION_UPDATE_GROUP_MEMBER - ACTION_DELETE_GROUP - - ACTION_UPDATE_OBJECT_INFO - - ACTION_UPDATE_GROUP_EXTRA + - ACTION_UPDATE_OBJECT + - ACTION_UPDATE_GROUP_META - ACTION_TYPE_ALL default: ACTION_UNSPECIFIED title: >- @@ -5388,7 +5388,7 @@ paths: type: string enum: - ACTION_UNSPECIFIED - - ACTION_UPDATE_BUCKET_INFO + - ACTION_UPDATE_BUCKET - ACTION_DELETE_BUCKET - ACTION_CREATE_OBJECT - ACTION_DELETE_OBJECT @@ -5398,8 +5398,8 @@ paths: - ACTION_LIST_OBJECT - ACTION_UPDATE_GROUP_MEMBER - ACTION_DELETE_GROUP - - ACTION_UPDATE_OBJECT_INFO - - ACTION_UPDATE_GROUP_EXTRA + - ACTION_UPDATE_OBJECT + - ACTION_UPDATE_GROUP_META - ACTION_TYPE_ALL default: ACTION_UNSPECIFIED title: >- @@ -5600,7 +5600,7 @@ paths: type: string enum: - ACTION_UNSPECIFIED - - ACTION_UPDATE_BUCKET_INFO + - ACTION_UPDATE_BUCKET - ACTION_DELETE_BUCKET - ACTION_CREATE_OBJECT - ACTION_DELETE_OBJECT @@ -5610,8 +5610,8 @@ paths: - ACTION_LIST_OBJECT - ACTION_UPDATE_GROUP_MEMBER - ACTION_DELETE_GROUP - - ACTION_UPDATE_OBJECT_INFO - - ACTION_UPDATE_GROUP_EXTRA + - ACTION_UPDATE_OBJECT + - ACTION_UPDATE_GROUP_META - ACTION_TYPE_ALL - name: object_name in: query @@ -6371,10 +6371,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -6424,7 +6421,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -6434,7 +6431,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -6464,7 +6461,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -6579,10 +6575,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -6632,7 +6625,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -6642,7 +6635,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -6672,7 +6665,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -6791,10 +6783,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -6844,7 +6833,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -6854,7 +6843,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -6884,7 +6873,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -7015,10 +7003,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -7068,7 +7053,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -7078,7 +7063,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -7108,7 +7093,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -7267,10 +7251,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -7320,7 +7301,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -7330,7 +7311,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -7360,7 +7341,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -7465,10 +7445,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -7518,7 +7495,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -7528,7 +7505,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -7558,7 +7535,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -7688,10 +7664,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -7741,7 +7714,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -7751,7 +7724,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -7781,7 +7754,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -7908,10 +7880,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -7961,7 +7930,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -7971,7 +7940,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -8001,7 +7970,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -8112,10 +8080,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -8165,7 +8130,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -8175,7 +8140,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -8205,7 +8170,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -8307,10 +8271,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -8360,7 +8321,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -8370,7 +8331,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -8400,7 +8361,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -8505,10 +8465,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -8558,7 +8515,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -8568,7 +8525,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -8598,7 +8555,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -8742,10 +8698,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -8795,7 +8748,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -8805,7 +8758,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -8835,7 +8788,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -8943,10 +8895,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -8996,7 +8945,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -9006,7 +8955,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -9036,7 +8985,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -9182,10 +9130,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -9235,7 +9180,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -9245,7 +9190,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -9275,7 +9220,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -9460,10 +9404,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -9513,7 +9454,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -9523,7 +9464,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -9553,7 +9494,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -9691,10 +9631,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -9744,7 +9681,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -9754,7 +9691,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -9784,7 +9721,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -9958,10 +9894,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -10011,7 +9944,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -10021,7 +9954,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -10051,7 +9984,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -10189,10 +10121,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -10242,7 +10171,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -10252,7 +10181,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -10282,7 +10211,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -11915,10 +11843,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -11968,7 +11893,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -11978,7 +11903,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -12008,7 +11933,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -13252,10 +13176,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -13305,7 +13226,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -13315,7 +13236,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -13345,7 +13266,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -14570,10 +14490,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -14623,7 +14540,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -14633,7 +14550,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -14663,7 +14580,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -14858,10 +14774,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -14911,7 +14824,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -14921,7 +14834,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -14951,7 +14864,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -15073,10 +14985,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -15126,7 +15035,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -15136,7 +15045,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -15166,7 +15075,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -15279,10 +15187,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -15332,7 +15237,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -15342,7 +15247,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -15372,7 +15277,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -15508,10 +15412,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -15561,7 +15462,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -15571,7 +15472,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -15601,7 +15502,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -15771,10 +15671,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -15824,7 +15721,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -15834,7 +15731,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -15864,7 +15761,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -16000,10 +15896,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -16053,7 +15946,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -16063,7 +15956,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -16093,7 +15986,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -17225,10 +17117,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -17278,7 +17167,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -17288,7 +17177,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -17318,7 +17207,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -17448,10 +17336,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -17501,7 +17386,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -17511,7 +17396,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -17541,7 +17426,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -17700,10 +17584,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -17753,7 +17634,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -17763,7 +17644,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -17793,7 +17674,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -17898,10 +17778,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -17951,7 +17828,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -17961,7 +17838,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -17991,7 +17868,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -18128,10 +18004,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -18218,10 +18091,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -18271,7 +18141,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -18281,7 +18151,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -18311,7 +18181,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -18447,10 +18316,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -18557,10 +18423,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -18610,7 +18473,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -18620,7 +18483,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -18650,7 +18513,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -18833,10 +18695,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -18946,10 +18805,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -18999,7 +18855,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -19009,7 +18865,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -19039,7 +18895,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -19604,10 +19459,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -19657,7 +19509,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -19667,7 +19519,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -19697,7 +19549,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -19821,10 +19672,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -19874,7 +19722,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -19884,7 +19732,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -19914,7 +19762,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -20147,10 +19994,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -20200,7 +20044,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -20210,7 +20054,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -20240,7 +20084,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -20445,10 +20288,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -20498,7 +20338,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -20508,7 +20348,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -20538,7 +20378,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -20748,10 +20587,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -20801,7 +20637,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -20811,7 +20647,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -20841,7 +20677,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -21026,10 +20861,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -21079,7 +20911,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -21089,7 +20921,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -21119,7 +20951,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -21339,10 +21170,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -21392,7 +21220,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -21402,7 +21230,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -21432,7 +21260,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -21584,10 +21411,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -21637,7 +21461,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -21647,7 +21471,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -21677,7 +21501,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -21872,10 +21695,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -21925,7 +21745,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -21935,7 +21755,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -21965,7 +21785,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -22194,10 +22013,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -22247,7 +22063,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -22257,7 +22073,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -22287,7 +22103,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -23102,10 +22917,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -23155,7 +22967,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -23165,7 +22977,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -23195,7 +23007,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -23540,10 +23351,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -23593,7 +23401,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -23603,7 +23411,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -23633,7 +23441,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -23918,10 +23725,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -23971,7 +23775,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -23981,7 +23785,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -24011,7 +23815,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -24193,10 +23996,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -24246,7 +24046,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -24256,7 +24056,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -24286,7 +24086,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -24579,10 +24378,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -24632,7 +24428,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -24642,7 +24438,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -24672,7 +24468,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -24847,10 +24642,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -24900,7 +24692,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -24910,7 +24702,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -24940,7 +24732,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -25210,10 +25001,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -25263,7 +25051,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -25273,7 +25061,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -25303,7 +25091,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -25508,10 +25295,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are - no widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -25562,7 +25346,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -25572,7 +25356,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -25602,7 +25386,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -25878,10 +25661,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -25931,7 +25711,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -25941,7 +25721,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -25971,7 +25751,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -26134,10 +25913,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -26187,7 +25963,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -26197,7 +25973,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -26227,7 +26003,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -26353,10 +26128,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -26406,7 +26178,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -26416,7 +26188,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -26446,7 +26218,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -26564,10 +26335,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -26617,7 +26385,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -26627,7 +26395,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -26657,7 +26425,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -26950,10 +26717,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -27003,7 +26767,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -27013,7 +26777,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -27043,7 +26807,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -27216,10 +26979,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -27269,7 +27029,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -27279,7 +27039,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -27309,7 +27069,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -27579,10 +27338,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -27632,7 +27388,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -27642,7 +27398,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -27672,7 +27428,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -27872,10 +27627,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -27925,7 +27677,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -27935,7 +27687,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -27965,7 +27717,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -28195,10 +27946,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -28248,7 +27996,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -28258,7 +28006,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -28288,7 +28036,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -28480,10 +28227,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -28533,7 +28277,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -28543,7 +28287,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -28573,7 +28317,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -28795,10 +28538,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -28848,7 +28588,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -28858,7 +28598,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -28888,7 +28628,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -29067,10 +28806,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -29120,7 +28856,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -29130,7 +28866,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -29160,7 +28896,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -29304,10 +29039,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -29357,7 +29089,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -29367,7 +29099,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -29397,7 +29129,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -29542,10 +29273,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -29595,7 +29323,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -29605,7 +29333,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -29635,7 +29363,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -29770,10 +29497,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -29823,7 +29547,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -29833,7 +29557,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -29863,7 +29587,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -30063,10 +29786,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -30116,7 +29836,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -30126,7 +29846,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -30156,7 +29876,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -30272,10 +29991,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -30325,7 +30041,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -30335,7 +30051,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -30365,7 +30081,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -30487,10 +30202,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -30540,7 +30252,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -30550,7 +30262,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -30580,7 +30292,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -30864,10 +30575,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no - widely used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty @@ -30917,7 +30625,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -30927,7 +30635,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -30957,7 +30665,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -31124,10 +30831,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -31177,7 +30881,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -31187,7 +30891,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -31217,7 +30921,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -31370,10 +31073,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -31423,7 +31123,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -31433,7 +31133,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -31463,7 +31163,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -31642,10 +31341,7 @@ paths: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -31695,7 +31391,7 @@ paths: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -31705,7 +31401,7 @@ paths: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -31735,7 +31431,6 @@ paths: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -32094,10 +31789,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be @@ -32144,7 +31836,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -32154,7 +31846,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -32180,7 +31872,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -32302,10 +31993,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -32355,7 +32043,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -32365,7 +32053,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -32391,7 +32079,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -34218,7 +33905,7 @@ definitions: type: string enum: - ACTION_UNSPECIFIED - - ACTION_UPDATE_BUCKET_INFO + - ACTION_UPDATE_BUCKET - ACTION_DELETE_BUCKET - ACTION_CREATE_OBJECT - ACTION_DELETE_OBJECT @@ -34228,8 +33915,8 @@ definitions: - ACTION_LIST_OBJECT - ACTION_UPDATE_GROUP_MEMBER - ACTION_DELETE_GROUP - - ACTION_UPDATE_OBJECT_INFO - - ACTION_UPDATE_GROUP_EXTRA + - ACTION_UPDATE_OBJECT + - ACTION_UPDATE_GROUP_META - ACTION_TYPE_ALL default: ACTION_UNSPECIFIED title: >- @@ -34330,7 +34017,7 @@ definitions: type: string enum: - ACTION_UNSPECIFIED - - ACTION_UPDATE_BUCKET_INFO + - ACTION_UPDATE_BUCKET - ACTION_DELETE_BUCKET - ACTION_CREATE_OBJECT - ACTION_DELETE_OBJECT @@ -34340,8 +34027,8 @@ definitions: - ACTION_LIST_OBJECT - ACTION_UPDATE_GROUP_MEMBER - ACTION_DELETE_GROUP - - ACTION_UPDATE_OBJECT_INFO - - ACTION_UPDATE_GROUP_EXTRA + - ACTION_UPDATE_OBJECT + - ACTION_UPDATE_GROUP_META - ACTION_TYPE_ALL default: ACTION_UNSPECIFIED title: >- @@ -34452,7 +34139,7 @@ definitions: type: string enum: - ACTION_UNSPECIFIED - - ACTION_UPDATE_BUCKET_INFO + - ACTION_UPDATE_BUCKET - ACTION_DELETE_BUCKET - ACTION_CREATE_OBJECT - ACTION_DELETE_OBJECT @@ -34462,8 +34149,8 @@ definitions: - ACTION_LIST_OBJECT - ACTION_UPDATE_GROUP_MEMBER - ACTION_DELETE_GROUP - - ACTION_UPDATE_OBJECT_INFO - - ACTION_UPDATE_GROUP_EXTRA + - ACTION_UPDATE_OBJECT + - ACTION_UPDATE_GROUP_META - ACTION_TYPE_ALL default: ACTION_UNSPECIFIED title: >- @@ -36195,7 +35882,7 @@ definitions: type: string enum: - ACTION_UNSPECIFIED - - ACTION_UPDATE_BUCKET_INFO + - ACTION_UPDATE_BUCKET - ACTION_DELETE_BUCKET - ACTION_CREATE_OBJECT - ACTION_DELETE_OBJECT @@ -36205,8 +35892,8 @@ definitions: - ACTION_LIST_OBJECT - ACTION_UPDATE_GROUP_MEMBER - ACTION_DELETE_GROUP - - ACTION_UPDATE_OBJECT_INFO - - ACTION_UPDATE_GROUP_EXTRA + - ACTION_UPDATE_OBJECT + - ACTION_UPDATE_GROUP_META - ACTION_TYPE_ALL default: ACTION_UNSPECIFIED title: >- @@ -36347,7 +36034,7 @@ definitions: type: string enum: - ACTION_UNSPECIFIED - - ACTION_UPDATE_BUCKET_INFO + - ACTION_UPDATE_BUCKET - ACTION_DELETE_BUCKET - ACTION_CREATE_OBJECT - ACTION_DELETE_OBJECT @@ -36357,8 +36044,8 @@ definitions: - ACTION_LIST_OBJECT - ACTION_UPDATE_GROUP_MEMBER - ACTION_DELETE_GROUP - - ACTION_UPDATE_OBJECT_INFO - - ACTION_UPDATE_GROUP_EXTRA + - ACTION_UPDATE_OBJECT + - ACTION_UPDATE_GROUP_META - ACTION_TYPE_ALL default: ACTION_UNSPECIFIED title: >- @@ -36499,7 +36186,7 @@ definitions: type: string enum: - ACTION_UNSPECIFIED - - ACTION_UPDATE_BUCKET_INFO + - ACTION_UPDATE_BUCKET - ACTION_DELETE_BUCKET - ACTION_CREATE_OBJECT - ACTION_DELETE_OBJECT @@ -36509,8 +36196,8 @@ definitions: - ACTION_LIST_OBJECT - ACTION_UPDATE_GROUP_MEMBER - ACTION_DELETE_GROUP - - ACTION_UPDATE_OBJECT_INFO - - ACTION_UPDATE_GROUP_EXTRA + - ACTION_UPDATE_OBJECT + - ACTION_UPDATE_GROUP_META - ACTION_TYPE_ALL default: ACTION_UNSPECIFIED title: >- @@ -37217,10 +36904,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be @@ -37268,7 +36952,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -37278,7 +36962,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -37304,7 +36988,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -37438,10 +37121,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -37491,7 +37171,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -37501,7 +37181,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -37528,7 +37208,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -37623,10 +37302,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be @@ -37674,7 +37350,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -37684,7 +37360,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -37710,7 +37386,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -37800,10 +37475,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -37853,7 +37525,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -37863,7 +37535,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -37889,7 +37561,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -37999,10 +37670,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be @@ -38050,7 +37718,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -38060,7 +37728,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -38086,7 +37754,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -38176,10 +37843,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -38229,7 +37893,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -38239,7 +37903,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -38265,7 +37929,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -38378,10 +38041,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be @@ -38429,7 +38089,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -38439,7 +38099,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -38465,7 +38125,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -38566,10 +38225,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be @@ -38617,7 +38273,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -38627,7 +38283,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -38653,7 +38309,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -38758,10 +38413,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -38811,7 +38463,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -38821,7 +38473,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -38850,7 +38502,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -38979,10 +38630,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -39032,7 +38680,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -39042,7 +38690,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -39071,7 +38719,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -39196,10 +38843,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -39249,7 +38893,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -39259,7 +38903,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -39288,7 +38932,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -42938,10 +42581,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -42991,7 +42631,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -43001,7 +42641,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -43030,7 +42670,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -43241,10 +42880,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -43294,7 +42930,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -43304,7 +42940,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -43333,7 +42969,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -43603,10 +43238,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be @@ -43654,7 +43286,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -43664,7 +43296,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -43690,7 +43322,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -46628,10 +46259,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -46681,7 +46309,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -46691,7 +46319,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -46717,7 +46345,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -46826,10 +46453,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be @@ -46877,7 +46501,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -46887,7 +46511,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -46913,7 +46537,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -47011,10 +46634,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be @@ -47096,10 +46716,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -47188,10 +46805,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -47303,10 +46917,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -47702,10 +47313,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -47755,7 +47363,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -47765,7 +47373,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -47791,7 +47399,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -48230,10 +47837,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -48283,7 +47887,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -48293,7 +47897,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -48322,7 +47926,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -48516,10 +48119,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -48569,7 +48169,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -48579,7 +48179,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -48609,7 +48209,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -49667,10 +49266,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -49720,7 +49316,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -49730,7 +49326,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -49759,7 +49355,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -50272,10 +49867,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -50325,7 +49917,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -50335,7 +49927,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -50362,7 +49954,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -50614,10 +50205,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -50667,7 +50255,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -50677,7 +50265,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -50706,7 +50294,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -51062,10 +50649,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -51115,7 +50699,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -51125,7 +50709,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -51155,7 +50739,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -51751,10 +51334,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -51804,7 +51384,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -51814,7 +51394,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -51841,7 +51421,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -52173,10 +51752,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -52226,7 +51802,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -52236,7 +51812,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -52265,7 +51841,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -52875,10 +52450,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be @@ -52926,7 +52498,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -52936,7 +52508,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -52962,7 +52534,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -53314,10 +52885,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -53367,7 +52935,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -53377,7 +52945,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -53403,7 +52971,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -53592,10 +53159,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be @@ -53643,7 +53207,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -53653,7 +53217,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -53679,7 +53243,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -54133,10 +53696,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -54186,7 +53746,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -54196,7 +53756,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -54223,7 +53783,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -55089,10 +54648,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -55142,7 +54698,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -55152,7 +54708,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -55179,7 +54735,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -55417,10 +54972,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -55470,7 +55022,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -55480,7 +55032,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -55509,7 +55061,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -55882,10 +55433,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used type - server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be @@ -55933,7 +55481,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -55943,7 +55491,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -55969,7 +55517,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -56173,10 +55720,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -56226,7 +55770,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -56236,7 +55780,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -56265,7 +55809,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -56394,10 +55937,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -56447,7 +55987,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -56457,7 +55997,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -56486,7 +56026,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -56609,10 +56148,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -56662,7 +56198,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -56672,7 +56208,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -56701,7 +56237,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -56797,10 +56332,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely - used type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) @@ -56850,7 +56382,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -56860,7 +56392,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -56889,7 +56421,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -57005,10 +56536,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -57058,7 +56586,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -57068,7 +56596,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -57094,7 +56622,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -57210,10 +56737,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -57263,7 +56787,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -57273,7 +56797,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -57299,7 +56823,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular @@ -57390,10 +56913,7 @@ definitions: protobuf release, and it is not used for type URLs beginning with - type.googleapis.com. As of May 2023, there are no widely used - type server - - implementations and no plans to implement one. + type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might @@ -57443,7 +56963,7 @@ definitions: foo = any.unpack(Foo.getDefaultInstance()); } - Example 3: Pack and unpack a message in Python. + Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() @@ -57453,7 +56973,7 @@ definitions: any.Unpack(foo) ... - Example 4: Pack and unpack a message in Go + Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := anypb.New(foo) @@ -57479,7 +56999,6 @@ definitions: JSON - ==== The JSON representation of an `Any` value uses the regular diff --git a/x/permission/types/common.pb.go b/x/permission/types/common.pb.go index 06b4d33c8..b6ceae1ce 100644 --- a/x/permission/types/common.pb.go +++ b/x/permission/types/common.pb.go @@ -34,7 +34,7 @@ type ActionType int32 const ( ACTION_UNSPECIFIED ActionType = 0 - ACTION_UPDATE_BUCKET_INFO ActionType = 1 + ACTION_UPDATE_BUCKET ActionType = 1 ACTION_DELETE_BUCKET ActionType = 2 ACTION_CREATE_OBJECT ActionType = 3 ACTION_DELETE_OBJECT ActionType = 4 @@ -44,14 +44,14 @@ const ( ACTION_LIST_OBJECT ActionType = 8 ACTION_UPDATE_GROUP_MEMBER ActionType = 9 ACTION_DELETE_GROUP ActionType = 10 - ACTION_UPDATE_OBJECT_INFO ActionType = 11 - ACTION_UPDATE_GROUP_EXTRA ActionType = 12 + ACTION_UPDATE_OBJECT ActionType = 11 + ACTION_UPDATE_GROUP_META ActionType = 12 ACTION_TYPE_ALL ActionType = 99 ) var ActionType_name = map[int32]string{ 0: "ACTION_UNSPECIFIED", - 1: "ACTION_UPDATE_BUCKET_INFO", + 1: "ACTION_UPDATE_BUCKET", 2: "ACTION_DELETE_BUCKET", 3: "ACTION_CREATE_OBJECT", 4: "ACTION_DELETE_OBJECT", @@ -61,14 +61,14 @@ var ActionType_name = map[int32]string{ 8: "ACTION_LIST_OBJECT", 9: "ACTION_UPDATE_GROUP_MEMBER", 10: "ACTION_DELETE_GROUP", - 11: "ACTION_UPDATE_OBJECT_INFO", - 12: "ACTION_UPDATE_GROUP_EXTRA", + 11: "ACTION_UPDATE_OBJECT", + 12: "ACTION_UPDATE_GROUP_META", 99: "ACTION_TYPE_ALL", } var ActionType_value = map[string]int32{ "ACTION_UNSPECIFIED": 0, - "ACTION_UPDATE_BUCKET_INFO": 1, + "ACTION_UPDATE_BUCKET": 1, "ACTION_DELETE_BUCKET": 2, "ACTION_CREATE_OBJECT": 3, "ACTION_DELETE_OBJECT": 4, @@ -78,8 +78,8 @@ var ActionType_value = map[string]int32{ "ACTION_LIST_OBJECT": 8, "ACTION_UPDATE_GROUP_MEMBER": 9, "ACTION_DELETE_GROUP": 10, - "ACTION_UPDATE_OBJECT_INFO": 11, - "ACTION_UPDATE_GROUP_EXTRA": 12, + "ACTION_UPDATE_OBJECT": 11, + "ACTION_UPDATE_GROUP_META": 12, "ACTION_TYPE_ALL": 99, } @@ -304,51 +304,50 @@ func init() { } var fileDescriptor_33a4d646aee30990 = []byte{ - // 691 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x54, 0xcb, 0x4e, 0xdb, 0x4a, - 0x18, 0x8e, 0x93, 0x10, 0xc8, 0xc0, 0x01, 0x9f, 0x01, 0xce, 0x31, 0x69, 0x71, 0x52, 0xd4, 0x45, - 0x84, 0x54, 0x5b, 0x4a, 0x2f, 0xaa, 0xd4, 0x95, 0xe3, 0x4c, 0x90, 0x5b, 0x63, 0x5b, 0x8e, 0xd3, - 0x42, 0xbb, 0xb0, 0x1c, 0x77, 0x12, 0x46, 0x8a, 0x2f, 0xb2, 0x9d, 0x16, 0xd8, 0x57, 0xea, 0x92, - 0x77, 0xe8, 0x13, 0xf4, 0x2d, 0x58, 0xb2, 0xec, 0xaa, 0xad, 0xe0, 0x45, 0x2a, 0x5f, 0x12, 0x27, - 0x05, 0x76, 0x99, 0xef, 0x36, 0xff, 0x37, 0x33, 0x31, 0xd8, 0x1b, 0x05, 0x18, 0xbb, 0x43, 0x82, - 0xc7, 0x1f, 0x79, 0x1f, 0x07, 0x0e, 0x09, 0x43, 0xe2, 0xb9, 0xbc, 0xed, 0x39, 0x8e, 0xe7, 0x72, - 0x7e, 0xe0, 0x45, 0x1e, 0xdc, 0xce, 0x35, 0x5c, 0xae, 0xa9, 0xed, 0xd8, 0x5e, 0xe8, 0x78, 0xa1, - 0x99, 0x88, 0xf8, 0x74, 0x91, 0x3a, 0x6a, 0x5b, 0x23, 0x6f, 0xe4, 0xa5, 0x78, 0xfc, 0x2b, 0x43, - 0xeb, 0x23, 0xcf, 0x1b, 0x8d, 0x31, 0x9f, 0xac, 0x06, 0x93, 0x21, 0x1f, 0x11, 0x07, 0x87, 0x91, - 0xe5, 0xf8, 0x33, 0x41, 0x3e, 0x4c, 0x3a, 0x01, 0xff, 0x39, 0xb0, 0x7c, 0x1f, 0x07, 0xa9, 0x60, - 0xef, 0x7b, 0x11, 0x54, 0x7b, 0x91, 0x15, 0x61, 0x07, 0xbb, 0x11, 0x7c, 0x0e, 0x2a, 0x78, 0x38, - 0xc4, 0x76, 0xc4, 0x50, 0x0d, 0xaa, 0xb9, 0xde, 0xda, 0xe5, 0xee, 0x1c, 0x94, 0x43, 0x89, 0x48, - 0xcf, 0xc4, 0xf0, 0x15, 0x58, 0xb6, 0xec, 0x88, 0x78, 0x6e, 0xc8, 0x14, 0x1b, 0xa5, 0xe6, 0x7a, - 0xeb, 0xd1, 0x3d, 0x3e, 0x21, 0x51, 0x19, 0x67, 0x3e, 0xd6, 0xa7, 0x0e, 0xf8, 0x10, 0x54, 0x03, - 0x1c, 0x7a, 0x93, 0xc0, 0xc6, 0x21, 0x53, 0x6a, 0x94, 0x9a, 0x55, 0x3d, 0x07, 0xe0, 0x21, 0xd8, - 0xc0, 0xa7, 0x3e, 0x09, 0xac, 0x58, 0x6c, 0xc6, 0xf5, 0x98, 0x72, 0x83, 0x6a, 0xae, 0xb6, 0x6a, - 0x5c, 0xda, 0x9d, 0x9b, 0x76, 0xe7, 0x8c, 0x69, 0xf7, 0xf6, 0xca, 0xe5, 0xcf, 0x3a, 0x75, 0xf1, - 0xab, 0x4e, 0xe9, 0xeb, 0xb9, 0x39, 0xa6, 0xa1, 0x08, 0xc0, 0x98, 0x38, 0x24, 0x32, 0x43, 0x72, - 0x8e, 0x99, 0xa5, 0x24, 0x89, 0x9d, 0x1f, 0x36, 0xbb, 0xa6, 0xbe, 0xe4, 0x46, 0x2f, 0x9e, 0xbd, - 0xb5, 0xc6, 0x13, 0xdc, 0x2e, 0xc7, 0x69, 0x7a, 0x35, 0xf1, 0xf5, 0xc8, 0x39, 0xde, 0xfb, 0x00, - 0xaa, 0x5a, 0x40, 0x5c, 0x9b, 0xf8, 0xd6, 0x18, 0xbe, 0x04, 0xe5, 0xe8, 0xcc, 0xc7, 0xd9, 0x81, - 0x3d, 0xbe, 0xa7, 0xf8, 0x4c, 0x9f, 0x74, 0x4f, 0x1c, 0x70, 0x0b, 0x2c, 0x7d, 0x8a, 0x37, 0x60, - 0x8a, 0x0d, 0xaa, 0x59, 0xd5, 0xd3, 0xc5, 0xfe, 0x97, 0x12, 0x00, 0xf9, 0x31, 0xc1, 0xff, 0x00, - 0x14, 0x44, 0x43, 0x52, 0x15, 0xb3, 0xaf, 0xf4, 0x34, 0x24, 0x4a, 0x5d, 0x09, 0x75, 0xe8, 0x02, - 0xdc, 0x05, 0x3b, 0x53, 0x5c, 0xeb, 0x08, 0x06, 0x32, 0xdb, 0x7d, 0xf1, 0x0d, 0x32, 0x4c, 0x49, - 0xe9, 0xaa, 0x34, 0x05, 0x19, 0xb0, 0x95, 0xd1, 0x1d, 0x24, 0xa3, 0x19, 0x4d, 0x17, 0xe7, 0x18, - 0x51, 0x47, 0xb1, 0x51, 0x6d, 0xbf, 0x46, 0xa2, 0x41, 0x97, 0x6e, 0x7b, 0x32, 0xa6, 0x3c, 0x37, - 0x84, 0xa8, 0x6a, 0xc7, 0x53, 0x7c, 0x09, 0x6e, 0x83, 0x7f, 0x33, 0xfc, 0x00, 0x19, 0x53, 0xb8, - 0x02, 0x77, 0xc0, 0x76, 0x06, 0xa3, 0x23, 0x24, 0xf6, 0xf3, 0xa4, 0xe5, 0xb9, 0x24, 0x59, 0xea, - 0xcd, 0x2c, 0x2b, 0x90, 0x05, 0xb5, 0xc5, 0x3a, 0x07, 0xba, 0xda, 0xd7, 0xcc, 0x43, 0x74, 0xd8, - 0x46, 0x3a, 0x5d, 0x85, 0xff, 0x83, 0xcd, 0xc5, 0xd9, 0x12, 0x9e, 0x06, 0xb7, 0xcf, 0x21, 0x8d, - 0x4c, 0xcf, 0x61, 0xf5, 0x36, 0x9d, 0xe6, 0xa2, 0x23, 0x43, 0x17, 0xe8, 0x35, 0xb8, 0x09, 0x36, - 0x32, 0xda, 0x38, 0xd6, 0x90, 0x29, 0xc8, 0x32, 0x6d, 0xd7, 0xca, 0x5f, 0xbf, 0xb1, 0x85, 0x7d, - 0x09, 0x54, 0xd2, 0x57, 0x1e, 0xcf, 0x8c, 0xba, 0xdd, 0x38, 0x74, 0xf1, 0x0a, 0x68, 0xb0, 0x96, - 0xe1, 0x82, 0x2c, 0xab, 0xef, 0x68, 0x0a, 0x6e, 0x80, 0xd5, 0x0c, 0xe9, 0x20, 0xe5, 0x98, 0x2e, - 0x66, 0x51, 0x13, 0xf0, 0xcf, 0xc2, 0xfd, 0xc7, 0x6d, 0x35, 0x5d, 0x52, 0x44, 0x49, 0x13, 0xe4, - 0x74, 0xe7, 0xc5, 0xe4, 0x3a, 0x78, 0xf0, 0x17, 0x7f, 0xa0, 0x74, 0x3b, 0xa6, 0x20, 0x8a, 0x6a, - 0x5f, 0x31, 0x68, 0x2a, 0xae, 0x75, 0x97, 0x20, 0x3d, 0x94, 0x6c, 0xdb, 0xb6, 0x7c, 0x79, 0xcd, - 0x52, 0x57, 0xd7, 0x2c, 0xf5, 0xfb, 0x9a, 0xa5, 0x2e, 0x6e, 0xd8, 0xc2, 0xd5, 0x0d, 0x5b, 0xf8, - 0x71, 0xc3, 0x16, 0xde, 0xb7, 0x46, 0x24, 0x3a, 0x99, 0x0c, 0xe2, 0xc7, 0xce, 0x0f, 0xdc, 0xc1, - 0x13, 0xfb, 0xc4, 0x22, 0x2e, 0x3f, 0xf7, 0xa9, 0x38, 0x9d, 0xff, 0x72, 0xc5, 0x8f, 0x35, 0x1c, - 0x54, 0x92, 0xff, 0xd9, 0xd3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x10, 0xd3, 0x81, 0xdf, - 0x04, 0x00, 0x00, + // 683 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x54, 0xcd, 0x4e, 0xdb, 0x4c, + 0x14, 0x8d, 0x93, 0x10, 0xc8, 0x85, 0x0f, 0xfc, 0x0d, 0xd0, 0x9a, 0x14, 0x9c, 0x14, 0x75, 0x11, + 0x21, 0x35, 0x96, 0xd2, 0x1f, 0x55, 0xea, 0xca, 0x71, 0x26, 0xc8, 0xad, 0x49, 0x2c, 0xc7, 0x69, + 0x4b, 0xbb, 0xb0, 0x1c, 0x77, 0x12, 0x2c, 0xc5, 0x3f, 0xb2, 0x9d, 0x16, 0x78, 0x82, 0x2e, 0x79, + 0x87, 0x3e, 0x41, 0xdf, 0x82, 0x25, 0xcb, 0xae, 0xda, 0x0a, 0xde, 0xa2, 0xab, 0xca, 0x3f, 0xc1, + 0x0e, 0x3f, 0xbb, 0xcc, 0xb9, 0xe7, 0x9c, 0x7b, 0xcf, 0x9d, 0x89, 0x61, 0x77, 0xec, 0x11, 0x62, + 0x8f, 0x4c, 0x32, 0xf9, 0xcc, 0xb9, 0xc4, 0xb3, 0x4c, 0xdf, 0x37, 0x1d, 0x9b, 0x33, 0x1c, 0xcb, + 0x72, 0xec, 0x86, 0xeb, 0x39, 0x81, 0x83, 0x36, 0x53, 0x4e, 0x23, 0xe5, 0x54, 0xb6, 0x0c, 0xc7, + 0xb7, 0x1c, 0x5f, 0x8b, 0x48, 0x5c, 0x7c, 0x88, 0x15, 0x95, 0x8d, 0xb1, 0x33, 0x76, 0x62, 0x3c, + 0xfc, 0x95, 0xa0, 0xd5, 0xb1, 0xe3, 0x8c, 0x27, 0x84, 0x8b, 0x4e, 0xc3, 0xe9, 0x88, 0x0b, 0x4c, + 0x8b, 0xf8, 0x81, 0x6e, 0xb9, 0xd7, 0x84, 0x74, 0x98, 0x78, 0x02, 0xee, 0xab, 0xa7, 0xbb, 0x2e, + 0xf1, 0x62, 0xc2, 0xee, 0x8f, 0x3c, 0x94, 0xfb, 0x81, 0x1e, 0x10, 0x8b, 0xd8, 0x01, 0x7a, 0x01, + 0x25, 0x32, 0x1a, 0x11, 0x23, 0x60, 0xa8, 0x1a, 0x55, 0x5f, 0x6d, 0xee, 0x34, 0xee, 0x1c, 0xb4, + 0x81, 0x23, 0x92, 0x92, 0x90, 0xd1, 0x6b, 0x58, 0xd4, 0x8d, 0xc0, 0x74, 0x6c, 0x9f, 0xc9, 0xd7, + 0x0a, 0xf5, 0xd5, 0xe6, 0xe3, 0x7b, 0x74, 0x7c, 0xc4, 0x52, 0x4f, 0x5c, 0xa2, 0xcc, 0x14, 0x68, + 0x1b, 0xca, 0x1e, 0xf1, 0x9d, 0xa9, 0x67, 0x10, 0x9f, 0x29, 0xd4, 0x0a, 0xf5, 0xb2, 0x92, 0x02, + 0xe8, 0x00, 0xd6, 0xc8, 0xb1, 0x6b, 0x7a, 0x7a, 0x48, 0xd6, 0xc2, 0x78, 0x4c, 0xb1, 0x46, 0xd5, + 0x97, 0x9b, 0x95, 0x46, 0x9c, 0xbd, 0x31, 0xcb, 0xde, 0x50, 0x67, 0xd9, 0x5b, 0x4b, 0xe7, 0xbf, + 0xaa, 0xd4, 0xd9, 0xef, 0x2a, 0xa5, 0xac, 0xa6, 0xe2, 0xb0, 0x8c, 0x04, 0x80, 0x89, 0x69, 0x99, + 0x81, 0xe6, 0x9b, 0xa7, 0x84, 0x59, 0x88, 0x9c, 0xd8, 0xec, 0xb0, 0xc9, 0x35, 0x0d, 0x44, 0x3b, + 0x78, 0xf9, 0xfc, 0x9d, 0x3e, 0x99, 0x92, 0x56, 0x31, 0x74, 0x53, 0xca, 0x91, 0xae, 0x6f, 0x9e, + 0x92, 0xdd, 0x4f, 0x50, 0x96, 0x3d, 0xd3, 0x36, 0x4c, 0x57, 0x9f, 0xa0, 0x57, 0x50, 0x0c, 0x4e, + 0x5c, 0x92, 0x2c, 0xec, 0xc9, 0x3d, 0xc1, 0xaf, 0xf9, 0x51, 0xf6, 0x48, 0x81, 0x36, 0x60, 0xe1, + 0x4b, 0xd8, 0x80, 0xc9, 0xd7, 0xa8, 0x7a, 0x59, 0x89, 0x0f, 0x7b, 0x7f, 0xf3, 0x00, 0xe9, 0x9a, + 0xd0, 0x03, 0x40, 0xbc, 0xa0, 0x8a, 0xbd, 0xae, 0x36, 0xe8, 0xf6, 0x65, 0x2c, 0x88, 0x1d, 0x11, + 0xb7, 0xe9, 0x1c, 0x62, 0x60, 0x63, 0x86, 0xcb, 0x6d, 0x5e, 0xc5, 0x5a, 0x6b, 0x20, 0xbc, 0xc5, + 0x2a, 0x4d, 0x65, 0x2a, 0x6d, 0x2c, 0xe1, 0xb4, 0x92, 0xcf, 0x54, 0x04, 0x05, 0x87, 0x9a, 0x5e, + 0xeb, 0x0d, 0x16, 0x54, 0xba, 0x70, 0x5b, 0x93, 0x54, 0x8a, 0x99, 0xfe, 0x42, 0x4f, 0x3e, 0x9c, + 0xe1, 0x0b, 0x68, 0x13, 0xfe, 0x4f, 0xf0, 0x7d, 0xac, 0xce, 0xe0, 0x12, 0xda, 0x82, 0xcd, 0x04, + 0xc6, 0x1f, 0xb0, 0x30, 0x48, 0x9d, 0x16, 0x33, 0x4e, 0x92, 0xd8, 0xbf, 0x96, 0x2c, 0x21, 0x16, + 0x2a, 0xf3, 0x49, 0xf6, 0x95, 0xde, 0x40, 0xd6, 0x0e, 0xf0, 0x41, 0x0b, 0x2b, 0x74, 0x19, 0x3d, + 0x84, 0xf5, 0xf9, 0xd9, 0xa2, 0x3a, 0x0d, 0xb7, 0x57, 0x90, 0x58, 0x2e, 0xa3, 0x6d, 0x60, 0xee, + 0xb6, 0x54, 0x79, 0x7a, 0x05, 0xad, 0xc3, 0x5a, 0x52, 0x55, 0x0f, 0x65, 0xac, 0xf1, 0x92, 0x44, + 0x1b, 0x95, 0xe2, 0xb7, 0xef, 0x6c, 0x6e, 0x4f, 0x84, 0x52, 0xfc, 0xb4, 0xc3, 0x69, 0x71, 0xa7, + 0x83, 0x05, 0xf5, 0xc6, 0xde, 0x69, 0x58, 0x49, 0x70, 0x5e, 0x92, 0x7a, 0xef, 0x69, 0x0a, 0xad, + 0xc1, 0x72, 0x82, 0xb4, 0x71, 0xf7, 0x90, 0xce, 0x27, 0x56, 0x53, 0xf8, 0x6f, 0xee, 0xd2, 0xc3, + 0x9c, 0xb2, 0x22, 0x76, 0x05, 0x51, 0xe6, 0xa5, 0xb8, 0xf3, 0xbc, 0x73, 0x15, 0x1e, 0xdd, 0xa8, + 0xef, 0x77, 0x3b, 0x6d, 0x8d, 0x17, 0x84, 0xde, 0xa0, 0x1b, 0x5e, 0xec, 0x0e, 0x6c, 0xdd, 0x45, + 0x88, 0xd7, 0x91, 0xb4, 0x6d, 0x49, 0xe7, 0x97, 0x2c, 0x75, 0x71, 0xc9, 0x52, 0x7f, 0x2e, 0x59, + 0xea, 0xec, 0x8a, 0xcd, 0x5d, 0x5c, 0xb1, 0xb9, 0x9f, 0x57, 0x6c, 0xee, 0x63, 0x73, 0x6c, 0x06, + 0x47, 0xd3, 0x61, 0xf8, 0xc2, 0xb9, 0xa1, 0x3d, 0x7c, 0x6a, 0x1c, 0xe9, 0xa6, 0xcd, 0x65, 0xbe, + 0x0f, 0xc7, 0xd9, 0xcf, 0x55, 0xf8, 0x42, 0xfd, 0x61, 0x29, 0xfa, 0x73, 0x3d, 0xfb, 0x17, 0x00, + 0x00, 0xff, 0xff, 0x6b, 0x07, 0xe2, 0x02, 0xd4, 0x04, 0x00, 0x00, } func (m *Statement) Marshal() (dAtA []byte, err error) { diff --git a/x/permission/types/policy_test.go b/x/permission/types/policy_test.go index e97e1e728..bbe84a947 100644 --- a/x/permission/types/policy_test.go +++ b/x/permission/types/policy_test.go @@ -25,9 +25,9 @@ func TestPolicy_BucketBasic(t *testing.T) { }{ { name: "basic_update_bucket_info", - policyAction: types.ACTION_UPDATE_BUCKET_INFO, + policyAction: types.ACTION_UPDATE_BUCKET, policyEffect: types.EFFECT_ALLOW, - operateAction: types.ACTION_UPDATE_BUCKET_INFO, + operateAction: types.ACTION_UPDATE_BUCKET, expectEffect: types.EFFECT_ALLOW, }, { @@ -46,7 +46,7 @@ func TestPolicy_BucketBasic(t *testing.T) { }, { name: "basic_delete_bucket_pass", - policyAction: types.ACTION_UPDATE_BUCKET_INFO, + policyAction: types.ACTION_UPDATE_BUCKET, policyEffect: types.EFFECT_ALLOW, operateAction: types.ACTION_DELETE_BUCKET, expectEffect: types.EFFECT_UNSPECIFIED, @@ -122,37 +122,37 @@ func TestPolicy_BucketExpirationBasic(t *testing.T) { }{ { name: "policy_expired", - policyAction: types.ACTION_UPDATE_BUCKET_INFO, + policyAction: types.ACTION_UPDATE_BUCKET, policyEffect: types.EFFECT_ALLOW, policyExpirationTime: &now, - operateAction: types.ACTION_UPDATE_BUCKET_INFO, + operateAction: types.ACTION_UPDATE_BUCKET, expectEffect: types.EFFECT_UNSPECIFIED, operateTime: time.Now().Add(time.Duration(1 * time.Second)), }, { name: "policy_not_expired", - policyAction: types.ACTION_UPDATE_BUCKET_INFO, + policyAction: types.ACTION_UPDATE_BUCKET, policyEffect: types.EFFECT_ALLOW, policyExpirationTime: &now, - operateAction: types.ACTION_UPDATE_BUCKET_INFO, + operateAction: types.ACTION_UPDATE_BUCKET, expectEffect: types.EFFECT_ALLOW, operateTime: time.Now().Add(-time.Duration(1 * time.Second)), }, { name: "statement_expired", - policyAction: types.ACTION_UPDATE_BUCKET_INFO, + policyAction: types.ACTION_UPDATE_BUCKET, policyEffect: types.EFFECT_ALLOW, statementExpirationTime: &now, - operateAction: types.ACTION_UPDATE_BUCKET_INFO, + operateAction: types.ACTION_UPDATE_BUCKET, expectEffect: types.EFFECT_UNSPECIFIED, operateTime: time.Now().Add(time.Duration(1 * time.Second)), }, { name: "statement_not_expired", - policyAction: types.ACTION_UPDATE_BUCKET_INFO, + policyAction: types.ACTION_UPDATE_BUCKET, policyEffect: types.EFFECT_ALLOW, policyExpirationTime: &now, - operateAction: types.ACTION_UPDATE_BUCKET_INFO, + operateAction: types.ACTION_UPDATE_BUCKET, expectEffect: types.EFFECT_ALLOW, operateTime: time.Now().Add(-time.Duration(1 * time.Second)), }, diff --git a/x/permission/types/types.go b/x/permission/types/types.go index 1f187534d..848e73ea4 100644 --- a/x/permission/types/types.go +++ b/x/permission/types/types.go @@ -25,8 +25,8 @@ type VerifyOptions struct { var ( BucketAllowedActions = map[ActionType]bool{ - ACTION_UPDATE_BUCKET_INFO: true, - ACTION_DELETE_BUCKET: true, + ACTION_UPDATE_BUCKET: true, + ACTION_DELETE_BUCKET: true, ACTION_CREATE_OBJECT: true, ACTION_DELETE_OBJECT: true, @@ -38,33 +38,33 @@ var ( ACTION_TYPE_ALL: true, } BucketAllowedActionsAfterPampas = map[ActionType]bool{ - ACTION_UPDATE_BUCKET_INFO: true, - ACTION_DELETE_BUCKET: true, + ACTION_UPDATE_BUCKET: true, + ACTION_DELETE_BUCKET: true, - ACTION_CREATE_OBJECT: true, - ACTION_DELETE_OBJECT: true, - ACTION_GET_OBJECT: true, - ACTION_COPY_OBJECT: true, - ACTION_EXECUTE_OBJECT: true, - ACTION_LIST_OBJECT: true, - ACTION_UPDATE_OBJECT_INFO: true, + ACTION_CREATE_OBJECT: true, + ACTION_DELETE_OBJECT: true, + ACTION_GET_OBJECT: true, + ACTION_COPY_OBJECT: true, + ACTION_EXECUTE_OBJECT: true, + ACTION_LIST_OBJECT: true, + ACTION_UPDATE_OBJECT: true, ACTION_TYPE_ALL: true, } ObjectAllowedActions = map[ActionType]bool{ - ACTION_UPDATE_OBJECT_INFO: true, - ACTION_CREATE_OBJECT: true, - ACTION_DELETE_OBJECT: true, - ACTION_GET_OBJECT: true, - ACTION_COPY_OBJECT: true, - ACTION_EXECUTE_OBJECT: true, - ACTION_LIST_OBJECT: true, + ACTION_UPDATE_OBJECT: true, + ACTION_CREATE_OBJECT: true, + ACTION_DELETE_OBJECT: true, + ACTION_GET_OBJECT: true, + ACTION_COPY_OBJECT: true, + ACTION_EXECUTE_OBJECT: true, + ACTION_LIST_OBJECT: true, ACTION_TYPE_ALL: true, } GroupAllowedActions = map[ActionType]bool{ ACTION_UPDATE_GROUP_MEMBER: true, - ACTION_UPDATE_GROUP_EXTRA: true, + ACTION_UPDATE_GROUP_META: true, ACTION_DELETE_GROUP: true, ACTION_TYPE_ALL: true, diff --git a/x/storage/keeper/keeper.go b/x/storage/keeper/keeper.go index d3f0cc228..d7af0421a 100644 --- a/x/storage/keeper/keeper.go +++ b/x/storage/keeper/keeper.go @@ -384,7 +384,7 @@ func (k Keeper) UpdateBucketInfo(ctx sdk.Context, operator sdk.AccAddress, bucke } // check permission - effect := k.VerifyBucketPermission(ctx, bucketInfo, operator, permtypes.ACTION_UPDATE_BUCKET_INFO, nil) + effect := k.VerifyBucketPermission(ctx, bucketInfo, operator, permtypes.ACTION_UPDATE_BUCKET, nil) if effect != permtypes.EFFECT_ALLOW { return types.ErrAccessDenied.Wrapf("The operator(%s) has no UpdateBucketInfo permission of the bucket(%s)", operator.String(), bucketName) @@ -1234,7 +1234,7 @@ func (k Keeper) UpdateObjectInfo(ctx sdk.Context, operator sdk.AccAddress, bucke } // check permission - effect := k.VerifyObjectPermission(ctx, bucketInfo, objectInfo, operator, permtypes.ACTION_UPDATE_OBJECT_INFO) + effect := k.VerifyObjectPermission(ctx, bucketInfo, objectInfo, operator, permtypes.ACTION_UPDATE_OBJECT) if effect != permtypes.EFFECT_ALLOW { return types.ErrAccessDenied.Wrapf("The operator(%s) has no UpdateObjectInfo permission of the bucket(%s), object(%s)", operator.String(), bucketName, objectName) @@ -1498,7 +1498,7 @@ func (k Keeper) RenewGroupMember(ctx sdk.Context, operator sdk.AccAddress, group func (k Keeper) UpdateGroupExtra(ctx sdk.Context, operator sdk.AccAddress, groupInfo *types.GroupInfo, extra string) error { // check permission - effect := k.VerifyGroupPermission(ctx, groupInfo, operator, permtypes.ACTION_UPDATE_GROUP_EXTRA) + effect := k.VerifyGroupPermission(ctx, groupInfo, operator, permtypes.ACTION_UPDATE_GROUP_META) if effect != permtypes.EFFECT_ALLOW { return types.ErrAccessDenied.Wrapf( "The operator(%s) has no UpdateGroupExtra permission of the group(%s), operator(%s)", @@ -2230,13 +2230,23 @@ func (k Keeper) SetTag(ctx sdk.Context, operator sdk.AccAddress, grn types2.GRN, if !found { return types.ErrNoSuchBucket.Wrapf("bucketName: %s", bucketName) } - resOwner := sdk.MustAccAddressFromHex(bucketInfo.Owner) - if !operator.Equals(resOwner) { - return types.ErrAccessDenied.Wrapf( - "Only resource owner can set tag, operator (%s), owner(%s)", - operator.String(), resOwner.String()) - } + // todo define a new hardfork + if ctx.IsUpgraded(upgradetypes.Hulunbeier) { + // check permission + effect := k.VerifyBucketPermission(ctx, bucketInfo, operator, permtypes.ACTION_UPDATE_BUCKET, nil) + if effect != permtypes.EFFECT_ALLOW { + return types.ErrAccessDenied.Wrapf("The operator(%s) has no updateBucket permission of the bucket(%s)", + operator.String(), bucketName) + } + } else { + resOwner := sdk.MustAccAddressFromHex(bucketInfo.Owner) + if !operator.Equals(resOwner) { + return types.ErrAccessDenied.Wrapf( + "Only resource owner can set tag, operator (%s), owner(%s)", + operator.String(), resOwner.String()) + } + } bucketInfo.Tags = tags bz := k.cdc.MustMarshal(bucketInfo) store.Set(types.GetBucketByIDKey(bucketInfo.Id), bz) @@ -2249,11 +2259,25 @@ func (k Keeper) SetTag(ctx sdk.Context, operator sdk.AccAddress, grn types2.GRN, if !found { return types.ErrNoSuchObject.Wrapf("BucketName: %s, objectName: %s", bucketName, objectName) } - resOwner := sdk.MustAccAddressFromHex(objectInfo.Owner) - if !operator.Equals(resOwner) { - return types.ErrAccessDenied.Wrapf( - "Only resource owner can set tag, operator (%s), owner(%s)", - operator.String(), resOwner.String()) + // todo define a new hardfork + if ctx.IsUpgraded(upgradetypes.Hulunbeier) { + bucketInfo, found := k.GetBucketInfo(ctx, bucketName) + if !found { + return types.ErrNoSuchBucket.Wrapf("bucketName: %s", bucketName) + } + effect := k.VerifyObjectPermission(ctx, bucketInfo, objectInfo, operator, permtypes.ACTION_UPDATE_OBJECT) + if effect != permtypes.EFFECT_ALLOW { + return types.ErrAccessDenied.Wrapf( + "The operator(%s) has no updateObject permission of the bucket(%s), object(%s)", + operator.String(), bucketName, objectName) + } + } else { + resOwner := sdk.MustAccAddressFromHex(objectInfo.Owner) + if !operator.Equals(resOwner) { + return types.ErrAccessDenied.Wrapf( + "Only resource owner can set tag, operator (%s), owner(%s)", + operator.String(), resOwner.String()) + } } objectInfo.Tags = tags @@ -2268,13 +2292,23 @@ func (k Keeper) SetTag(ctx sdk.Context, operator sdk.AccAddress, grn types2.GRN, if !found { return types.ErrNoSuchBucket.Wrapf("groupOwner: %s, groupName: %s", groupOwner.String(), groupName) } - resOwner := sdk.MustAccAddressFromHex(groupInfo.Owner) - if !operator.Equals(resOwner) { - return types.ErrAccessDenied.Wrapf( - "Only resource owner can set tag, operator (%s), owner(%s)", - operator.String(), resOwner.String()) - } + // todo define a new hardfork + if ctx.IsUpgraded(upgradetypes.Hulunbeier) { + effect := k.VerifyGroupPermission(ctx, groupInfo, operator, permtypes.ACTION_UPDATE_GROUP_META) + if effect != permtypes.EFFECT_ALLOW { + return types.ErrAccessDenied.Wrapf( + "The operator(%s) has no updateGroupMeta permission of the group(%s), owner(%s)", + operator.String(), groupInfo.GroupName, groupInfo.Owner) + } + } else { + resOwner := sdk.MustAccAddressFromHex(groupInfo.Owner) + if !operator.Equals(resOwner) { + return types.ErrAccessDenied.Wrapf( + "Only resource owner can set tag, operator (%s), owner(%s)", + operator.String(), resOwner.String()) + } + } groupInfo.Tags = tags gbz := k.cdc.MustMarshal(groupInfo) store.Set(types.GetGroupByIDKey(groupInfo.Id), gbz) diff --git a/x/storage/keeper/permission.go b/x/storage/keeper/permission.go index 2d74996ab..317b2e952 100644 --- a/x/storage/keeper/permission.go +++ b/x/storage/keeper/permission.go @@ -138,8 +138,6 @@ func (k Keeper) VerifyPolicy(ctx sdk.Context, resourceID math.Uint, resourceType policy, found := k.permKeeper.GetPolicyForAccount(ctx, resourceID, resourceType, operator) if found { effect, newPolicy := policy.Eval(action, ctx.BlockTime(), opts) - k.Logger(ctx).Info(fmt.Sprintf("CreateObject LimitSize update: %s, effect: %s, ctx.TxBytes : %d", - newPolicy.String(), effect, ctx.TxSize())) if effect != permtypes.EFFECT_UNSPECIFIED { if effect == permtypes.EFFECT_ALLOW && action == permtypes.ACTION_CREATE_OBJECT && newPolicy != nil && ctx.TxBytes() != nil { _, err := k.permKeeper.PutPolicy(ctx, newPolicy)