Regenerate with latest swagger
This commit is contained in:
Родитель
f37fb9e1ca
Коммит
2467a1ca4c
|
@ -19,7 +19,9 @@ namespace Microsoft.Marketplace.Metering.Models
|
|||
UsageEventStatusEnum.Error => "Error",
|
||||
UsageEventStatusEnum.ResourceNotFound => "ResourceNotFound",
|
||||
UsageEventStatusEnum.ResourceNotAuthorized => "ResourceNotAuthorized",
|
||||
UsageEventStatusEnum.InvalidDimensionBadArgument => "InvalidDimension|BadArgument",
|
||||
UsageEventStatusEnum.InvalidDimension => "InvalidDimension",
|
||||
UsageEventStatusEnum.InvalidQuantity => "InvalidQuantity",
|
||||
UsageEventStatusEnum.BadArgument => "BadArgument",
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown UsageEventStatusEnum value.")
|
||||
};
|
||||
|
||||
|
@ -31,7 +33,9 @@ namespace Microsoft.Marketplace.Metering.Models
|
|||
if (string.Equals(value, "Error", StringComparison.InvariantCultureIgnoreCase)) return UsageEventStatusEnum.Error;
|
||||
if (string.Equals(value, "ResourceNotFound", StringComparison.InvariantCultureIgnoreCase)) return UsageEventStatusEnum.ResourceNotFound;
|
||||
if (string.Equals(value, "ResourceNotAuthorized", StringComparison.InvariantCultureIgnoreCase)) return UsageEventStatusEnum.ResourceNotAuthorized;
|
||||
if (string.Equals(value, "InvalidDimension|BadArgument", StringComparison.InvariantCultureIgnoreCase)) return UsageEventStatusEnum.InvalidDimensionBadArgument;
|
||||
if (string.Equals(value, "InvalidDimension", StringComparison.InvariantCultureIgnoreCase)) return UsageEventStatusEnum.InvalidDimension;
|
||||
if (string.Equals(value, "InvalidQuantity", StringComparison.InvariantCultureIgnoreCase)) return UsageEventStatusEnum.InvalidQuantity;
|
||||
if (string.Equals(value, "BadArgument", StringComparison.InvariantCultureIgnoreCase)) return UsageEventStatusEnum.BadArgument;
|
||||
throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown UsageEventStatusEnum value.");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,11 @@ namespace Microsoft.Marketplace.Metering.Models
|
|||
ResourceNotFound,
|
||||
/// <summary> ResourceNotAuthorized. </summary>
|
||||
ResourceNotAuthorized,
|
||||
/// <summary> InvalidDimension|BadArgument. </summary>
|
||||
InvalidDimensionBadArgument
|
||||
/// <summary> InvalidDimension. </summary>
|
||||
InvalidDimension,
|
||||
/// <summary> InvalidQuantity. </summary>
|
||||
InvalidQuantity,
|
||||
/// <summary> BadArgument. </summary>
|
||||
BadArgument
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
title: Microsoft.Marketplace.Metering
|
||||
require: $(this-folder)/../autorest.md
|
||||
input-file:
|
||||
- https://github.com/microsoft/commercial-marketplace-openapi/blob/b62f06b03fa2fe564ba713fbb59fa8e3dbc7e6f9/Microsoft.Marketplace.Metering/2018-08-31/meteringapi.v1.json
|
||||
- https://github.com/microsoft/commercial-marketplace-openapi/blob/ae3f6900997e0bf850dae86aec61098cf179efd3/Microsoft.Marketplace.Metering/2018-08-31/meteringapi.v1.json
|
||||
namespace: Microsoft.Marketplace.Metering
|
||||
directive:
|
||||
from: swagger-document
|
||||
|
|
Загрузка…
Ссылка в новой задаче