-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
84 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 0.5.0-dev.1 | ||
|
||
- chore: Bump dependencies | ||
|
||
## 0.5.0-dev.0 | ||
|
||
- feat: Add social sign-in support | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
# 0.1.1 | ||
|
||
- feat: Add subscriptions and project environments | ||
- chore: Update operation methods | ||
|
||
# 0.1.0 | ||
|
||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
packages/celest_cloud/lib/src/cloud/operations/operations.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import 'package:celest_cloud/src/cloud/base/base_service.dart'; | ||
import 'package:celest_cloud/src/cloud/operations/operations_protocol.dart'; | ||
import 'package:celest_cloud/src/grpc.dart'; | ||
import 'package:logging/logging.dart'; | ||
|
||
final class Operations with BaseService { | ||
Operations({ | ||
required OperationsProtocol protocol, | ||
this.logger, | ||
}) : _protocol = protocol; | ||
|
||
@override | ||
final Logger? logger; | ||
final OperationsProtocol _protocol; | ||
|
||
Future<Operation> get(String name) async { | ||
final request = GetOperationRequest(name: name); | ||
return run('Operations.Get', request: request, action: _protocol.get); | ||
} | ||
|
||
Future<ListOperationsResponse> list({ | ||
String? parent, | ||
int? pageSize, | ||
String? pageToken, | ||
String? filter, | ||
}) async { | ||
final request = ListOperationsRequest( | ||
name: parent, | ||
pageSize: pageSize, | ||
pageToken: pageToken, | ||
filter: filter, | ||
); | ||
return run('Operations.List', request: request, action: _protocol.list); | ||
} | ||
|
||
Future<void> cancel(String name) async { | ||
final request = CancelOperationRequest(name: name); | ||
return run('Operations.Cancel', request: request, action: _protocol.cancel); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 0.5.0-dev.1 | ||
|
||
- chore: Update dependencies | ||
|
||
## 0.5.0-dev.0 | ||
|
||
- chore: Update dependencies | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters