forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Azure/autorest
- Loading branch information
Showing
84 changed files
with
4,019 additions
and
520 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
namespace Microsoft.Rest.Generator.Cli | ||
{ | ||
/// <summary> | ||
/// Available exit codes. | ||
/// </summary> | ||
public enum ExitCode : int | ||
{ | ||
Success = 0, | ||
Error = 1 | ||
} | ||
} |
This file contains 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 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
50 changes: 50 additions & 0 deletions
50
AutoRest/Generators/AzureResourceSchema/AzureResourceSchema/ResourceProperty.cs
This file contains 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace Microsoft.Rest.Generator.AzureResourceSchema | ||
{ | ||
public class ResourceProperty | ||
{ | ||
private readonly string name; | ||
private readonly bool isRequired; | ||
private readonly string propertyType; | ||
private readonly IEnumerable<string> allowedValues; | ||
private readonly string description; | ||
|
||
public ResourceProperty(string name, bool isRequired, string propertyType, IEnumerable<string> allowedValues, string description) | ||
{ | ||
this.name = name; | ||
this.isRequired = isRequired; | ||
this.propertyType = propertyType; | ||
this.allowedValues = allowedValues; | ||
this.description = description; | ||
} | ||
|
||
public string Name | ||
{ | ||
get { return name; } | ||
} | ||
|
||
public bool IsRequired | ||
{ | ||
get { return isRequired; } | ||
} | ||
|
||
public string PropertyType | ||
{ | ||
get { return propertyType; } | ||
} | ||
|
||
public IEnumerable<string> AllowedValues | ||
{ | ||
get { return allowedValues; } | ||
} | ||
|
||
public string Description | ||
{ | ||
get { return description; } | ||
} | ||
} | ||
} |
This file contains 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 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 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
Oops, something went wrong.