@@ -462,3 +462,50 @@ type GetServiceCountResponse struct {
462
462
Response * Response `protobuf:"bytes,1,opt,name=response" json:"-"`
463
463
Count int64 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"`
464
464
}
465
+
466
+ type GetEnvironmentsResponse struct {
467
+ Response * Response `protobuf:"bytes,1,opt,name=response" json:"-"`
468
+ Environments []* Environment `protobuf:"bytes,2,rep,name=environments" json:"environments,omitempty"`
469
+ }
470
+
471
+ type CreateEnvironmentRequest struct {
472
+ Environment * Environment `protobuf:"bytes,1,opt,name=environment" json:"environment,omitempty"`
473
+ }
474
+
475
+ type CreateEnvironmentResponse struct {
476
+ Response * Response `protobuf:"bytes,1,opt,name=response" json:"-"`
477
+ EnvId string `protobuf:"bytes,2,opt,name=envId" json:"envId,omitempty"`
478
+ }
479
+
480
+ type EnvironmentKey struct {
481
+ // Tenant: The format is "{domain}/{project}"
482
+ Tenant string `protobuf:"bytes,1,opt,name=tenant" json:"tenant,omitempty"`
483
+ Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty" bson:"name"`
484
+ }
485
+
486
+ type GetEnvironmentRequest struct {
487
+ EnvironmentId string `protobuf:"bytes,1,opt,name=environmentId" json:"environmentId,omitempty"`
488
+ }
489
+
490
+ type GetEnvironmentResponse struct {
491
+ Response * Response `protobuf:"bytes,1,opt,name=response" json:"-"`
492
+ Environment * Environment `protobuf:"bytes,2,opt,name=environment" json:"environment,omitempty"`
493
+ }
494
+
495
+ type DeleteEnvironmentRequest struct {
496
+ EnvironmentId string `protobuf:"bytes,1,opt,name=environmentId" json:"environmentId,omitempty"`
497
+ }
498
+
499
+ type UpdateEnvironmentRequest struct {
500
+ Environment * Environment `protobuf:"bytes,1,opt,name=environment" json:"environment,omitempty"`
501
+ }
502
+
503
+ type GetEnvironmentCountRequest struct {
504
+ Domain string `protobuf:"bytes,1,opt,name=domain" json:"domain,omitempty"`
505
+ Project string `protobuf:"bytes,2,opt,name=project" json:"project,omitempty"`
506
+ }
507
+
508
+ type GetEnvironmentCountResponse struct {
509
+ Response * Response `protobuf:"bytes,1,opt,name=response" json:"-"`
510
+ Count int64 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"`
511
+ }
0 commit comments