Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add field 'reset_sync' at ResetDataSourceAccountRequest #434

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions proto/spaceone/api/cost_analysis/v1/data_source_account.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ service DataSourceAccount {
};
}

// Reset a DataSourceAccount state and linked workspace with the specified DataSourceAccount ID related to the DataSource.
rpc reset (ResetDataSourceAccountRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/cost-analysis/v1/data-source-account/reset"
Expand Down Expand Up @@ -57,22 +58,33 @@ service DataSourceAccount {
}
}


//{
// "data_source_id": "ds-faaa11aa1111",
// "account_id": "111069360300",
// "workspace_id": "ws-aaaa11aa1111"
//}
message UpdateDataSourceAccountRequest{
string data_source_id = 1;
// account_id is the unique identifier of each CSP account.(e.g. Azure Tenant ID)
string account_id = 2;
// +optional
string workspace_id = 21;
// +optional
string project_id = 22;
// +optional
string service_account_id = 23;
}

//{
// "data_source_id": "ds-faaa11aa1111",
// "account_id": "111069360300",
// "sync_state": true
//}
message ResetDataSourceAccountRequest {
// data_source_id is the unique identifier of each data source.
string data_source_id = 1;
// +optional
string account_id = 2;
// if sync_state is true, it will reset the sync state of the data source account.
// +optional
bool reset_sync = 3;
}

message DataSourceAccountRequest {
Expand All @@ -81,6 +93,9 @@ message DataSourceAccountRequest {
}


//{
// "query": {}
//}
message DataSourceAccountQuery {
// +optional
spaceone.api.core.v2.Query query = 1;
Expand Down
Loading