Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
arm test
  • Loading branch information
XiaofeiCao committed Sep 20, 2024
1 parent 91f0042 commit d37d396
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ model CustomTemplateResourceProperties {
dog: Dog;
namedEmptyModel: EmptyModel;
anonymousEmptyModel: {};

priority: PriorityModel;
}

@doc("Empty model.")
Expand Down Expand Up @@ -183,6 +185,12 @@ model Result {
reason?: string;
}

union PriorityModel {
int32,
HIGH: 0,
LOW: 1,
}

// #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "built-in conditional request includes time based conditional headers"
alias IfMatchParameters<T extends Azure.ResourceManager.Foundations.Resource> = {
@header("If-Match")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ union PriorityModel {
Low: 0,
}

union OlympicRecordModel {
float32,
Olympic_100_Meters: 9.58,
Olympic_200_Meters: 19.30,
}

#suppress "@azure-tools/typespec-azure-core/use-extensible-enum" "For testing"
enum Priority {
High: 100,
Expand Down Expand Up @@ -69,6 +75,8 @@ model Operation {
colorValue: Color.Green;
colorModelValue: ColorModel.Blue;
unitValue?: Unit.Milligram;
olympicRecord?: OlympicRecordModel;
olympicRecordValue?: OlympicRecordModel.Olympic_100_Meters;
}

@client({
Expand Down

0 comments on commit d37d396

Please sign in to comment.