Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
.NET SDK Resource Provider:'ResourceGraph'
REST Spec PR 'Azure/azure-rest-api-specs#5478'
REST Spec PR Author 'ericc1103'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Mar 26, 2019
commit 238769ca28e139d41c76d069fefd958694977f71
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 @@ -24,16 +24,5 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_ResourceGraphCl
}.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
}
}