Skip to content

Commit

Permalink
.NET SDK Resource Provider:'ResourceGraph' (Azure#5519)
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5432'
REST Spec PR Author 'chiragg4u'
REST Spec PR Last commit
  • Loading branch information
adxsdknet authored and dsgouda committed Mar 27, 2019
1 parent cbb5910 commit b5febf4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/SDKs/ResourceGraph/Management/AzSdk.RP.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>ResourceGraph_2018-09-01-preview;</AzureApiTag>
<AzureApiTag>ResourceGraph_2019-04-01;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@ public FacetRequestOptions()
/// <summary>
/// Initializes a new instance of the FacetRequestOptions class.
/// </summary>
/// <param name="sortOrder">The sorting order by the hit count.
/// Possible values include: 'asc', 'desc'</param>
/// <param name="sortBy">The column name or query expression to sort
/// on. Defaults to count if not present.</param>
/// <param name="sortOrder">The sorting order by the selected column
/// (count by default). Possible values include: 'asc', 'desc'</param>
/// <param name="filter">Specifies the filter condition for the 'where'
/// clause which will be run on main query's result, just before the
/// actual faceting.</param>
/// <param name="top">The maximum number of facet rows that should be
/// returned.</param>
public FacetRequestOptions(FacetSortOrder? sortOrder = default(FacetSortOrder?), int? top = default(int?))
public FacetRequestOptions(string sortBy = default(string), FacetSortOrder? sortOrder = default(FacetSortOrder?), string filter = default(string), int? top = default(int?))
{
SortBy = sortBy;
SortOrder = sortOrder;
Filter = filter;
Top = top;
CustomInit();
}
Expand All @@ -47,12 +54,27 @@ public FacetRequestOptions()
partial void CustomInit();

/// <summary>
/// Gets or sets the sorting order by the hit count. Possible values
/// include: 'asc', 'desc'
/// Gets or sets the column name or query expression to sort on.
/// Defaults to count if not present.
/// </summary>
[JsonProperty(PropertyName = "sortBy")]
public string SortBy { get; set; }

/// <summary>
/// Gets or sets the sorting order by the selected column (count by
/// default). Possible values include: 'asc', 'desc'
/// </summary>
[JsonProperty(PropertyName = "sortOrder")]
public FacetSortOrder? SortOrder { get; set; }

/// <summary>
/// Gets or sets specifies the filter condition for the 'where' clause
/// which will be run on main query's result, just before the actual
/// faceting.
/// </summary>
[JsonProperty(PropertyName = "filter")]
public string Filter { get; set; }

/// <summary>
/// Gets or sets the maximum number of facet rows that should be
/// returned.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ private void Initialize()
{
Operations = new Operations(this);
BaseUri = new System.Uri("https://management.azure.com");
ApiVersion = "2018-09-01-preview";
ApiVersion = "2019-04-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,10 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_ResourceGraphCl
{
return new Tuple<string, string, string>[]
{
new Tuple<string, string, string>("ResourceGraph", "Operations", "2018-09-01-preview"),
new Tuple<string, string, string>("ResourceGraph", "Resources", "2018-09-01-preview"),
new Tuple<string, string, string>("ResourceGraph", "Operations", "2019-04-01"),
new Tuple<string, string, string>("ResourceGraph", "Resources", "2019-04-01"),
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/resourcegraph/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\git\\azure-sdk-for-net\\src\\SDKs";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "15929694cc9babeb19c0e834f8babe23af323b75";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
}
}

0 comments on commit b5febf4

Please sign in to comment.