Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: environment is no longer a parent of instance in v1 API (#6039)

Danny Xuc89a66b61b00
diff --git a/backend/api/v1/acl.go b/backend/api/v1/acl.go
index 186c78bd4b..384bc66032 100644
--- a/backend/api/v1/acl.go
+++ b/backend/api/v1/acl.go
@@ -183,11 +183,11 @@ func (in *ACLInterceptor) getTransferDatabaseToProjects(ctx context.Context, req
if !hasPath(request.UpdateMask, "project") || request.Database == nil {
continue
}
- environmentID, instanceID, databaseName, err := getEnvironmentInstanceDatabaseID(request.Database.Name)
+ instanceID, databaseName, err := getInstanceDatabaseID(request.Database.Name)
if err != nil {
return nil, err
}
- database, err := in.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{EnvironmentID: &environmentID, InstanceID: &instanceID, DatabaseName: &databaseName})
+ database, err := in.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{InstanceID: &instanceID, DatabaseName: &databaseName})
if err != nil {
return nil, err
}
diff --git a/backend/api/v1/anomaly_service.go b/backend/api/v1/anomaly_service.go
index 5d6eeb7c40..7696373253 100644
--- a/backend/api/v1/anomaly_service.go
+++ b/backend/api/v1/anomaly_service.go
@@ -71,33 +71,21 @@ func (s *AnomalyService) SearchAnomalies(ctx context.Context, request *v1pb.Sear
}
// For resources filter, we only support filter by instance and database.
- envID, insID, err := getEnvironmentInstanceID(resources[0])
+ insID, err := getInstanceID(resources[0])
if err != nil {
// Try to treat as database resource.
- envID, insID, dbName, err := getEnvironmentInstanceDatabaseID(resources[0])
+ insID, dbName, err := getInstanceDatabaseID(resources[0])
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, "Only support filter by instance and database in resource filter")
}
- environmentID, instanceID, databaseName = envID, insID, dbName
+ instanceID, databaseName = insID, dbName
} else {
// Treat as instance resource.
- environmentID, instanceID = envID, insID
+ instanceID = insID
}
- if environmentID != "" {
- env, err := s.store.GetEnvironmentV2(ctx, &store.FindEnvironmentMessage{
- ResourceID: &environmentID,
- })
- if err != nil {
- return nil, status.Errorf(codes.Internal, err.Error())
- }
- if env == nil {
- return nil, status.Errorf(codes.NotFound, "Environment %q not found", environmentID)
- }
- }
- if environmentID != "" && instanceID != "" {
+ if instanceID != "" {
instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{
- EnvironmentID: &environmentID,
- ResourceID: &instanceID,
+ ResourceID: &instanceID,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
diff --git a/backend/api/v1/common.go b/backend/api/v1/common.go
index 78c7822191..ec7bc07941 100644
--- a/backend/api/v1/common.go
+++ b/backend/api/v1/common.go
@@ -87,12 +87,12 @@ func trimSuffixAndGetProjectID(name string, suffix string) (string, error) {
return getProjectID(trimmed)
}
-func trimSuffixAndGetEnvironmentInstanceDatabaseID(name string, suffix string) (string, string, string, error) {
+func trimSuffixAndGetInstanceDatabaseID(name string, suffix string) (string, string, error) {
trimmed, err := trimSuffix(name, suffix)
if err != nil {
- return "", "", "", err
+ return "", "", err
}
- return getEnvironmentInstanceDatabaseID(trimmed)
+ return getInstanceDatabaseID(trimmed)
}
func getEnvironmentID(name string) (string, error) {
@@ -103,48 +103,48 @@ func getEnvironmentID(name string) (string, error) {
return tokens[0], nil
}
-func getEnvironmentInstanceID(name string) (string, string, error) {
- // the instance request should be environments/{environment-id}/instances/{instance-id}
- tokens, err := getNameParentTokens(name, environmentNamePrefix, instanceNamePrefix)
+func getInstanceID(name string) (string, error) {
+ // the instance request should be instances/{instance-id}
+ tokens, err := getNameParentTokens(name, instanceNamePrefix)
if err != nil {
- return "", "", err
+ return "", err
}
- return tokens[0], tokens[1], nil
+ return tokens[0], nil
}
-func getEnvironmentInstanceRoleID(name string) (string, string, string, error) {
- // the instance request should be environments/{environment-id}/instances/{instance-id}/roles/{role-name}
- tokens, err := getNameParentTokens(name, environmentNamePrefix, instanceNamePrefix, instanceRolePrefix)
+func getInstanceRoleID(name string) (string, string, error) {
+ // the instance request should be instances/{instance-id}/roles/{role-name}
+ tokens, err := getNameParentTokens(name, instanceNamePrefix, instanceRolePrefix)
if err != nil {
- return "", "", "", err
+ return "", "", err
}
- return tokens[0], tokens[1], tokens[2], nil
+ return tokens[0], tokens[1], nil
}
-func getEnvironmentInstanceDatabaseID(name string) (string, string, string, error) {
- // the instance request should be environments/{environment-id}/instances/{instance-id}/databases/{database-id}
- tokens, err := getNameParentTokens(name, environmentNamePrefix, instanceNamePrefix, databaseIDPrefix)
+func getInstanceDatabaseID(name string) (string, string, error) {
+ // the instance request should be instances/{instance-id}/databases/{database-id}
+ tokens, err := getNameParentTokens(name, instanceNamePrefix, databaseIDPrefix)
if err != nil {
- return "", "", "", err
+ return "", "", err
}
- return tokens[0], tokens[1], tokens[2], nil
+ return tokens[0], tokens[1], nil
}
-func getEnvironmentInstanceDatabaseIDSecretName(name string) (string, string, string, string, error) {
- // the instance request should be environments/{environment-id}/instances/{instance-id}/databases/{database-id}/secrets/{secret-name}
- tokens, err := getNameParentTokens(name, environmentNamePrefix, instanceNamePrefix, databaseIDPrefix, secretNamePrefix)
+func getInstanceDatabaseIDSecretName(name string) (string, string, string, error) {
+ // the instance request should be instances/{instance-id}/databases/{database-id}/secrets/{secret-name}
+ tokens, err := getNameParentTokens(name, instanceNamePrefix, databaseIDPrefix, secretNamePrefix)
if err != nil {
- return "", "", "", "", err
+ return "", "", "", err
}
- return tokens[0], tokens[1], tokens[2], tokens[3], nil
+ return tokens[0], tokens[1], tokens[2], nil
}
-func getEnvironmentIDInstanceDatabaseIDBackupName(name string) (string, string, string, string, error) {
+func getInstanceDatabaseIDBackupName(name string) (string, string, string, error) {
tokens, err := getNameParentTokens(name, environmentNamePrefix, instanceNamePrefix, databaseIDPrefix, backupPrefix)
if err != nil {
- return "", "", "", "", err
+ return "", "", "", err
}
- return tokens[0], tokens[1], tokens[2], tokens[3], nil
+ return tokens[0], tokens[1], tokens[2], nil
}
func getUserID(name string) (int, error) {
diff --git a/backend/api/v1/common_test.go b/backend/api/v1/common_test.go
index 6cddb43c85..759f60cf34 100644
--- a/backend/api/v1/common_test.go
+++ b/backend/api/v1/common_test.go
@@ -95,13 +95,12 @@ func TestGetFilter(t *testing.T) {
}
}
-func TestGetEnvironmentInstanceDatabaseID(t *testing.T) {
- environmentID, instanceID, err := getEnvironmentInstanceID("environments/e1/instances/i2")
+func TestGetInstanceDatabaseID(t *testing.T) {
+ instanceID, err := getInstanceID("instances/i2")
require.NoError(t, err)
- require.Equal(t, "e1", environmentID)
require.Equal(t, "i2", instanceID)
- _, _, err = getEnvironmentInstanceID("environments/e1/instances/i2/databases/d3")
+ _, err = getInstanceID("instances/i2/databases/d3")
require.Error(t, err)
}
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.go
index 3a0df03c70..b2b7208356 100644
--- a/backend/api/v1/database_service.go
+++ b/backend/api/v1/database_service.go
@@ -74,14 +74,13 @@ func NewDatabaseService(store *store.Store, br *backuprun.Runner, licenseService
// GetDatabase gets a database.
func (s *DatabaseService) GetDatabase(ctx context.Context, request *v1pb.GetDatabaseRequest) (*v1pb.Database, error) {
- environmentID, instanceID, databaseName, err := getEnvironmentInstanceDatabaseID(request.Name)
+ instanceID, databaseName, err := getInstanceDatabaseID(request.Name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -94,14 +93,11 @@ func (s *DatabaseService) GetDatabase(ctx context.Context, request *v1pb.GetData
// ListDatabases lists all databases.
func (s *DatabaseService) ListDatabases(ctx context.Context, request *v1pb.ListDatabasesRequest) (*v1pb.ListDatabasesResponse, error) {
- environmentID, instanceID, err := getEnvironmentInstanceID(request.Parent)
+ instanceID, err := getInstanceID(request.Parent)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
find := &store.FindDatabaseMessage{}
- if environmentID != "-" {
- find.EnvironmentID = &environmentID
- }
if instanceID != "-" {
find.InstanceID = &instanceID
}
@@ -136,14 +132,13 @@ func (s *DatabaseService) UpdateDatabase(ctx context.Context, request *v1pb.Upda
return nil, status.Errorf(codes.InvalidArgument, "update_mask must be set")
}
- environmentID, instanceID, databaseName, err := getEnvironmentInstanceDatabaseID(request.Database.Name)
+ instanceID, databaseName, err := getInstanceDatabaseID(request.Database.Name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -205,14 +200,13 @@ func (s *DatabaseService) BatchUpdateDatabases(ctx context.Context, request *v1p
if req.UpdateMask == nil {
return nil, status.Errorf(codes.InvalidArgument, "update_mask must be set")
}
- environmentID, instanceID, databaseName, err := getEnvironmentInstanceDatabaseID(req.Database.Name)
+ instanceID, databaseName, err := getInstanceDatabaseID(req.Database.Name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -263,14 +257,13 @@ func (s *DatabaseService) BatchUpdateDatabases(ctx context.Context, request *v1p
// GetDatabaseMetadata gets the metadata of a database.
func (s *DatabaseService) GetDatabaseMetadata(ctx context.Context, request *v1pb.GetDatabaseMetadataRequest) (*v1pb.DatabaseMetadata, error) {
- environmentID, instanceID, databaseName, err := trimSuffixAndGetEnvironmentInstanceDatabaseID(request.Name, metadataSuffix)
+ instanceID, databaseName, err := trimSuffixAndGetInstanceDatabaseID(request.Name, metadataSuffix)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -287,14 +280,13 @@ func (s *DatabaseService) GetDatabaseMetadata(ctx context.Context, request *v1pb
// GetDatabaseSchema gets the schema of a database.
func (s *DatabaseService) GetDatabaseSchema(ctx context.Context, request *v1pb.GetDatabaseSchemaRequest) (*v1pb.DatabaseSchema, error) {
- environmentID, instanceID, databaseName, err := trimSuffixAndGetEnvironmentInstanceDatabaseID(request.Name, schemaSuffix)
+ instanceID, databaseName, err := trimSuffixAndGetInstanceDatabaseID(request.Name, schemaSuffix)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -314,22 +306,12 @@ func (s *DatabaseService) GetDatabaseSchema(ctx context.Context, request *v1pb.G
// GetBackupSetting gets the backup setting of a database.
func (s *DatabaseService) GetBackupSetting(ctx context.Context, request *v1pb.GetBackupSettingRequest) (*v1pb.BackupSetting, error) {
- environmentID, instanceID, databaseName, err := trimSuffixAndGetEnvironmentInstanceDatabaseID(request.Name, backupSettingSuffix)
+ instanceID, databaseName, err := trimSuffixAndGetInstanceDatabaseID(request.Name, backupSettingSuffix)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- environment, err := s.store.GetEnvironmentV2(ctx, &store.FindEnvironmentMessage{
- ResourceID: &environmentID,
- })
- if err != nil {
- return nil, status.Errorf(codes.Internal, err.Error())
- }
- if environment == nil {
- return nil, status.Errorf(codes.NotFound, "environment %q not found", environmentID)
- }
instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{
- EnvironmentID: &environmentID,
- ResourceID: &instanceID,
+ ResourceID: &instanceID,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -338,9 +320,8 @@ func (s *DatabaseService) GetBackupSetting(ctx context.Context, request *v1pb.Ge
return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)
}
database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -354,29 +335,19 @@ func (s *DatabaseService) GetBackupSetting(ctx context.Context, request *v1pb.Ge
}
if backupSetting == nil {
// If the backup setting is not found, return the default backup setting.
- return getDefaultBackupSetting(environment.ResourceID, instance.ResourceID, database.DatabaseName), nil
+ return getDefaultBackupSetting(instance.ResourceID, database.DatabaseName), nil
}
- return convertToBackupSetting(backupSetting, environment.ResourceID, instance.ResourceID, database.DatabaseName)
+ return convertToBackupSetting(backupSetting, instance.ResourceID, database.DatabaseName)
}
// UpdateBackupSetting updates the backup setting of a database.
func (s *DatabaseService) UpdateBackupSetting(ctx context.Context, request *v1pb.UpdateBackupSettingRequest) (*v1pb.BackupSetting, error) {
- environmentID, instanceID, databaseName, err := trimSuffixAndGetEnvironmentInstanceDatabaseID(request.Setting.Name, backupSettingSuffix)
+ instanceID, databaseName, err := trimSuffixAndGetInstanceDatabaseID(request.Setting.Name, backupSettingSuffix)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- environment, err := s.store.GetEnvironmentV2(ctx, &store.FindEnvironmentMessage{
- ResourceID: &environmentID,
- })
- if err != nil {
- return nil, status.Errorf(codes.Internal, err.Error())
- }
- if environment == nil {
- return nil, status.Errorf(codes.NotFound, "environment %q not found", environmentID)
- }
instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{
- EnvironmentID: &environmentID,
- ResourceID: &instanceID,
+ ResourceID: &instanceID,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -385,9 +356,8 @@ func (s *DatabaseService) UpdateBackupSetting(ctx context.Context, request *v1pb
return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)
}
database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -404,27 +374,17 @@ func (s *DatabaseService) UpdateBackupSetting(ctx context.Context, request *v1pb
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
}
- return convertToBackupSetting(backupSetting, environment.ResourceID, instance.ResourceID, database.DatabaseName)
+ return convertToBackupSetting(backupSetting, instance.ResourceID, database.DatabaseName)
}
// ListBackup lists the backups of a database.
func (s *DatabaseService) ListBackup(ctx context.Context, request *v1pb.ListBackupRequest) (*v1pb.ListBackupResponse, error) {
- environmentID, instanceID, databaseName, err := getEnvironmentInstanceDatabaseID(request.Parent)
+ instanceID, databaseName, err := getInstanceDatabaseID(request.Parent)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- environment, err := s.store.GetEnvironmentV2(ctx, &store.FindEnvironmentMessage{
- ResourceID: &environmentID,
- })
- if err != nil {
- return nil, status.Errorf(codes.Internal, err.Error())
- }
- if environment == nil {
- return nil, status.Errorf(codes.NotFound, "environment %q not found", environmentID)
- }
instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{
- EnvironmentID: &environmentID,
- ResourceID: &instanceID,
+ ResourceID: &instanceID,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -433,9 +393,8 @@ func (s *DatabaseService) ListBackup(ctx context.Context, request *v1pb.ListBack
return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)
}
database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -455,7 +414,7 @@ func (s *DatabaseService) ListBackup(ctx context.Context, request *v1pb.ListBack
var backupList []*v1pb.Backup
for _, existedBackup := range existedBackupList {
- backupList = append(backupList, convertToBackup(existedBackup, environment.ResourceID, instance.ResourceID, database.DatabaseName))
+ backupList = append(backupList, convertToBackup(existedBackup, instance.ResourceID, database.DatabaseName))
}
return &v1pb.ListBackupResponse{
Backups: backupList,
@@ -464,22 +423,12 @@ func (s *DatabaseService) ListBackup(ctx context.Context, request *v1pb.ListBack
// CreateBackup creates a backup of a database.
func (s *DatabaseService) CreateBackup(ctx context.Context, request *v1pb.CreateBackupRequest) (*v1pb.Backup, error) {
- environmentID, instanceID, databaseName, backupName, err := getEnvironmentIDInstanceDatabaseIDBackupName(request.Backup.Name)
+ instanceID, databaseName, backupName, err := getInstanceDatabaseIDBackupName(request.Backup.Name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- environment, err := s.store.GetEnvironmentV2(ctx, &store.FindEnvironmentMessage{
- ResourceID: &environmentID,
- })
- if err != nil {
- return nil, status.Errorf(codes.Internal, err.Error())
- }
- if environment == nil {
- return nil, status.Errorf(codes.NotFound, "environment %q not found", environmentID)
- }
instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{
- EnvironmentID: &environmentID,
- ResourceID: &instanceID,
+ ResourceID: &instanceID,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -488,9 +437,8 @@ func (s *DatabaseService) CreateBackup(ctx context.Context, request *v1pb.Create
return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)
}
database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -515,27 +463,17 @@ func (s *DatabaseService) CreateBackup(ctx context.Context, request *v1pb.Create
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
}
- return convertToBackup(backup, environmentID, instanceID, databaseName), nil
+ return convertToBackup(backup, instanceID, databaseName), nil
}
// ListSecrets lists the secrets of a database.
func (s *DatabaseService) ListSecrets(ctx context.Context, request *v1pb.ListSecretsRequest) (*v1pb.ListSecretsResponse, error) {
- environmentID, instanceID, databaseName, err := getEnvironmentInstanceDatabaseID(request.Parent)
+ instanceID, databaseName, err := getInstanceDatabaseID(request.Parent)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- environment, err := s.store.GetEnvironmentV2(ctx, &store.FindEnvironmentMessage{
- ResourceID: &environmentID,
- })
- if err != nil {
- return nil, status.Errorf(codes.Internal, err.Error())
- }
- if environment == nil {
- return nil, status.Errorf(codes.NotFound, "environment %q not found", environmentID)
- }
instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{
- EnvironmentID: &environmentID,
- ResourceID: &instanceID,
+ ResourceID: &instanceID,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -544,9 +482,8 @@ func (s *DatabaseService) ListSecrets(ctx context.Context, request *v1pb.ListSec
return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)
}
database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -569,22 +506,12 @@ func (s *DatabaseService) UpdateSecret(ctx context.Context, request *v1pb.Update
return nil, status.Errorf(codes.InvalidArgument, "secret is required")
}
- environmentID, instanceID, databaseName, updateSecretName, err := getEnvironmentInstanceDatabaseIDSecretName(request.Secret.Name)
+ instanceID, databaseName, updateSecretName, err := getInstanceDatabaseIDSecretName(request.Secret.Name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- environment, err := s.store.GetEnvironmentV2(ctx, &store.FindEnvironmentMessage{
- ResourceID: &environmentID,
- })
- if err != nil {
- return nil, status.Errorf(codes.Internal, err.Error())
- }
- if environment == nil {
- return nil, status.Errorf(codes.NotFound, "environment %q not found", environmentID)
- }
instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{
- EnvironmentID: &environmentID,
- ResourceID: &instanceID,
+ ResourceID: &instanceID,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -593,9 +520,8 @@ func (s *DatabaseService) UpdateSecret(ctx context.Context, request *v1pb.Update
return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)
}
database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -678,23 +604,13 @@ func (s *DatabaseService) DeleteSecret(ctx context.Context, request *v1pb.Delete
return nil, status.Errorf(codes.PermissionDenied, api.FeatureEncryptedSecrets.AccessErrorMessage())
}
- environmentID, instanceID, databaseName, secretName, err := getEnvironmentInstanceDatabaseIDSecretName(request.Name)
+ instanceID, databaseName, secretName, err := getInstanceDatabaseIDSecretName(request.Name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- environment, err := s.store.GetEnvironmentV2(ctx, &store.FindEnvironmentMessage{
- ResourceID: &environmentID,
- })
- if err != nil {
- return nil, status.Errorf(codes.Internal, err.Error())
- }
- if environment == nil {
- return nil, status.Errorf(codes.NotFound, "environment %q not found", environmentID)
- }
instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{
- EnvironmentID: &environmentID,
- ResourceID: &instanceID,
+ ResourceID: &instanceID,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -703,9 +619,8 @@ func (s *DatabaseService) DeleteSecret(ctx context.Context, request *v1pb.Delete
return nil, status.Errorf(codes.NotFound, "instance %q not found", instanceID)
}
database, err := s.store.GetDatabaseV2(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -753,13 +668,10 @@ type totalValue struct {
// ListSlowQueries lists the slow queries.
func (s *DatabaseService) ListSlowQueries(ctx context.Context, request *v1pb.ListSlowQueriesRequest) (*v1pb.ListSlowQueriesResponse, error) {
findDatabase := &store.FindDatabaseMessage{}
- environmentID, instanceID, databaseName, err := getEnvironmentInstanceDatabaseID(request.Parent)
+ instanceID, databaseName, err := getInstanceDatabaseID(request.Parent)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- if environmentID != "-" {
- findDatabase.EnvironmentID = &environmentID
- }
if instanceID != "-" {
findDatabase.InstanceID = &instanceID
}
@@ -908,7 +820,7 @@ func (s *DatabaseService) ListSlowQueries(ctx context.Context, request *v1pb.Lis
}
for _, log := range result.SlowQueryLogs {
- _, instanceID, _, err := getEnvironmentInstanceDatabaseID(log.Resource)
+ instanceID, _, err := getInstanceDatabaseID(log.Resource)
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to get instance id %q", err.Error())
}
@@ -1044,7 +956,7 @@ func convertToSlowQueryLog(environmentID string, instanceID string, databaseName
}
}
-func convertToBackup(backup *store.BackupMessage, enviromentID string, instanceID string, databaseName string) *v1pb.Backup {
+func convertToBackup(backup *store.BackupMessage, instanceID string, databaseName string) *v1pb.Backup {
createTime := timestamppb.New(time.Unix(backup.CreatedTs, 0))
updateTime := timestamppb.New(time.Unix(backup.UpdatedTs, 0))
backupState := v1pb.Backup_BACKUP_STATE_UNSPECIFIED
@@ -1066,7 +978,7 @@ func convertToBackup(backup *store.BackupMessage, enviromentID string, instanceI
backupType = v1pb.Backup_PITR
}
return &v1pb.Backup{
- Name: fmt.Sprintf("%s%s/%s%s/%s%s/%s", environmentNamePrefix, enviromentID, instanceNamePrefix, instanceID, databaseIDPrefix, databaseName, backup.Name),
+ Name: fmt.Sprintf("%s%s/%s%s/%s", instanceNamePrefix, instanceID, databaseIDPrefix, databaseName, backup.Name),
CreateTime: createTime,
UpdateTime: updateTime,
State: backupState,
@@ -1228,20 +1140,20 @@ func (s *DatabaseService) createTransferProjectActivity(ctx context.Context, new
return nil
}
-func getDefaultBackupSetting(environmentID, instanceID, databaseName string) *v1pb.BackupSetting {
+func getDefaultBackupSetting(instanceID, databaseName string) *v1pb.BackupSetting {
sevenDays, err := convertPeriodTsToDuration(int(time.Duration(7 * 24 * time.Hour).Seconds()))
if err != nil {
log.Warn("failed to convert period ts to duration", zap.Error(err))
}
return &v1pb.BackupSetting{
- Name: fmt.Sprintf("%s%s/%s%s/%s%s/%s", environmentNamePrefix, environmentID, instanceNamePrefix, instanceID, databaseIDPrefix, databaseName, backupSettingSuffix),
+ Name: fmt.Sprintf("%s%s/%s%s/%s", instanceNamePrefix, instanceID, databaseIDPrefix, databaseName, backupSettingSuffix),
BackupRetainDuration: sevenDays,
CronSchedule: "", /* Disable automatic backup */
HookUrl: "",
}
}
-func convertToBackupSetting(backupSetting *store.BackupSettingMessage, environmentID, instanceID, databaseName string) (*v1pb.BackupSetting, error) {
+func convertToBackupSetting(backupSetting *store.BackupSettingMessage, instanceID, databaseName string) (*v1pb.BackupSetting, error) {
period, err := convertPeriodTsToDuration(backupSetting.RetentionPeriodTs)
if err != nil {
return nil, err
@@ -1251,7 +1163,7 @@ func convertToBackupSetting(backupSetting *store.BackupSettingMessage, environme
cronSchedule = buildSimpleCron(backupSetting.HourOfDay, backupSetting.DayOfWeek)
}
return &v1pb.BackupSetting{
- Name: fmt.Sprintf("%s%s%s%s%s%s%s", environmentNamePrefix, environmentID, instanceNamePrefix, instanceID, databaseIDPrefix, databaseName, backupSettingSuffix),
+ Name: fmt.Sprintf("%s%s/%s%s/%s", instanceNamePrefix, instanceID, databaseIDPrefix, databaseName, backupSettingSuffix),
BackupRetainDuration: period,
CronSchedule: cronSchedule,
HookUrl: backupSetting.HookURL,
@@ -1405,15 +1317,14 @@ func (s *DatabaseService) AdviseIndex(ctx context.Context, request *v1pb.AdviseI
if !s.licenseService.IsFeatureEnabled(api.FeaturePluginOpenAI) {
return nil, status.Errorf(codes.PermissionDenied, api.FeaturePluginOpenAI.AccessErrorMessage())
}
- environmentID, instanceID, databaseName, err := getEnvironmentInstanceDatabaseID(request.Parent)
+ instanceID, databaseName, err := getInstanceDatabaseID(request.Parent)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
findDatabase := &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
}
database, err := s.store.GetDatabaseV2(ctx, findDatabase)
if err != nil {
@@ -1421,8 +1332,7 @@ func (s *DatabaseService) AdviseIndex(ctx context.Context, request *v1pb.AdviseI
}
findInstance := &store.FindInstanceMessage{
- EnvironmentID: &environmentID,
- ResourceID: &instanceID,
+ ResourceID: &instanceID,
}
instance, err := s.store.GetInstanceV2(ctx, findInstance)
if err != nil {
diff --git a/backend/api/v1/instance_role_service.go b/backend/api/v1/instance_role_service.go
index 38cb133dbb..cdd04a0774 100644
--- a/backend/api/v1/instance_role_service.go
+++ b/backend/api/v1/instance_role_service.go
@@ -34,12 +34,12 @@ func NewInstanceRoleService(store *store.Store, dbFactory *dbfactory.DBFactory)
// GetInstanceRole gets an role.
func (s *InstanceRoleService) GetInstanceRole(ctx context.Context, request *v1pb.GetInstanceRoleRequest) (*v1pb.InstanceRole, error) {
- environmentID, instanceID, roleName, err := getEnvironmentInstanceRoleID(request.Name)
+ instanceID, roleName, err := getInstanceRoleID(request.Name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- instance, err := s.getInstanceMessage(ctx, environmentID, instanceID)
+ instance, err := s.getInstanceMessage(ctx, instanceID)
if err != nil {
return nil, err
}
@@ -70,12 +70,12 @@ func (s *InstanceRoleService) GetInstanceRole(ctx context.Context, request *v1pb
// ListInstanceRoles lists all roles in an instance.
func (s *InstanceRoleService) ListInstanceRoles(ctx context.Context, request *v1pb.ListInstanceRolesRequest) (*v1pb.ListInstanceRolesResponse, error) {
- environmentID, instanceID, err := getEnvironmentInstanceID(request.Parent)
+ instanceID, err := getInstanceID(request.Parent)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- instance, err := s.getInstanceMessage(ctx, environmentID, instanceID)
+ instance, err := s.getInstanceMessage(ctx, instanceID)
if err != nil {
return nil, err
}
@@ -110,11 +110,11 @@ func (s *InstanceRoleService) CreateInstanceRole(ctx context.Context, request *v
if request.Role == nil {
return nil, status.Errorf(codes.InvalidArgument, "role must be set")
}
- environmentID, instanceID, err := getEnvironmentInstanceID(request.Parent)
+ instanceID, err := getInstanceID(request.Parent)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- instance, err := s.getInstanceMessage(ctx, environmentID, instanceID)
+ instance, err := s.getInstanceMessage(ctx, instanceID)
if err != nil {
return nil, err
}
@@ -160,12 +160,12 @@ func (s *InstanceRoleService) UpdateInstanceRole(ctx context.Context, request *v
return nil, status.Errorf(codes.InvalidArgument, "update_mask must be set")
}
- environmentID, instanceID, roleName, err := getEnvironmentInstanceRoleID(request.Role.Name)
+ instanceID, roleName, err := getInstanceRoleID(request.Role.Name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- instance, err := s.getInstanceMessage(ctx, environmentID, instanceID)
+ instance, err := s.getInstanceMessage(ctx, instanceID)
if err != nil {
return nil, err
}
@@ -217,12 +217,12 @@ func (s *InstanceRoleService) UpdateInstanceRole(ctx context.Context, request *v
// DeleteInstanceRole deletes an role.
func (s *InstanceRoleService) DeleteInstanceRole(ctx context.Context, request *v1pb.DeleteInstanceRoleRequest) (*emptypb.Empty, error) {
- environmentID, instanceID, roleName, err := getEnvironmentInstanceRoleID(request.Name)
+ instanceID, roleName, err := getInstanceRoleID(request.Name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
- instance, err := s.getInstanceMessage(ctx, environmentID, instanceID)
+ instance, err := s.getInstanceMessage(ctx, instanceID)
if err != nil {
return nil, err
}
@@ -247,10 +247,9 @@ func (*InstanceRoleService) UndeleteInstanceRole(_ context.Context, _ *v1pb.Unde
return nil, status.Errorf(codes.Unimplemented, "Undelete role is not supported")
}
-func (s *InstanceRoleService) getInstanceMessage(ctx context.Context, environmentID, instanceID string) (*store.InstanceMessage, error) {
+func (s *InstanceRoleService) getInstanceMessage(ctx context.Context, instanceID string) (*store.InstanceMessage, error) {
instance, err := s.store.GetInstanceV2(ctx, &store.FindInstanceMessage{
- EnvironmentID: &environmentID,
- ResourceID: &instanceID,
+ ResourceID: &instanceID,
})
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
diff --git a/backend/api/v1/instance_service.go b/backend/api/v1/instance_service.go
index def2ab4155..4b629552ff 100644
--- a/backend/api/v1/instance_service.go
+++ b/backend/api/v1/instance_service.go
@@ -59,18 +59,9 @@ func (s *InstanceService) GetInstance(ctx context.Context, request *v1pb.GetInst
// ListInstances lists all instances.
func (s *InstanceService) ListInstances(ctx context.Context, request *v1pb.ListInstancesRequest) (*v1pb.ListInstancesResponse, error) {
- environmentID, err := getEnvironmentID(request.Parent)
- if err != nil {
- return nil, status.Errorf(codes.InvalidArgument, err.Error())
- }
-
find := &store.FindInstanceMessage{
ShowDeleted: request.ShowDeleted,
}
- // Use "environments/-" to list all instances from all environments.
- if environmentID != "-" {
- find.EnvironmentID = &environmentID
- }
instances, err := s.store.ListInstancesV2(ctx, find)
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -87,10 +78,6 @@ func (s *InstanceService) CreateInstance(ctx context.Context, request *v1pb.Crea
if request.Instance == nil {
return nil, status.Errorf(codes.InvalidArgument, "instance must be set")
}
- environmentID, err := getEnvironmentID(request.Parent)
- if err != nil {
- return nil, status.Errorf(codes.InvalidArgument, err.Error())
- }
if !isValidResourceID(request.InstanceId) {
return nil, status.Errorf(codes.InvalidArgument, "invalid instance ID %v", request.InstanceId)
}
@@ -106,7 +93,6 @@ func (s *InstanceService) CreateInstance(ctx context.Context, request *v1pb.Crea
}
principalID := ctx.Value(common.PrincipalIDContextKey).(int)
instance, err := s.store.CreateInstanceV2(ctx,
- environmentID,
instanceMessage,
principalID,
)
@@ -500,7 +486,7 @@ func (s *InstanceService) instanceCountGuard(ctx context.Context) error {
}
func (s *InstanceService) getInstanceMessage(ctx context.Context, name string) (*store.InstanceMessage, error) {
- environmentID, instanceID, err := getEnvironmentInstanceID(name)
+ instanceID, err := getInstanceID(name)
if err != nil {
return nil, status.Errorf(codes.InvalidArgument, err.Error())
}
@@ -508,9 +494,6 @@ func (s *InstanceService) getInstanceMessage(ctx context.Context, name string) (
find := &store.FindInstanceMessage{
ResourceID: &instanceID,
}
- if environmentID != "-" {
- find.EnvironmentID = &environmentID
- }
instance, err := s.store.GetInstanceV2(ctx, find)
if err != nil {
return nil, status.Errorf(codes.Internal, err.Error())
@@ -557,6 +540,7 @@ func convertToInstance(instance *store.InstanceMessage) *v1pb.Instance {
ExternalLink: instance.ExternalLink,
DataSources: dataSourceList,
State: convertDeletedToState(instance.Deleted),
+ Environment: fmt.Sprintf("environments/%s", instance.EnvironmentID),
}
}
@@ -567,11 +551,12 @@ func (s *InstanceService) convertToInstanceMessage(instanceID string, instance *
}
return &store.InstanceMessage{
- ResourceID: instanceID,
- Title: instance.Title,
- Engine: convertEngine(instance.Engine),
- ExternalLink: instance.ExternalLink,
- DataSources: datasources,
+ ResourceID: instanceID,
+ Title: instance.Title,
+ Engine: convertEngine(instance.Engine),
+ ExternalLink: instance.ExternalLink,
+ DataSources: datasources,
+ EnvironmentID: instance.Environment,
}, nil
}
diff --git a/backend/api/v1/org_policy_service.go b/backend/api/v1/org_policy_service.go
index 04bc55a785..9fd909f503 100644
--- a/backend/api/v1/org_policy_service.go
+++ b/backend/api/v1/org_policy_service.go
@@ -264,9 +264,9 @@ func (s *OrgPolicyService) getPolicyResourceTypeAndID(ctx context.Context, reque
return api.PolicyResourceTypeEnvironment, &environment.UID, nil
}
- // instance policy request name should be environments/{environment id}/instances/{instance id}
- if len(sections) == 4 {
- environmentID, instanceID, err := getEnvironmentInstanceID(requestName)
+ if strings.HasPrefix(requestName, instanceNamePrefix) && len(sections) == 2 {
+ // instance policy request name should be instances/{instance id}
+ instanceID, err := getInstanceID(requestName)
if err != nil {
return api.PolicyResourceTypeUnknown, nil, status.Errorf(codes.InvalidArgument, err.Error())
}
@@ -275,8 +275,7 @@ func (s *OrgPolicyService) getPolicyResourceTypeAndID(ctx context.Context, reque
}
instance, err := s.findActiveInstance(ctx, &store.FindInstanceMessage{
- EnvironmentID: &environmentID,
- ResourceID: &instanceID,
+ ResourceID: &instanceID,
})
if err != nil {
return api.PolicyResourceTypeUnknown, nil, err
@@ -285,9 +284,9 @@ func (s *OrgPolicyService) getPolicyResourceTypeAndID(ctx context.Context, reque
return api.PolicyResourceTypeInstance, &instance.UID, nil
}
- // database policy request name should be environments/{environment id}/instances/{instance id}/databases/{db name}
+ // database policy request name should be instances/{instance id}/databases/{db name}
if len(sections) == 6 {
- environmentID, instanceID, databaseName, err := getEnvironmentInstanceDatabaseID(requestName)
+ instanceID, databaseName, err := getInstanceDatabaseID(requestName)
if err != nil {
return api.PolicyResourceTypeUnknown, nil, status.Errorf(codes.InvalidArgument, err.Error())
}
@@ -295,9 +294,8 @@ func (s *OrgPolicyService) getPolicyResourceTypeAndID(ctx context.Context, reque
return api.PolicyResourceTypeDatabase, nil, nil
}
database, err := s.findActiveDatabase(ctx, &store.FindDatabaseMessage{
- EnvironmentID: &environmentID,
- InstanceID: &instanceID,
- DatabaseName: &databaseName,
+ InstanceID: &instanceID,
+ DatabaseName: &databaseName,
})
if err != nil {
return api.PolicyResourceTypeUnknown, nil, status.Errorf(codes.Internal, err.Error())
diff --git a/backend/server/instance.go b/backend/server/instance.go
index fb232ce66b..c2661d65d9 100644
--- a/backend/server/instance.go
+++ b/backend/server/instance.go
@@ -62,7 +62,7 @@ func (s *Server) registerInstanceRoutes(g *echo.Group) {
return echo.NewHTTPError(http.StatusBadRequest, fmt.Sprintf("environment %v not found", instanceCreate.EnvironmentID))
}
creator := c.Get(getPrincipalIDContextKey()).(int)
- instance, err := s.store.CreateInstanceV2(ctx, environment.ResourceID, &store.InstanceMessage{
+ instance, err := s.store.CreateInstanceV2(ctx, &store.InstanceMessage{
ResourceID: instanceCreate.ResourceID,
Title: instanceCreate.Name,
Engine: instanceCreate.Engine,
@@ -90,6 +90,7 @@ func (s *Server) registerInstanceRoutes(g *echo.Group) {
SSHObfuscatedPrivateKey: common.Obfuscate(instanceCreate.SSHPrivateKey, s.secret),
},
},
+ EnvironmentID: environment.ResourceID,
}, creator)
if err != nil {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to create instance").SetInternal(err)
diff --git a/backend/server/server.go b/backend/server/server.go
index 981f7cac89..79f59c8782 100644
--- a/backend/server/server.go
+++ b/backend/server/server.go
@@ -983,7 +983,7 @@ func (s *Server) generateOnboardingData(ctx context.Context, userID int) error {
return errors.Wrapf(err, "failed to create onboarding project")
}
- instance, err := s.store.CreateInstanceV2(ctx, api.DefaultProdEnvironmentID, &store.InstanceMessage{
+ instance, err := s.store.CreateInstanceV2(ctx, &store.InstanceMessage{
ResourceID: postgres.SampleInstanceResourceID,
Title: "Postgres Sample Instance",
Engine: db.Postgres,
@@ -999,6 +999,7 @@ func (s *Server) generateOnboardingData(ctx context.Context, userID int) error {
Database: postgres.SampleDatabase,
},
},
+ EnvironmentID: api.DefaultProdEnvironmentID,
}, userID)
if err != nil {
return errors.Wrapf(err, "failed to create onboarding instance")
diff --git a/backend/store/instance.go b/backend/store/instance.go
index 72d195238b..cb6553d44d 100644
--- a/backend/store/instance.go
+++ b/backend/store/instance.go
@@ -211,7 +211,7 @@ func (s *Store) ListInstancesV2(ctx context.Context, find *FindInstanceMessage)
}
// CreateInstanceV2 creates the instance.
-func (s *Store) CreateInstanceV2(ctx context.Context, environmentID string, instanceCreate *InstanceMessage, creatorID int) (*InstanceMessage, error) {
+func (s *Store) CreateInstanceV2(ctx context.Context, instanceCreate *InstanceMessage, creatorID int) (*InstanceMessage, error) {
if err := validateDataSourceList(instanceCreate.DataSources); err != nil {
return nil, err
}
@@ -224,13 +224,13 @@ func (s *Store) CreateInstanceV2(ctx context.Context, environmentID string, inst
// TODO(d): use the same query for environment.
environment, err := s.getEnvironmentImplV2(ctx, tx, &FindEnvironmentMessage{
- ResourceID: &environmentID,
+ ResourceID: &instanceCreate.EnvironmentID,
})
if err != nil {
return nil, err
}
if environment == nil {
- return nil, common.Errorf(common.NotFound, "environment %s not found", environmentID)
+ return nil, common.Errorf(common.NotFound, "environment %s not found", instanceCreate.EnvironmentID)
}
var instanceID int
@@ -279,7 +279,7 @@ func (s *Store) CreateInstanceV2(ctx context.Context, environmentID string, inst
}
instance := &InstanceMessage{
- EnvironmentID: environmentID,
+ EnvironmentID: instanceCreate.EnvironmentID,
ResourceID: instanceCreate.ResourceID,
UID: instanceID,
Title: instanceCreate.Title,
diff --git a/frontend/src/components/DatabaseDetail/Settings/components/Secrets.vue b/frontend/src/components/DatabaseDetail/Settings/components/Secrets.vue
index e91e659698..bf810ad5ae 100644
--- a/frontend/src/components/DatabaseDetail/Settings/components/Secrets.vue
+++ b/frontend/src/components/DatabaseDetail/Settings/components/Secrets.vue
@@ -223,7 +223,7 @@ const secretList = ref<Secret[]>([]);
const ready = ref(false);
const parent = computed(() => {
const { database } = props;
- return `environments/${database.instance.environment.resourceId}/instances/${database.instance.resourceId}/databases/${database.name}`;
+ return `instances/${database.instance.resourceId}/databases/${database.name}`;
});
const detail = ref<Detail>();
const showFeatureModal = ref(false);
diff --git a/frontend/src/components/SlowQuery/Panel/types.ts b/frontend/src/components/SlowQuery/Panel/types.ts
index abad4865a2..8450726a44 100644
--- a/frontend/src/components/SlowQuery/Panel/types.ts
+++ b/frontend/src/components/SlowQuery/Panel/types.ts
@@ -37,17 +37,16 @@ export const defaultSlowQueryFilterParams = (): SlowQueryFilterParams => {
export const buildListSlowQueriesRequest = (filter: SlowQueryFilterParams) => {
const request = {} as Partial<ListSlowQueriesRequest>;
- const { project, environment, instance, database, fromTime, toTime } = filter;
+ const { project, instance, database, fromTime, toTime } = filter;
- request.parent = "environments/-/instances/-/databases/-";
+ request.parent = "instances/-/databases/-";
if (database && database.id !== UNKNOWN_ID) {
- request.parent = `environments/${database.instance.environment.resourceId}/instances/${database.instance.resourceId}/databases/${database.name}`;
+ request.parent = `instances/${database.instance.resourceId}/databases/${database.name}`;
} else if (instance && instance.id !== UNKNOWN_ID) {
- request.parent = `environments/${instance.environment.resourceId}/instances/${instance.resourceId}/databases/-`;
- } else if (environment && environment.id !== UNKNOWN_ID) {
- request.parent = `environments/${environment.resourceId}/instances/-/databases/-`;
+ request.parent = `instances/${instance.resourceId}/databases/-`;
}
+ // TODO(d): fix environment filter.
const query: string[] = [];
if (project) {
query.push(`project = "projects/${project.resourceId}"`);
diff --git a/frontend/src/store/modules/slowQuery.ts b/frontend/src/store/modules/slowQuery.ts
index 7c0fd841e3..71b40417a9 100644
--- a/frontend/src/store/modules/slowQuery.ts
+++ b/frontend/src/store/modules/slowQuery.ts
@@ -31,7 +31,7 @@ export const useSlowQueryStore = defineStore("slow-query", () => {
};
const syncSlowQueriesByInstance = async (instance: Instance) => {
- const name = `environments/${instance.environment.resourceId}/instances/${instance.resourceId}`;
+ const name = `instances/${instance.resourceId}`;
await instanceServiceClient.syncSlowQueries({
instance: name,
});
@@ -70,7 +70,7 @@ const composeSlowQueryLogDatabase = async (
);
const databaseMap = databaseList.reduce((map, db) => {
if (db.id !== UNKNOWN_ID) {
- const resource = `environments/${db.instance.environment.resourceId}/instances/${db.instance.resourceId}/databases/${db.name}`;
+ const resource = `instances/${db.instance.resourceId}/databases/${db.name}`;
map.set(resource, db);
}
return map;
diff --git a/frontend/src/store/modules/v1/common.ts b/frontend/src/store/modules/v1/common.ts
index 1c014d19bf..b9a3209e13 100644
--- a/frontend/src/store/modules/v1/common.ts
+++ b/frontend/src/store/modules/v1/common.ts
@@ -58,9 +58,7 @@ export const getEnvironmentPathByLegacyEnvironment = (
};
export const getInstancePathByLegacyInstance = (instance: Instance): string => {
- return `${getEnvironmentPathByLegacyEnvironment(
- instance.environment
- )}/${instanceNamePrefix}${instance.resourceId}`;
+ return `${instanceNamePrefix}${instance.resourceId}`;
};
export const getDatabasePathByLegacyDatabase = (database: Database): string => {
diff --git a/frontend/src/types/proto/v1/anomaly_service.ts b/frontend/src/types/proto/v1/anomaly_service.ts
index d5e06df6d0..0d210278a1 100644
--- a/frontend/src/types/proto/v1/anomaly_service.ts
+++ b/frontend/src/types/proto/v1/anomaly_service.ts
@@ -11,7 +11,7 @@ export interface SearchAnomaliesRequest {
* follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.
* Only support filter by resource and type for now.
* For example:
- * Search the anomalies of a specific resource: 'resource="environments/{environemnt}/instances/{instance}".'
+ * Search the anomalies of a specific resource: 'resource="instances/{instance}".'
* Search the specified types of anomalies: 'type="DATABASE_BACKUP_POLICY_VIOLATION" | "MIGRATION_SCHEMA".'
*/
filter: string;
@@ -46,8 +46,8 @@ export interface Anomaly {
/**
* The resource that is the target of the operation.
* Format:
- * - Instance: environments/{environment}/instnaces/{instance}
- * - Database: environments/{environment}/instnaces/{instance}/databases/{database}
+ * - Instance: instnaces/{instance}
+ * - Database: instnaces/{instance}/databases/{database}
*/
resource: string;
/** type is the type of the anomaly. */
diff --git a/frontend/src/types/proto/v1/database_service.ts b/frontend/src/types/proto/v1/database_service.ts
index 30795595d6..95dd86e2e2 100644
--- a/frontend/src/types/proto/v1/database_service.ts
+++ b/frontend/src/types/proto/v1/database_service.ts
@@ -14,7 +14,7 @@ export const protobufPackage = "bytebase.v1";
export interface GetDatabaseRequest {
/**
* The name of the database to retrieve.
- * Format: environments/{environment}/instances/{instance}/databases/{database}
+ * Format: instances/{instance}/databases/{database}
*/
name: string;
}
@@ -22,8 +22,8 @@ export interface GetDatabaseRequest {
export interface ListDatabasesRequest {
/**
* The parent, which owns this collection of databases.
- * Format: environments/{environment}/instances/{instance}
- * Use "environments/-/instances/-" to list all databases from all environments.
+ * Format: instances/{instance}
+ * Use "instances/-" to list all databases.
*/
parent: string;
/**
@@ -63,7 +63,7 @@ export interface UpdateDatabaseRequest {
* The database to update.
*
* The database's `name` field is used to identify the database to update.
- * Format: environments/{environment}/instances/{instance}/databases/{database}
+ * Format: instances/{instance}/databases/{database}
*/
database?: Database;
/** The list of fields to update. */
@@ -73,7 +73,7 @@ export interface UpdateDatabaseRequest {
export interface BatchUpdateDatabasesRequest {
/**
* The parent resource shared by all databases being updated.
- * Format: environments/{environment}/instances/{instance}
+ * Format: instances/{instance}
* If the operation spans parents, a dash (-) may be accepted as a wildcard.
* We only support updating the project of databases for now.
*/
@@ -93,7 +93,7 @@ export interface BatchUpdateDatabasesResponse {
export interface GetDatabaseMetadataRequest {
/**
* The name of the database to retrieve metadata.
- * Format: environments/{environment}/instances/{instance}/databases/{database}
+ * Format: instances/{instance}/databases/{database}
*/
name: string;
}
@@ -101,7 +101,7 @@ export interface GetDatabaseMetadataRequest {
export interface GetDatabaseSchemaRequest {
/**
* The name of the database to retrieve schema.
- * Format: environments/{environment}/instances/{instance}/databases/{database}
+ * Format: instances/{instance}/databases/{database}
*/
name: string;
}
@@ -109,7 +109,7 @@ export interface GetDatabaseSchemaRequest {
export interface GetBackupSettingRequest {
/**
* The name of the database to retrieve backup setting.
- * Format: environments/{environment}/instances/{instance}/databases/{database}/backupSetting
+ * Format: instances/{instance}/databases/{database}/backupSetting
*/
name: string;
}
@@ -123,7 +123,7 @@ export interface UpdateBackupSettingRequest {
export interface CreateBackupRequest {
/**
* The parent resource where this backup will be created.
- * Format: environments/{environment}/instances/{instance}/databases/{database}
+ * Format: instances/{instance}/databases/{database}
*/
parent: string;
backup?: Backup;
@@ -133,7 +133,7 @@ export interface CreateBackupRequest {
export interface ListBackupRequest {
/**
* The parent resource where this backup will be created.
- * Format: environments/{environment}/instances/{instance}/databases/{database}
+ * Format: instances/{instance}/databases/{database}
*/
parent: string;
/**
@@ -166,7 +166,7 @@ export interface ListBackupResponse {
export interface Database {
/**
* The name of the database.
- * Format: environments/{environment}/instances/{instance}/databases/{database}
+ * Format: instances/{instance}/databases/{database}
* {database} is the database name in the instance.
*/
name: string;
@@ -371,7 +371,7 @@ export interface DatabaseSchema {
export interface BackupSetting {
/**
* The name of the database backup setting.
- * Format: environments/{environment}/instances/{instance}/databases/{database}/backupSettings
+ * Format: instances/{instance}/databases/{database}/backupSettings
*/
name: string;
/**
@@ -396,7 +396,7 @@ export interface BackupSetting {
export interface Backup {
/**
* The resource name of the database backup. backup-name is specified by the client.
- * Format: environments/{environment}/instances/{instance}/databases/{database}/backups/{backup-name}
+ * Format: instances/{instance}/databases/{database}/backups/{backup-name}
*/
name: string;
/** The timestamp when the backup resource was created initally. */
@@ -513,7 +513,7 @@ export function backup_BackupStateToJSON(object: Backup_BackupState): string {
/** ListSlowQueriesRequest is the request of listing slow query. */
export interface ListSlowQueriesRequest {
- /** Format: environments/{environment}/instances/{instance}/databases/{database} */
+ /** Format: instances/{instance}/databases/{database} */
parent: string;
/**
* The filter of the slow query log.
@@ -550,7 +550,7 @@ export interface ListSlowQueriesResponse {
export interface SlowQueryLog {
/**
* The resource of the slow query log.
- * The format is "environments/{environment}/instances/{instance}/databases/{database}".
+ * The format is "instances/{instance}/databases/{database}".
*/
resource: string;
/**
@@ -609,7 +609,7 @@ export interface SlowQueryDetails {
export interface ListSecretsRequest {
/**
* The parent of the secret.
- * Format: environments/{environment}/instances/{instance}/databases/{database}
+ * Format: instances/{instance}/databases/{database}
*/
parent: string;
/**
@@ -652,7 +652,7 @@ export interface DeleteSecretRequest {
/**
* The name of the secret to be deleted.
* Format:
- * environments/{environment}/instances/{instance}/databases/{database}/secrets/{secret}
+ * instances/{instance}/databases/{database}/secrets/{secret}
*/
name: string;
}
@@ -662,7 +662,7 @@ export interface Secret {
/**
* name is the unique name of the secret, which is specified by the client.
* Format:
- * environments/{environment}/instances/{instance}/databases/{database}/secrets/{secret}
+ * instances/{instance}/databases/{database}/secrets/{secret}
*/
name: string;
/** Not used. The timestamp when the secret resource was created initally. */
@@ -677,7 +677,7 @@ export interface Secret {
/** AdviseIndexRequest is the request of advising index. */
export interface AdviseIndexRequest {
- /** Format: environments/{environment}/instances/{instance}/databases/{database} */
+ /** Format: instances/{instance}/databases/{database} */
parent: string;
/** The statement to be advised. */
statement: string;
@@ -4543,9 +4543,9 @@ export const DatabaseServiceDefinition = {
8410: [new Uint8Array([4, 110, 97, 109, 101])],
578365826: [
new Uint8Array([
- 51,
+ 36,
18,
- 49,
+ 34,
47,
118,
49,
@@ -4556,21 +4556,6 @@ export const DatabaseServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -4611,9 +4596,9 @@ export const DatabaseServiceDefinition = {
8410: [new Uint8Array([0])],
578365826: [
new Uint8Array([
- 51,
+ 36,
18,
- 49,
+ 34,
47,
118,
49,
@@ -4626,21 +4611,6 @@ export const DatabaseServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -4703,7 +4673,7 @@ export const DatabaseServiceDefinition = {
],
578365826: [
new Uint8Array([
- 70,
+ 55,
58,
8,
100,
@@ -4715,7 +4685,7 @@ export const DatabaseServiceDefinition = {
115,
101,
50,
- 58,
+ 43,
47,
118,
49,
@@ -4735,21 +4705,6 @@ export const DatabaseServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -4789,12 +4744,12 @@ export const DatabaseServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 66,
+ 51,
58,
1,
42,
34,
- 61,
+ 46,
47,
118,
49,
@@ -4807,21 +4762,6 @@ export const DatabaseServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -4871,9 +4811,9 @@ export const DatabaseServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 60,
+ 45,
18,
- 58,
+ 43,
47,
118,
49,
@@ -4884,21 +4824,6 @@ export const DatabaseServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -4947,9 +4872,9 @@ export const DatabaseServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 58,
+ 43,
18,
- 56,
+ 41,
47,
118,
49,
@@ -4960,21 +4885,6 @@ export const DatabaseServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -5021,9 +4931,9 @@ export const DatabaseServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 65,
+ 50,
18,
- 63,
+ 48,
47,
118,
49,
@@ -5034,21 +4944,6 @@ export const DatabaseServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -5102,7 +4997,7 @@ export const DatabaseServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 82,
+ 67,
58,
7,
115,
@@ -5113,7 +5008,7 @@ export const DatabaseServiceDefinition = {
110,
103,
50,
- 71,
+ 56,
47,
118,
49,
@@ -5132,21 +5027,6 @@ export const DatabaseServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -5200,7 +5080,7 @@ export const DatabaseServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 69,
+ 54,
58,
6,
98,
@@ -5210,7 +5090,7 @@ export const DatabaseServiceDefinition = {
117,
112,
34,
- 59,
+ 44,
47,
118,
49,
@@ -5223,21 +5103,6 @@ export const DatabaseServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -5286,9 +5151,9 @@ export const DatabaseServiceDefinition = {
8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],
578365826: [
new Uint8Array([
- 61,
+ 46,
18,
- 59,
+ 44,
47,
118,
49,
@@ -5301,21 +5166,6 @@ export const DatabaseServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -5364,9 +5214,9 @@ export const DatabaseServiceDefinition = {
8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],
578365826: [
new Uint8Array([
- 65,
+ 50,
18,
- 63,
+ 48,
47,
118,
49,
@@ -5379,21 +5229,6 @@ export const DatabaseServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -5446,9 +5281,9 @@ export const DatabaseServiceDefinition = {
8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],
578365826: [
new Uint8Array([
- 61,
+ 46,
18,
- 59,
+ 44,
47,
118,
49,
@@ -5461,21 +5296,6 @@ export const DatabaseServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -5523,7 +5343,7 @@ export const DatabaseServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 76,
+ 61,
58,
6,
115,
@@ -5533,7 +5353,7 @@ export const DatabaseServiceDefinition = {
101,
116,
50,
- 66,
+ 51,
47,
118,
49,
@@ -5551,21 +5371,6 @@ export const DatabaseServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -5615,9 +5420,9 @@ export const DatabaseServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 61,
+ 46,
42,
- 59,
+ 44,
47,
118,
49,
@@ -5628,21 +5433,6 @@ export const DatabaseServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -5693,9 +5483,9 @@ export const DatabaseServiceDefinition = {
8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],
578365826: [
new Uint8Array([
- 65,
+ 50,
34,
- 63,
+ 48,
47,
118,
49,
@@ -5708,21 +5498,6 @@ export const DatabaseServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
diff --git a/frontend/src/types/proto/v1/instance_role_service.ts b/frontend/src/types/proto/v1/instance_role_service.ts
index 4fe1fe9c21..96880e7308 100644
--- a/frontend/src/types/proto/v1/instance_role_service.ts
+++ b/frontend/src/types/proto/v1/instance_role_service.ts
@@ -9,7 +9,7 @@ export const protobufPackage = "bytebase.v1";
export interface GetInstanceRoleRequest {
/**
* The name of the role to retrieve.
- * Format: environments/{environment}/instances/{instance}/roles/{role name}
+ * Format: instances/{instance}/roles/{role name}
* The role name is the unique name for the role.
*/
name: string;
@@ -18,7 +18,7 @@ export interface GetInstanceRoleRequest {
export interface ListInstanceRolesRequest {
/**
* The parent, which owns this collection of roles.
- * Format: environments/{environment}/instances/{instance}
+ * Format: instances/{instance}
*/
parent: string;
/**
@@ -51,7 +51,7 @@ export interface ListInstanceRolesResponse {
export interface CreateInstanceRoleRequest {
/**
* The parent resource where this role will be created.
- * Format: environments/{environment}/instances/{instance}
+ * Format: instances/{instance}
*/
parent: string;
/** The role to create. */
@@ -62,8 +62,8 @@ export interface UpdateInstanceRoleRequest {
/**
* The role to update.
*
- * The role's `name`, `environment` and `instance` field is used to identify the role to update.
- * Format: environments/{environment}/instances/{instance}/roles/{role name}
+ * The role's `name` and `instance` field is used to identify the role to update.
+ * Format: instances/{instance}/roles/{role name}
*/
role?: InstanceRole;
/** The list of fields to update. */
@@ -73,7 +73,7 @@ export interface UpdateInstanceRoleRequest {
export interface DeleteInstanceRoleRequest {
/**
* The name of the role to delete.
- * Format: environments/{environment}/instances/{instance}/roles/{role name}
+ * Format: instances/{instance}/roles/{role name}
*/
name: string;
}
@@ -81,7 +81,7 @@ export interface DeleteInstanceRoleRequest {
export interface UndeleteInstanceRoleRequest {
/**
* The name of the deleted role.
- * Format: environments/{environment}/instances/{instance}/roles/{role name}
+ * Format: instances/{instance}/roles/{role name}
*/
name: string;
}
@@ -90,7 +90,7 @@ export interface UndeleteInstanceRoleRequest {
export interface InstanceRole {
/**
* The name of the role.
- * Format: environments/{environment}/instances/{instance}/roles/{role name}
+ * Format: instances/{instance}/roles/{role name}
* The role name is the unique name for the role.
*/
name: string;
@@ -735,9 +735,9 @@ export const InstanceRoleServiceDefinition = {
8410: [new Uint8Array([4, 110, 97, 109, 101])],
578365826: [
new Uint8Array([
- 47,
+ 32,
18,
- 45,
+ 30,
47,
118,
49,
@@ -748,21 +748,6 @@ export const InstanceRoleServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -799,9 +784,9 @@ export const InstanceRoleServiceDefinition = {
8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],
578365826: [
new Uint8Array([
- 47,
+ 32,
18,
- 45,
+ 30,
47,
118,
49,
@@ -814,21 +799,6 @@ export const InstanceRoleServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -863,7 +833,7 @@ export const InstanceRoleServiceDefinition = {
8410: [new Uint8Array([11, 112, 97, 114, 101, 110, 116, 44, 114, 111, 108, 101])],
578365826: [
new Uint8Array([
- 53,
+ 38,
58,
4,
114,
@@ -871,7 +841,7 @@ export const InstanceRoleServiceDefinition = {
108,
101,
34,
- 45,
+ 30,
47,
118,
49,
@@ -884,21 +854,6 @@ export const InstanceRoleServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -933,7 +888,7 @@ export const InstanceRoleServiceDefinition = {
8410: [new Uint8Array([16, 114, 111, 108, 101, 44, 117, 112, 100, 97, 116, 101, 95, 109, 97, 115, 107])],
578365826: [
new Uint8Array([
- 58,
+ 43,
58,
4,
114,
@@ -941,7 +896,7 @@ export const InstanceRoleServiceDefinition = {
108,
101,
50,
- 50,
+ 35,
47,
118,
49,
@@ -957,21 +912,6 @@ export const InstanceRoleServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -1008,9 +948,9 @@ export const InstanceRoleServiceDefinition = {
8410: [new Uint8Array([4, 110, 97, 109, 101])],
578365826: [
new Uint8Array([
- 47,
+ 32,
42,
- 45,
+ 30,
47,
118,
49,
@@ -1021,21 +961,6 @@ export const InstanceRoleServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -1071,12 +996,12 @@ export const InstanceRoleServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 59,
+ 44,
58,
1,
42,
34,
- 54,
+ 39,
47,
118,
49,
@@ -1087,21 +1012,6 @@ export const InstanceRoleServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
diff --git a/frontend/src/types/proto/v1/instance_service.ts b/frontend/src/types/proto/v1/instance_service.ts
index 8a45e15b1a..aa4c074395 100644
--- a/frontend/src/types/proto/v1/instance_service.ts
+++ b/frontend/src/types/proto/v1/instance_service.ts
@@ -49,18 +49,12 @@ export function dataSourceTypeToJSON(object: DataSourceType): string {
export interface GetInstanceRequest {
/**
* The name of the instance to retrieve.
- * Format: environments/{environment}/instances/{instance}
+ * Format: instances/{instance}
*/
name: string;
}
export interface ListInstancesRequest {
- /**
- * The parent, which owns this collection of instances.
- * Format: environments/{environment}
- * Use "environments/-" to list all instances from all environments.
- */
- parent: string;
/**
* The maximum number of instances to return. The service may return fewer than
* this value.
@@ -91,11 +85,6 @@ export interface ListInstancesResponse {
}
export interface CreateInstanceRequest {
- /**
- * The parent resource where this instance will be created.
- * Format: environments/{environment}
- */
- parent: string;
/** The instance to create. */
instance?: Instance;
/**
@@ -113,7 +102,7 @@ export interface UpdateInstanceRequest {
* The instance to update.
*
* The instance's `name` field is used to identify the instance to update.
- * Format: environments/{environment}/instances/{instance}
+ * Format: instances/{instance}
*/
instance?: Instance;
/** The list of fields to update. */
@@ -123,7 +112,7 @@ export interface UpdateInstanceRequest {
export interface DeleteInstanceRequest {
/**
* The name of the instance to delete.
- * Format: environments/{environment}/instances/{instance}
+ * Format: instances/{instance}
*/
name: string;
/** If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed. */
@@ -133,7 +122,7 @@ export interface DeleteInstanceRequest {
export interface UndeleteInstanceRequest {
/**
* The name of the deleted instance.
- * Format: environments/{environment}/instances/{instance}
+ * Format: instances/{instance}
*/
name: string;
}
@@ -141,7 +130,7 @@ export interface UndeleteInstanceRequest {
export interface AddDataSourceRequest {
/**
* The name of the instance to add a data source to.
- * Format: environments/{environment}/instances/{instance}
+ * Format: instances/{instance}
*/
instance: string;
/**
@@ -154,7 +143,7 @@ export interface AddDataSourceRequest {
export interface RemoveDataSourceRequest {
/**
* The name of the instance to remove a data source from.
- * Format: environments/{environment}/instances/{instance}
+ * Format: instances/{instance}
*/
instance: string;
/**
@@ -167,7 +156,7 @@ export interface RemoveDataSourceRequest {
export interface UpdateDataSourceRequest {
/**
* The name of the instance to update a data source.
- * Format: environments/{environment}/instances/{instance}
+ * Format: instances/{instance}
*/
instance: string;
/** Identified by type. */
@@ -179,7 +168,7 @@ export interface UpdateDataSourceRequest {
export interface SyncSlowQueriesRequest {
/**
* The name of the instance to sync slow queries.
- * Format: environments/{environment}/instances/{instance}
+ * Format: instances/{instance}
*/
instance: string;
}
@@ -187,7 +176,7 @@ export interface SyncSlowQueriesRequest {
export interface Instance {
/**
* The name of the instance.
- * Format: environments/{environment}/instances/{instance}
+ * Format: instances/{instance}
*/
name: string;
/** The system-assigned, unique identifier for a resource. */
@@ -197,6 +186,11 @@ export interface Instance {
engine: Engine;
externalLink: string;
dataSources: DataSource[];
+ /**
+ * The environment resource.
+ * Format: environments/prod where prod is the environment resource ID.
+ */
+ environment: string;
}
export interface DataSource {
@@ -295,22 +289,19 @@ export const GetInstanceRequest = {
};
function createBaseListInstancesRequest(): ListInstancesRequest {
- return { parent: "", pageSize: 0, pageToken: "", showDeleted: false };
+ return { pageSize: 0, pageToken: "", showDeleted: false };
}
export const ListInstancesRequest = {
encode(message: ListInstancesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.parent !== "") {
- writer.uint32(10).string(message.parent);
- }
if (message.pageSize !== 0) {
- writer.uint32(16).int32(message.pageSize);
+ writer.uint32(8).int32(message.pageSize);
}
if (message.pageToken !== "") {
- writer.uint32(26).string(message.pageToken);
+ writer.uint32(18).string(message.pageToken);
}
if (message.showDeleted === true) {
- writer.uint32(32).bool(message.showDeleted);
+ writer.uint32(24).bool(message.showDeleted);
}
return writer;
},
@@ -323,28 +314,21 @@ export const ListInstancesRequest = {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
- if (tag !== 10) {
- break;
- }
-
- message.parent = reader.string();
- continue;
- case 2:
- if (tag !== 16) {
+ if (tag !== 8) {
break;
}
message.pageSize = reader.int32();
continue;
- case 3:
- if (tag !== 26) {
+ case 2:
+ if (tag !== 18) {
break;
}
message.pageToken = reader.string();
continue;
- case 4:
- if (tag !== 32) {
+ case 3:
+ if (tag !== 24) {
break;
}
@@ -361,7 +345,6 @@ export const ListInstancesRequest = {
fromJSON(object: any): ListInstancesRequest {
return {
- parent: isSet(object.parent) ? String(object.parent) : "",
pageSize: isSet(object.pageSize) ? Number(object.pageSize) : 0,
pageToken: isSet(object.pageToken) ? String(object.pageToken) : "",
showDeleted: isSet(object.showDeleted) ? Boolean(object.showDeleted) : false,
@@ -370,7 +353,6 @@ export const ListInstancesRequest = {
toJSON(message: ListInstancesRequest): unknown {
const obj: any = {};
- message.parent !== undefined && (obj.parent = message.parent);
message.pageSize !== undefined && (obj.pageSize = Math.round(message.pageSize));
message.pageToken !== undefined && (obj.pageToken = message.pageToken);
message.showDeleted !== undefined && (obj.showDeleted = message.showDeleted);
@@ -383,7 +365,6 @@ export const ListInstancesRequest = {
fromPartial(object: DeepPartial<ListInstancesRequest>): ListInstancesRequest {
const message = createBaseListInstancesRequest();
- message.parent = object.parent ?? "";
message.pageSize = object.pageSize ?? 0;
message.pageToken = object.pageToken ?? "";
message.showDeleted = object.showDeleted ?? false;
@@ -467,19 +448,16 @@ export const ListInstancesResponse = {
};
function createBaseCreateInstanceRequest(): CreateInstanceRequest {
- return { parent: "", instance: undefined, instanceId: "" };
+ return { instance: undefined, instanceId: "" };
}
export const CreateInstanceRequest = {
encode(message: CreateInstanceRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.parent !== "") {
- writer.uint32(10).string(message.parent);
- }
if (message.instance !== undefined) {
- Instance.encode(message.instance, writer.uint32(18).fork()).ldelim();
+ Instance.encode(message.instance, writer.uint32(10).fork()).ldelim();
}
if (message.instanceId !== "") {
- writer.uint32(26).string(message.instanceId);
+ writer.uint32(18).string(message.instanceId);
}
return writer;
},
@@ -496,20 +474,13 @@ export const CreateInstanceRequest = {
break;
}
- message.parent = reader.string();
+ message.instance = Instance.decode(reader, reader.uint32());
continue;
case 2:
if (tag !== 18) {
break;
}
- message.instance = Instance.decode(reader, reader.uint32());
- continue;
- case 3:
- if (tag !== 26) {
- break;
- }
-
message.instanceId = reader.string();
continue;
}
@@ -523,7 +494,6 @@ export const CreateInstanceRequest = {
fromJSON(object: any): CreateInstanceRequest {
return {
- parent: isSet(object.parent) ? String(object.parent) : "",
instance: isSet(object.instance) ? Instance.fromJSON(object.instance) : undefined,
instanceId: isSet(object.instanceId) ? String(object.instanceId) : "",
};
@@ -531,7 +501,6 @@ export const CreateInstanceRequest = {
toJSON(message: CreateInstanceRequest): unknown {
const obj: any = {};
- message.parent !== undefined && (obj.parent = message.parent);
message.instance !== undefined && (obj.instance = message.instance ? Instance.toJSON(message.instance) : undefined);
message.instanceId !== undefined && (obj.instanceId = message.instanceId);
return obj;
@@ -543,7 +512,6 @@ export const CreateInstanceRequest = {
fromPartial(object: DeepPartial<CreateInstanceRequest>): CreateInstanceRequest {
const message = createBaseCreateInstanceRequest();
- message.parent = object.parent ?? "";
message.instance = (object.instance !== undefined && object.instance !== null)
? Instance.fromPartial(object.instance)
: undefined;
@@ -1044,7 +1012,7 @@ export const SyncSlowQueriesRequest = {
};
function createBaseInstance(): Instance {
- return { name: "", uid: "", state: 0, title: "", engine: 0, externalLink: "", dataSources: [] };
+ return { name: "", uid: "", state: 0, title: "", engine: 0, externalLink: "", dataSources: [], environment: "" };
}
export const Instance = {
@@ -1070,6 +1038,9 @@ export const Instance = {
for (const v of message.dataSources) {
DataSource.encode(v!, writer.uint32(58).fork()).ldelim();
}
+ if (message.environment !== "") {
+ writer.uint32(66).string(message.environment);
+ }
return writer;
},
@@ -1129,6 +1100,13 @@ export const Instance = {
message.dataSources.push(DataSource.decode(reader, reader.uint32()));
continue;
+ case 8:
+ if (tag !== 66) {
+ break;
+ }
+
+ message.environment = reader.string();
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -1147,6 +1125,7 @@ export const Instance = {
engine: isSet(object.engine) ? engineFromJSON(object.engine) : 0,
externalLink: isSet(object.externalLink) ? String(object.externalLink) : "",
dataSources: Array.isArray(object?.dataSources) ? object.dataSources.map((e: any) => DataSource.fromJSON(e)) : [],
+ environment: isSet(object.environment) ? String(object.environment) : "",
};
},
@@ -1163,6 +1142,7 @@ export const Instance = {
} else {
obj.dataSources = [];
}
+ message.environment !== undefined && (obj.environment = message.environment);
return obj;
},
@@ -1179,6 +1159,7 @@ export const Instance = {
message.engine = object.engine ?? 0;
message.externalLink = object.externalLink ?? "";
message.dataSources = object.dataSources?.map((e) => DataSource.fromPartial(e)) || [];
+ message.environment = object.environment ?? "";
return message;
},
};
@@ -1511,9 +1492,9 @@ export const InstanceServiceDefinition = {
8410: [new Uint8Array([4, 110, 97, 109, 101])],
578365826: [
new Uint8Array([
- 39,
+ 24,
18,
- 37,
+ 22,
47,
118,
49,
@@ -1524,21 +1505,6 @@ export const InstanceServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -1564,51 +1530,8 @@ export const InstanceServiceDefinition = {
responseStream: false,
options: {
_unknownFields: {
- 8410: [new Uint8Array([6, 112, 97, 114, 101, 110, 116])],
- 578365826: [
- new Uint8Array([
- 39,
- 18,
- 37,
- 47,
- 118,
- 49,
- 47,
- 123,
- 112,
- 97,
- 114,
- 101,
- 110,
- 116,
- 61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 125,
- 47,
- 105,
- 110,
- 115,
- 116,
- 97,
- 110,
- 99,
- 101,
- 115,
- ]),
- ],
+ 8410: [new Uint8Array([0])],
+ 578365826: [new Uint8Array([15, 18, 13, 47, 118, 49, 47, 105, 110, 115, 116, 97, 110, 99, 101, 115])],
},
},
},
@@ -1620,10 +1543,10 @@ export const InstanceServiceDefinition = {
responseStream: false,
options: {
_unknownFields: {
- 8410: [new Uint8Array([15, 112, 97, 114, 101, 110, 116, 44, 105, 110, 115, 116, 97, 110, 99, 101])],
+ 8410: [new Uint8Array([8, 105, 110, 115, 116, 97, 110, 99, 101])],
578365826: [
new Uint8Array([
- 49,
+ 25,
58,
8,
105,
@@ -1635,35 +1558,11 @@ export const InstanceServiceDefinition = {
99,
101,
34,
- 37,
+ 13,
47,
118,
49,
47,
- 123,
- 112,
- 97,
- 114,
- 101,
- 110,
- 116,
- 61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 125,
- 47,
105,
110,
115,
@@ -1713,7 +1612,7 @@ export const InstanceServiceDefinition = {
],
578365826: [
new Uint8Array([
- 58,
+ 43,
58,
8,
105,
@@ -1725,7 +1624,7 @@ export const InstanceServiceDefinition = {
99,
101,
50,
- 46,
+ 31,
47,
118,
49,
@@ -1745,21 +1644,6 @@ export const InstanceServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -1788,9 +1672,9 @@ export const InstanceServiceDefinition = {
8410: [new Uint8Array([4, 110, 97, 109, 101])],
578365826: [
new Uint8Array([
- 39,
+ 24,
42,
- 37,
+ 22,
47,
118,
49,
@@ -1801,21 +1685,6 @@ export const InstanceServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -1843,12 +1712,12 @@ export const InstanceServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 51,
+ 36,
58,
1,
42,
34,
- 46,
+ 31,
47,
118,
49,
@@ -1859,21 +1728,6 @@ export const InstanceServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -1910,12 +1764,12 @@ export const InstanceServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 60,
+ 45,
58,
1,
42,
34,
- 55,
+ 40,
47,
118,
49,
@@ -1930,21 +1784,6 @@ export const InstanceServiceDefinition = {
99,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -1986,12 +1825,12 @@ export const InstanceServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 63,
+ 48,
58,
1,
42,
34,
- 58,
+ 43,
47,
118,
49,
@@ -2006,21 +1845,6 @@ export const InstanceServiceDefinition = {
99,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -2065,12 +1889,12 @@ export const InstanceServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 63,
+ 48,
58,
1,
42,
50,
- 58,
+ 43,
47,
118,
49,
@@ -2085,21 +1909,6 @@ export const InstanceServiceDefinition = {
99,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -2144,12 +1953,12 @@ export const InstanceServiceDefinition = {
_unknownFields: {
578365826: [
new Uint8Array([
- 62,
+ 47,
58,
1,
42,
34,
- 57,
+ 42,
47,
118,
49,
@@ -2164,21 +1973,6 @@ export const InstanceServiceDefinition = {
99,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
diff --git a/frontend/src/types/proto/v1/org_policy_service.ts b/frontend/src/types/proto/v1/org_policy_service.ts
index f3024af65f..b22df4baf5 100644
--- a/frontend/src/types/proto/v1/org_policy_service.ts
+++ b/frontend/src/types/proto/v1/org_policy_service.ts
@@ -335,8 +335,8 @@ export interface CreatePolicyRequest {
* The parent resource where this instance will be created.
* Workspace resource name: "".
* Environment resource name: environments/environment-id.
- * Instance resource name: environments/environment-id/instances/instance-id.
- * Database resource name: environments/environment-id/instances/instance-id/databases/database-name.
+ * Instance resource name: instances/instance-id.
+ * Database resource name: instances/instance-id/databases/database-name.
*/
parent: string;
/** The policy to create. */
@@ -352,8 +352,8 @@ export interface UpdatePolicyRequest {
* Format: {resource name}/policies/{policy type}
* Workspace resource name: "".
* Environment resource name: environments/environment-id.
- * Instance resource name: environments/environment-id/instances/instance-id.
- * Database resource name: environments/environment-id/instances/instance-id/databases/database-name.
+ * Instance resource name: instances/instance-id.
+ * Database resource name: instances/instance-id/databases/database-name.
*/
policy?: Policy;
/** The list of fields to update. */
@@ -371,8 +371,8 @@ export interface DeletePolicyRequest {
* Format: {resource name}/policies/{policy type}
* Workspace resource name: "".
* Environment resource name: environments/environment-id.
- * Instance resource name: environments/environment-id/instances/instance-id.
- * Database resource name: environments/environment-id/instances/instance-id/databases/database-name.
+ * Instance resource name: instances/instance-id.
+ * Database resource name: instances/instance-id/databases/database-name.
*/
name: string;
}
@@ -429,8 +429,8 @@ export interface Policy {
* Format: {resource name}/policies/{policy type}
* Workspace resource name: "".
* Environment resource name: environments/environment-id.
- * Instance resource name: environments/environment-id/instances/instance-id.
- * Database resource name: environments/environment-id/instances/instance-id/databases/database-name.
+ * Instance resource name: instances/instance-id.
+ * Database resource name: instances/instance-id/databases/database-name.
*/
name: string;
/** The system-assigned, unique identifier for a resource. */
@@ -2019,7 +2019,7 @@ export const OrgPolicyServiceDefinition = {
8410: [new Uint8Array([4, 110, 97, 109, 101])],
578365826: [
new Uint8Array([
- 215,
+ 185,
1,
90,
34,
@@ -2098,9 +2098,9 @@ export const OrgPolicyServiceDefinition = {
42,
125,
90,
- 50,
+ 35,
18,
- 48,
+ 33,
47,
118,
49,
@@ -2111,21 +2111,6 @@ export const OrgPolicyServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -2150,9 +2135,9 @@ export const OrgPolicyServiceDefinition = {
42,
125,
90,
- 62,
+ 47,
18,
- 60,
+ 45,
47,
118,
49,
@@ -2163,21 +2148,6 @@ export const OrgPolicyServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -2252,7 +2222,7 @@ export const OrgPolicyServiceDefinition = {
8410: [new Uint8Array([0])],
578365826: [
new Uint8Array([
- 206,
+ 176,
1,
90,
34,
@@ -2331,9 +2301,9 @@ export const OrgPolicyServiceDefinition = {
101,
115,
90,
- 50,
+ 35,
18,
- 48,
+ 33,
47,
118,
49,
@@ -2346,21 +2316,6 @@ export const OrgPolicyServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -2383,9 +2338,9 @@ export const OrgPolicyServiceDefinition = {
101,
115,
90,
- 62,
+ 47,
18,
- 60,
+ 45,
47,
118,
49,
@@ -2398,21 +2353,6 @@ export const OrgPolicyServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -2476,7 +2416,7 @@ export const OrgPolicyServiceDefinition = {
8410: [new Uint8Array([13, 112, 97, 114, 101, 110, 116, 44, 112, 111, 108, 105, 99, 121])],
578365826: [
new Uint8Array([
- 246,
+ 216,
1,
58,
6,
@@ -2579,7 +2519,7 @@ export const OrgPolicyServiceDefinition = {
101,
115,
90,
- 58,
+ 43,
58,
6,
112,
@@ -2589,7 +2529,7 @@ export const OrgPolicyServiceDefinition = {
99,
121,
34,
- 48,
+ 33,
47,
118,
49,
@@ -2602,21 +2542,6 @@ export const OrgPolicyServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -2639,7 +2564,7 @@ export const OrgPolicyServiceDefinition = {
101,
115,
90,
- 70,
+ 55,
58,
6,
112,
@@ -2649,7 +2574,7 @@ export const OrgPolicyServiceDefinition = {
99,
121,
34,
- 60,
+ 45,
47,
118,
49,
@@ -2662,21 +2587,6 @@ export const OrgPolicyServiceDefinition = {
110,
116,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -2742,7 +2652,7 @@ export const OrgPolicyServiceDefinition = {
],
578365826: [
new Uint8Array([
- 162,
+ 132,
2,
58,
6,
@@ -2859,7 +2769,7 @@ export const OrgPolicyServiceDefinition = {
42,
125,
90,
- 65,
+ 50,
58,
6,
112,
@@ -2869,7 +2779,7 @@ export const OrgPolicyServiceDefinition = {
99,
121,
50,
- 55,
+ 40,
47,
118,
49,
@@ -2887,21 +2797,6 @@ export const OrgPolicyServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -2926,7 +2821,7 @@ export const OrgPolicyServiceDefinition = {
42,
125,
90,
- 77,
+ 62,
58,
6,
112,
@@ -2936,7 +2831,7 @@ export const OrgPolicyServiceDefinition = {
99,
121,
50,
- 67,
+ 52,
47,
118,
49,
@@ -2954,21 +2849,6 @@ export const OrgPolicyServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -3050,7 +2930,7 @@ export const OrgPolicyServiceDefinition = {
8410: [new Uint8Array([4, 110, 97, 109, 101])],
578365826: [
new Uint8Array([
- 215,
+ 185,
1,
90,
34,
@@ -3129,9 +3009,9 @@ export const OrgPolicyServiceDefinition = {
42,
125,
90,
- 50,
+ 35,
42,
- 48,
+ 33,
47,
118,
49,
@@ -3142,21 +3022,6 @@ export const OrgPolicyServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
@@ -3181,9 +3046,9 @@ export const OrgPolicyServiceDefinition = {
42,
125,
90,
- 62,
+ 47,
42,
- 60,
+ 45,
47,
118,
49,
@@ -3194,21 +3059,6 @@ export const OrgPolicyServiceDefinition = {
109,
101,
61,
- 101,
- 110,
- 118,
- 105,
- 114,
- 111,
- 110,
- 109,
- 101,
- 110,
- 116,
- 115,
- 47,
- 42,
- 47,
105,
110,
115,
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 9a99874868..d503cd137b 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -446,7 +446,7 @@ Actuator concept is similar to the Spring Boot Actuator.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| resource | [string](#string) | | The resource that is the target of the operation. Format: - Instance: environments/{environment}/instnaces/{instance} - Database: environments/{environment}/instnaces/{instance}/databases/{database} |
+| resource | [string](#string) | | The resource that is the target of the operation. Format: - Instance: instnaces/{instance} - Database: instnaces/{instance}/databases/{database} |
| type | [Anomaly.AnomalyType](#bytebase-v1-Anomaly-AnomalyType) | | type is the type of the anomaly. |
| severity | [Anomaly.AnomalySeverity](#bytebase-v1-Anomaly-AnomalySeverity) | | severity is the severity of the anomaly. |
| instance_connection_detail | [Anomaly.InstanceConnectionDetail](#bytebase-v1-Anomaly-InstanceConnectionDetail) | | |
@@ -552,7 +552,7 @@ InstanceConnectionDetail is the detail for instance connection anomaly.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| filter | [string](#string) | | filter is the filter to apply on the search anomaly request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Only support filter by resource and type for now. For example: Search the anomalies of a specific resource: &#39;resource=&#34;environments/{environemnt}/instances/{instance}&#34;.&#39; Search the specified types of anomalies: &#39;type=&#34;DATABASE_BACKUP_POLICY_VIOLATION&#34; | &#34;MIGRATION_SCHEMA&#34;.&#39; |
+| filter | [string](#string) | | filter is the filter to apply on the search anomaly request, follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Only support filter by resource and type for now. For example: Search the anomalies of a specific resource: &#39;resource=&#34;instances/{instance}&#34;.&#39; Search the specified types of anomalies: &#39;type=&#34;DATABASE_BACKUP_POLICY_VIOLATION&#34; | &#34;MIGRATION_SCHEMA&#34;.&#39; |
| page_size | [int32](#int32) | | Not used. The maximum number of anomalies to return. The service may return fewer than this value. If unspecified, at most 50 anomalies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| page_token | [string](#string) | | Not used. A page token, received from a previous `SearchAnomalies` call. Provide this to retrieve the subsequent page.
@@ -1118,7 +1118,7 @@ AdviseIndexRequest is the request of advising index.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | Format: environments/{environment}/instances/{instance}/databases/{database} |
+| parent | [string](#string) | | Format: instances/{instance}/databases/{database} |
| statement | [string](#string) | | The statement to be advised. |
@@ -1151,7 +1151,7 @@ The message of the backup.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The resource name of the database backup. backup-name is specified by the client. Format: environments/{environment}/instances/{instance}/databases/{database}/backups/{backup-name} |
+| name | [string](#string) | | The resource name of the database backup. backup-name is specified by the client. Format: instances/{instance}/databases/{database}/backups/{backup-name} |
| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the backup resource was created initally. |
| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the backup resource was updated. |
| state | [Backup.BackupState](#bytebase-v1-Backup-BackupState) | | The state of the backup. |
@@ -1171,7 +1171,7 @@ BackupSetting is the setting for database backup.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the database backup setting. Format: environments/{environment}/instances/{instance}/databases/{database}/backupSettings |
+| name | [string](#string) | | The name of the database backup setting. Format: instances/{instance}/databases/{database}/backupSettings |
| backup_retain_duration | [google.protobuf.Duration](#google-protobuf-Duration) | | The default maximum age of a Backup created via this BackupPlan. If specified, a Backup will be automatically deleted after its age reaches. If not specified, Backups created under this BackupPlan will be deleted after 7 DAYS. It will be rounded up to the number of days. |
| cron_schedule | [string](#string) | | Cron(https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups. Support hour of day, day of week. (UTC time)
@@ -1191,7 +1191,7 @@ Default (empty): Disable automatic backup. |
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent resource shared by all databases being updated. Format: environments/{environment}/instances/{instance} If the operation spans parents, a dash (-) may be accepted as a wildcard. We only support updating the project of databases for now. |
+| parent | [string](#string) | | The parent resource shared by all databases being updated. Format: instances/{instance} If the operation spans parents, a dash (-) may be accepted as a wildcard. We only support updating the project of databases for now. |
| requests | [UpdateDatabaseRequest](#bytebase-v1-UpdateDatabaseRequest) | repeated | The request message specifying the resources to update. A maximum of 1000 databases can be modified in a batch. |
@@ -1244,7 +1244,7 @@ CreateBackupRequest is the request message for CreateBackup.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent resource where this backup will be created. Format: environments/{environment}/instances/{instance}/databases/{database} |
+| parent | [string](#string) | | The parent resource where this backup will be created. Format: instances/{instance}/databases/{database} |
| backup | [Backup](#bytebase-v1-Backup) | | |
@@ -1260,7 +1260,7 @@ CreateBackupRequest is the request message for CreateBackup.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the database. Format: environments/{environment}/instances/{instance}/databases/{database} {database} is the database name in the instance. |
+| name | [string](#string) | | The name of the database. Format: instances/{instance}/databases/{database} {database} is the database name in the instance. |
| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |
| sync_state | [State](#bytebase-v1-State) | | The existence of a database on latest sync. |
| successful_sync_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The latest synchronization time. |
@@ -1331,7 +1331,7 @@ DatabaseMetadata is the metadata for databases.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the secret to be deleted. Format: environments/{environment}/instances/{instance}/databases/{database}/secrets/{secret} |
+| name | [string](#string) | | The name of the secret to be deleted. Format: instances/{instance}/databases/{database}/secrets/{secret} |
@@ -1419,7 +1419,7 @@ FunctionMetadata is the metadata for functions.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the database to retrieve backup setting. Format: environments/{environment}/instances/{instance}/databases/{database}/backupSetting |
+| name | [string](#string) | | The name of the database to retrieve backup setting. Format: instances/{instance}/databases/{database}/backupSetting |
@@ -1434,7 +1434,7 @@ FunctionMetadata is the metadata for functions.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the database to retrieve metadata. Format: environments/{environment}/instances/{instance}/databases/{database} |
+| name | [string](#string) | | The name of the database to retrieve metadata. Format: instances/{instance}/databases/{database} |
@@ -1449,7 +1449,7 @@ FunctionMetadata is the metadata for functions.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the database to retrieve. Format: environments/{environment}/instances/{instance}/databases/{database} |
+| name | [string](#string) | | The name of the database to retrieve. Format: instances/{instance}/databases/{database} |
@@ -1464,7 +1464,7 @@ FunctionMetadata is the metadata for functions.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the database to retrieve schema. Format: environments/{environment}/instances/{instance}/databases/{database} |
+| name | [string](#string) | | The name of the database to retrieve schema. Format: instances/{instance}/databases/{database} |
@@ -1500,7 +1500,7 @@ ListBackupRequest is the request message for ListBackup.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent resource where this backup will be created. Format: environments/{environment}/instances/{instance}/databases/{database} |
+| parent | [string](#string) | | The parent resource where this backup will be created. Format: instances/{instance}/databases/{database} |
| page_size | [int32](#int32) | | Not used. The maximum number of backups to return. The service may return fewer than this value. If unspecified, at most 50 backups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| page_token | [string](#string) | | Not used. A page token, received from a previous `ListBackup` call. Provide this to retrieve the subsequent page.
@@ -1535,7 +1535,7 @@ When paginating, all other parameters provided to `ListBackup` must match the ca
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent, which owns this collection of databases. Format: environments/{environment}/instances/{instance} Use &#34;environments/-/instances/-&#34; to list all databases from all environments. |
+| parent | [string](#string) | | The parent, which owns this collection of databases. Format: instances/{instance} Use &#34;instances/-&#34; to list all databases. |
| page_size | [int32](#int32) | | The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| page_token | [string](#string) | | A page token, received from a previous `ListDatabases` call. Provide this to retrieve the subsequent page.
@@ -1571,7 +1571,7 @@ When paginating, all other parameters provided to `ListDatabases` must match the
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent of the secret. Format: environments/{environment}/instances/{instance}/databases/{database} |
+| parent | [string](#string) | | The parent of the secret. Format: instances/{instance}/databases/{database} |
| page_size | [int32](#int32) | | Not used. The maximum number of databases to return. The service may return fewer than this value. If unspecified, at most 50 databases will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| page_token | [string](#string) | | Not used. A page token, received from a previous `ListSecrets` call. Provide this to retrieve the subsequent page.
@@ -1606,7 +1606,7 @@ ListSlowQueriesRequest is the request of listing slow query.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | Format: environments/{environment}/instances/{instance}/databases/{database} |
+| parent | [string](#string) | | Format: instances/{instance}/databases/{database} |
| filter | [string](#string) | | The filter of the slow query log. follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax. Support filter by project and start_time in SlowQueryDetails for now. For example: Search the slow query log of the specific project: - the specific project: project = &#34;projects/{project}&#34; Search the slow query log that start_time after 2022-01-01T12:00:00.000Z: - start_time &gt; &#34;2022-01-01T12:00:00.000Z&#34; - Should use [RFC-3339 format](https://www.rfc-editor.org/rfc/rfc3339). - Currently we only support filtering down to date granularity. |
| order_by | [string](#string) | | The order by of the slow query log. Support order by count, latest_log_time, average_query_time, maximum_query_time, average_rows_sent, maximum_rows_sent, average_rows_examined, maximum_rows_examined for now. For example: - order by count: order_by = &#34;count&#34; - order by latest_log_time desc: order_by = &#34;latest_log_time desc&#34; Default: order by average_query_time desc. |
@@ -1657,7 +1657,7 @@ Secret is the secret of the database now.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | name is the unique name of the secret, which is specified by the client. Format: environments/{environment}/instances/{instance}/databases/{database}/secrets/{secret} |
+| name | [string](#string) | | name is the unique name of the secret, which is specified by the client. Format: instances/{instance}/databases/{database}/secrets/{secret} |
| created_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was created initally. |
| updated_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Not used. The timestamp when the secret resource was updated. |
| value | [string](#string) | | The value of the secret. |
@@ -1696,7 +1696,7 @@ SlowQueryLog is the slow query log.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| resource | [string](#string) | | The resource of the slow query log. The format is &#34;environments/{environment}/instances/{instance}/databases/{database}&#34;. |
+| resource | [string](#string) | | The resource of the slow query log. The format is &#34;instances/{instance}/databases/{database}&#34;. |
| project | [string](#string) | | The project of the slow query log. The format is &#34;projects/{project}&#34;. |
| statistics | [SlowQueryStatistics](#bytebase-v1-SlowQueryStatistics) | | The statistics of the slow query log. |
@@ -1782,7 +1782,7 @@ TableMetadata is the metadata for tables.
| ----- | ---- | ----- | ----------- |
| database | [Database](#bytebase-v1-Database) | | The database to update.
-The database&#39;s `name` field is used to identify the database to update. Format: environments/{environment}/instances/{instance}/databases/{database} |
+The database&#39;s `name` field is used to identify the database to update. Format: instances/{instance}/databases/{database} |
| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |
@@ -2683,7 +2683,7 @@ The identity provider&#39;s `name` field is used to identify the identity provid
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent resource where this role will be created. Format: environments/{environment}/instances/{instance} |
+| parent | [string](#string) | | The parent resource where this role will be created. Format: instances/{instance} |
| role | [InstanceRole](#bytebase-v1-InstanceRole) | | The role to create. |
@@ -2699,7 +2699,7 @@ The identity provider&#39;s `name` field is used to identify the identity provid
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the role to delete. Format: environments/{environment}/instances/{instance}/roles/{role name} |
+| name | [string](#string) | | The name of the role to delete. Format: instances/{instance}/roles/{role name} |
@@ -2714,7 +2714,7 @@ The identity provider&#39;s `name` field is used to identify the identity provid
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the role to retrieve. Format: environments/{environment}/instances/{instance}/roles/{role name} The role name is the unique name for the role. |
+| name | [string](#string) | | The name of the role to retrieve. Format: instances/{instance}/roles/{role name} The role name is the unique name for the role. |
@@ -2729,7 +2729,7 @@ InstanceRole is the API message for instance role.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the role. Format: environments/{environment}/instances/{instance}/roles/{role name} The role name is the unique name for the role. |
+| name | [string](#string) | | The name of the role. Format: instances/{instance}/roles/{role name} The role name is the unique name for the role. |
| role_name | [string](#string) | | The role name. It&#39;s unique within the instance. |
| password | [string](#string) | optional | The role password. |
| connection_limit | [int32](#int32) | optional | The connection count limit for this role. |
@@ -2749,7 +2749,7 @@ InstanceRole is the API message for instance role.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent, which owns this collection of roles. Format: environments/{environment}/instances/{instance} |
+| parent | [string](#string) | | The parent, which owns this collection of roles. Format: instances/{instance} |
| page_size | [int32](#int32) | | The maximum number of roles to return. The service may return fewer than this value. If unspecified, at most 50 roles will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| page_token | [string](#string) | | A page token, received from a previous `ListRoles` call. Provide this to retrieve the subsequent page.
@@ -2784,7 +2784,7 @@ When paginating, all other parameters provided to `ListRoles` must match the cal
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the deleted role. Format: environments/{environment}/instances/{instance}/roles/{role name} |
+| name | [string](#string) | | The name of the deleted role. Format: instances/{instance}/roles/{role name} |
@@ -2801,7 +2801,7 @@ When paginating, all other parameters provided to `ListRoles` must match the cal
| ----- | ---- | ----- | ----------- |
| role | [InstanceRole](#bytebase-v1-InstanceRole) | | The role to update.
-The role&#39;s `name`, `environment` and `instance` field is used to identify the role to update. Format: environments/{environment}/instances/{instance}/roles/{role name} |
+The role&#39;s `name` and `instance` field is used to identify the role to update. Format: instances/{instance}/roles/{role name} |
| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |
@@ -2848,7 +2848,7 @@ The role&#39;s `name`, `environment` and `instance` field is used to identify th
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| instance | [string](#string) | | The name of the instance to add a data source to. Format: environments/{environment}/instances/{instance} |
+| instance | [string](#string) | | The name of the instance to add a data source to. Format: instances/{instance} |
| data_sources | [DataSource](#bytebase-v1-DataSource) | | Identified by type. Only READ_ONLY data source can be added. |
@@ -2864,7 +2864,6 @@ The role&#39;s `name`, `environment` and `instance` field is used to identify th
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent resource where this instance will be created. Format: environments/{environment} |
| instance | [Instance](#bytebase-v1-Instance) | | The instance to create. |
| instance_id | [string](#string) | | The ID to use for the instance, which will become the final component of the instance&#39;s resource name.
@@ -2916,7 +2915,7 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the instance to delete. Format: environments/{environment}/instances/{instance} |
+| name | [string](#string) | | The name of the instance to delete. Format: instances/{instance} |
| force | [bool](#bool) | | If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed. |
@@ -2932,7 +2931,7 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the instance to retrieve. Format: environments/{environment}/instances/{instance} |
+| name | [string](#string) | | The name of the instance to retrieve. Format: instances/{instance} |
@@ -2947,13 +2946,14 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the instance. Format: environments/{environment}/instances/{instance} |
+| name | [string](#string) | | The name of the instance. Format: instances/{instance} |
| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |
| state | [State](#bytebase-v1-State) | | |
| title | [string](#string) | | |
| engine | [Engine](#bytebase-v1-Engine) | | |
| external_link | [string](#string) | | |
| data_sources | [DataSource](#bytebase-v1-DataSource) | repeated | |
+| environment | [string](#string) | | The environment resource. Format: environments/prod where prod is the environment resource ID. |
@@ -2968,7 +2968,6 @@ This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent, which owns this collection of instances. Format: environments/{environment} Use &#34;environments/-&#34; to list all instances from all environments. |
| page_size | [int32](#int32) | | The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 50 instances will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| page_token | [string](#string) | | A page token, received from a previous `ListInstances` call. Provide this to retrieve the subsequent page.
@@ -3004,7 +3003,7 @@ When paginating, all other parameters provided to `ListInstances` must match the
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| instance | [string](#string) | | The name of the instance to remove a data source from. Format: environments/{environment}/instances/{instance} |
+| instance | [string](#string) | | The name of the instance to remove a data source from. Format: instances/{instance} |
| data_sources | [DataSource](#bytebase-v1-DataSource) | | Identified by type. Only READ_ONLY data source can be removed. |
@@ -3020,7 +3019,7 @@ When paginating, all other parameters provided to `ListInstances` must match the
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| instance | [string](#string) | | The name of the instance to sync slow queries. Format: environments/{environment}/instances/{instance} |
+| instance | [string](#string) | | The name of the instance to sync slow queries. Format: instances/{instance} |
@@ -3035,7 +3034,7 @@ When paginating, all other parameters provided to `ListInstances` must match the
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the deleted instance. Format: environments/{environment}/instances/{instance} |
+| name | [string](#string) | | The name of the deleted instance. Format: instances/{instance} |
@@ -3050,7 +3049,7 @@ When paginating, all other parameters provided to `ListInstances` must match the
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| instance | [string](#string) | | The name of the instance to update a data source. Format: environments/{environment}/instances/{instance} |
+| instance | [string](#string) | | The name of the instance to update a data source. Format: instances/{instance} |
| data_sources | [DataSource](#bytebase-v1-DataSource) | | Identified by type. |
| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |
@@ -3069,7 +3068,7 @@ When paginating, all other parameters provided to `ListInstances` must match the
| ----- | ---- | ----- | ----------- |
| instance | [Instance](#bytebase-v1-Instance) | | The instance to update.
-The instance&#39;s `name` field is used to identify the instance to update. Format: environments/{environment}/instances/{instance} |
+The instance&#39;s `name` field is used to identify the instance to update. Format: instances/{instance} |
| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |
@@ -3311,7 +3310,7 @@ ACTION_SQL_EDITOR_QUERY is the type for SQL editor query. If user runs SQL in Re
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| parent | [string](#string) | | The parent resource where this instance will be created. Workspace resource name: &#34;&#34;. Environment resource name: environments/environment-id. Instance resource name: environments/environment-id/instances/instance-id. Database resource name: environments/environment-id/instances/instance-id/databases/database-name. |
+| parent | [string](#string) | | The parent resource where this instance will be created. Workspace resource name: &#34;&#34;. Environment resource name: environments/environment-id. Instance resource name: instances/instance-id. Database resource name: instances/instance-id/databases/database-name. |
| policy | [Policy](#bytebase-v1-Policy) | | The policy to create. |
| type | [PolicyType](#bytebase-v1-PolicyType) | | |
@@ -3328,7 +3327,7 @@ ACTION_SQL_EDITOR_QUERY is the type for SQL editor query. If user runs SQL in Re
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The policy&#39;s `name` field is used to identify the instance to update. Format: {resource name}/policies/{policy type} Workspace resource name: &#34;&#34;. Environment resource name: environments/environment-id. Instance resource name: environments/environment-id/instances/instance-id. Database resource name: environments/environment-id/instances/instance-id/databases/database-name. |
+| name | [string](#string) | | The policy&#39;s `name` field is used to identify the instance to update. Format: {resource name}/policies/{policy type} Workspace resource name: &#34;&#34;. Environment resource name: environments/environment-id. Instance resource name: instances/instance-id. Database resource name: instances/instance-id/databases/database-name. |
@@ -3428,7 +3427,7 @@ When paginating, all other parameters provided to `GetPolicies` must match the c
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name of the policy. Format: {resource name}/policies/{policy type} Workspace resource name: &#34;&#34;. Environment resource name: environments/environment-id. Instance resource name: environments/environment-id/instances/instance-id. Database resource name: environments/environment-id/instances/instance-id/databases/database-name. |
+| name | [string](#string) | | The name of the policy. Format: {resource name}/policies/{policy type} Workspace resource name: &#34;&#34;. Environment resource name: environments/environment-id. Instance resource name: instances/instance-id. Database resource name: instances/instance-id/databases/database-name. |
| uid | [string](#string) | | The system-assigned, unique identifier for a resource. |
| inherit_from_parent | [bool](#bool) | | |
| type | [PolicyType](#bytebase-v1-PolicyType) | | |
@@ -3541,7 +3540,7 @@ When paginating, all other parameters provided to `GetPolicies` must match the c
| ----- | ---- | ----- | ----------- |
| policy | [Policy](#bytebase-v1-Policy) | | The policy to update.
-The policy&#39;s `name` field is used to identify the instance to update. Format: {resource name}/policies/{policy type} Workspace resource name: &#34;&#34;. Environment resource name: environments/environment-id. Instance resource name: environments/environment-id/instances/instance-id. Database resource name: environments/environment-id/instances/instance-id/databases/database-name. |
+The policy&#39;s `name` field is used to identify the instance to update. Format: {resource name}/policies/{policy type} Workspace resource name: &#34;&#34;. Environment resource name: environments/environment-id. Instance resource name: instances/instance-id. Database resource name: instances/instance-id/databases/database-name. |
| update_mask | [google.protobuf.FieldMask](#google-protobuf-FieldMask) | | The list of fields to update. |
| allow_missing | [bool](#bool) | | If set to true, and the policy is not found, a new policy will be created. In this situation, `update_mask` is ignored. |
diff --git a/proto/generated-go/v1/anomaly_service.pb.go b/proto/generated-go/v1/anomaly_service.pb.go
index 3aa184313b..9693994772 100644
--- a/proto/generated-go/v1/anomaly_service.pb.go
+++ b/proto/generated-go/v1/anomaly_service.pb.go
@@ -220,7 +220,7 @@ type SearchAnomaliesRequest struct {
// follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.
// Only support filter by resource and type for now.
// For example:
- // Search the anomalies of a specific resource: 'resource="environments/{environemnt}/instances/{instance}".'
+ // Search the anomalies of a specific resource: 'resource="instances/{instance}".'
// Search the specified types of anomalies: 'type="DATABASE_BACKUP_POLICY_VIOLATION" | "MIGRATION_SCHEMA".'
Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
// Not used. The maximum number of anomalies to return. The service may return fewer than
@@ -354,8 +354,8 @@ type Anomaly struct {
// The resource that is the target of the operation.
// Format:
- // - Instance: environments/{environment}/instnaces/{instance}
- // - Database: environments/{environment}/instnaces/{instance}/databases/{database}
+ // - Instance: instnaces/{instance}
+ // - Database: instnaces/{instance}/databases/{database}
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
// type is the type of the anomaly.
Type Anomaly_AnomalyType `protobuf:"varint,2,opt,name=type,proto3,enum=bytebase.v1.Anomaly_AnomalyType" json:"type,omitempty"`
diff --git a/proto/generated-go/v1/database_service.pb.go b/proto/generated-go/v1/database_service.pb.go
index 89f09b14d4..16a9384be5 100644
--- a/proto/generated-go/v1/database_service.pb.go
+++ b/proto/generated-go/v1/database_service.pb.go
@@ -146,7 +146,7 @@ type GetDatabaseRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the database to retrieve.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
@@ -195,8 +195,8 @@ type ListDatabasesRequest struct {
unknownFields protoimpl.UnknownFields
// The parent, which owns this collection of databases.
- // Format: environments/{environment}/instances/{instance}
- // Use "environments/-/instances/-" to list all databases from all environments.
+ // Format: instances/{instance}
+ // Use "instances/-" to list all databases.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of databases to return. The service may return fewer than
// this value.
@@ -340,7 +340,7 @@ type UpdateDatabaseRequest struct {
// The database to update.
//
// The database's `name` field is used to identify the database to update.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
Database *Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
// The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
@@ -398,7 +398,7 @@ type BatchUpdateDatabasesRequest struct {
unknownFields protoimpl.UnknownFields
// The parent resource shared by all databases being updated.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
// If the operation spans parents, a dash (-) may be accepted as a wildcard.
// We only support updating the project of databases for now.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
@@ -507,7 +507,7 @@ type GetDatabaseMetadataRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the database to retrieve metadata.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
@@ -556,7 +556,7 @@ type GetDatabaseSchemaRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the database to retrieve schema.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
@@ -605,7 +605,7 @@ type GetBackupSettingRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the database to retrieve backup setting.
- // Format: environments/{environment}/instances/{instance}/databases/{database}/backupSetting
+ // Format: instances/{instance}/databases/{database}/backupSetting
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
@@ -703,7 +703,7 @@ type CreateBackupRequest struct {
unknownFields protoimpl.UnknownFields
// The parent resource where this backup will be created.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
Backup *Backup `protobuf:"bytes,2,opt,name=backup,proto3" json:"backup,omitempty"`
}
@@ -761,7 +761,7 @@ type ListBackupRequest struct {
unknownFields protoimpl.UnknownFields
// The parent resource where this backup will be created.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Not used. The maximum number of backups to return. The service may return fewer than
// this value.
@@ -893,7 +893,7 @@ type Database struct {
unknownFields protoimpl.UnknownFields
// The name of the database.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
// {database} is the database name in the instance.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The system-assigned, unique identifier for a resource.
@@ -1966,7 +1966,7 @@ type BackupSetting struct {
unknownFields protoimpl.UnknownFields
// The name of the database backup setting.
- // Format: environments/{environment}/instances/{instance}/databases/{database}/backupSettings
+ // Format: instances/{instance}/databases/{database}/backupSettings
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The default maximum age of a Backup created via this BackupPlan.
// If specified, a Backup will be automatically deleted after its age reaches.
@@ -2049,7 +2049,7 @@ type Backup struct {
unknownFields protoimpl.UnknownFields
// The resource name of the database backup. backup-name is specified by the client.
- // Format: environments/{environment}/instances/{instance}/databases/{database}/backups/{backup-name}
+ // Format: instances/{instance}/databases/{database}/backups/{backup-name}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The timestamp when the backup resource was created initally.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
@@ -2143,7 +2143,7 @@ type ListSlowQueriesRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The filter of the slow query log.
// follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.
@@ -2277,7 +2277,7 @@ type SlowQueryLog struct {
unknownFields protoimpl.UnknownFields
// The resource of the slow query log.
- // The format is "environments/{environment}/instances/{instance}/databases/{database}".
+ // The format is "instances/{instance}/databases/{database}".
Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
// The project of the slow query log.
// The format is "projects/{project}".
@@ -2587,7 +2587,7 @@ type ListSecretsRequest struct {
unknownFields protoimpl.UnknownFields
// The parent of the secret.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Not used. The maximum number of databases to return. The service may return fewer than
// this value.
@@ -2786,7 +2786,7 @@ type DeleteSecretRequest struct {
// The name of the secret to be deleted.
// Format:
- // environments/{environment}/instances/{instance}/databases/{database}/secrets/{secret}
+ // instances/{instance}/databases/{database}/secrets/{secret}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
@@ -2837,7 +2837,7 @@ type Secret struct {
// name is the unique name of the secret, which is specified by the client.
// Format:
- // environments/{environment}/instances/{instance}/databases/{database}/secrets/{secret}
+ // instances/{instance}/databases/{database}/secrets/{secret}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Not used. The timestamp when the secret resource was created initally.
CreatedTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_time,json=createdTime,proto3" json:"created_time,omitempty"`
@@ -2922,7 +2922,7 @@ type AdviseIndexRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The statement to be advised.
Statement string `protobuf:"bytes,2,opt,name=statement,proto3" json:"statement,omitempty"`
@@ -3473,162 +3473,147 @@ var file_v1_database_service_proto_rawDesc = []byte{
0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f,
0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64,
- 0x65, 0x78, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x32, 0x8a, 0x13, 0x0a, 0x0f,
+ 0x65, 0x78, 0x53, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x32, 0xa7, 0x11, 0x0a, 0x0f,
0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
- 0x87, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12,
- 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
- 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x40, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,
- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
- 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,
- 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x94, 0x01, 0x0a, 0x0d, 0x4c, 0x69,
+ 0x78, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1f,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,
+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x31, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x85, 0x01, 0x0a, 0x0d, 0x4c, 0x69,
0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79,
0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61,
0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22,
0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,
0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x22, 0x3c, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f,
- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72,
- 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
- 0x12, 0xb0, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x63,
- 0xda, 0x41, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, 0x3a, 0x08, 0x64,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x32, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69,
- 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x73, 0x65, 0x22, 0x2d, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f,
+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x73, 0x12, 0xa1, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22,
+ 0x54, 0xda, 0x41, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x3a, 0x08,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa6, 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x28,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74,
+ 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x01, 0x2a, 0x22, 0x2e,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x92,
+ 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65,
+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x33,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x7d, 0x12, 0x8a, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x31, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d,
+ 0x12, 0x8e, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65,
+ 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74,
+ 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,
+ 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12,
+ 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
- 0x2f, 0x2a, 0x7d, 0x12, 0xb5, 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68,
- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x3a, 0x01, 0x2a, 0x22, 0x3d, 0x2f, 0x76,
- 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a,
- 0x62, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0xa1, 0x01, 0x0a, 0x13,
- 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64,
- 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74,
- 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x42, 0x82, 0xd3, 0xe4,
- 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65,
- 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12,
- 0x99, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53,
- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53,
- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02,
- 0x3a, 0x12, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76,
- 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x12, 0x9d, 0x01, 0x0a, 0x10,
- 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
- 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47,
- 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69,
- 0x6e, 0x67, 0x22, 0x47, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, 0x76, 0x31, 0x2f,
- 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
- 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63,
- 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0xb4, 0x01, 0x0a, 0x13,
- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74,
- 0x69, 0x6e, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65,
- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62,
+ 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
+ 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b,
+ 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x61,
+ 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x49,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32,
+ 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75,
+ 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0x83, 0x01, 0x0a, 0x0c, 0x43, 0x72,
+ 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42,
+ 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62,
0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75,
- 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x58, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52,
- 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x47, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
- 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76,
- 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74,
+ 0x70, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x3a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75,
+ 0x70, 0x22, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12,
+ 0x8c, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1e,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,
+ 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,
+ 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
+ 0x3d, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e,
+ 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x9f,
+ 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69,
+ 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,
+ 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0xda,
+ 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74,
0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
- 0x67, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63,
- 0x6b, 0x75, 0x70, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73,
+ 0x12, 0x8f, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73,
+ 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
+ 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3,
+ 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
+ 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65,
+ 0x74, 0x73, 0x12, 0x8a, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63,
+ 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x4b, 0x82, 0xd3, 0xe4, 0x93,
- 0x02, 0x45, 0x3a, 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x3b, 0x2f, 0x76, 0x31, 0x2f,
- 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
- 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,
- 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x9b, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74,
- 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52,
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65,
- 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,
- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
- 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x61,
- 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0xae, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c,
- 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77,
- 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,
- 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,
- 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82,
- 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,
- 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,
- 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x6f, 0x77, 0x51,
- 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x9e, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53,
- 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,
- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4c, 0xda, 0x41, 0x06, 0x70, 0x61,
- 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x76, 0x31, 0x2f,
- 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
- 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,
- 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x99, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61,
- 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63,
- 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22,
- 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, 0x3a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x32,
- 0x42, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x6e, 0x61, 0x6d,
- 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,
- 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73,
- 0x2f, 0x2a, 0x7d, 0x12, 0x8d, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65,
- 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x43,
- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x2a, 0x3b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
- 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,
- 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73,
- 0x2f, 0x2a, 0x7d, 0x12, 0xa2, 0x01, 0x0a, 0x0b, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e,
- 0x64, 0x65, 0x78, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x22, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,
- 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
- 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x76,
- 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65,
- 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x33,
+ 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x3d, 0x3a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x32, 0x33, 0x2f, 0x76, 0x31, 0x2f,
+ 0x7b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12,
+ 0x7e, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,
+ 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65,
+ 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
+ 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x2e, 0x2a, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12,
+ 0x93, 0x01, 0x0a, 0x0b, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12,
+ 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64,
+ 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,
+ 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x22, 0x41, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4,
+ 0x93, 0x02, 0x32, 0x22, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
+ 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x76, 0x69, 0x73, 0x65,
+ 0x49, 0x6e, 0x64, 0x65, 0x78, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,
+ 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/proto/generated-go/v1/database_service.pb.gw.go b/proto/generated-go/v1/database_service.pb.gw.go
index 5baec5eef5..2a56404042 100644
--- a/proto/generated-go/v1/database_service.pb.gw.go
+++ b/proto/generated-go/v1/database_service.pb.gw.go
@@ -1059,7 +1059,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetDatabase", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetDatabase", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1084,7 +1084,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListDatabases", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/databases"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListDatabases", runtime.WithHTTPPathPattern("/v1/{parent=instances/*}/databases"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1109,7 +1109,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateDatabase", runtime.WithHTTPPathPattern("/v1/{database.name=environments/*/instances/*/databases/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateDatabase", runtime.WithHTTPPathPattern("/v1/{database.name=instances/*/databases/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1134,7 +1134,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/BatchUpdateDatabases", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/databases:batchUpdate"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/BatchUpdateDatabases", runtime.WithHTTPPathPattern("/v1/{parent=instances/*}/databases:batchUpdate"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1159,7 +1159,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetDatabaseMetadata", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*/metadata}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetDatabaseMetadata", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/metadata}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1184,7 +1184,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetDatabaseSchema", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*/schema}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetDatabaseSchema", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/schema}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1209,7 +1209,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetBackupSetting", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*/backupSetting}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetBackupSetting", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/backupSetting}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1234,7 +1234,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateBackupSetting", runtime.WithHTTPPathPattern("/v1/{setting.name=environments/*/instances/*/databases/*/backupSetting}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateBackupSetting", runtime.WithHTTPPathPattern("/v1/{setting.name=instances/*/databases/*/backupSetting}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1259,7 +1259,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/CreateBackup", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}/backups"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/CreateBackup", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/backups"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1284,7 +1284,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListBackup", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}/backups"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListBackup", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/backups"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1309,7 +1309,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListSlowQueries", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}/slowQueries"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListSlowQueries", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/slowQueries"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1334,7 +1334,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListSecrets", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}/secrets"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListSecrets", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/secrets"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1359,7 +1359,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateSecret", runtime.WithHTTPPathPattern("/v1/{secret.name=environments/*/instances/*/databases/*/secrets/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateSecret", runtime.WithHTTPPathPattern("/v1/{secret.name=instances/*/databases/*/secrets/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1384,7 +1384,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/DeleteSecret", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*/secrets/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/DeleteSecret", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/secrets/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1409,7 +1409,7 @@ func RegisterDatabaseServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/AdviseIndex", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}:adviseIndex"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.DatabaseService/AdviseIndex", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}:adviseIndex"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1473,7 +1473,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetDatabase", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetDatabase", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1495,7 +1495,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListDatabases", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/databases"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListDatabases", runtime.WithHTTPPathPattern("/v1/{parent=instances/*}/databases"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1517,7 +1517,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateDatabase", runtime.WithHTTPPathPattern("/v1/{database.name=environments/*/instances/*/databases/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateDatabase", runtime.WithHTTPPathPattern("/v1/{database.name=instances/*/databases/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1539,7 +1539,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/BatchUpdateDatabases", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/databases:batchUpdate"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/BatchUpdateDatabases", runtime.WithHTTPPathPattern("/v1/{parent=instances/*}/databases:batchUpdate"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1561,7 +1561,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetDatabaseMetadata", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*/metadata}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetDatabaseMetadata", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/metadata}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1583,7 +1583,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetDatabaseSchema", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*/schema}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetDatabaseSchema", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/schema}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1605,7 +1605,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetBackupSetting", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*/backupSetting}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/GetBackupSetting", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/backupSetting}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1627,7 +1627,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateBackupSetting", runtime.WithHTTPPathPattern("/v1/{setting.name=environments/*/instances/*/databases/*/backupSetting}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateBackupSetting", runtime.WithHTTPPathPattern("/v1/{setting.name=instances/*/databases/*/backupSetting}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1649,7 +1649,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/CreateBackup", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}/backups"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/CreateBackup", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/backups"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1671,7 +1671,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListBackup", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}/backups"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListBackup", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/backups"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1693,7 +1693,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListSlowQueries", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}/slowQueries"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListSlowQueries", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/slowQueries"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1715,7 +1715,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListSecrets", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}/secrets"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/ListSecrets", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/secrets"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1737,7 +1737,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateSecret", runtime.WithHTTPPathPattern("/v1/{secret.name=environments/*/instances/*/databases/*/secrets/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/UpdateSecret", runtime.WithHTTPPathPattern("/v1/{secret.name=instances/*/databases/*/secrets/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1759,7 +1759,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/DeleteSecret", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*/secrets/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/DeleteSecret", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/secrets/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1781,7 +1781,7 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/AdviseIndex", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}:adviseIndex"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.DatabaseService/AdviseIndex", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}:adviseIndex"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1801,35 +1801,35 @@ func RegisterDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.Serv
}
var (
- pattern_DatabaseService_GetDatabase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "environments", "instances", "databases", "name"}, ""))
+ pattern_DatabaseService_GetDatabase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "databases", "name"}, ""))
- pattern_DatabaseService_ListDatabases_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "environments", "instances", "parent", "databases"}, ""))
+ pattern_DatabaseService_ListDatabases_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "instances", "parent", "databases"}, ""))
- pattern_DatabaseService_UpdateDatabase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "environments", "instances", "databases", "database.name"}, ""))
+ pattern_DatabaseService_UpdateDatabase_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "databases", "database.name"}, ""))
- pattern_DatabaseService_BatchUpdateDatabases_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "environments", "instances", "parent", "databases"}, "batchUpdate"))
+ pattern_DatabaseService_BatchUpdateDatabases_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "instances", "parent", "databases"}, "batchUpdate"))
- pattern_DatabaseService_GetDatabaseMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 2, 4, 4, 7, 5, 5}, []string{"v1", "environments", "instances", "databases", "metadata", "name"}, ""))
+ pattern_DatabaseService_GetDatabaseMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 4, 5, 5, 4}, []string{"v1", "instances", "databases", "metadata", "name"}, ""))
- pattern_DatabaseService_GetDatabaseSchema_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 2, 4, 4, 7, 5, 5}, []string{"v1", "environments", "instances", "databases", "schema", "name"}, ""))
+ pattern_DatabaseService_GetDatabaseSchema_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 4, 5, 5, 4}, []string{"v1", "instances", "databases", "schema", "name"}, ""))
- pattern_DatabaseService_GetBackupSetting_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 2, 4, 4, 7, 5, 5}, []string{"v1", "environments", "instances", "databases", "backupSetting", "name"}, ""))
+ pattern_DatabaseService_GetBackupSetting_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 4, 5, 5, 4}, []string{"v1", "instances", "databases", "backupSetting", "name"}, ""))
- pattern_DatabaseService_UpdateBackupSetting_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 2, 4, 4, 7, 5, 5}, []string{"v1", "environments", "instances", "databases", "backupSetting", "setting.name"}, ""))
+ pattern_DatabaseService_UpdateBackupSetting_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 4, 5, 5, 4}, []string{"v1", "instances", "databases", "backupSetting", "setting.name"}, ""))
- pattern_DatabaseService_CreateBackup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4, 2, 5}, []string{"v1", "environments", "instances", "databases", "parent", "backups"}, ""))
+ pattern_DatabaseService_CreateBackup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "backups"}, ""))
- pattern_DatabaseService_ListBackup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4, 2, 5}, []string{"v1", "environments", "instances", "databases", "parent", "backups"}, ""))
+ pattern_DatabaseService_ListBackup_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "backups"}, ""))
- pattern_DatabaseService_ListSlowQueries_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4, 2, 5}, []string{"v1", "environments", "instances", "databases", "parent", "slowQueries"}, ""))
+ pattern_DatabaseService_ListSlowQueries_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "slowQueries"}, ""))
- pattern_DatabaseService_ListSecrets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4, 2, 5}, []string{"v1", "environments", "instances", "databases", "parent", "secrets"}, ""))
+ pattern_DatabaseService_ListSecrets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "secrets"}, ""))
- pattern_DatabaseService_UpdateSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 2, 4, 1, 0, 4, 8, 5, 5}, []string{"v1", "environments", "instances", "databases", "secrets", "secret.name"}, ""))
+ pattern_DatabaseService_UpdateSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "instances", "databases", "secrets", "secret.name"}, ""))
- pattern_DatabaseService_DeleteSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 2, 4, 1, 0, 4, 8, 5, 5}, []string{"v1", "environments", "instances", "databases", "secrets", "name"}, ""))
+ pattern_DatabaseService_DeleteSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "instances", "databases", "secrets", "name"}, ""))
- pattern_DatabaseService_AdviseIndex_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "environments", "instances", "databases", "parent"}, "adviseIndex"))
+ pattern_DatabaseService_AdviseIndex_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "databases", "parent"}, "adviseIndex"))
)
var (
diff --git a/proto/generated-go/v1/instance_role_service.pb.go b/proto/generated-go/v1/instance_role_service.pb.go
index f56727081d..8af2819c37 100644
--- a/proto/generated-go/v1/instance_role_service.pb.go
+++ b/proto/generated-go/v1/instance_role_service.pb.go
@@ -29,7 +29,7 @@ type GetInstanceRoleRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the role to retrieve.
- // Format: environments/{environment}/instances/{instance}/roles/{role name}
+ // Format: instances/{instance}/roles/{role name}
// The role name is the unique name for the role.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
@@ -79,7 +79,7 @@ type ListInstanceRolesRequest struct {
unknownFields protoimpl.UnknownFields
// The parent, which owns this collection of roles.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of roles to return. The service may return fewer than
// this value.
@@ -211,7 +211,7 @@ type CreateInstanceRoleRequest struct {
unknownFields protoimpl.UnknownFields
// The parent resource where this role will be created.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The role to create.
Role *InstanceRole `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
@@ -270,8 +270,8 @@ type UpdateInstanceRoleRequest struct {
// The role to update.
//
- // The role's `name`, `environment` and `instance` field is used to identify the role to update.
- // Format: environments/{environment}/instances/{instance}/roles/{role name}
+ // The role's `name` and `instance` field is used to identify the role to update.
+ // Format: instances/{instance}/roles/{role name}
Role *InstanceRole `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
// The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
@@ -329,7 +329,7 @@ type DeleteInstanceRoleRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the role to delete.
- // Format: environments/{environment}/instances/{instance}/roles/{role name}
+ // Format: instances/{instance}/roles/{role name}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
@@ -378,7 +378,7 @@ type UndeleteInstanceRoleRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the deleted role.
- // Format: environments/{environment}/instances/{instance}/roles/{role name}
+ // Format: instances/{instance}/roles/{role name}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
@@ -428,7 +428,7 @@ type InstanceRole struct {
unknownFields protoimpl.UnknownFields
// The name of the role.
- // Format: environments/{environment}/instances/{instance}/roles/{role name}
+ // Format: instances/{instance}/roles/{role name}
// The role name is the unique name for the role.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The role name. It's unique within the instance.
@@ -592,71 +592,65 @@ var file_v1_instance_role_service_proto_rawDesc = []byte{
0x0a, 0x09, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x42, 0x13, 0x0a, 0x11, 0x5f,
0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74,
0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c,
- 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x32, 0xd6,
- 0x07, 0x0a, 0x13, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x53,
- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x8f, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6e,
+ 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x32, 0xfc,
+ 0x06, 0x0a, 0x13, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x53,
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x49, 0x6e,
0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74,
0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74,
0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x3c, 0xda, 0x41, 0x04, 0x6e,
- 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74,
- 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
- 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa2, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73,
- 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x25,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,
- 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0xda,
- 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d,
- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69,
- 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0xa2, 0x01,
- 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x49, 0xda, 0x41, 0x0b, 0x70, 0x61, 0x72, 0x65,
- 0x6e, 0x74, 0x2c, 0x72, 0x6f, 0x6c, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x3a, 0x04, 0x72,
- 0x6f, 0x6c, 0x65, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
- 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f,
- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c,
- 0x65, 0x73, 0x12, 0xac, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x53, 0xda, 0x41,
- 0x10, 0x72, 0x6f, 0x6c, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73,
- 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x32, 0x32, 0x2f,
- 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e,
- 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x2a,
- 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
- 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x3c, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,
- 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x2a, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
- 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,
- 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f,
- 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x9e, 0x01, 0x0a, 0x14, 0x55, 0x6e, 0x64, 0x65, 0x6c,
- 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12,
- 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e,
- 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f,
- 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x3a, 0x01, 0x2a, 0x22,
- 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72,
- 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75,
- 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72,
- 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x33,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x2d, 0xda, 0x41, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
+ 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x93, 0x01, 0x0a, 0x11, 0x4c, 0x69,
+ 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12,
+ 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
+ 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f,
+ 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12,
+ 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12,
+ 0x93, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x3a, 0xda, 0x41, 0x0b, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x6f, 0x6c, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x3a,
+ 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,
+ 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,
+ 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x9d, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x26, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22,
+ 0x44, 0xda, 0x41, 0x10, 0x72, 0x6f, 0x6c, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
+ 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x04, 0x72, 0x6f, 0x6c, 0x65,
+ 0x32, 0x23, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c,
+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x83, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
+ 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x26, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
+ 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2d, 0xda, 0x41,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x2a, 0x1e, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8f, 0x01, 0x0a, 0x14,
+ 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x6f, 0x6c, 0x65,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x11, 0x5a,
+ 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31,
+ 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/proto/generated-go/v1/instance_role_service.pb.gw.go b/proto/generated-go/v1/instance_role_service.pb.gw.go
index b281ab1054..e5a219088c 100644
--- a/proto/generated-go/v1/instance_role_service.pb.gw.go
+++ b/proto/generated-go/v1/instance_role_service.pb.gw.go
@@ -455,7 +455,7 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/GetInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/GetInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=instances/*/roles/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -480,7 +480,7 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/ListInstanceRoles", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/roles"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/ListInstanceRoles", runtime.WithHTTPPathPattern("/v1/{parent=instances/*}/roles"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -505,7 +505,7 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/CreateInstanceRole", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/roles"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/CreateInstanceRole", runtime.WithHTTPPathPattern("/v1/{parent=instances/*}/roles"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -530,7 +530,7 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UpdateInstanceRole", runtime.WithHTTPPathPattern("/v1/{role.name=environments/*/instances/*/roles/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UpdateInstanceRole", runtime.WithHTTPPathPattern("/v1/{role.name=instances/*/roles/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -555,7 +555,7 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/DeleteInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/DeleteInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=instances/*/roles/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -580,7 +580,7 @@ func RegisterInstanceRoleServiceHandlerServer(ctx context.Context, mux *runtime.
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UndeleteInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}:undelete"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UndeleteInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=instances/*/roles/*}:undelete"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -644,7 +644,7 @@ func RegisterInstanceRoleServiceHandlerClient(ctx context.Context, mux *runtime.
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/GetInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/GetInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=instances/*/roles/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -666,7 +666,7 @@ func RegisterInstanceRoleServiceHandlerClient(ctx context.Context, mux *runtime.
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/ListInstanceRoles", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/roles"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/ListInstanceRoles", runtime.WithHTTPPathPattern("/v1/{parent=instances/*}/roles"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -688,7 +688,7 @@ func RegisterInstanceRoleServiceHandlerClient(ctx context.Context, mux *runtime.
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/CreateInstanceRole", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/roles"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/CreateInstanceRole", runtime.WithHTTPPathPattern("/v1/{parent=instances/*}/roles"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -710,7 +710,7 @@ func RegisterInstanceRoleServiceHandlerClient(ctx context.Context, mux *runtime.
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UpdateInstanceRole", runtime.WithHTTPPathPattern("/v1/{role.name=environments/*/instances/*/roles/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UpdateInstanceRole", runtime.WithHTTPPathPattern("/v1/{role.name=instances/*/roles/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -732,7 +732,7 @@ func RegisterInstanceRoleServiceHandlerClient(ctx context.Context, mux *runtime.
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/DeleteInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/DeleteInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=instances/*/roles/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -754,7 +754,7 @@ func RegisterInstanceRoleServiceHandlerClient(ctx context.Context, mux *runtime.
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UndeleteInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/roles/*}:undelete"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceRoleService/UndeleteInstanceRole", runtime.WithHTTPPathPattern("/v1/{name=instances/*/roles/*}:undelete"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -774,17 +774,17 @@ func RegisterInstanceRoleServiceHandlerClient(ctx context.Context, mux *runtime.
}
var (
- pattern_InstanceRoleService_GetInstanceRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "environments", "instances", "roles", "name"}, ""))
+ pattern_InstanceRoleService_GetInstanceRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "roles", "name"}, ""))
- pattern_InstanceRoleService_ListInstanceRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "environments", "instances", "parent", "roles"}, ""))
+ pattern_InstanceRoleService_ListInstanceRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "instances", "parent", "roles"}, ""))
- pattern_InstanceRoleService_CreateInstanceRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "environments", "instances", "parent", "roles"}, ""))
+ pattern_InstanceRoleService_CreateInstanceRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "instances", "parent", "roles"}, ""))
- pattern_InstanceRoleService_UpdateInstanceRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "environments", "instances", "roles", "role.name"}, ""))
+ pattern_InstanceRoleService_UpdateInstanceRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "roles", "role.name"}, ""))
- pattern_InstanceRoleService_DeleteInstanceRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "environments", "instances", "roles", "name"}, ""))
+ pattern_InstanceRoleService_DeleteInstanceRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "roles", "name"}, ""))
- pattern_InstanceRoleService_UndeleteInstanceRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "environments", "instances", "roles", "name"}, "undelete"))
+ pattern_InstanceRoleService_UndeleteInstanceRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "roles", "name"}, "undelete"))
)
var (
diff --git a/proto/generated-go/v1/instance_service.pb.go b/proto/generated-go/v1/instance_service.pb.go
index b0d1d020ee..f5dc62980e 100644
--- a/proto/generated-go/v1/instance_service.pb.go
+++ b/proto/generated-go/v1/instance_service.pb.go
@@ -78,7 +78,7 @@ type GetInstanceRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the instance to retrieve.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
@@ -126,23 +126,19 @@ type ListInstancesRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
- // The parent, which owns this collection of instances.
- // Format: environments/{environment}
- // Use "environments/-" to list all instances from all environments.
- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of instances to return. The service may return fewer than
// this value.
// If unspecified, at most 50 instances will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
- PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
+ PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListInstances` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListInstances` must match
// the call that provided the page token.
- PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
+ PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// Show deleted instances if specified.
- ShowDeleted bool `protobuf:"varint,4,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
+ ShowDeleted bool `protobuf:"varint,3,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
}
func (x *ListInstancesRequest) Reset() {
@@ -177,13 +173,6 @@ func (*ListInstancesRequest) Descriptor() ([]byte, []int) {
return file_v1_instance_service_proto_rawDescGZIP(), []int{1}
}
-func (x *ListInstancesRequest) GetParent() string {
- if x != nil {
- return x.Parent
- }
- return ""
-}
-
func (x *ListInstancesRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
@@ -268,17 +257,14 @@ type CreateInstanceRequest struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
- // The parent resource where this instance will be created.
- // Format: environments/{environment}
- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The instance to create.
- Instance *Instance `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"`
+ Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
// The ID to use for the instance, which will become the final component of
// the instance's resource name.
//
// This value should be 4-63 characters, and valid characters
// are /[a-z][0-9]-/.
- InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
+ InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
}
func (x *CreateInstanceRequest) Reset() {
@@ -313,13 +299,6 @@ func (*CreateInstanceRequest) Descriptor() ([]byte, []int) {
return file_v1_instance_service_proto_rawDescGZIP(), []int{3}
}
-func (x *CreateInstanceRequest) GetParent() string {
- if x != nil {
- return x.Parent
- }
- return ""
-}
-
func (x *CreateInstanceRequest) GetInstance() *Instance {
if x != nil {
return x.Instance
@@ -342,7 +321,7 @@ type UpdateInstanceRequest struct {
// The instance to update.
//
// The instance's `name` field is used to identify the instance to update.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
// The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
@@ -400,7 +379,7 @@ type DeleteInstanceRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the instance to delete.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed.
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
@@ -458,7 +437,7 @@ type UndeleteInstanceRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the deleted instance.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
@@ -507,7 +486,7 @@ type AddDataSourceRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the instance to add a data source to.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
// Identified by type.
// Only READ_ONLY data source can be added.
@@ -566,7 +545,7 @@ type RemoveDataSourceRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the instance to remove a data source from.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
// Identified by type.
// Only READ_ONLY data source can be removed.
@@ -625,7 +604,7 @@ type UpdateDataSourceRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the instance to update a data source.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
// Identified by type.
DataSources *DataSource `protobuf:"bytes,2,opt,name=data_sources,json=dataSources,proto3" json:"data_sources,omitempty"`
@@ -692,7 +671,7 @@ type SyncSlowQueriesRequest struct {
unknownFields protoimpl.UnknownFields
// The name of the instance to sync slow queries.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
}
@@ -741,7 +720,7 @@ type Instance struct {
unknownFields protoimpl.UnknownFields
// The name of the instance.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The system-assigned, unique identifier for a resource.
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
@@ -750,6 +729,9 @@ type Instance struct {
Engine Engine `protobuf:"varint,5,opt,name=engine,proto3,enum=bytebase.v1.Engine" json:"engine,omitempty"`
ExternalLink string `protobuf:"bytes,6,opt,name=external_link,json=externalLink,proto3" json:"external_link,omitempty"`
DataSources []*DataSource `protobuf:"bytes,7,rep,name=data_sources,json=dataSources,proto3" json:"data_sources,omitempty"`
+ // The environment resource.
+ // Format: environments/prod where prod is the environment resource ID.
+ Environment string `protobuf:"bytes,8,opt,name=environment,proto3" json:"environment,omitempty"`
}
func (x *Instance) Reset() {
@@ -833,6 +815,13 @@ func (x *Instance) GetDataSources() []*DataSource {
return nil
}
+func (x *Instance) GetEnvironment() string {
+ if x != nil {
+ return x.Environment
+ }
+ return ""
+}
+
type DataSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1054,232 +1043,219 @@ var file_v1_instance_service_proto_rawDesc = []byte{
0x22, 0x2d, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,
- 0x92, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65,
- 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70,
- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69,
- 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69,
- 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,
- 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65,
- 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77, 0x44, 0x65, 0x6c,
- 0x65, 0x74, 0x65, 0x64, 0x22, 0x74, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a,
- 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
- 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49,
- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f,
- 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78,
- 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8d, 0x01, 0x0a, 0x15, 0x43,
- 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x12, 0x36, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
- 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0x8c, 0x01, 0x0a, 0x15, 0x55,
- 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x03, 0xe0,
- 0x41, 0x02, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x0b,
- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75,
- 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x46, 0x0a, 0x15, 0x44, 0x65, 0x6c,
- 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x66,
- 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63,
- 0x65, 0x22, 0x32, 0x0a, 0x17, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04,
- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x78, 0x0a, 0x14, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61,
- 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a,
- 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
- 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x3f,
- 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x03, 0xe0,
- 0x41, 0x02, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22,
- 0x7b, 0x0a, 0x17, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,
- 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x69, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
- 0x02, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x64,
- 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
- 0x0b, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0xb8, 0x01, 0x0a,
- 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,
- 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
- 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x64, 0x61, 0x74,
- 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61,
- 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64,
- 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
- 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x39, 0x0a, 0x16, 0x53, 0x79, 0x6e, 0x63, 0x53,
- 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x22, 0x83, 0x02, 0x0a, 0x08, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12,
- 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
- 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
- 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x05, 0x73, 0x74,
- 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73,
- 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x04, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e,
- 0x67, 0x69, 0x6e, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52,
- 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x78, 0x74, 0x65, 0x72,
- 0x6e, 0x61, 0x6c, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
- 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x3a, 0x0a, 0x0c,
- 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03,
- 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0b, 0x64, 0x61, 0x74,
- 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0xd4, 0x04, 0x0a, 0x0a, 0x44, 0x61, 0x74,
- 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2f, 0x0a,
- 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,
- 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a,
- 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61,
- 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
- 0x04, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x06, 0x73,
- 0x73, 0x6c, 0x5f, 0x63, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04,
- 0x52, 0x05, 0x73, 0x73, 0x6c, 0x43, 0x61, 0x12, 0x1e, 0x0a, 0x08, 0x73, 0x73, 0x6c, 0x5f, 0x63,
- 0x65, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x07,
- 0x73, 0x73, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x12, 0x1c, 0x0a, 0x07, 0x73, 0x73, 0x6c, 0x5f, 0x6b,
- 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x06, 0x73,
- 0x73, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x08, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72,
- 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a,
- 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x72, 0x76,
- 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x73, 0x72, 0x76, 0x12, 0x37, 0x0a, 0x17, 0x61,
- 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x61, 0x75,
- 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x03, 0x73, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
- 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65,
- 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68,
- 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68,
- 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x70, 0x6f, 0x72, 0x74,
- 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x50, 0x6f, 0x72, 0x74, 0x12,
- 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x0c, 0x73, 0x73,
- 0x68, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09,
- 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0b, 0x73, 0x73, 0x68, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f,
- 0x72, 0x64, 0x12, 0x2b, 0x0a, 0x0f, 0x73, 0x73, 0x68, 0x5f, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74,
- 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04,
- 0x52, 0x0d, 0x73, 0x73, 0x68, 0x50, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x2a,
- 0x47, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70,
- 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45,
- 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09,
- 0x0a, 0x05, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x41,
- 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x32, 0xca, 0x0b, 0x0a, 0x0f, 0x49, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7b, 0x0a, 0x0b,
- 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x22, 0x34, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93,
- 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e,
- 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x8e, 0x01, 0x0a, 0x0d, 0x4c, 0x69,
- 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,
- 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x22, 0x36, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4,
- 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
- 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d,
- 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x96, 0x01, 0x0a, 0x0e, 0x43,
- 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61,
- 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x49, 0xda, 0x41, 0x0f, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x2c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x82, 0xd3, 0xe4, 0x93,
- 0x02, 0x31, 0x3a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x25, 0x2f, 0x76,
- 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x73, 0x12, 0xa4, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74,
+ 0x75, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f,
+ 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65,
+ 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
+ 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f,
+ 0x6b, 0x65, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x64, 0x65, 0x6c, 0x65,
+ 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x73, 0x68, 0x6f, 0x77, 0x44,
+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x22, 0x74, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
+ 0x33, 0x0a, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67,
+ 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e,
+ 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x70, 0x0a, 0x15,
+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x03,
+ 0xe0, 0x41, 0x02, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a,
+ 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0x8c,
+ 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x79, 0x74,
0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x22, 0x57, 0xda, 0x41, 0x14, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2c, 0x75,
- 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a,
- 0x3a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x32, 0x2e, 0x2f, 0x76, 0x31, 0x2f,
- 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65,
- 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x82, 0x01, 0x0a, 0x0e, 0x44,
- 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65,
- 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x34, 0xda, 0x41, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x2a, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,
- 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,
- 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12,
- 0x8a, 0x01, 0x0a, 0x10, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x01, 0x2a, 0x22, 0x2e, 0x2f, 0x76,
- 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d,
- 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x8d, 0x01, 0x0a,
- 0x0d, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x21,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64,
+ 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73,
+ 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x46, 0x0a,
+ 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
+ 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05,
+ 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x32, 0x0a, 0x17, 0x55, 0x6e, 0x64, 0x65, 0x6c, 0x65, 0x74,
+ 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
+ 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x78, 0x0a, 0x14, 0x41, 0x64, 0x64,
0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c,
- 0x3a, 0x01, 0x2a, 0x22, 0x37, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
- 0x63, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,
- 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61,
- 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x96, 0x01, 0x0a,
- 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,
- 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x45,
- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x3a, 0x01, 0x2a, 0x22, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,
- 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x96, 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63,
+ 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63,
+ 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72,
+ 0x63, 0x65, 0x73, 0x22, 0x7b, 0x0a, 0x17, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74,
+ 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f,
+ 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12,
+ 0x3f, 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x03,
+ 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
+ 0x22, 0xb8, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x08,
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
+ 0xe0, 0x41, 0x02, 0x52, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a,
+ 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41,
+ 0x02, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x3b,
+ 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52,
+ 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x39, 0x0a, 0x16, 0x53,
+ 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65,
+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xa5, 0x02, 0x0a, 0x08, 0x49, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x28,
+ 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74,
+ 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c,
+ 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x2b,
+ 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67,
+ 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65,
+ 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x06, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x0c, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b,
+ 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
+ 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52,
+ 0x0b, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b,
+ 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0b, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xd4,
+ 0x04, 0x0a, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a,
+ 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69,
+ 0x74, 0x6c, 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x0e, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,
+ 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
+ 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72,
+ 0x64, 0x12, 0x1a, 0x0a, 0x06, 0x73, 0x73, 0x6c, 0x5f, 0x63, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28,
+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x05, 0x73, 0x73, 0x6c, 0x43, 0x61, 0x12, 0x1e, 0x0a,
+ 0x08, 0x73, 0x73, 0x6c, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42,
+ 0x03, 0xe0, 0x41, 0x04, 0x52, 0x07, 0x73, 0x73, 0x6c, 0x43, 0x65, 0x72, 0x74, 0x12, 0x1c, 0x0a,
+ 0x07, 0x73, 0x73, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
+ 0xe0, 0x41, 0x04, 0x52, 0x06, 0x73, 0x73, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68,
+ 0x6f, 0x73, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12,
+ 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70,
+ 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18,
+ 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12,
+ 0x10, 0x0a, 0x03, 0x73, 0x72, 0x76, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x73, 0x72,
+ 0x76, 0x12, 0x37, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74,
+ 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x0c, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x16, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69,
+ 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c,
+ 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12,
+ 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73,
+ 0x68, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73,
+ 0x68, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x73, 0x68, 0x5f, 0x75, 0x73, 0x65,
+ 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x73, 0x68, 0x55, 0x73, 0x65, 0x72,
+ 0x12, 0x26, 0x0a, 0x0c, 0x73, 0x73, 0x68, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,
+ 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0b, 0x73, 0x73, 0x68,
+ 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2b, 0x0a, 0x0f, 0x73, 0x73, 0x68, 0x5f,
+ 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x13, 0x20, 0x01, 0x28,
+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x0d, 0x73, 0x73, 0x68, 0x50, 0x72, 0x69, 0x76, 0x61,
+ 0x74, 0x65, 0x4b, 0x65, 0x79, 0x2a, 0x47, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,
+ 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, 0x5f,
+ 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
+ 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x01, 0x12,
+ 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x32, 0x90,
+ 0x0a, 0x0a, 0x0f, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69,
+ 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x47, 0x65, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x25, 0xda, 0x41, 0x04, 0x6e, 0x61,
+ 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d,
+ 0x12, 0x70, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x18, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4,
+ 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x73, 0x12, 0x77, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22,
+ 0x2a, 0xda, 0x41, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x19, 0x3a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x0d, 0x2f, 0x76,
+ 0x31, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x0e,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x48, 0xda, 0x41, 0x14, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61,
+ 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x08, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x32, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x12, 0x73, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73,
+ 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
+ 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
+ 0x79, 0x22, 0x25, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18,
+ 0x2a, 0x16, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7b, 0x0a, 0x10, 0x55, 0x6e, 0x64, 0x65,
+ 0x6c, 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x64, 0x65, 0x6c,
+ 0x65, 0x74, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x6e, 0x64,
+ 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x7e, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61,
+ 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72,
+ 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
+ 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, 0x2a, 0x22, 0x28, 0x2f, 0x76, 0x31,
+ 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x64, 0x44, 0x61, 0x74, 0x61, 0x53,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65,
0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44,
0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49,
- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x45, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x3a,
- 0x01, 0x2a, 0x32, 0x3a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,
- 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x94,
- 0x01, 0x0a, 0x0f, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69,
- 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,
- 0x44, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x3a, 0x01, 0x2a, 0x22, 0x39, 0x2f, 0x76, 0x31, 0x2f,
- 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,
- 0x65, 0x72, 0x69, 0x65, 0x73, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74,
- 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a,
+ 0x01, 0x2a, 0x22, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x72,
+ 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12,
+ 0x87, 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75,
+ 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x01, 0x2a, 0x32, 0x2b, 0x2f, 0x76,
+ 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44,
+ 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x85, 0x01, 0x0a, 0x0f, 0x53, 0x79,
+ 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63,
+ 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
+ 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x2f, 0x3a, 0x01, 0x2a, 0x22, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x69, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
+ 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65,
+ 0x73, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67,
+ 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/proto/generated-go/v1/instance_service.pb.gw.go b/proto/generated-go/v1/instance_service.pb.gw.go
index 762a2e153f..9e2ceb92f2 100644
--- a/proto/generated-go/v1/instance_service.pb.gw.go
+++ b/proto/generated-go/v1/instance_service.pb.gw.go
@@ -84,30 +84,13 @@ func local_request_InstanceService_GetInstance_0(ctx context.Context, marshaler
}
var (
- filter_InstanceService_ListInstances_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}
+ filter_InstanceService_ListInstances_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
)
func request_InstanceService_ListInstances_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq ListInstancesRequest
var metadata runtime.ServerMetadata
- var (
- val string
- ok bool
- err error
- _ = err
- )
-
- val, ok = pathParams["parent"]
- if !ok {
- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
- }
-
- protoReq.Parent, err = runtime.String(val)
- if err != nil {
- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
- }
-
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@@ -124,23 +107,6 @@ func local_request_InstanceService_ListInstances_0(ctx context.Context, marshale
var protoReq ListInstancesRequest
var metadata runtime.ServerMetadata
- var (
- val string
- ok bool
- err error
- _ = err
- )
-
- val, ok = pathParams["parent"]
- if !ok {
- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
- }
-
- protoReq.Parent, err = runtime.String(val)
- if err != nil {
- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
- }
-
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@@ -154,7 +120,7 @@ func local_request_InstanceService_ListInstances_0(ctx context.Context, marshale
}
var (
- filter_InstanceService_CreateInstance_0 = &utilities.DoubleArray{Encoding: map[string]int{"instance": 0, "parent": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}}
+ filter_InstanceService_CreateInstance_0 = &utilities.DoubleArray{Encoding: map[string]int{"instance": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}}
)
func request_InstanceService_CreateInstance_0(ctx context.Context, marshaler runtime.Marshaler, client InstanceServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
@@ -169,23 +135,6 @@ func request_InstanceService_CreateInstance_0(ctx context.Context, marshaler run
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
- var (
- val string
- ok bool
- err error
- _ = err
- )
-
- val, ok = pathParams["parent"]
- if !ok {
- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
- }
-
- protoReq.Parent, err = runtime.String(val)
- if err != nil {
- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
- }
-
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@@ -210,23 +159,6 @@ func local_request_InstanceService_CreateInstance_0(ctx context.Context, marshal
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
- var (
- val string
- ok bool
- err error
- _ = err
- )
-
- val, ok = pathParams["parent"]
- if !ok {
- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
- }
-
- protoReq.Parent, err = runtime.String(val)
- if err != nil {
- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
- }
-
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
@@ -763,7 +695,7 @@ func RegisterInstanceServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/GetInstance", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/GetInstance", runtime.WithHTTPPathPattern("/v1/{name=instances/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -788,7 +720,7 @@ func RegisterInstanceServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/ListInstances", runtime.WithHTTPPathPattern("/v1/{parent=environments/*}/instances"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/ListInstances", runtime.WithHTTPPathPattern("/v1/instances"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -813,7 +745,7 @@ func RegisterInstanceServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/CreateInstance", runtime.WithHTTPPathPattern("/v1/{parent=environments/*}/instances"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/CreateInstance", runtime.WithHTTPPathPattern("/v1/instances"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -838,7 +770,7 @@ func RegisterInstanceServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/UpdateInstance", runtime.WithHTTPPathPattern("/v1/{instance.name=environments/*/instances/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/UpdateInstance", runtime.WithHTTPPathPattern("/v1/{instance.name=instances/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -863,7 +795,7 @@ func RegisterInstanceServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/DeleteInstance", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/DeleteInstance", runtime.WithHTTPPathPattern("/v1/{name=instances/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -888,7 +820,7 @@ func RegisterInstanceServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/UndeleteInstance", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*}:undelete"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/UndeleteInstance", runtime.WithHTTPPathPattern("/v1/{name=instances/*}:undelete"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -913,7 +845,7 @@ func RegisterInstanceServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/AddDataSource", runtime.WithHTTPPathPattern("/v1/{instance=environments/*/instances/*}:addDataSource"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/AddDataSource", runtime.WithHTTPPathPattern("/v1/{instance=instances/*}:addDataSource"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -938,7 +870,7 @@ func RegisterInstanceServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/RemoveDataSource", runtime.WithHTTPPathPattern("/v1/{instance=environments/*/instances/*}:removeDataSource"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/RemoveDataSource", runtime.WithHTTPPathPattern("/v1/{instance=instances/*}:removeDataSource"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -963,7 +895,7 @@ func RegisterInstanceServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/UpdateDataSource", runtime.WithHTTPPathPattern("/v1/{instance=environments/*/instances/*}:updateDataSource"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/UpdateDataSource", runtime.WithHTTPPathPattern("/v1/{instance=instances/*}:updateDataSource"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -988,7 +920,7 @@ func RegisterInstanceServiceHandlerServer(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/SyncSlowQueries", runtime.WithHTTPPathPattern("/v1/{instance=environments/*/instances/*}:syncSlowQueries"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.InstanceService/SyncSlowQueries", runtime.WithHTTPPathPattern("/v1/{instance=instances/*}:syncSlowQueries"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1052,7 +984,7 @@ func RegisterInstanceServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/GetInstance", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/GetInstance", runtime.WithHTTPPathPattern("/v1/{name=instances/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1074,7 +1006,7 @@ func RegisterInstanceServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/ListInstances", runtime.WithHTTPPathPattern("/v1/{parent=environments/*}/instances"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/ListInstances", runtime.WithHTTPPathPattern("/v1/instances"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1096,7 +1028,7 @@ func RegisterInstanceServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/CreateInstance", runtime.WithHTTPPathPattern("/v1/{parent=environments/*}/instances"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/CreateInstance", runtime.WithHTTPPathPattern("/v1/instances"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1118,7 +1050,7 @@ func RegisterInstanceServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/UpdateInstance", runtime.WithHTTPPathPattern("/v1/{instance.name=environments/*/instances/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/UpdateInstance", runtime.WithHTTPPathPattern("/v1/{instance.name=instances/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1140,7 +1072,7 @@ func RegisterInstanceServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/DeleteInstance", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/DeleteInstance", runtime.WithHTTPPathPattern("/v1/{name=instances/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1162,7 +1094,7 @@ func RegisterInstanceServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/UndeleteInstance", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*}:undelete"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/UndeleteInstance", runtime.WithHTTPPathPattern("/v1/{name=instances/*}:undelete"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1184,7 +1116,7 @@ func RegisterInstanceServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/AddDataSource", runtime.WithHTTPPathPattern("/v1/{instance=environments/*/instances/*}:addDataSource"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/AddDataSource", runtime.WithHTTPPathPattern("/v1/{instance=instances/*}:addDataSource"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1206,7 +1138,7 @@ func RegisterInstanceServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/RemoveDataSource", runtime.WithHTTPPathPattern("/v1/{instance=environments/*/instances/*}:removeDataSource"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/RemoveDataSource", runtime.WithHTTPPathPattern("/v1/{instance=instances/*}:removeDataSource"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1228,7 +1160,7 @@ func RegisterInstanceServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/UpdateDataSource", runtime.WithHTTPPathPattern("/v1/{instance=environments/*/instances/*}:updateDataSource"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/UpdateDataSource", runtime.WithHTTPPathPattern("/v1/{instance=instances/*}:updateDataSource"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1250,7 +1182,7 @@ func RegisterInstanceServiceHandlerClient(ctx context.Context, mux *runtime.Serv
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/SyncSlowQueries", runtime.WithHTTPPathPattern("/v1/{instance=environments/*/instances/*}:syncSlowQueries"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.InstanceService/SyncSlowQueries", runtime.WithHTTPPathPattern("/v1/{instance=instances/*}:syncSlowQueries"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1270,25 +1202,25 @@ func RegisterInstanceServiceHandlerClient(ctx context.Context, mux *runtime.Serv
}
var (
- pattern_InstanceService_GetInstance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "environments", "instances", "name"}, ""))
+ pattern_InstanceService_GetInstance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "instances", "name"}, ""))
- pattern_InstanceService_ListInstances_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "environments", "parent", "instances"}, ""))
+ pattern_InstanceService_ListInstances_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "instances"}, ""))
- pattern_InstanceService_CreateInstance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "environments", "parent", "instances"}, ""))
+ pattern_InstanceService_CreateInstance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "instances"}, ""))
- pattern_InstanceService_UpdateInstance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "environments", "instances", "instance.name"}, ""))
+ pattern_InstanceService_UpdateInstance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "instances", "instance.name"}, ""))
- pattern_InstanceService_DeleteInstance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "environments", "instances", "name"}, ""))
+ pattern_InstanceService_DeleteInstance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "instances", "name"}, ""))
- pattern_InstanceService_UndeleteInstance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "environments", "instances", "name"}, "undelete"))
+ pattern_InstanceService_UndeleteInstance_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "instances", "name"}, "undelete"))
- pattern_InstanceService_AddDataSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "environments", "instances", "instance"}, "addDataSource"))
+ pattern_InstanceService_AddDataSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "instances", "instance"}, "addDataSource"))
- pattern_InstanceService_RemoveDataSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "environments", "instances", "instance"}, "removeDataSource"))
+ pattern_InstanceService_RemoveDataSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "instances", "instance"}, "removeDataSource"))
- pattern_InstanceService_UpdateDataSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "environments", "instances", "instance"}, "updateDataSource"))
+ pattern_InstanceService_UpdateDataSource_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "instances", "instance"}, "updateDataSource"))
- pattern_InstanceService_SyncSlowQueries_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "environments", "instances", "instance"}, "syncSlowQueries"))
+ pattern_InstanceService_SyncSlowQueries_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "instances", "instance"}, "syncSlowQueries"))
)
var (
diff --git a/proto/generated-go/v1/org_policy_service.pb.go b/proto/generated-go/v1/org_policy_service.pb.go
index 2037e7ddb9..8971864d1b 100644
--- a/proto/generated-go/v1/org_policy_service.pb.go
+++ b/proto/generated-go/v1/org_policy_service.pb.go
@@ -399,8 +399,8 @@ type CreatePolicyRequest struct {
// The parent resource where this instance will be created.
// Workspace resource name: "".
// Environment resource name: environments/environment-id.
- // Instance resource name: environments/environment-id/instances/instance-id.
- // Database resource name: environments/environment-id/instances/instance-id/databases/database-name.
+ // Instance resource name: instances/instance-id.
+ // Database resource name: instances/instance-id/databases/database-name.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The policy to create.
Policy *Policy `protobuf:"bytes,2,opt,name=policy,proto3" json:"policy,omitempty"`
@@ -471,8 +471,8 @@ type UpdatePolicyRequest struct {
// Format: {resource name}/policies/{policy type}
// Workspace resource name: "".
// Environment resource name: environments/environment-id.
- // Instance resource name: environments/environment-id/instances/instance-id.
- // Database resource name: environments/environment-id/instances/instance-id/databases/database-name.
+ // Instance resource name: instances/instance-id.
+ // Database resource name: instances/instance-id/databases/database-name.
Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"`
// The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
@@ -543,8 +543,8 @@ type DeletePolicyRequest struct {
// Format: {resource name}/policies/{policy type}
// Workspace resource name: "".
// Environment resource name: environments/environment-id.
- // Instance resource name: environments/environment-id/instances/instance-id.
- // Database resource name: environments/environment-id/instances/instance-id/databases/database-name.
+ // Instance resource name: instances/instance-id.
+ // Database resource name: instances/instance-id/databases/database-name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
@@ -794,8 +794,8 @@ type Policy struct {
// Format: {resource name}/policies/{policy type}
// Workspace resource name: "".
// Environment resource name: environments/environment-id.
- // Instance resource name: environments/environment-id/instances/instance-id.
- // Database resource name: environments/environment-id/instances/instance-id/databases/database-name.
+ // Instance resource name: instances/instance-id.
+ // Database resource name: instances/instance-id/databases/database-name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The system-assigned, unique identifier for a resource.
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"`
@@ -1807,113 +1807,104 @@ var file_v1_org_policy_service_proto_rawDesc = []byte{
0x15, 0x0a, 0x11, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10,
0x01, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0c,
- 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0x81, 0x0d, 0x0a,
+ 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x32, 0xeb, 0x0b, 0x0a,
0x10, 0x4f, 0x72, 0x67, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
- 0x65, 0x12, 0xa7, 0x02, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,
+ 0x65, 0x12, 0x89, 0x02, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12,
0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13,
0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c,
- 0x69, 0x63, 0x79, 0x22, 0xe5, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,
- 0x93, 0x02, 0xd7, 0x01, 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
+ 0x69, 0x63, 0x79, 0x22, 0xc7, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,
+ 0x93, 0x02, 0xb9, 0x01, 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c,
0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f,
0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d,
- 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e,
- 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
- 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x3e, 0x12, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
- 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,
- 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
- 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xae, 0x02, 0x0a, 0x0c,
- 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x20, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50,
- 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21,
+ 0x5a, 0x23, 0x12, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,
+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,
+ 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x90, 0x02,
+ 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x20,
0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73,
- 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x22, 0xd8, 0x01, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xce, 0x01, 0x5a, 0x22,
- 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72,
- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,
- 0x65, 0x73, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a,
- 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x76,
- 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x3e,
- 0x12, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e,
- 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73,
- 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0x0c,
- 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xd5, 0x02, 0x0a,
- 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61,
- 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
- 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f,
- 0x6c, 0x69, 0x63, 0x79, 0x22, 0x8d, 0x02, 0xda, 0x41, 0x0d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
- 0x2c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xf6, 0x01, 0x3a, 0x06,
- 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x2a, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
- 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72,
- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,
- 0x65, 0x73, 0x5a, 0x2e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x24, 0x2f, 0x76,
- 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,
- 0x65, 0x73, 0x5a, 0x3a, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x30, 0x2f, 0x76,
- 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x46,
- 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x3c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70,
- 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e,
- 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f,
- 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69,
- 0x63, 0x69, 0x65, 0x73, 0x12, 0x86, 0x03, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50,
- 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xbe, 0x02, 0xda,
- 0x41, 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
- 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xa2, 0x02, 0x3a, 0x06, 0x70, 0x6f, 0x6c,
- 0x69, 0x63, 0x79, 0x5a, 0x31, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x27, 0x2f,
+ 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
+ 0x69, 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0xba, 0x01, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb0, 0x01,
+ 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,
+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69,
+ 0x63, 0x69, 0x65, 0x73, 0x5a, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,
+ 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x23, 0x12, 0x21,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65,
+ 0x73, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
+ 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,
+ 0x65, 0x73, 0x12, 0x0c, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,
+ 0x12, 0xb7, 0x02, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63,
+ 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xef, 0x01, 0xda, 0x41, 0x0d, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0xd8, 0x01, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x2a, 0x3a, 0x06, 0x70, 0x6f,
+ 0x6c, 0x69, 0x63, 0x79, 0x22, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
+ 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f,
+ 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
+ 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x65, 0x6e,
+ 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f,
+ 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x5a, 0x2b, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
+ 0x22, 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,
+ 0x69, 0x65, 0x73, 0x5a, 0x37, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2d, 0x2f,
+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x0c, 0x2f, 0x76,
+ 0x31, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, 0xe8, 0x02, 0x0a, 0x0c, 0x55,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69,
+ 0x63, 0x79, 0x22, 0xa0, 0x02, 0xda, 0x41, 0x12, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2c, 0x75,
+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x84,
+ 0x02, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5a, 0x31, 0x3a, 0x06, 0x70, 0x6f, 0x6c,
+ 0x69, 0x63, 0x79, 0x32, 0x27, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
+ 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,
+ 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x35, 0x3a, 0x06,
+ 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c,
+ 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e,
+ 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x5a, 0x32, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x28, 0x2f,
0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
- 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63,
- 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x35, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
- 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61,
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69,
+ 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x3e, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63,
+ 0x79, 0x32, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e,
+ 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69,
+ 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x32, 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f,
+ 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,
+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x92, 0x02, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
+ 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63,
+ 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
+ 0x22, 0xc7, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xb9,
+ 0x01, 0x5a, 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,
+ 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,
+ 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x2a, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,
- 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x41, 0x3a,
- 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x37, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f,
- 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f,
- 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
- 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d,
- 0x5a, 0x4d, 0x3a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x32, 0x43, 0x2f, 0x76, 0x31, 0x2f,
- 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76,
- 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x32,
- 0x1c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x6e, 0x61, 0x6d,
- 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb0, 0x02,
- 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c,
- 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
- 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0xe5, 0x01, 0xda, 0x41, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xd7, 0x01, 0x5a, 0x22, 0x2a, 0x20, 0x2f, 0x76, 0x31,
- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,
- 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x26, 0x2a,
- 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72,
- 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69,
- 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x32, 0x2a, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
- 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f,
- 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f,
- 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x3e, 0x2a, 0x3c, 0x2f, 0x76, 0x31,
- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65,
- 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
- 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f,
- 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
- 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d,
- 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f,
- 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x5a, 0x23, 0x2a,
+ 0x21, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f,
+ 0x2a, 0x7d, 0x5a, 0x2f, 0x2a, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
+ 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x2a, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70,
+ 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65,
+ 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/proto/generated-go/v1/org_policy_service.pb.gw.go b/proto/generated-go/v1/org_policy_service.pb.gw.go
index 03c3353b19..02c7061f66 100644
--- a/proto/generated-go/v1/org_policy_service.pb.gw.go
+++ b/proto/generated-go/v1/org_policy_service.pb.gw.go
@@ -1852,7 +1852,7 @@ func RegisterOrgPolicyServiceHandlerServer(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/GetPolicy", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/policies/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/GetPolicy", runtime.WithHTTPPathPattern("/v1/{name=instances/*/policies/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1877,7 +1877,7 @@ func RegisterOrgPolicyServiceHandlerServer(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/GetPolicy", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*/policies/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/GetPolicy", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/policies/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -1977,7 +1977,7 @@ func RegisterOrgPolicyServiceHandlerServer(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/ListPolicies", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/policies"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/ListPolicies", runtime.WithHTTPPathPattern("/v1/{parent=instances/*}/policies"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2002,7 +2002,7 @@ func RegisterOrgPolicyServiceHandlerServer(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/ListPolicies", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}/policies"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/ListPolicies", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/policies"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2102,7 +2102,7 @@ func RegisterOrgPolicyServiceHandlerServer(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/CreatePolicy", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/policies"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/CreatePolicy", runtime.WithHTTPPathPattern("/v1/{parent=instances/*}/policies"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2127,7 +2127,7 @@ func RegisterOrgPolicyServiceHandlerServer(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/CreatePolicy", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}/policies"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/CreatePolicy", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/policies"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2227,7 +2227,7 @@ func RegisterOrgPolicyServiceHandlerServer(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/UpdatePolicy", runtime.WithHTTPPathPattern("/v1/{policy.name=environments/*/instances/*/policies/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/UpdatePolicy", runtime.WithHTTPPathPattern("/v1/{policy.name=instances/*/policies/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2252,7 +2252,7 @@ func RegisterOrgPolicyServiceHandlerServer(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/UpdatePolicy", runtime.WithHTTPPathPattern("/v1/{policy.name=environments/*/instances/*/databases/*/policies/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/UpdatePolicy", runtime.WithHTTPPathPattern("/v1/{policy.name=instances/*/databases/*/policies/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2352,7 +2352,7 @@ func RegisterOrgPolicyServiceHandlerServer(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/DeletePolicy", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/policies/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/DeletePolicy", runtime.WithHTTPPathPattern("/v1/{name=instances/*/policies/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2377,7 +2377,7 @@ func RegisterOrgPolicyServiceHandlerServer(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/DeletePolicy", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*/policies/*}"))
+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/DeletePolicy", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/policies/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2507,7 +2507,7 @@ func RegisterOrgPolicyServiceHandlerClient(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/GetPolicy", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/policies/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/GetPolicy", runtime.WithHTTPPathPattern("/v1/{name=instances/*/policies/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2529,7 +2529,7 @@ func RegisterOrgPolicyServiceHandlerClient(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/GetPolicy", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*/policies/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/GetPolicy", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/policies/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2617,7 +2617,7 @@ func RegisterOrgPolicyServiceHandlerClient(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/ListPolicies", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/policies"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/ListPolicies", runtime.WithHTTPPathPattern("/v1/{parent=instances/*}/policies"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2639,7 +2639,7 @@ func RegisterOrgPolicyServiceHandlerClient(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/ListPolicies", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}/policies"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/ListPolicies", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/policies"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2727,7 +2727,7 @@ func RegisterOrgPolicyServiceHandlerClient(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/CreatePolicy", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*}/policies"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/CreatePolicy", runtime.WithHTTPPathPattern("/v1/{parent=instances/*}/policies"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2749,7 +2749,7 @@ func RegisterOrgPolicyServiceHandlerClient(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/CreatePolicy", runtime.WithHTTPPathPattern("/v1/{parent=environments/*/instances/*/databases/*}/policies"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/CreatePolicy", runtime.WithHTTPPathPattern("/v1/{parent=instances/*/databases/*}/policies"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2837,7 +2837,7 @@ func RegisterOrgPolicyServiceHandlerClient(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/UpdatePolicy", runtime.WithHTTPPathPattern("/v1/{policy.name=environments/*/instances/*/policies/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/UpdatePolicy", runtime.WithHTTPPathPattern("/v1/{policy.name=instances/*/policies/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2859,7 +2859,7 @@ func RegisterOrgPolicyServiceHandlerClient(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/UpdatePolicy", runtime.WithHTTPPathPattern("/v1/{policy.name=environments/*/instances/*/databases/*/policies/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/UpdatePolicy", runtime.WithHTTPPathPattern("/v1/{policy.name=instances/*/databases/*/policies/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2947,7 +2947,7 @@ func RegisterOrgPolicyServiceHandlerClient(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/DeletePolicy", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/policies/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/DeletePolicy", runtime.WithHTTPPathPattern("/v1/{name=instances/*/policies/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2969,7 +2969,7 @@ func RegisterOrgPolicyServiceHandlerClient(ctx context.Context, mux *runtime.Ser
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
var err error
var annotatedContext context.Context
- annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/DeletePolicy", runtime.WithHTTPPathPattern("/v1/{name=environments/*/instances/*/databases/*/policies/*}"))
+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.OrgPolicyService/DeletePolicy", runtime.WithHTTPPathPattern("/v1/{name=instances/*/databases/*/policies/*}"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
@@ -2995,9 +2995,9 @@ var (
pattern_OrgPolicyService_GetPolicy_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "environments", "policies", "name"}, ""))
- pattern_OrgPolicyService_GetPolicy_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "environments", "instances", "policies", "name"}, ""))
+ pattern_OrgPolicyService_GetPolicy_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "policies", "name"}, ""))
- pattern_OrgPolicyService_GetPolicy_4 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 2, 4, 1, 0, 4, 8, 5, 5}, []string{"v1", "environments", "instances", "databases", "policies", "name"}, ""))
+ pattern_OrgPolicyService_GetPolicy_4 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "instances", "databases", "policies", "name"}, ""))
pattern_OrgPolicyService_ListPolicies_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "policies"}, ""))
@@ -3005,9 +3005,9 @@ var (
pattern_OrgPolicyService_ListPolicies_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "environments", "parent", "policies"}, ""))
- pattern_OrgPolicyService_ListPolicies_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "environments", "instances", "parent", "policies"}, ""))
+ pattern_OrgPolicyService_ListPolicies_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "instances", "parent", "policies"}, ""))
- pattern_OrgPolicyService_ListPolicies_4 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4, 2, 5}, []string{"v1", "environments", "instances", "databases", "parent", "policies"}, ""))
+ pattern_OrgPolicyService_ListPolicies_4 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "policies"}, ""))
pattern_OrgPolicyService_CreatePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "policies"}, ""))
@@ -3015,9 +3015,9 @@ var (
pattern_OrgPolicyService_CreatePolicy_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "environments", "parent", "policies"}, ""))
- pattern_OrgPolicyService_CreatePolicy_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "environments", "instances", "parent", "policies"}, ""))
+ pattern_OrgPolicyService_CreatePolicy_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "instances", "parent", "policies"}, ""))
- pattern_OrgPolicyService_CreatePolicy_4 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4, 2, 5}, []string{"v1", "environments", "instances", "databases", "parent", "policies"}, ""))
+ pattern_OrgPolicyService_CreatePolicy_4 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3, 2, 4}, []string{"v1", "instances", "databases", "parent", "policies"}, ""))
pattern_OrgPolicyService_UpdatePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "policies", "policy.name"}, ""))
@@ -3025,9 +3025,9 @@ var (
pattern_OrgPolicyService_UpdatePolicy_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "environments", "policies", "policy.name"}, ""))
- pattern_OrgPolicyService_UpdatePolicy_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "environments", "instances", "policies", "policy.name"}, ""))
+ pattern_OrgPolicyService_UpdatePolicy_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "policies", "policy.name"}, ""))
- pattern_OrgPolicyService_UpdatePolicy_4 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 2, 4, 1, 0, 4, 8, 5, 5}, []string{"v1", "environments", "instances", "databases", "policies", "policy.name"}, ""))
+ pattern_OrgPolicyService_UpdatePolicy_4 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "instances", "databases", "policies", "policy.name"}, ""))
pattern_OrgPolicyService_DeletePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2}, []string{"v1", "policies", "name"}, ""))
@@ -3035,9 +3035,9 @@ var (
pattern_OrgPolicyService_DeletePolicy_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "environments", "policies", "name"}, ""))
- pattern_OrgPolicyService_DeletePolicy_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "environments", "instances", "policies", "name"}, ""))
+ pattern_OrgPolicyService_DeletePolicy_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "instances", "policies", "name"}, ""))
- pattern_OrgPolicyService_DeletePolicy_4 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 2, 4, 1, 0, 4, 8, 5, 5}, []string{"v1", "environments", "instances", "databases", "policies", "name"}, ""))
+ pattern_OrgPolicyService_DeletePolicy_4 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 1, 0, 4, 6, 5, 4}, []string{"v1", "instances", "databases", "policies", "name"}, ""))
)
var (
diff --git a/proto/v1/anomaly_service.proto b/proto/v1/anomaly_service.proto
index 15c82fb66e..7d0503da95 100644
--- a/proto/v1/anomaly_service.proto
+++ b/proto/v1/anomaly_service.proto
@@ -19,7 +19,7 @@ message SearchAnomaliesRequest {
// follow the [ebnf](https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form) syntax.
// Only support filter by resource and type for now.
// For example:
- // Search the anomalies of a specific resource: 'resource="environments/{environemnt}/instances/{instance}".'
+ // Search the anomalies of a specific resource: 'resource="instances/{instance}".'
// Search the specified types of anomalies: 'type="DATABASE_BACKUP_POLICY_VIOLATION" | "MIGRATION_SCHEMA".'
string filter = 1;
@@ -86,8 +86,8 @@ message Anomaly {
// The resource that is the target of the operation.
// Format:
- // - Instance: environments/{environment}/instnaces/{instance}
- // - Database: environments/{environment}/instnaces/{instance}/databases/{database}
+ // - Instance: instnaces/{instance}
+ // - Database: instnaces/{instance}/databases/{database}
string resource = 1 [(google.api.field_behavior) = REQUIRED];
// type is the type of the anomaly.
diff --git a/proto/v1/database_service.proto b/proto/v1/database_service.proto
index 552fdf8bf7..a941789a22 100644
--- a/proto/v1/database_service.proto
+++ b/proto/v1/database_service.proto
@@ -16,18 +16,18 @@ option go_package = "generated-go/v1";
service DatabaseService {
rpc GetDatabase(GetDatabaseRequest) returns (Database) {
- option (google.api.http) = {get: "/v1/{name=environments/*/instances/*/databases/*}"};
+ option (google.api.http) = {get: "/v1/{name=instances/*/databases/*}"};
option (google.api.method_signature) = "name";
}
rpc ListDatabases(ListDatabasesRequest) returns (ListDatabasesResponse) {
- option (google.api.http) = {get: "/v1/{parent=environments/*/instances/*}/databases"};
+ option (google.api.http) = {get: "/v1/{parent=instances/*}/databases"};
option (google.api.method_signature) = "";
}
rpc UpdateDatabase(UpdateDatabaseRequest) returns (Database) {
option (google.api.http) = {
- patch: "/v1/{database.name=environments/*/instances/*/databases/*}"
+ patch: "/v1/{database.name=instances/*/databases/*}"
body: "database"
};
option (google.api.method_signature) = "database,update_mask";
@@ -35,79 +35,79 @@ service DatabaseService {
rpc BatchUpdateDatabases(BatchUpdateDatabasesRequest) returns (BatchUpdateDatabasesResponse) {
option (google.api.http) = {
- post: "/v1/{parent=environments/*/instances/*}/databases:batchUpdate"
+ post: "/v1/{parent=instances/*}/databases:batchUpdate"
body: "*"
};
}
rpc GetDatabaseMetadata(GetDatabaseMetadataRequest) returns (DatabaseMetadata) {
- option (google.api.http) = {get: "/v1/{name=environments/*/instances/*/databases/*/metadata}"};
+ option (google.api.http) = {get: "/v1/{name=instances/*/databases/*/metadata}"};
}
rpc GetDatabaseSchema(GetDatabaseSchemaRequest) returns (DatabaseSchema) {
- option (google.api.http) = {get: "/v1/{name=environments/*/instances/*/databases/*/schema}"};
+ option (google.api.http) = {get: "/v1/{name=instances/*/databases/*/schema}"};
}
rpc GetBackupSetting(GetBackupSettingRequest) returns (BackupSetting) {
- option (google.api.http) = {get: "/v1/{name=environments/*/instances/*/databases/*/backupSetting}"};
+ option (google.api.http) = {get: "/v1/{name=instances/*/databases/*/backupSetting}"};
}
rpc UpdateBackupSetting(UpdateBackupSettingRequest) returns (BackupSetting) {
option (google.api.http) = {
- patch: "/v1/{setting.name=environments/*/instances/*/databases/*/backupSetting}"
+ patch: "/v1/{setting.name=instances/*/databases/*/backupSetting}"
body: "setting"
};
}
rpc CreateBackup(CreateBackupRequest) returns (Backup) {
option (google.api.http) = {
- post: "/v1/{parent=environments/*/instances/*/databases/*}/backups"
+ post: "/v1/{parent=instances/*/databases/*}/backups"
body: "backup"
};
}
rpc ListBackup(ListBackupRequest) returns (ListBackupResponse) {
- option (google.api.http) = {get: "/v1/{parent=environments/*/instances/*/databases/*}/backups"};
+ option (google.api.http) = {get: "/v1/{parent=instances/*/databases/*}/backups"};
option (google.api.method_signature) = "parent";
}
rpc ListSlowQueries(ListSlowQueriesRequest) returns (ListSlowQueriesResponse) {
- option (google.api.http) = {get: "/v1/{parent=environments/*/instances/*/databases/*}/slowQueries"};
+ option (google.api.http) = {get: "/v1/{parent=instances/*/databases/*}/slowQueries"};
option (google.api.method_signature) = "parent";
}
rpc ListSecrets(ListSecretsRequest) returns (ListSecretsResponse) {
- option (google.api.http) = {get: "/v1/{parent=environments/*/instances/*/databases/*}/secrets"};
+ option (google.api.http) = {get: "/v1/{parent=instances/*/databases/*}/secrets"};
option (google.api.method_signature) = "parent";
}
rpc UpdateSecret(UpdateSecretRequest) returns (Secret) {
option (google.api.http) = {
- patch: "/v1/{secret.name=environments/*/instances/*/databases/*/secrets/*}";
+ patch: "/v1/{secret.name=instances/*/databases/*/secrets/*}";
body: "secret";
};
}
rpc DeleteSecret(DeleteSecretRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {delete: "/v1/{name=environments/*/instances/*/databases/*/secrets/*}"};
+ option (google.api.http) = {delete: "/v1/{name=instances/*/databases/*/secrets/*}"};
}
rpc AdviseIndex(AdviseIndexRequest) returns (AdviseIndexResponse) {
- option (google.api.http) = {post: "/v1/{parent=environments/*/instances/*/databases/*}:adviseIndex"};
+ option (google.api.http) = {post: "/v1/{parent=instances/*/databases/*}:adviseIndex"};
option (google.api.method_signature) = "parent";
}
}
message GetDatabaseRequest {
// The name of the database to retrieve.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
string name = 1 [(google.api.field_behavior) = REQUIRED];
}
message ListDatabasesRequest {
// The parent, which owns this collection of databases.
- // Format: environments/{environment}/instances/{instance}
- // Use "environments/-/instances/-" to list all databases from all environments.
+ // Format: instances/{instance}
+ // Use "instances/-" to list all databases.
string parent = 1 [(google.api.field_behavior) = REQUIRED];
// The maximum number of databases to return. The service may return fewer than
@@ -141,7 +141,7 @@ message UpdateDatabaseRequest {
// The database to update.
//
// The database's `name` field is used to identify the database to update.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
Database database = 1 [(google.api.field_behavior) = REQUIRED];
// The list of fields to update.
@@ -150,7 +150,7 @@ message UpdateDatabaseRequest {
message BatchUpdateDatabasesRequest {
// The parent resource shared by all databases being updated.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
// If the operation spans parents, a dash (-) may be accepted as a wildcard.
// We only support updating the project of databases for now.
string parent = 1;
@@ -167,19 +167,19 @@ message BatchUpdateDatabasesResponse {
message GetDatabaseMetadataRequest {
// The name of the database to retrieve metadata.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
string name = 1 [(google.api.field_behavior) = REQUIRED];
}
message GetDatabaseSchemaRequest {
// The name of the database to retrieve schema.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
string name = 1 [(google.api.field_behavior) = REQUIRED];
}
message GetBackupSettingRequest {
// The name of the database to retrieve backup setting.
- // Format: environments/{environment}/instances/{instance}/databases/{database}/backupSetting
+ // Format: instances/{instance}/databases/{database}/backupSetting
string name = 1 [(google.api.field_behavior) = REQUIRED];
}
@@ -191,7 +191,7 @@ message UpdateBackupSettingRequest {
// CreateBackupRequest is the request message for CreateBackup.
message CreateBackupRequest {
// The parent resource where this backup will be created.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
string parent = 1 [(google.api.field_behavior) = REQUIRED];
Backup backup = 2 [(google.api.field_behavior) = REQUIRED];
@@ -200,7 +200,7 @@ message CreateBackupRequest {
// ListBackupRequest is the request message for ListBackup.
message ListBackupRequest {
// The parent resource where this backup will be created.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
string parent = 1 [(google.api.field_behavior) = REQUIRED];
// Not used. The maximum number of backups to return. The service may return fewer than
@@ -228,7 +228,7 @@ message ListBackupResponse {
message Database {
// The name of the database.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
// {database} is the database name in the instance.
string name = 1;
@@ -467,7 +467,7 @@ message DatabaseSchema {
// BackupSetting is the setting for database backup.
message BackupSetting {
// The name of the database backup setting.
- // Format: environments/{environment}/instances/{instance}/databases/{database}/backupSettings
+ // Format: instances/{instance}/databases/{database}/backupSettings
string name = 1;
// The default maximum age of a Backup created via this BackupPlan.
@@ -519,7 +519,7 @@ message Backup {
}
// The resource name of the database backup. backup-name is specified by the client.
- // Format: environments/{environment}/instances/{instance}/databases/{database}/backups/{backup-name}
+ // Format: instances/{instance}/databases/{database}/backups/{backup-name}
string name = 1;
// The timestamp when the backup resource was created initally.
@@ -540,7 +540,7 @@ message Backup {
// ListSlowQueriesRequest is the request of listing slow query.
message ListSlowQueriesRequest {
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
string parent = 1 [(google.api.field_behavior) = REQUIRED];
// The filter of the slow query log.
@@ -574,7 +574,7 @@ message ListSlowQueriesResponse {
// SlowQueryLog is the slow query log.
message SlowQueryLog {
// The resource of the slow query log.
- // The format is "environments/{environment}/instances/{instance}/databases/{database}".
+ // The format is "instances/{instance}/databases/{database}".
string resource = 1 [(google.api.field_behavior) = REQUIRED];
// The project of the slow query log.
@@ -647,7 +647,7 @@ message SlowQueryDetails {
message ListSecretsRequest {
// The parent of the secret.
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
string parent = 1 [(google.api.field_behavior) = REQUIRED];
// Not used. The maximum number of databases to return. The service may return fewer than
@@ -687,7 +687,7 @@ message UpdateSecretRequest {
message DeleteSecretRequest {
// The name of the secret to be deleted.
// Format:
- // environments/{environment}/instances/{instance}/databases/{database}/secrets/{secret}
+ // instances/{instance}/databases/{database}/secrets/{secret}
string name = 1 [(google.api.field_behavior) = REQUIRED];
}
@@ -695,7 +695,7 @@ message DeleteSecretRequest {
message Secret {
// name is the unique name of the secret, which is specified by the client.
// Format:
- // environments/{environment}/instances/{instance}/databases/{database}/secrets/{secret}
+ // instances/{instance}/databases/{database}/secrets/{secret}
string name = 1 [(google.api.field_behavior) = REQUIRED];
// Not used. The timestamp when the secret resource was created initally.
@@ -713,7 +713,7 @@ message Secret {
// AdviseIndexRequest is the request of advising index.
message AdviseIndexRequest {
- // Format: environments/{environment}/instances/{instance}/databases/{database}
+ // Format: instances/{instance}/databases/{database}
string parent = 1 [(google.api.field_behavior) = REQUIRED];
// The statement to be advised.
diff --git a/proto/v1/instance_role_service.proto b/proto/v1/instance_role_service.proto
index 66461e22b5..8416827859 100644
--- a/proto/v1/instance_role_service.proto
+++ b/proto/v1/instance_role_service.proto
@@ -12,18 +12,18 @@ option go_package = "generated-go/v1";
service InstanceRoleService {
rpc GetInstanceRole(GetInstanceRoleRequest) returns (InstanceRole) {
- option (google.api.http) = {get: "/v1/{name=environments/*/instances/*/roles/*}"};
+ option (google.api.http) = {get: "/v1/{name=instances/*/roles/*}"};
option (google.api.method_signature) = "name";
}
rpc ListInstanceRoles(ListInstanceRolesRequest) returns (ListInstanceRolesResponse) {
- option (google.api.http) = {get: "/v1/{parent=environments/*/instances/*}/roles"};
+ option (google.api.http) = {get: "/v1/{parent=instances/*}/roles"};
option (google.api.method_signature) = "parent";
}
rpc CreateInstanceRole(CreateInstanceRoleRequest) returns (InstanceRole) {
option (google.api.http) = {
- post: "/v1/{parent=environments/*/instances/*}/roles"
+ post: "/v1/{parent=instances/*}/roles"
body: "role"
};
option (google.api.method_signature) = "parent,role";
@@ -31,20 +31,20 @@ service InstanceRoleService {
rpc UpdateInstanceRole(UpdateInstanceRoleRequest) returns (InstanceRole) {
option (google.api.http) = {
- patch: "/v1/{role.name=environments/*/instances/*/roles/*}"
+ patch: "/v1/{role.name=instances/*/roles/*}"
body: "role"
};
option (google.api.method_signature) = "role,update_mask";
}
rpc DeleteInstanceRole(DeleteInstanceRoleRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {delete: "/v1/{name=environments/*/instances/*/roles/*}"};
+ option (google.api.http) = {delete: "/v1/{name=instances/*/roles/*}"};
option (google.api.method_signature) = "name";
}
rpc UndeleteInstanceRole(UndeleteInstanceRoleRequest) returns (InstanceRole) {
option (google.api.http) = {
- post: "/v1/{name=environments/*/instances/*/roles/*}:undelete"
+ post: "/v1/{name=instances/*/roles/*}:undelete"
body: "*"
};
}
@@ -52,14 +52,14 @@ service InstanceRoleService {
message GetInstanceRoleRequest {
// The name of the role to retrieve.
- // Format: environments/{environment}/instances/{instance}/roles/{role name}
+ // Format: instances/{instance}/roles/{role name}
// The role name is the unique name for the role.
string name = 1 [(google.api.field_behavior) = REQUIRED];
}
message ListInstanceRolesRequest {
// The parent, which owns this collection of roles.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
string parent = 1 [(google.api.field_behavior) = REQUIRED];
// The maximum number of roles to return. The service may return fewer than
@@ -87,7 +87,7 @@ message ListInstanceRolesResponse {
message CreateInstanceRoleRequest {
// The parent resource where this role will be created.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
string parent = 1 [(google.api.field_behavior) = REQUIRED];
// The role to create.
@@ -97,8 +97,8 @@ message CreateInstanceRoleRequest {
message UpdateInstanceRoleRequest {
// The role to update.
//
- // The role's `name`, `environment` and `instance` field is used to identify the role to update.
- // Format: environments/{environment}/instances/{instance}/roles/{role name}
+ // The role's `name` and `instance` field is used to identify the role to update.
+ // Format: instances/{instance}/roles/{role name}
InstanceRole role = 1 [(google.api.field_behavior) = REQUIRED];
// The list of fields to update.
@@ -107,20 +107,20 @@ message UpdateInstanceRoleRequest {
message DeleteInstanceRoleRequest {
// The name of the role to delete.
- // Format: environments/{environment}/instances/{instance}/roles/{role name}
+ // Format: instances/{instance}/roles/{role name}
string name = 1 [(google.api.field_behavior) = REQUIRED];
}
message UndeleteInstanceRoleRequest {
// The name of the deleted role.
- // Format: environments/{environment}/instances/{instance}/roles/{role name}
+ // Format: instances/{instance}/roles/{role name}
string name = 1 [(google.api.field_behavior) = REQUIRED];
}
// InstanceRole is the API message for instance role.
message InstanceRole {
// The name of the role.
- // Format: environments/{environment}/instances/{instance}/roles/{role name}
+ // Format: instances/{instance}/roles/{role name}
// The role name is the unique name for the role.
string name = 1;
diff --git a/proto/v1/instance_service.proto b/proto/v1/instance_service.proto
index 66c9d1cb68..8ec96b8726 100644
--- a/proto/v1/instance_service.proto
+++ b/proto/v1/instance_service.proto
@@ -13,67 +13,67 @@ option go_package = "generated-go/v1";
service InstanceService {
rpc GetInstance(GetInstanceRequest) returns (Instance) {
- option (google.api.http) = {get: "/v1/{name=environments/*/instances/*}"};
+ option (google.api.http) = {get: "/v1/{name=instances/*}"};
option (google.api.method_signature) = "name";
}
rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) {
- option (google.api.http) = {get: "/v1/{parent=environments/*}/instances"};
- option (google.api.method_signature) = "parent";
+ option (google.api.http) = {get: "/v1/instances"};
+ option (google.api.method_signature) = "";
}
rpc CreateInstance(CreateInstanceRequest) returns (Instance) {
option (google.api.http) = {
- post: "/v1/{parent=environments/*}/instances"
+ post: "/v1/instances"
body: "instance"
};
- option (google.api.method_signature) = "parent,instance";
+ option (google.api.method_signature) = "instance";
}
rpc UpdateInstance(UpdateInstanceRequest) returns (Instance) {
option (google.api.http) = {
- patch: "/v1/{instance.name=environments/*/instances/*}"
+ patch: "/v1/{instance.name=instances/*}"
body: "instance"
};
option (google.api.method_signature) = "instance,update_mask";
}
rpc DeleteInstance(DeleteInstanceRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {delete: "/v1/{name=environments/*/instances/*}"};
+ option (google.api.http) = {delete: "/v1/{name=instances/*}"};
option (google.api.method_signature) = "name";
}
rpc UndeleteInstance(UndeleteInstanceRequest) returns (Instance) {
option (google.api.http) = {
- post: "/v1/{name=environments/*/instances/*}:undelete"
+ post: "/v1/{name=instances/*}:undelete"
body: "*"
};
}
rpc AddDataSource(AddDataSourceRequest) returns (Instance) {
option (google.api.http) = {
- post: "/v1/{instance=environments/*/instances/*}:addDataSource"
+ post: "/v1/{instance=instances/*}:addDataSource"
body: "*"
};
}
rpc RemoveDataSource(RemoveDataSourceRequest) returns (Instance) {
option (google.api.http) = {
- post: "/v1/{instance=environments/*/instances/*}:removeDataSource"
+ post: "/v1/{instance=instances/*}:removeDataSource"
body: "*"
};
}
rpc UpdateDataSource(UpdateDataSourceRequest) returns (Instance) {
option (google.api.http) = {
- patch: "/v1/{instance=environments/*/instances/*}:updateDataSource"
+ patch: "/v1/{instance=instances/*}:updateDataSource"
body: "*"
};
}
rpc SyncSlowQueries(SyncSlowQueriesRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
- post: "/v1/{instance=environments/*/instances/*}:syncSlowQueries"
+ post: "/v1/{instance=instances/*}:syncSlowQueries"
body: "*"
};
}
@@ -81,31 +81,26 @@ service InstanceService {
message GetInstanceRequest {
// The name of the instance to retrieve.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
string name = 1 [(google.api.field_behavior) = REQUIRED];
}
message ListInstancesRequest {
- // The parent, which owns this collection of instances.
- // Format: environments/{environment}
- // Use "environments/-" to list all instances from all environments.
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
// The maximum number of instances to return. The service may return fewer than
// this value.
// If unspecified, at most 50 instances will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
- int32 page_size = 2;
+ int32 page_size = 1;
// A page token, received from a previous `ListInstances` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListInstances` must match
// the call that provided the page token.
- string page_token = 3;
+ string page_token = 2;
// Show deleted instances if specified.
- bool show_deleted = 4;
+ bool show_deleted = 3;
}
message ListInstancesResponse {
@@ -118,26 +113,22 @@ message ListInstancesResponse {
}
message CreateInstanceRequest {
- // The parent resource where this instance will be created.
- // Format: environments/{environment}
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
// The instance to create.
- Instance instance = 2 [(google.api.field_behavior) = REQUIRED];
+ Instance instance = 1 [(google.api.field_behavior) = REQUIRED];
// The ID to use for the instance, which will become the final component of
// the instance's resource name.
//
// This value should be 4-63 characters, and valid characters
// are /[a-z][0-9]-/.
- string instance_id = 3;
+ string instance_id = 2;
}
message UpdateInstanceRequest {
// The instance to update.
//
// The instance's `name` field is used to identify the instance to update.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
Instance instance = 1 [(google.api.field_behavior) = REQUIRED];
// The list of fields to update.
@@ -146,7 +137,7 @@ message UpdateInstanceRequest {
message DeleteInstanceRequest {
// The name of the instance to delete.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
string name = 1 [(google.api.field_behavior) = REQUIRED];
// If set to true, any databases and sheets from this project will also be moved to default project, and all open issues will be closed.
@@ -155,13 +146,13 @@ message DeleteInstanceRequest {
message UndeleteInstanceRequest {
// The name of the deleted instance.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
string name = 1 [(google.api.field_behavior) = REQUIRED];
}
message AddDataSourceRequest {
// The name of the instance to add a data source to.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
string instance = 1 [(google.api.field_behavior) = REQUIRED];
// Identified by type.
@@ -171,7 +162,7 @@ message AddDataSourceRequest {
message RemoveDataSourceRequest {
// The name of the instance to remove a data source from.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
string instance = 1 [(google.api.field_behavior) = REQUIRED];
// Identified by type.
@@ -181,7 +172,7 @@ message RemoveDataSourceRequest {
message UpdateDataSourceRequest {
// The name of the instance to update a data source.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
string instance = 1 [(google.api.field_behavior) = REQUIRED];
// Identified by type.
@@ -193,13 +184,13 @@ message UpdateDataSourceRequest {
message SyncSlowQueriesRequest {
// The name of the instance to sync slow queries.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
string instance = 1 [(google.api.field_behavior) = REQUIRED];
}
message Instance {
// The name of the instance.
- // Format: environments/{environment}/instances/{instance}
+ // Format: instances/{instance}
string name = 1;
// The system-assigned, unique identifier for a resource.
@@ -214,6 +205,10 @@ message Instance {
string external_link = 6;
repeated DataSource data_sources = 7;
+
+ // The environment resource.
+ // Format: environments/prod where prod is the environment resource ID.
+ string environment = 8;
}
message DataSource {
diff --git a/proto/v1/org_policy_service.proto b/proto/v1/org_policy_service.proto
index 7991d36467..4b24aaa349 100644
--- a/proto/v1/org_policy_service.proto
+++ b/proto/v1/org_policy_service.proto
@@ -20,8 +20,8 @@ service OrgPolicyService {
additional_bindings {get: "/v1/{name=projects/*/policies/*}"}
additional_bindings {get: "/v1/{name=environments/*/policies/*}"}
- additional_bindings {get: "/v1/{name=environments/*/instances/*/policies/*}"}
- additional_bindings {get: "/v1/{name=environments/*/instances/*/databases/*/policies/*}"}
+ additional_bindings {get: "/v1/{name=instances/*/policies/*}"}
+ additional_bindings {get: "/v1/{name=instances/*/databases/*/policies/*}"}
};
option (google.api.method_signature) = "name";
}
@@ -32,8 +32,8 @@ service OrgPolicyService {
additional_bindings {get: "/v1/{parent=projects/*}/policies"}
additional_bindings {get: "/v1/{parent=environments/*}/policies"}
- additional_bindings {get: "/v1/{parent=environments/*/instances/*}/policies"}
- additional_bindings {get: "/v1/{parent=environments/*/instances/*/databases/*}/policies"}
+ additional_bindings {get: "/v1/{parent=instances/*}/policies"}
+ additional_bindings {get: "/v1/{parent=instances/*/databases/*}/policies"}
};
option (google.api.method_signature) = "";
}
@@ -52,11 +52,11 @@ service OrgPolicyService {
body: "policy"
}
additional_bindings {
- post: "/v1/{parent=environments/*/instances/*}/policies"
+ post: "/v1/{parent=instances/*}/policies"
body: "policy"
}
additional_bindings {
- post: "/v1/{parent=environments/*/instances/*/databases/*}/policies"
+ post: "/v1/{parent=instances/*/databases/*}/policies"
body: "policy"
}
};
@@ -77,11 +77,11 @@ service OrgPolicyService {
body: "policy"
}
additional_bindings {
- patch: "/v1/{policy.name=environments/*/instances/*/policies/*}"
+ patch: "/v1/{policy.name=instances/*/policies/*}"
body: "policy"
}
additional_bindings {
- patch: "/v1/{policy.name=environments/*/instances/*/databases/*/policies/*}"
+ patch: "/v1/{policy.name=instances/*/databases/*/policies/*}"
body: "policy"
}
};
@@ -94,8 +94,8 @@ service OrgPolicyService {
additional_bindings {delete: "/v1/{name=projects/*/policies/*}"}
additional_bindings {delete: "/v1/{name=environments/*/policies/*}"}
- additional_bindings {delete: "/v1/{name=environments/*/instances/*/policies/*}"}
- additional_bindings {delete: "/v1/{name=environments/*/instances/*/databases/*/policies/*}"}
+ additional_bindings {delete: "/v1/{name=instances/*/policies/*}"}
+ additional_bindings {delete: "/v1/{name=instances/*/databases/*/policies/*}"}
};
option (google.api.method_signature) = "name";
}
@@ -105,8 +105,8 @@ message CreatePolicyRequest {
// The parent resource where this instance will be created.
// Workspace resource name: "".
// Environment resource name: environments/environment-id.
- // Instance resource name: environments/environment-id/instances/instance-id.
- // Database resource name: environments/environment-id/instances/instance-id/databases/database-name.
+ // Instance resource name: instances/instance-id.
+ // Database resource name: instances/instance-id/databases/database-name.
string parent = 1 [(google.api.field_behavior) = REQUIRED];
// The policy to create.
@@ -122,8 +122,8 @@ message UpdatePolicyRequest {
// Format: {resource name}/policies/{policy type}
// Workspace resource name: "".
// Environment resource name: environments/environment-id.
- // Instance resource name: environments/environment-id/instances/instance-id.
- // Database resource name: environments/environment-id/instances/instance-id/databases/database-name.
+ // Instance resource name: instances/instance-id.
+ // Database resource name: instances/instance-id/databases/database-name.
Policy policy = 1 [(google.api.field_behavior) = REQUIRED];
// The list of fields to update.
@@ -139,8 +139,8 @@ message DeletePolicyRequest {
// Format: {resource name}/policies/{policy type}
// Workspace resource name: "".
// Environment resource name: environments/environment-id.
- // Instance resource name: environments/environment-id/instances/instance-id.
- // Database resource name: environments/environment-id/instances/instance-id/databases/database-name.
+ // Instance resource name: instances/instance-id.
+ // Database resource name: instances/instance-id/databases/database-name.
string name = 1 [(google.api.field_behavior) = REQUIRED];
}
@@ -188,8 +188,8 @@ message Policy {
// Format: {resource name}/policies/{policy type}
// Workspace resource name: "".
// Environment resource name: environments/environment-id.
- // Instance resource name: environments/environment-id/instances/instance-id.
- // Database resource name: environments/environment-id/instances/instance-id/databases/database-name.
+ // Instance resource name: instances/instance-id.
+ // Database resource name: instances/instance-id/databases/database-name.
string name = 1;
// The system-assigned, unique identifier for a resource.