-
Notifications
You must be signed in to change notification settings - Fork 14
Add sync_currency api to report_adjustment_policy.proto for currency #580
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -39,6 +39,13 @@ service ReportAdjustmentPolicy { | |
| }; | ||
| } | ||
|
|
||
| rpc sync_currency (ReportAdjustmentPolicyRequest) returns (ReportAdjustmentPolicyInfo) { | ||
| option (google.api.http) = { | ||
| post: "/cost-analysis/v1/report-adjustment-policy/sync-currency" | ||
| body: "*" | ||
| }; | ||
| } | ||
|
|
||
| rpc get (ReportAdjustmentPolicyRequest) returns (ReportAdjustmentPolicyInfo) { | ||
| option (google.api.http) = { | ||
| post: "/cost-analysis/v1/report-adjustment-policy/get", | ||
|
|
@@ -65,26 +72,27 @@ message CreateReportAdjustmentPolicyRequest { | |
| SCOPE_NONE = 0; | ||
| WORKSPACE = 1; | ||
| PROJECT = 2; | ||
| SERVICE_ACCOUNT = 3; | ||
| } | ||
| string name = 1; | ||
| Scope scope = 2; | ||
| string cost_report_config_id = 3; | ||
| Scope scope = 1; | ||
| string cost_report_config_id = 2; | ||
| // +optional | ||
| int32 order = 4; | ||
| int32 order = 3; | ||
| // +optional | ||
| google.protobuf.Struct tags = 6; | ||
| string description = 4; | ||
|
||
| // +optional | ||
| AdjustmentPolicyFilter policy_filter = 7; | ||
| google.protobuf.Struct tags = 5; | ||
| // +optional | ||
| AdjustmentPolicyFilter policy_filter = 6; | ||
| } | ||
|
|
||
| message UpdateReportAdjustmentPolicyRequest { | ||
| string report_adjustment_policy_id = 1; | ||
| // +optional | ||
| string name = 2; | ||
| string description = 2; | ||
| google.protobuf.Struct tags = 3; | ||
| // +optional | ||
| google.protobuf.Struct tags = 6; | ||
| // +optional | ||
| AdjustmentPolicyFilter policy_filter = 7; | ||
| AdjustmentPolicyFilter policy_filter = 4; | ||
| } | ||
|
|
||
| message ChangeOrderReportAdjustmentPolicyRequest { | ||
|
|
@@ -100,25 +108,24 @@ message ReportAdjustmentPolicyQuery { | |
| // +optional | ||
| spaceone.api.core.v2.Query query = 1; | ||
| // +optional | ||
| string name = 2; | ||
| // +optional | ||
| AdjustmentPolicyFilter policy_filter = 4; | ||
| AdjustmentPolicyFilter policy_filter = 2; | ||
| } | ||
|
|
||
| message ReportAdjustmentPolicyInfo { | ||
| enum Scope { | ||
| SCOPE_NONE = 0; | ||
| WORKSPACE = 1; | ||
| PROJECT = 2; | ||
| SERVICE_ACCOUNT = 3; | ||
| } | ||
|
|
||
| string report_adjustment_policy_id = 1; | ||
| string name = 2; | ||
| repeated string adjustments = 4; | ||
| Scope scope = 5; | ||
| int32 order = 6; | ||
| google.protobuf.Struct tags = 7; | ||
| AdjustmentPolicyFilter policy_filter = 8; | ||
| repeated string adjustments = 2; | ||
| Scope scope = 3; | ||
| int32 order = 4; | ||
| string description = 5; | ||
| google.protobuf.Struct tags = 6; | ||
| AdjustmentPolicyFilter policy_filter = 7; | ||
| string domain_id = 21; | ||
| string cost_report_config_id = 22; | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a generic ReportAdjustmentPolicyRequest for the new sync_currency RPC may obscure which fields are required. Define a dedicated SyncCurrencyRequest message with explicit parameters to improve clarity.