From 70fade8149c86e973904cefab6e97ebb11897e1b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 22 Feb 2023 02:13:49 +0000 Subject: [PATCH] CodeGen from PR 22270 in Azure/azure-rest-api-specs Ramoka/mgrp 0928 s360 (#22270) * Add blockchain to latest profile * Add additional types * fixing nextlink --------- Co-authored-by: Mark Cowlishaw --- .../src/Generated/EntitiesOperations.cs | 4 +- .../ManagementGroupSubscriptionsOperations.cs | 4 +- .../Generated/ManagementGroupsOperations.cs | 4 +- .../Models/CreateManagementGroupChildInfo.cs | 4 +- .../Generated/Models/EntityHierarchyItem.cs | 4 +- .../src/Generated/Models/EntityInfo.cs | 6 +- .../Generated/Models/HierarchySettingsList.cs | 2 +- .../Models/ManagementGroupChildInfo.cs | 4 +- .../Models/ManagementGroupChildType.cs | 60 +++++++++++++++ .../src/Generated/Models/Page.cs | 2 +- .../src/Generated/Models/Page1.cs | 53 +++++++++++++ .../Generated/Models/ParentGroupBagInfo.cs | 74 +++++++++++++++++++ .../src/Generated/Models/Permissions.cs | 72 ++++++++++++++++++ .../SubscriptionUnderManagementGroup.cs | 4 +- .../src/Generated/Operations.cs | 4 +- 15 files changed, 280 insertions(+), 21 deletions(-) create mode 100644 sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/ManagementGroupChildType.cs create mode 100644 sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/Page1.cs create mode 100644 sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/ParentGroupBagInfo.cs create mode 100644 sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/Permissions.cs diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/EntitiesOperations.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/EntitiesOperations.cs index 7412b37fbf18..650a58113aa9 100644 --- a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/EntitiesOperations.cs +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/EntitiesOperations.cs @@ -313,7 +313,7 @@ internal EntitiesOperations(ManagementGroupsAPIClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -496,7 +496,7 @@ internal EntitiesOperations(ManagementGroupsAPIClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/ManagementGroupSubscriptionsOperations.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/ManagementGroupSubscriptionsOperations.cs index 3eafa80ded29..19fdfd801e4d 100644 --- a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/ManagementGroupSubscriptionsOperations.cs +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/ManagementGroupSubscriptionsOperations.cs @@ -802,7 +802,7 @@ internal ManagementGroupSubscriptionsOperations(ManagementGroupsAPIClient client _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -972,7 +972,7 @@ internal ManagementGroupSubscriptionsOperations(ManagementGroupsAPIClient client _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/ManagementGroupsOperations.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/ManagementGroupsOperations.cs index 8b9adce68d47..c78527167915 100644 --- a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/ManagementGroupsOperations.cs +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/ManagementGroupsOperations.cs @@ -906,7 +906,7 @@ internal ManagementGroupsOperations(ManagementGroupsAPIClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1701,7 +1701,7 @@ internal ManagementGroupsOperations(ManagementGroupsAPIClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.cs index fbaa6e58176c..b64df7bdfc96 100644 --- a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.cs +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/CreateManagementGroupChildInfo.cs @@ -41,7 +41,7 @@ public CreateManagementGroupChildInfo() /// The friendly name of the child /// resource. /// The list of children. - public CreateManagementGroupChildInfo(string type = default(string), string id = default(string), string name = default(string), string displayName = default(string), IList children = default(IList)) + public CreateManagementGroupChildInfo(ManagementGroupChildType? type = default(ManagementGroupChildType?), string id = default(string), string name = default(string), string displayName = default(string), IList children = default(IList)) { Type = type; Id = id; @@ -65,7 +65,7 @@ public CreateManagementGroupChildInfo() /// include: 'Microsoft.Management/managementGroups', '/subscriptions' /// [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + public ManagementGroupChildType? Type { get; private set; } /// /// Gets the fully qualified ID for the child resource (management diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/EntityHierarchyItem.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/EntityHierarchyItem.cs index 1366fb8e6eb4..4a429711401e 100644 --- a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/EntityHierarchyItem.cs +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/EntityHierarchyItem.cs @@ -46,7 +46,7 @@ public EntityHierarchyItem() /// group. /// Permissions /// The list of children. - public EntityHierarchyItem(string id = default(string), string type = default(string), string name = default(string), string displayName = default(string), string permissions = default(string), IList children = default(IList)) + public EntityHierarchyItem(string id = default(string), string type = default(string), string name = default(string), string displayName = default(string), Permissions? permissions = default(Permissions?), IList children = default(IList)) { Id = id; Type = type; @@ -96,7 +96,7 @@ public EntityHierarchyItem() /// Possible values include: 'noaccess', 'view', 'edit', 'delete' /// [JsonProperty(PropertyName = "properties.permissions")] - public string Permissions { get; set; } + public Permissions? Permissions { get; set; } /// /// Gets or sets the list of children. diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/EntityInfo.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/EntityInfo.cs index 592a760a81da..e8a1f73965b3 100644 --- a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/EntityInfo.cs +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/EntityInfo.cs @@ -55,7 +55,7 @@ public EntityInfo() /// from the root group to the immediate parent /// The parent name chain from the root /// group to the immediate parent - public EntityInfo(string id = default(string), string type = default(string), string name = default(string), string tenantId = default(string), string displayName = default(string), EntityParentGroupInfo parent = default(EntityParentGroupInfo), string permissions = default(string), string inheritedPermissions = default(string), int? numberOfDescendants = default(int?), int? numberOfChildren = default(int?), int? numberOfChildGroups = default(int?), IList parentDisplayNameChain = default(IList), IList parentNameChain = default(IList)) + public EntityInfo(string id = default(string), string type = default(string), string name = default(string), string tenantId = default(string), string displayName = default(string), EntityParentGroupInfo parent = default(EntityParentGroupInfo), Permissions? permissions = default(Permissions?), Permissions? inheritedPermissions = default(Permissions?), int? numberOfDescendants = default(int?), int? numberOfChildren = default(int?), int? numberOfChildGroups = default(int?), IList parentDisplayNameChain = default(IList), IList parentNameChain = default(IList)) { Id = id; Type = type; @@ -125,7 +125,7 @@ public EntityInfo() /// Possible values include: 'noaccess', 'view', 'edit', 'delete' /// [JsonProperty(PropertyName = "properties.permissions")] - public string Permissions { get; set; } + public Permissions? Permissions { get; set; } /// /// Gets or sets inherited Permissions @@ -134,7 +134,7 @@ public EntityInfo() /// Possible values include: 'noaccess', 'view', 'edit', 'delete' /// [JsonProperty(PropertyName = "properties.inheritedPermissions")] - public string InheritedPermissions { get; set; } + public Permissions? InheritedPermissions { get; set; } /// /// Gets or sets number of Descendants diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/HierarchySettingsList.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/HierarchySettingsList.cs index 4453d462e76c..0822b412c072 100644 --- a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/HierarchySettingsList.cs +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/HierarchySettingsList.cs @@ -55,7 +55,7 @@ public HierarchySettingsList() /// /// Gets the URL to use for getting the next set of results. /// - [JsonProperty(PropertyName = "nextLink")] + [JsonProperty(PropertyName = "@nextLink")] public string NextLink { get; private set; } } diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.cs index 6bd9d1fa8a38..f228d02340fa 100644 --- a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.cs +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/ManagementGroupChildInfo.cs @@ -39,7 +39,7 @@ public ManagementGroupChildInfo() /// The friendly name of the child /// resource. /// The list of children. - public ManagementGroupChildInfo(string type = default(string), string id = default(string), string name = default(string), string displayName = default(string), IList children = default(IList)) + public ManagementGroupChildInfo(ManagementGroupChildType? type = default(ManagementGroupChildType?), string id = default(string), string name = default(string), string displayName = default(string), IList children = default(IList)) { Type = type; Id = id; @@ -63,7 +63,7 @@ public ManagementGroupChildInfo() /// include: 'Microsoft.Management/managementGroups', '/subscriptions' /// [JsonProperty(PropertyName = "type")] - public string Type { get; set; } + public ManagementGroupChildType? Type { get; set; } /// /// Gets or sets the fully qualified ID for the child resource diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/ManagementGroupChildType.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/ManagementGroupChildType.cs new file mode 100644 index 000000000000..70f73002386c --- /dev/null +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/ManagementGroupChildType.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ManagementGroups.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for ManagementGroupChildType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ManagementGroupChildType + { + [EnumMember(Value = "Microsoft.Management/managementGroups")] + MicrosoftManagementManagementGroups, + [EnumMember(Value = "/subscriptions")] + HyphenMinussubscriptions + } + internal static class ManagementGroupChildTypeEnumExtension + { + internal static string ToSerializedValue(this ManagementGroupChildType? value) + { + return value == null ? null : ((ManagementGroupChildType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this ManagementGroupChildType value) + { + switch( value ) + { + case ManagementGroupChildType.MicrosoftManagementManagementGroups: + return "Microsoft.Management/managementGroups"; + case ManagementGroupChildType.HyphenMinussubscriptions: + return "/subscriptions"; + } + return null; + } + + internal static ManagementGroupChildType? ParseManagementGroupChildType(this string value) + { + switch( value ) + { + case "Microsoft.Management/managementGroups": + return ManagementGroupChildType.MicrosoftManagementManagementGroups; + case "/subscriptions": + return ManagementGroupChildType.HyphenMinussubscriptions; + } + return null; + } + } +} diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/Page.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/Page.cs index b28de3dea8a0..2d0baf32b741 100644 --- a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/Page.cs +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/Page.cs @@ -26,7 +26,7 @@ public class Page : IPage /// /// Gets the link to the next page. /// - [JsonProperty("nextLink")] + [JsonProperty("@nextLink")] public string NextPageLink { get; private set; } [JsonProperty("value")] diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/Page1.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/Page1.cs new file mode 100644 index 000000000000..a3b5d61d9dcd --- /dev/null +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/Page1.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ManagementGroups.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page1 : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("nextLink")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/ParentGroupBagInfo.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/ParentGroupBagInfo.cs new file mode 100644 index 000000000000..97155e51e4be --- /dev/null +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/ParentGroupBagInfo.cs @@ -0,0 +1,74 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ManagementGroups.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The ID, name and displayName of the parent management group. + /// + public partial class ParentGroupBagInfo + { + /// + /// Initializes a new instance of the ParentGroupBagInfo class. + /// + public ParentGroupBagInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ParentGroupBagInfo class. + /// + /// The fully qualified ID for the parent management + /// group. For example, + /// /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 + /// The name of the parent management group. For + /// example, 00000000-0000-0000-0000-000000000000 + /// The friendly name of the parent + /// management group. + public ParentGroupBagInfo(string id = default(string), string name = default(string), string displayName = default(string)) + { + Id = id; + Name = name; + DisplayName = displayName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the fully qualified ID for the parent management + /// group. For example, + /// /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000 + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the name of the parent management group. For example, + /// 00000000-0000-0000-0000-000000000000 + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the friendly name of the parent management group. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + } +} diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/Permissions.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/Permissions.cs new file mode 100644 index 000000000000..a858f3bfff5d --- /dev/null +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/Permissions.cs @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ManagementGroups.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for Permissions. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum Permissions + { + [EnumMember(Value = "noaccess")] + Noaccess, + [EnumMember(Value = "view")] + View, + [EnumMember(Value = "edit")] + Edit, + [EnumMember(Value = "delete")] + Delete + } + internal static class PermissionsEnumExtension + { + internal static string ToSerializedValue(this Permissions? value) + { + return value == null ? null : ((Permissions)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this Permissions value) + { + switch( value ) + { + case Permissions.Noaccess: + return "noaccess"; + case Permissions.View: + return "view"; + case Permissions.Edit: + return "edit"; + case Permissions.Delete: + return "delete"; + } + return null; + } + + internal static Permissions? ParsePermissions(this string value) + { + switch( value ) + { + case "noaccess": + return Permissions.Noaccess; + case "view": + return Permissions.View; + case "edit": + return Permissions.Edit; + case "delete": + return Permissions.Delete; + } + return null; + } + } +} diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.cs index 96aa616ee933..98c943386340 100644 --- a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.cs +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Models/SubscriptionUnderManagementGroup.cs @@ -49,7 +49,7 @@ public SubscriptionUnderManagementGroup() /// subscription. /// Parent /// The state of the subscription. - public SubscriptionUnderManagementGroup(string id = default(string), string type = default(string), string name = default(string), string tenant = default(string), string displayName = default(string), DescendantParentGroupInfo parent = default(DescendantParentGroupInfo), string state = default(string)) + public SubscriptionUnderManagementGroup(string id = default(string), string type = default(string), string name = default(string), string tenant = default(string), string displayName = default(string), ParentGroupBagInfo parent = default(ParentGroupBagInfo), string state = default(string)) { Id = id; Type = type; @@ -104,7 +104,7 @@ public SubscriptionUnderManagementGroup() /// Gets or sets parent /// [JsonProperty(PropertyName = "properties.parent")] - public DescendantParentGroupInfo Parent { get; set; } + public ParentGroupBagInfo Parent { get; set; } /// /// Gets or sets the state of the subscription. diff --git a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Operations.cs b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Operations.cs index 4e832f1beca4..78e571efa869 100644 --- a/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Operations.cs +++ b/sdk/managementgroups/Microsoft.Azure.Management.ManagementGroups/src/Generated/Operations.cs @@ -199,7 +199,7 @@ internal Operations(ManagementGroupsAPIClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -367,7 +367,7 @@ internal Operations(ManagementGroupsAPIClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) {