diff --git a/src/SDKs/Blueprint/Management.Blueprint/Generated/AssignmentsOperations.cs b/src/SDKs/Blueprint/Management.Blueprint/Generated/AssignmentsOperations.cs index b50351b25943e..cd557d32b2709 100644 --- a/src/SDKs/Blueprint/Management.Blueprint/Generated/AssignmentsOperations.cs +++ b/src/SDKs/Blueprint/Management.Blueprint/Generated/AssignmentsOperations.cs @@ -650,6 +650,14 @@ internal AssignmentsOperations(BlueprintManagementClient client) /// /// Get Blueprints service SPN objectId /// + /// + /// The scope of the resource. Valid scopes are: management group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'). + /// + /// + /// Name of the blueprint assignment. + /// /// /// Headers that will be added to request. /// @@ -662,11 +670,29 @@ internal AssignmentsOperations(BlueprintManagementClient client) /// /// Thrown when unable to deserialize the response /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// /// /// A response object containing the response body and response headers. /// - public async Task> WhoIsBlueprintWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> WhoIsBlueprintWithHttpMessagesAsync(string scope, string assignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (assignmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "assignmentName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -674,13 +700,21 @@ internal AssignmentsOperations(BlueprintManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("assignmentName", assignmentName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "WhoIsBlueprint", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Blueprint/blueprintAssignments/{assignmentName}/WhoIsBlueprint").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{assignmentName}", System.Uri.EscapeDataString(assignmentName)); List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/src/SDKs/Blueprint/Management.Blueprint/Generated/AssignmentsOperationsExtensions.cs b/src/SDKs/Blueprint/Management.Blueprint/Generated/AssignmentsOperationsExtensions.cs index 03f2988f4cece..bddbafb8a9469 100644 --- a/src/SDKs/Blueprint/Management.Blueprint/Generated/AssignmentsOperationsExtensions.cs +++ b/src/SDKs/Blueprint/Management.Blueprint/Generated/AssignmentsOperationsExtensions.cs @@ -165,9 +165,17 @@ public static Assignment Delete(this IAssignmentsOperations operations, string s /// /// The operations group for this extension method. /// - public static WhoIsBlueprintContract WhoIsBlueprint(this IAssignmentsOperations operations) + /// + /// The scope of the resource. Valid scopes are: management group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'). + /// + /// + /// Name of the blueprint assignment. + /// + public static WhoIsBlueprintContract WhoIsBlueprint(this IAssignmentsOperations operations, string scope, string assignmentName) { - return operations.WhoIsBlueprintAsync().GetAwaiter().GetResult(); + return operations.WhoIsBlueprintAsync(scope, assignmentName).GetAwaiter().GetResult(); } /// @@ -176,12 +184,20 @@ public static WhoIsBlueprintContract WhoIsBlueprint(this IAssignmentsOperations /// /// The operations group for this extension method. /// + /// + /// The scope of the resource. Valid scopes are: management group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'). + /// + /// + /// Name of the blueprint assignment. + /// /// /// The cancellation token. /// - public static async Task WhoIsBlueprintAsync(this IAssignmentsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task WhoIsBlueprintAsync(this IAssignmentsOperations operations, string scope, string assignmentName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.WhoIsBlueprintWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.WhoIsBlueprintWithHttpMessagesAsync(scope, assignmentName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Blueprint/Management.Blueprint/Generated/IAssignmentsOperations.cs b/src/SDKs/Blueprint/Management.Blueprint/Generated/IAssignmentsOperations.cs index 86a66967539ee..9d30bca58785f 100644 --- a/src/SDKs/Blueprint/Management.Blueprint/Generated/IAssignmentsOperations.cs +++ b/src/SDKs/Blueprint/Management.Blueprint/Generated/IAssignmentsOperations.cs @@ -113,6 +113,15 @@ public partial interface IAssignmentsOperations /// /// Get Blueprints service SPN objectId /// + /// + /// The scope of the resource. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'). + /// + /// + /// Name of the blueprint assignment. + /// /// /// The headers that will be added to request. /// @@ -125,7 +134,10 @@ public partial interface IAssignmentsOperations /// /// Thrown when unable to deserialize the response /// - Task> WhoIsBlueprintWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task> WhoIsBlueprintWithHttpMessagesAsync(string scope, string assignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// List blueprint assignments within a subscription. ///