diff --git a/api/configuration/configuration.go b/api/configuration/configuration.go index 52f6ec35..ef3f6714 100644 --- a/api/configuration/configuration.go +++ b/api/configuration/configuration.go @@ -8,9 +8,9 @@ type SecretKeys struct { // Configuration interface type Configuration struct { - BackendAddress string `toml:"backend_address,omitempty" mapstructure:"backend_addr,omitempty"` - Keys SecretKeys - AccessToken string `toml:"access_token,omitempty" mapstructure:"access_token,omitempty"` - EnvName string `toml:"envName,omitempty" mapstructure:"envName,omitempty"` - Insecure bool `toml:"insecure,omitempty" mapstructure:"insecure,omitempty"` + BackendAddress string `toml:"backend_address,omitempty" mapstructure:"backend_address,omitempty"` + Keys SecretKeys + AccessToken string `toml:"access_token,omitempty" mapstructure:"access_token,omitempty"` + EnvName string `toml:"envName,omitempty" mapstructure:"envName,omitempty"` + Insecure bool `toml:"insecure,omitempty" mapstructure:"insecure,omitempty"` } diff --git a/cmd/configure/configure.go b/cmd/configure/configure.go index 2f333687..8bb52c12 100644 --- a/cmd/configure/configure.go +++ b/cmd/configure/configure.go @@ -68,7 +68,7 @@ func execute(cmd *cobra.Command) { } func createConfigFileIfNotExist() { - dirPath := path.Join(os.Getenv("HOME"), "." + app.App.Name) + dirPath := path.Join(os.Getenv("HOME"), "."+app.App.Name) if err := dir.CreateDirIfNotExist(dirPath); err != nil { log.Fatalf("Error creating the .%s folder: %v", app.App.Name, err) } @@ -78,7 +78,7 @@ func createConfigFileIfNotExist() { } } -func getConfigKey(flagKey string, flagValue string, envVariableName string, configValue string, defaultValue string) (string) { +func getConfigKey(flagKey string, flagValue string, envVariableName string, configValue string, defaultValue string) string { if flagValue != "" { return flagValue } else if os.Getenv(envVariableName) != "" { @@ -87,12 +87,12 @@ func getConfigKey(flagKey string, flagValue string, envVariableName string, conf return configValue } else if defaultValue != "" { return defaultValue - } + } log.Fatalf("Please pass %s flag nor set environment variable %s to configure", flagKey, envVariableName) return "" } -func hashKey(key string) (string) { +func hashKey(key string) string { hash := sha256.New() hash.Write([]byte(key)) hashedResult := hash.Sum(nil) diff --git a/cmd/create/create.go b/cmd/create/create.go new file mode 100644 index 00000000..3414e3f5 --- /dev/null +++ b/cmd/create/create.go @@ -0,0 +1,17 @@ +package create + +import ( + "github.com/dream11/odin/cmd" + "github.com/spf13/cobra" +) + +// createCmd represents the create command +var createCmd = &cobra.Command{ + Use: "create", + Short: "Create resources", + Long: `Create resources`, +} + +func init() { + cmd.RootCmd.AddCommand(createCmd) +} diff --git a/cmd/create/environment.go b/cmd/create/environment.go new file mode 100644 index 00000000..af87c935 --- /dev/null +++ b/cmd/create/environment.go @@ -0,0 +1,52 @@ +package create + +import ( + "github.com/dream11/odin/internal/service" + "github.com/dream11/odin/pkg/util" + environmentProto "github.com/dream11/odin/proto/gen/go/dream11/od/environment/v1" + log "github.com/sirupsen/logrus" + "github.com/spf13/cobra" +) + +var envName string +var provisioningType string +var accounts string + +var environmentClient service.Environment + +// environmentCmd represents the environment command +var environmentCmd = &cobra.Command{ + Use: "environment", + Short: "Create environment", + Args: func(cmd *cobra.Command, args []string) error { + return cobra.NoArgs(cmd, args) + }, + Run: func(cmd *cobra.Command, args []string) { + execute(cmd) + }, +} + +func init() { + environmentCmd.Flags().StringVar(&envName, "name", "", "name of the environment to be created") + environmentCmd.Flags().StringVar(&accounts, "accounts", "", "list of comma separated cloud provider accounts") + environmentCmd.Flags().StringVar(&provisioningType, "provisioning-type", "dev", "provisioning type of the environment") + err := environmentCmd.MarkFlagRequired("name") + if err != nil { + log.Fatal("Error marking 'name' flag as required:", err) + } + createCmd.AddCommand(environmentCmd) +} + +func execute(cmd *cobra.Command) { + ctx := cmd.Context() + + err := environmentClient.CreateEnvironment(&ctx, &environmentProto.CreateEnvironmentRequest{ + EnvName: envName, + Accounts: util.SplitProviderAccount(accounts), + ProvisioningType: provisioningType, + }) + + if err != nil { + log.Fatal("Failed to create environment ", err) + } +} diff --git a/cmd/list/environment.go b/cmd/list/environment.go index a4f8a6be..2ae02453 100644 --- a/cmd/list/environment.go +++ b/cmd/list/environment.go @@ -3,10 +3,10 @@ package list import ( "encoding/json" "fmt" - "github.com/dream11/odin/pkg/constant" "strconv" "github.com/dream11/odin/internal/service" + "github.com/dream11/odin/pkg/constant" "github.com/dream11/odin/pkg/table" environment "github.com/dream11/odin/proto/gen/go/dream11/od/environment/v1" log "github.com/sirupsen/logrus" @@ -100,4 +100,3 @@ func writeAsJSON(response *environment.ListEnvironmentResponse) { output, _ := json.MarshalIndent(environments, "", " ") fmt.Print(string(output)) } - diff --git a/go.mod b/go.mod index 64011b44..0f850f13 100644 --- a/go.mod +++ b/go.mod @@ -5,11 +5,15 @@ go 1.17 require github.com/olekukonko/tablewriter v0.0.5 require ( + github.com/briandowns/spinner v1.23.0 // indirect + github.com/fatih/color v1.13.0 // indirect github.com/fsnotify/fsnotify v1.6.0 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/magiconair/properties v1.8.7 // indirect + github.com/mattn/go-colorable v0.1.12 // indirect + github.com/mattn/go-isatty v0.0.14 // indirect github.com/mattn/go-runewidth v0.0.9 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/pelletier/go-toml/v2 v2.0.8 // indirect @@ -19,6 +23,7 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/subosito/gotenv v1.4.2 // indirect golang.org/x/sys v0.11.0 // indirect + golang.org/x/term v0.11.0 // indirect golang.org/x/text v0.12.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/go.sum b/go.sum index 9edc7789..85e7d773 100644 --- a/go.sum +++ b/go.sum @@ -783,6 +783,8 @@ github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6r github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= +github.com/briandowns/spinner v1.23.0 h1:alDF2guRWqa/FOZZYWjlMIx2L6H0wyewPxo/CH4Pt2A= +github.com/briandowns/spinner v1.23.0/go.mod h1:rPG4gmXeN3wQV/TsAY4w8lPdIM6RX3yqeBQJSrbXjuE= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/census-instrumentation/opencensus-proto v0.3.0/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= @@ -838,6 +840,7 @@ github.com/envoyproxy/protoc-gen-validate v0.10.0/go.mod h1:DRjgyB0I43LtJapqN6Ni github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU= +github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= @@ -1055,12 +1058,14 @@ github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaO github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= @@ -1514,6 +1519,7 @@ golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.11.0 h1:F9tnn/DA/Im8nCwm+fX+1/eBwi4qFjRT++MhtVC4ZX0= golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/internal/service/environment.go b/internal/service/environment.go index 143797b9..f06e56f7 100644 --- a/internal/service/environment.go +++ b/internal/service/environment.go @@ -2,8 +2,14 @@ package service import ( "context" + "fmt" + "io" + "github.com/briandowns/spinner" + "github.com/dream11/odin/pkg/constant" environment "github.com/dream11/odin/proto/gen/go/dream11/od/environment/v1" + + log "github.com/sirupsen/logrus" ) // Environment performs operation on environment like create, list, describe, delete @@ -23,3 +29,40 @@ func (e *Environment) ListEnvironments(ctx *context.Context, request *environmen return response, nil } + +// CreateEnvironment creates environment +func (e *Environment) CreateEnvironment(ctx *context.Context, request *environment.CreateEnvironmentRequest) error { + conn, requestCtx, err := grpcClient(ctx) + if err != nil { + return err + } + client := environment.NewEnvironmentServiceClient(conn) + stream, err := client.CreateEnvironment(*requestCtx, request) + if err != nil { + return err + } + + log.Info("Creating environment...") + spinner := spinner.New(spinner.CharSets[constant.SpinnerType], constant.SpinnerDelay) + spinner.Color(constant.SpinnerColor, constant.SpinnerStyle) + + var message string + for { + response, err := stream.Recv() + spinner.Stop() + if err != nil { + if err == context.Canceled || err == io.EOF { + break + } + log.Error(err.Error()) + return err + } + if response != nil { + message = response.Message + spinner.Prefix = fmt.Sprintf(" %s ", response.Message) + spinner.Start() + } + } + log.Info(message) + return err +} diff --git a/main.go b/main.go index ea848a6a..b34c78c4 100644 --- a/main.go +++ b/main.go @@ -5,8 +5,9 @@ package main import ( "github.com/dream11/odin/cmd" - _ "github.com/dream11/odin/cmd/list" _ "github.com/dream11/odin/cmd/configure" + _ "github.com/dream11/odin/cmd/create" + _ "github.com/dream11/odin/cmd/list" _ "github.com/dream11/odin/internal/ui" ) diff --git a/pkg/constant/constant.go b/pkg/constant/constant.go index 86706bef..937cda91 100644 --- a/pkg/constant/constant.go +++ b/pkg/constant/constant.go @@ -1,8 +1,21 @@ package constant +import "time" + const ( // TEXT type output format TEXT = "text" // JSON type output format JSON = "json" + // SpinnerColor Defines color of spinner + SpinnerColor = "fgHiBlue" + + // SpinnerStyle Defines style of spinner + SpinnerStyle = "bold" + + // SpinnerType Defines type of spinner + SpinnerType = 14 + + // SpinnerDelay Defines spinner delay + SpinnerDelay = 100 * time.Millisecond ) diff --git a/pkg/dir/dir.go b/pkg/dir/dir.go index 4c40ae5a..8b7dac03 100644 --- a/pkg/dir/dir.go +++ b/pkg/dir/dir.go @@ -62,7 +62,7 @@ func Exists(path string) (bool, error) { } // CreateDirIfNotExist : create directory if it doesn't exist -func CreateDirIfNotExist(path string) (error) { +func CreateDirIfNotExist(path string) error { dirExists, err := Exists(path) if err != nil { return err @@ -77,7 +77,7 @@ func CreateDirIfNotExist(path string) (error) { } // CreateFileIfNotExist : create file if it doesn't exist -func CreateFileIfNotExist(path string) (error) { +func CreateFileIfNotExist(path string) error { if _, err := os.Stat(path); os.IsNotExist(err) { file, err := os.Create(path) if err != nil { diff --git a/pkg/util/util.go b/pkg/util/util.go new file mode 100644 index 00000000..09d0fc72 --- /dev/null +++ b/pkg/util/util.go @@ -0,0 +1,10 @@ +package util + +import "strings" + +func SplitProviderAccount(providerAccounts string) []string { + if providerAccounts == "" { + return nil + } + return strings.Split(providerAccounts, ",") +} diff --git a/proto/dream11/od/dto/v1/environment.proto b/proto/dream11/od/dto/v1/environment.proto index 0e4a1861..fab5eb9d 100644 --- a/proto/dream11/od/dto/v1/environment.proto +++ b/proto/dream11/od/dto/v1/environment.proto @@ -11,7 +11,7 @@ message Environment { optional int64 id = 1; optional google.protobuf.Timestamp created_at = 2; optional google.protobuf.Timestamp updated_at = 3; - optional int64 created_by = 4; + optional string created_by = 4; optional int32 version = 5; optional int64 org_id = 6; optional string provider_account_name = 7; @@ -20,4 +20,11 @@ message Environment { optional string status = 10; optional google.protobuf.Timestamp auto_deletion_time = 11; repeated dream11.od.dto.v1.ServiceTask services = 12; + repeated AccountInformation account_information = 13; +} + +message AccountInformation { + string provider_account_name = 1; + google.protobuf.Struct service_accounts_snapshot = 2; + string status = 3; } diff --git a/proto/dream11/od/environment/v1/environment.proto b/proto/dream11/od/environment/v1/environment.proto index 519b2061..02e53061 100644 --- a/proto/dream11/od/environment/v1/environment.proto +++ b/proto/dream11/od/environment/v1/environment.proto @@ -39,7 +39,7 @@ message UpdateEnvironmentResponse {} message CreateEnvironmentRequest { string env_name = 1; - string account = 2; + repeated string accounts = 2; string provisioning_type = 3; } diff --git a/proto/gen/go/dream11/od/auth/v1/auth.pb.go b/proto/gen/go/dream11/od/auth/v1/auth.pb.go index 2d83d4d6..aff01bf0 100644 --- a/proto/gen/go/dream11/od/auth/v1/auth.pb.go +++ b/proto/gen/go/dream11/od/auth/v1/auth.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.33.0 +// protoc v5.26.1 // source: dream11/od/auth/v1/auth.proto package v1 diff --git a/proto/gen/go/dream11/od/auth/v1/auth_grpc.pb.go b/proto/gen/go/dream11/od/auth/v1/auth_grpc.pb.go index 464ba296..dce36b78 100644 --- a/proto/gen/go/dream11/od/auth/v1/auth_grpc.pb.go +++ b/proto/gen/go/dream11/od/auth/v1/auth_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc v5.26.1 // source: dream11/od/auth/v1/auth.proto package v1 diff --git a/proto/gen/go/dream11/od/dto/v1/component.pb.go b/proto/gen/go/dream11/od/dto/v1/component.pb.go index 030ecd1a..9641e4d7 100644 --- a/proto/gen/go/dream11/od/dto/v1/component.pb.go +++ b/proto/gen/go/dream11/od/dto/v1/component.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.33.0 +// protoc v5.26.1 // source: dream11/od/dto/v1/component.proto package v1 diff --git a/proto/gen/go/dream11/od/dto/v1/component_task.pb.go b/proto/gen/go/dream11/od/dto/v1/component_task.pb.go index e6c81d7a..72a07f64 100644 --- a/proto/gen/go/dream11/od/dto/v1/component_task.pb.go +++ b/proto/gen/go/dream11/od/dto/v1/component_task.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.33.0 +// protoc v5.26.1 // source: dream11/od/dto/v1/component_task.proto package v1 diff --git a/proto/gen/go/dream11/od/dto/v1/environment.pb.go b/proto/gen/go/dream11/od/dto/v1/environment.pb.go index 0ee95690..d9c2bdf2 100644 --- a/proto/gen/go/dream11/od/dto/v1/environment.pb.go +++ b/proto/gen/go/dream11/od/dto/v1/environment.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.33.0 +// protoc v5.26.1 // source: dream11/od/dto/v1/environment.proto package v1 @@ -30,7 +30,7 @@ type Environment struct { Id *int64 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` - CreatedBy *int64 `protobuf:"varint,4,opt,name=created_by,json=createdBy,proto3,oneof" json:"created_by,omitempty"` + CreatedBy *string `protobuf:"bytes,4,opt,name=created_by,json=createdBy,proto3,oneof" json:"created_by,omitempty"` Version *int32 `protobuf:"varint,5,opt,name=version,proto3,oneof" json:"version,omitempty"` OrgId *int64 `protobuf:"varint,6,opt,name=org_id,json=orgId,proto3,oneof" json:"org_id,omitempty"` ProviderAccountName *string `protobuf:"bytes,7,opt,name=provider_account_name,json=providerAccountName,proto3,oneof" json:"provider_account_name,omitempty"` @@ -39,6 +39,7 @@ type Environment struct { Status *string `protobuf:"bytes,10,opt,name=status,proto3,oneof" json:"status,omitempty"` AutoDeletionTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=auto_deletion_time,json=autoDeletionTime,proto3,oneof" json:"auto_deletion_time,omitempty"` Services []*ServiceTask `protobuf:"bytes,12,rep,name=services,proto3" json:"services,omitempty"` + AccountInformation []*AccountInformation `protobuf:"bytes,13,rep,name=account_information,json=accountInformation,proto3" json:"account_information,omitempty"` } func (x *Environment) Reset() { @@ -94,11 +95,11 @@ func (x *Environment) GetUpdatedAt() *timestamppb.Timestamp { return nil } -func (x *Environment) GetCreatedBy() int64 { +func (x *Environment) GetCreatedBy() string { if x != nil && x.CreatedBy != nil { return *x.CreatedBy } - return 0 + return "" } func (x *Environment) GetVersion() int32 { @@ -157,6 +158,76 @@ func (x *Environment) GetServices() []*ServiceTask { return nil } +func (x *Environment) GetAccountInformation() []*AccountInformation { + if x != nil { + return x.AccountInformation + } + return nil +} + +type AccountInformation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProviderAccountName string `protobuf:"bytes,1,opt,name=provider_account_name,json=providerAccountName,proto3" json:"provider_account_name,omitempty"` + ServiceAccountsSnapshot *structpb.Struct `protobuf:"bytes,2,opt,name=service_accounts_snapshot,json=serviceAccountsSnapshot,proto3" json:"service_accounts_snapshot,omitempty"` + Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *AccountInformation) Reset() { + *x = AccountInformation{} + if protoimpl.UnsafeEnabled { + mi := &file_dream11_od_dto_v1_environment_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AccountInformation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AccountInformation) ProtoMessage() {} + +func (x *AccountInformation) ProtoReflect() protoreflect.Message { + mi := &file_dream11_od_dto_v1_environment_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AccountInformation.ProtoReflect.Descriptor instead. +func (*AccountInformation) Descriptor() ([]byte, []int) { + return file_dream11_od_dto_v1_environment_proto_rawDescGZIP(), []int{1} +} + +func (x *AccountInformation) GetProviderAccountName() string { + if x != nil { + return x.ProviderAccountName + } + return "" +} + +func (x *AccountInformation) GetServiceAccountsSnapshot() *structpb.Struct { + if x != nil { + return x.ServiceAccountsSnapshot + } + return nil +} + +func (x *AccountInformation) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + var File_dream11_od_dto_v1_environment_proto protoreflect.FileDescriptor var file_dream11_od_dto_v1_environment_proto_rawDesc = []byte{ @@ -169,7 +240,7 @@ var file_dream11_od_dto_v1_environment_proto_rawDesc = []byte{ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x06, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdb, 0x06, 0x0a, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x3e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, @@ -181,7 +252,7 @@ var file_dream11_od_dto_v1_environment_proto_rawDesc = []byte{ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x02, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x48, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, @@ -207,18 +278,35 @@ var file_dream11_od_dto_v1_environment_proto_rawDesc = []byte{ 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, 0x64, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x08, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x42, 0x0d, 0x0a, 0x0b, - 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, - 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x42, 0x1c, 0x0a, 0x1a, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, - 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x15, 0x0a, 0x13, - 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x56, 0x0a, 0x13, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, + 0x64, 0x74, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x05, 0x0a, + 0x03, 0x5f, 0x69, 0x64, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, + 0x79, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, + 0x07, 0x5f, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x1c, 0x0a, 0x1a, 0x5f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0xb5, 0x01, 0x0a, 0x12, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x53, 0x0a, 0x19, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, + 0x68, 0x6f, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x52, 0x17, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x73, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2f, 0x6f, 0x64, 0x69, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2f, 0x6f, 0x64, 0x2f, 0x64, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, @@ -237,24 +325,27 @@ func file_dream11_od_dto_v1_environment_proto_rawDescGZIP() []byte { return file_dream11_od_dto_v1_environment_proto_rawDescData } -var file_dream11_od_dto_v1_environment_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_dream11_od_dto_v1_environment_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_dream11_od_dto_v1_environment_proto_goTypes = []interface{}{ (*Environment)(nil), // 0: dream11.od.dto.v1.Environment - (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp - (*structpb.Struct)(nil), // 2: google.protobuf.Struct - (*ServiceTask)(nil), // 3: dream11.od.dto.v1.ServiceTask + (*AccountInformation)(nil), // 1: dream11.od.dto.v1.AccountInformation + (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp + (*structpb.Struct)(nil), // 3: google.protobuf.Struct + (*ServiceTask)(nil), // 4: dream11.od.dto.v1.ServiceTask } var file_dream11_od_dto_v1_environment_proto_depIdxs = []int32{ - 1, // 0: dream11.od.dto.v1.Environment.created_at:type_name -> google.protobuf.Timestamp - 1, // 1: dream11.od.dto.v1.Environment.updated_at:type_name -> google.protobuf.Timestamp - 2, // 2: dream11.od.dto.v1.Environment.service_accounts_snapshot:type_name -> google.protobuf.Struct - 1, // 3: dream11.od.dto.v1.Environment.auto_deletion_time:type_name -> google.protobuf.Timestamp - 3, // 4: dream11.od.dto.v1.Environment.services:type_name -> dream11.od.dto.v1.ServiceTask - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name + 2, // 0: dream11.od.dto.v1.Environment.created_at:type_name -> google.protobuf.Timestamp + 2, // 1: dream11.od.dto.v1.Environment.updated_at:type_name -> google.protobuf.Timestamp + 3, // 2: dream11.od.dto.v1.Environment.service_accounts_snapshot:type_name -> google.protobuf.Struct + 2, // 3: dream11.od.dto.v1.Environment.auto_deletion_time:type_name -> google.protobuf.Timestamp + 4, // 4: dream11.od.dto.v1.Environment.services:type_name -> dream11.od.dto.v1.ServiceTask + 1, // 5: dream11.od.dto.v1.Environment.account_information:type_name -> dream11.od.dto.v1.AccountInformation + 3, // 6: dream11.od.dto.v1.AccountInformation.service_accounts_snapshot:type_name -> google.protobuf.Struct + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_dream11_od_dto_v1_environment_proto_init() } @@ -276,6 +367,18 @@ func file_dream11_od_dto_v1_environment_proto_init() { return nil } } + file_dream11_od_dto_v1_environment_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountInformation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_dream11_od_dto_v1_environment_proto_msgTypes[0].OneofWrappers = []interface{}{} type x struct{} @@ -284,7 +387,7 @@ func file_dream11_od_dto_v1_environment_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_dream11_od_dto_v1_environment_proto_rawDesc, NumEnums: 0, - NumMessages: 1, + NumMessages: 2, NumExtensions: 0, NumServices: 0, }, diff --git a/proto/gen/go/dream11/od/dto/v1/provisioning_type.pb.go b/proto/gen/go/dream11/od/dto/v1/provisioning_type.pb.go index 61ae1ee4..e089a65b 100644 --- a/proto/gen/go/dream11/od/dto/v1/provisioning_type.pb.go +++ b/proto/gen/go/dream11/od/dto/v1/provisioning_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.33.0 +// protoc v5.26.1 // source: dream11/od/dto/v1/provisioning_type.proto package v1 diff --git a/proto/gen/go/dream11/od/dto/v1/service_task.pb.go b/proto/gen/go/dream11/od/dto/v1/service_task.pb.go index 018cf2e0..dee66a2c 100644 --- a/proto/gen/go/dream11/od/dto/v1/service_task.pb.go +++ b/proto/gen/go/dream11/od/dto/v1/service_task.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.33.0 +// protoc v5.26.1 // source: dream11/od/dto/v1/service_task.proto package v1 diff --git a/proto/gen/go/dream11/od/environment/v1/environment.pb.go b/proto/gen/go/dream11/od/environment/v1/environment.pb.go index 634da76c..f64752ab 100644 --- a/proto/gen/go/dream11/od/environment/v1/environment.pb.go +++ b/proto/gen/go/dream11/od/environment/v1/environment.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.4 +// protoc-gen-go v1.33.0 +// protoc v5.26.1 // source: dream11/od/environment/v1/environment.proto package v1 @@ -316,9 +316,9 @@ type CreateEnvironmentRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - EnvName string `protobuf:"bytes,1,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"` - Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` - ProvisioningType string `protobuf:"bytes,3,opt,name=provisioning_type,json=provisioningType,proto3" json:"provisioning_type,omitempty"` + EnvName string `protobuf:"bytes,1,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"` + Accounts []string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` + ProvisioningType string `protobuf:"bytes,3,opt,name=provisioning_type,json=provisioningType,proto3" json:"provisioning_type,omitempty"` } func (x *CreateEnvironmentRequest) Reset() { @@ -360,11 +360,11 @@ func (x *CreateEnvironmentRequest) GetEnvName() string { return "" } -func (x *CreateEnvironmentRequest) GetAccount() string { +func (x *CreateEnvironmentRequest) GetAccounts() []string { if x != nil { - return x.Account + return x.Accounts } - return "" + return nil } func (x *CreateEnvironmentRequest) GetProvisioningType() string { @@ -476,57 +476,57 @@ var file_dream11_od_environment_v1_environment_proto_rawDesc = []byte{ 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x1b, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7c, 0x0a, 0x18, 0x43, 0x72, 0x65, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7e, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x76, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6e, 0x76, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, - 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x35, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0xa1, - 0x04, 0x0a, 0x12, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7a, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, - 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x31, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, - 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, - 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x64, 0x72, + 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x2b, 0x0a, 0x11, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x35, 0x0a, 0x19, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x32, 0xa1, 0x04, 0x0a, 0x12, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7a, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x45, + 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x31, 0x2e, 0x64, 0x72, 0x65, + 0x61, 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72, + 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, + 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, + 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, + 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x86, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, + 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, - 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x76, 0x69, - 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x86, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x6e, - 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x2e, 0x64, 0x72, 0x65, 0x61, - 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, - 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x6e, - 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x36, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, 0x65, 0x6e, - 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x80, 0x01, 0x0a, 0x11, 0x55, + 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, + 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, + 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x80, 0x01, 0x0a, + 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, + 0x6e, 0x74, 0x12, 0x33, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, + 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, - 0x12, 0x33, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, 0x65, 0x6e, - 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, + 0x31, 0x2e, 0x6f, 0x64, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, + 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x82, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, + 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x33, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x82, 0x01, - 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x12, 0x33, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, - 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x64, 0x72, 0x65, 0x61, 0x6d, - 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, - 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x30, 0x01, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2f, 0x6f, 0x64, 0x69, 0x6e, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x64, 0x72, 0x65, 0x61, 0x6d, - 0x31, 0x31, 0x2f, 0x6f, 0x64, 0x2f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, - 0x74, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x64, 0x72, 0x65, + 0x61, 0x6d, 0x31, 0x31, 0x2e, 0x6f, 0x64, 0x2e, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x76, + 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x30, 0x01, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x64, 0x72, 0x65, 0x61, 0x6d, 0x31, 0x31, 0x2f, 0x6f, 0x64, 0x69, 0x6e, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x64, 0x72, 0x65, + 0x61, 0x6d, 0x31, 0x31, 0x2f, 0x6f, 0x64, 0x2f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/gen/go/dream11/od/environment/v1/environment_grpc.pb.go b/proto/gen/go/dream11/od/environment/v1/environment_grpc.pb.go index f990bfcd..251edd82 100644 --- a/proto/gen/go/dream11/od/environment/v1/environment_grpc.pb.go +++ b/proto/gen/go/dream11/od/environment/v1/environment_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 -// - protoc v4.24.4 +// - protoc v5.26.1 // source: dream11/od/environment/v1/environment.proto package v1