Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 1 addition & 3 deletions specification/carbon/Carbon.Management/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,10 @@ model CarbonEmissionDataAvailableDateRange {
}

#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "Each resource interface must have an @armResourceOperations decorator."
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation-missing-decorator" "Resource POST operation must be decorated with @armResourceAction or @armResourceCollectionAction."
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "Resource POST operation must be decorated with @armResourceAction or @armResourceCollectionAction."
interface CarbonService {
@doc("API for Carbon Emissions Reports")
@post
@armResourceCollectionAction
@route("/providers/Microsoft.Carbon/carbonEmissionReports")
queryCarbonEmissionReports(
...ApiVersionParameter,
Expand All @@ -523,7 +522,6 @@ interface CarbonService {

@doc("API for query carbon emission data available date range")
@post
@armResourceAction(CarbonEmissionDataAvailableDateRange)
@route("/providers/Microsoft.Carbon/queryCarbonEmissionDataAvailableDateRange")
queryCarbonEmissionDataAvailableDateRange(
...ApiVersionParameter,
Expand Down
6 changes: 1 addition & 5 deletions specification/carbon/Carbon.Management/tspconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ options:
flavor: "azure"
generate-test: true
generate-sample: true
"@azure-tools/typespec-csharp":
clear-output-folder: true
model-namespace: true
"@azure-typespec/http-client-csharp-mgmt":
namespace: "Azure.ResourceManager.CarbonOptimization"
flavor: azure
generate-sample-project: false
emitter-output-dir: "{output-dir}/sdk/carbon/{namespace}"
"@azure-tools/typespec-ts":
experimental-extensible-enums: true
Expand Down
Loading