From 21cb93209ba4c7e2e632feec5a3925c8e6e2cf2a Mon Sep 17 00:00:00 2001 From: adxsdknet Date: Wed, 20 Mar 2019 01:41:47 +0000 Subject: [PATCH] .NET SDK Resource Provider:'ResourceGraph' REST Spec PR 'https://github.com/Azure/azure-rest-api-specs/pull/5432' REST Spec PR Author 'chiragg4u' REST Spec PR Last commit --- .../ResourceGraph/Management/AzSdk.RP.props | 2 +- .../Generated/Models/FacetRequestOptions.cs | 32 ++++++++++++++++--- .../Generated/ResourceGraphClient.cs | 2 +- .../Generated/SdkInfo_ResourceGraphClient.cs | 15 ++------- 4 files changed, 31 insertions(+), 20 deletions(-) diff --git a/src/SDKs/ResourceGraph/Management/AzSdk.RP.props b/src/SDKs/ResourceGraph/Management/AzSdk.RP.props index 842a140129b9a..704c326c3b4b3 100644 --- a/src/SDKs/ResourceGraph/Management/AzSdk.RP.props +++ b/src/SDKs/ResourceGraph/Management/AzSdk.RP.props @@ -1,7 +1,7 @@ - ResourceGraph_2018-09-01-preview; + ResourceGraph_2019-04-01; $(PackageTags);$(CommonTags);$(AzureApiTag); \ No newline at end of file diff --git a/src/SDKs/ResourceGraph/Management/Management.ResourceGraph/Generated/Models/FacetRequestOptions.cs b/src/SDKs/ResourceGraph/Management/Management.ResourceGraph/Generated/Models/FacetRequestOptions.cs index 62564cddc6c19..a6ea39b355a7f 100644 --- a/src/SDKs/ResourceGraph/Management/Management.ResourceGraph/Generated/Models/FacetRequestOptions.cs +++ b/src/SDKs/ResourceGraph/Management/Management.ResourceGraph/Generated/Models/FacetRequestOptions.cs @@ -30,13 +30,20 @@ public FacetRequestOptions() /// /// Initializes a new instance of the FacetRequestOptions class. /// - /// The sorting order by the hit count. - /// Possible values include: 'asc', 'desc' + /// The column name or query expression to sort + /// on. Defaults to count if not present. + /// The sorting order by the selected column + /// (count by default). Possible values include: 'asc', 'desc' + /// Specifies the filter condition for the 'where' + /// clause which will be run on main query's result, just before the + /// actual faceting. /// The maximum number of facet rows that should be /// returned. - 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(); } @@ -47,12 +54,27 @@ public FacetRequestOptions() partial void CustomInit(); /// - /// 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. + /// + [JsonProperty(PropertyName = "sortBy")] + public string SortBy { get; set; } + + /// + /// Gets or sets the sorting order by the selected column (count by + /// default). Possible values include: 'asc', 'desc' /// [JsonProperty(PropertyName = "sortOrder")] public FacetSortOrder? SortOrder { get; set; } + /// + /// 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. + /// + [JsonProperty(PropertyName = "filter")] + public string Filter { get; set; } + /// /// Gets or sets the maximum number of facet rows that should be /// returned. diff --git a/src/SDKs/ResourceGraph/Management/Management.ResourceGraph/Generated/ResourceGraphClient.cs b/src/SDKs/ResourceGraph/Management/Management.ResourceGraph/Generated/ResourceGraphClient.cs index 7f7e15ecf0a98..f8e8db5fe8f1a 100644 --- a/src/SDKs/ResourceGraph/Management/Management.ResourceGraph/Generated/ResourceGraphClient.cs +++ b/src/SDKs/ResourceGraph/Management/Management.ResourceGraph/Generated/ResourceGraphClient.cs @@ -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; diff --git a/src/SDKs/ResourceGraph/Management/Management.ResourceGraph/Generated/SdkInfo_ResourceGraphClient.cs b/src/SDKs/ResourceGraph/Management/Management.ResourceGraph/Generated/SdkInfo_ResourceGraphClient.cs index 2344c75d535ee..053163dff1c9d 100644 --- a/src/SDKs/ResourceGraph/Management/Management.ResourceGraph/Generated/SdkInfo_ResourceGraphClient.cs +++ b/src/SDKs/ResourceGraph/Management/Management.ResourceGraph/Generated/SdkInfo_ResourceGraphClient.cs @@ -19,21 +19,10 @@ public static IEnumerable> ApiInfo_ResourceGraphCl { return new Tuple[] { - new Tuple("ResourceGraph", "Operations", "2018-09-01-preview"), - new Tuple("ResourceGraph", "Resources", "2018-09-01-preview"), + new Tuple("ResourceGraph", "Operations", "2019-04-01"), + new Tuple("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 } } -