Skip to content

Commit 76b5249

Browse files
author
serverpod_cloud
committed
feat: f8060af41349147d2e351e522c34d7518fa6587e
1 parent 6b2af1e commit 76b5249

4 files changed

Lines changed: 454 additions & 259 deletions

File tree

ground_control_client/lib/src/protocol/client.dart

Lines changed: 52 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -48,29 +48,31 @@ import 'package:ground_control_client/src/protocol/features/custom_domains/model
4848
as _i19;
4949
import 'package:ground_control_client/src/protocol/features/databases/models/database_connection.dart'
5050
as _i20;
51-
import 'package:ground_control_client/src/protocol/features/databases/models/database_resource.dart'
51+
import 'package:ground_control_client/src/protocol/features/databases/models/database_info.dart'
5252
as _i21;
53-
import 'package:ground_control_client/src/protocol/features/databases/models/database_size.dart'
53+
import 'package:ground_control_client/src/protocol/features/databases/models/database_resource.dart'
5454
as _i22;
55-
import 'package:ground_control_client/src/protocol/domains/environment_variables/models/variable.dart'
55+
import 'package:ground_control_client/src/protocol/features/databases/models/database_size.dart'
5656
as _i23;
57-
import 'package:ground_control_client/src/protocol/features/insights/models/insights_connection_detail.dart'
57+
import 'package:ground_control_client/src/protocol/domains/environment_variables/models/variable.dart'
5858
as _i24;
59-
import 'package:ground_control_client/src/protocol/domains/logs/models/log_record.dart'
59+
import 'package:ground_control_client/src/protocol/features/insights/models/insights_connection_detail.dart'
6060
as _i25;
61-
import 'package:ground_control_client/src/protocol/domains/products/models/subscription_info.dart'
61+
import 'package:ground_control_client/src/protocol/domains/logs/models/log_record.dart'
6262
as _i26;
63-
import 'package:ground_control_client/src/protocol/domains/products/models/plan_info.dart'
63+
import 'package:ground_control_client/src/protocol/domains/products/models/subscription_info.dart'
6464
as _i27;
65-
import 'package:ground_control_client/src/protocol/features/projects/models/project_config.dart'
65+
import 'package:ground_control_client/src/protocol/domains/products/models/plan_info.dart'
6666
as _i28;
67-
import 'package:ground_control_client/src/protocol/domains/projects/models/role.dart'
67+
import 'package:ground_control_client/src/protocol/features/projects/models/project_config.dart'
6868
as _i29;
69-
import 'package:ground_control_client/src/protocol/domains/status/models/deploy_attempt_stage.dart'
69+
import 'package:ground_control_client/src/protocol/domains/projects/models/role.dart'
7070
as _i30;
71-
import 'package:serverpod_auth_idp_client/serverpod_auth_idp_client.dart'
71+
import 'package:ground_control_client/src/protocol/domains/status/models/deploy_attempt_stage.dart'
7272
as _i31;
73-
import 'protocol.dart' as _i32;
73+
import 'package:serverpod_auth_idp_client/serverpod_auth_idp_client.dart'
74+
as _i32;
75+
import 'protocol.dart' as _i33;
7476

7577
/// {@category Endpoint}
7678
class EndpointAdminMigration extends _i1.EndpointRef {
@@ -637,9 +639,9 @@ class EndpointDatabase extends _i1.EndpointRef {
637639
{'cloudCapsuleId': cloudCapsuleId},
638640
);
639641

640-
_i2.Future<_i21.DatabaseResource> readDatabase({
642+
_i2.Future<_i21.DatabaseInfo> readDatabase({
641643
required String cloudCapsuleId,
642-
}) => caller.callServerEndpoint<_i21.DatabaseResource>(
644+
}) => caller.callServerEndpoint<_i21.DatabaseInfo>(
643645
'database',
644646
'readDatabase',
645647
{'cloudCapsuleId': cloudCapsuleId},
@@ -673,12 +675,12 @@ class EndpointDatabase extends _i1.EndpointRef {
673675
'cloudCapsuleId': cloudCapsuleId,
674676
});
675677

676-
_i2.Future<_i21.DatabaseResource> updateDatabaseSize({
678+
_i2.Future<_i22.DatabaseResource> updateDatabaseSize({
677679
required String cloudCapsuleId,
678-
required _i22.DatabaseSizeOption size,
680+
required _i23.DatabaseSizeOption size,
679681
double? minCu,
680682
double? maxCu,
681-
}) => caller.callServerEndpoint<_i21.DatabaseResource>(
683+
}) => caller.callServerEndpoint<_i22.DatabaseResource>(
682684
'database',
683685
'updateDatabaseSize',
684686
{
@@ -729,53 +731,53 @@ class EndpointEnvironmentVariables extends _i1.EndpointRef {
729731

730732
/// Creates a new [EnvironmentVariable] with the specified [name] and [value].
731733
/// Throws a [DuplicateEntryException] if an environment variable with the same name already exists.
732-
_i2.Future<_i23.EnvironmentVariable> create(
734+
_i2.Future<_i24.EnvironmentVariable> create(
733735
String name,
734736
String value,
735737
String cloudCapsuleId,
736-
) => caller.callServerEndpoint<_i23.EnvironmentVariable>(
738+
) => caller.callServerEndpoint<_i24.EnvironmentVariable>(
737739
'environmentVariables',
738740
'create',
739741
{'name': name, 'value': value, 'cloudCapsuleId': cloudCapsuleId},
740742
);
741743

742744
/// Fetches the specified environment variable.
743745
/// Throws a [NotFoundException] if the environment variable is not found.
744-
_i2.Future<_i23.EnvironmentVariable> read({
746+
_i2.Future<_i24.EnvironmentVariable> read({
745747
required String name,
746748
required String cloudCapsuleId,
747-
}) => caller.callServerEndpoint<_i23.EnvironmentVariable>(
749+
}) => caller.callServerEndpoint<_i24.EnvironmentVariable>(
748750
'environmentVariables',
749751
'read',
750752
{'name': name, 'cloudCapsuleId': cloudCapsuleId},
751753
);
752754

753755
/// Gets the list of environment variables for the given [cloudCapsuleId].
754-
_i2.Future<List<_i23.EnvironmentVariable>> list(String cloudCapsuleId) =>
755-
caller.callServerEndpoint<List<_i23.EnvironmentVariable>>(
756+
_i2.Future<List<_i24.EnvironmentVariable>> list(String cloudCapsuleId) =>
757+
caller.callServerEndpoint<List<_i24.EnvironmentVariable>>(
756758
'environmentVariables',
757759
'list',
758760
{'cloudCapsuleId': cloudCapsuleId},
759761
);
760762

761763
/// Creates a new [EnvironmentVariable] with the specified [name] and [value].
762764
/// Throws a [NotFoundException] if the environment variable is not found.
763-
_i2.Future<_i23.EnvironmentVariable> update({
765+
_i2.Future<_i24.EnvironmentVariable> update({
764766
required String name,
765767
required String value,
766768
required String cloudCapsuleId,
767-
}) => caller.callServerEndpoint<_i23.EnvironmentVariable>(
769+
}) => caller.callServerEndpoint<_i24.EnvironmentVariable>(
768770
'environmentVariables',
769771
'update',
770772
{'name': name, 'value': value, 'cloudCapsuleId': cloudCapsuleId},
771773
);
772774

773775
/// Permanently deletes an environment variable.
774776
/// Throws a [NotFoundException] if the environment variable is not found.
775-
_i2.Future<_i23.EnvironmentVariable> delete({
777+
_i2.Future<_i24.EnvironmentVariable> delete({
776778
required String cloudCapsuleId,
777779
required String name,
778-
}) => caller.callServerEndpoint<_i23.EnvironmentVariable>(
780+
}) => caller.callServerEndpoint<_i24.EnvironmentVariable>(
779781
'environmentVariables',
780782
'delete',
781783
{'cloudCapsuleId': cloudCapsuleId, 'name': name},
@@ -795,9 +797,9 @@ class EndpointInsights extends _i1.EndpointRef {
795797
///
796798
/// Throws [UnauthorizedException] if the user is not authorized.
797799
/// Throws [NotFoundException] if insights service secret is not found.
798-
_i2.Future<_i24.InsightsConnectionDetail> getConnectionDetails({
800+
_i2.Future<_i25.InsightsConnectionDetail> getConnectionDetails({
799801
required String cloudProjectId,
800-
}) => caller.callServerEndpoint<_i24.InsightsConnectionDetail>(
802+
}) => caller.callServerEndpoint<_i25.InsightsConnectionDetail>(
801803
'insights',
802804
'getConnectionDetails',
803805
{'cloudProjectId': cloudProjectId},
@@ -813,14 +815,14 @@ class EndpointLogs extends _i1.EndpointRef {
813815
String get name => 'logs';
814816

815817
/// Fetches log records from the specified capsule.
816-
_i2.Stream<_i25.LogRecord> fetchRecords({
818+
_i2.Stream<_i26.LogRecord> fetchRecords({
817819
String? cloudProjectId,
818820
String? cloudCapsuleId,
819821
DateTime? beforeTime,
820822
DateTime? afterTime,
821823
int? limit,
822824
}) => caller
823-
.callStreamingServerEndpoint<_i2.Stream<_i25.LogRecord>, _i25.LogRecord>(
825+
.callStreamingServerEndpoint<_i2.Stream<_i26.LogRecord>, _i26.LogRecord>(
824826
'logs',
825827
'fetchRecords',
826828
{
@@ -838,11 +840,11 @@ class EndpointLogs extends _i1.EndpointRef {
838840
/// Records are returned in ascending time order.
839841
///
840842
/// This call will hold until all the records are fetched in order to sort them.
841-
_i2.Stream<_i25.LogRecord> fetchRecentRecords({
843+
_i2.Stream<_i26.LogRecord> fetchRecentRecords({
842844
required String cloudCapsuleId,
843845
int? limit,
844846
}) => caller
845-
.callStreamingServerEndpoint<_i2.Stream<_i25.LogRecord>, _i25.LogRecord>(
847+
.callStreamingServerEndpoint<_i2.Stream<_i26.LogRecord>, _i26.LogRecord>(
846848
'logs',
847849
'fetchRecentRecords',
848850
{'cloudCapsuleId': cloudCapsuleId, 'limit': limit},
@@ -852,12 +854,12 @@ class EndpointLogs extends _i1.EndpointRef {
852854
/// Tails log records from the specified capsule.
853855
/// Continues until the client unsubscribes, [limit] is reached,
854856
/// or the internal max limit is reached.
855-
_i2.Stream<_i25.LogRecord> tailRecords({
857+
_i2.Stream<_i26.LogRecord> tailRecords({
856858
String? cloudProjectId,
857859
String? cloudCapsuleId,
858860
int? limit,
859861
}) => caller
860-
.callStreamingServerEndpoint<_i2.Stream<_i25.LogRecord>, _i25.LogRecord>(
862+
.callStreamingServerEndpoint<_i2.Stream<_i26.LogRecord>, _i26.LogRecord>(
861863
'logs',
862864
'tailRecords',
863865
{
@@ -869,13 +871,13 @@ class EndpointLogs extends _i1.EndpointRef {
869871
);
870872

871873
/// Fetches the build log records for the specified deploy attempt.
872-
_i2.Stream<_i25.LogRecord> fetchBuildLog({
874+
_i2.Stream<_i26.LogRecord> fetchBuildLog({
873875
String? cloudProjectId,
874876
String? cloudCapsuleId,
875877
required String attemptId,
876878
int? limit,
877879
}) => caller
878-
.callStreamingServerEndpoint<_i2.Stream<_i25.LogRecord>, _i25.LogRecord>(
880+
.callStreamingServerEndpoint<_i2.Stream<_i26.LogRecord>, _i26.LogRecord>(
879881
'logs',
880882
'fetchBuildLog',
881883
{
@@ -915,8 +917,8 @@ class EndpointPlans extends _i1.EndpointRef {
915917
_i2.Future<List<String>> listProcuredPlanNames() => caller
916918
.callServerEndpoint<List<String>>('plans', 'listProcuredPlanNames', {});
917919

918-
_i2.Future<_i26.SubscriptionInfo> getSubscriptionInfo() =>
919-
caller.callServerEndpoint<_i26.SubscriptionInfo>(
920+
_i2.Future<_i27.SubscriptionInfo> getSubscriptionInfo() =>
921+
caller.callServerEndpoint<_i27.SubscriptionInfo>(
920922
'plans',
921923
'getSubscriptionInfo',
922924
{},
@@ -934,8 +936,8 @@ class EndpointPlans extends _i1.EndpointRef {
934936
'planName': planName,
935937
});
936938

937-
_i2.Future<_i27.PlanInfo> getPlanInfo({required String planProductName}) =>
938-
caller.callServerEndpoint<_i27.PlanInfo>('plans', 'getPlanInfo', {
939+
_i2.Future<_i28.PlanInfo> getPlanInfo({required String planProductName}) =>
940+
caller.callServerEndpoint<_i28.PlanInfo>('plans', 'getPlanInfo', {
939941
'planProductName': planProductName,
940942
});
941943

@@ -1019,9 +1021,9 @@ class EndpointProjects extends _i1.EndpointRef {
10191021
'cloudProjectId': cloudProjectId,
10201022
});
10211023

1022-
_i2.Future<_i28.ProjectConfig> fetchProjectConfig({
1024+
_i2.Future<_i29.ProjectConfig> fetchProjectConfig({
10231025
required String cloudProjectId,
1024-
}) => caller.callServerEndpoint<_i28.ProjectConfig>(
1026+
}) => caller.callServerEndpoint<_i29.ProjectConfig>(
10251027
'projects',
10261028
'fetchProjectConfig',
10271029
{'cloudProjectId': cloudProjectId},
@@ -1072,9 +1074,9 @@ class EndpointRoles extends _i1.EndpointRef {
10721074
String get name => 'roles';
10731075

10741076
/// Fetches the user roles for a project.
1075-
_i2.Future<List<_i29.Role>> fetchRolesForProject({
1077+
_i2.Future<List<_i30.Role>> fetchRolesForProject({
10761078
required String cloudProjectId,
1077-
}) => caller.callServerEndpoint<List<_i29.Role>>(
1079+
}) => caller.callServerEndpoint<List<_i30.Role>>(
10781080
'roles',
10791081
'fetchRolesForProject',
10801082
{'cloudProjectId': cloudProjectId},
@@ -1161,10 +1163,10 @@ class EndpointStatus extends _i1.EndpointRef {
11611163
);
11621164

11631165
/// Gets the specified deploy attempt status of the a capsule.
1164-
_i2.Future<List<_i30.DeployAttemptStage>> getDeployAttemptStatus({
1166+
_i2.Future<List<_i31.DeployAttemptStage>> getDeployAttemptStatus({
11651167
required String cloudCapsuleId,
11661168
required String attemptId,
1167-
}) => caller.callServerEndpoint<List<_i30.DeployAttemptStage>>(
1169+
}) => caller.callServerEndpoint<List<_i31.DeployAttemptStage>>(
11681170
'status',
11691171
'getDeployAttemptStatus',
11701172
{'cloudCapsuleId': cloudCapsuleId, 'attemptId': attemptId},
@@ -1205,11 +1207,11 @@ class EndpointUsers extends _i1.EndpointRef {
12051207

12061208
class Modules {
12071209
Modules(Client client) {
1208-
serverpod_auth_idp = _i31.Caller(client);
1210+
serverpod_auth_idp = _i32.Caller(client);
12091211
serverpod_auth_core = _i10.Caller(client);
12101212
}
12111213

1212-
late final _i31.Caller serverpod_auth_idp;
1214+
late final _i32.Caller serverpod_auth_idp;
12131215

12141216
late final _i10.Caller serverpod_auth_core;
12151217
}
@@ -1229,7 +1231,7 @@ class Client extends _i1.ServerpodClientShared {
12291231
bool? disconnectStreamsOnLostInternetConnection,
12301232
}) : super(
12311233
host,
1232-
_i32.Protocol(),
1234+
_i33.Protocol(),
12331235
securityContext: securityContext,
12341236
streamingConnectionTimeout: streamingConnectionTimeout,
12351237
connectionTimeout: connectionTimeout,

0 commit comments

Comments
 (0)